joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaa6f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xaa6ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xaa7035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00aa6e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xaa6fc5
mov edi, 0xac18b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xaa7035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00aa6e00
add edi, 4
add esp, 0xc
cmp edi, 0xac18c0
jb 0xaa7000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xaa7070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00aad082
mov esi, eax
add esp, 8
test esi, esi
je 0xaa7107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xaa7102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00aac946
add esp, 8
test eax, eax
je 0xaa70e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xaa70e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00aac946
add esp, 8
test eax, eax
jne 0xaa70c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xaa7102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xaa7f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xabc9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xaa8002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00aabdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xaa8002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00aa36e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00aac20b
push 0x10
call fcn.00aac1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xaa7fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a981c0
jmp 0xaa7fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00aa7b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xaa7ff0
mov ecx, edi
call fcn.00a982c0
push edi
call fcn.00aac1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xaa8021
inc ebx
cmp ebx, 0x20
jb 0xaa7f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xaa9250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabd808
push 0xaad288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xaa9329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xaa9329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00aac1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xaa9329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xaa9329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xaa932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00aa9351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xaa9d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaa9d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xaa9d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xaa9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xaa9d94
push eax
push esi
call fcn.00aac20b
add esp, 8
pop esi
ret 0x10

Function at 0xaa9da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaa9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xaa9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xac2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aabdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xaa9dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xaa9e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xaa9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xaa9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xac2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00aabdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xaa9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xaa9e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xaaa000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xaaa131
push esi
call fcn.00aad145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a9c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xaaa131
push 0
push ebp
call fcn.00a9c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a9c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xaaa08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a9c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xaaa121
push 0xac2918
push edi
call fcn.00aab3f0
push eax
push ebx
push esi
call fcn.00aa9f60
push 0xac28f8
push edi
call fcn.00aab3f0
push eax
push ebx
push esi
call fcn.00aa9f60
push 0xac28d8
push edi
call fcn.00aab3f0
push eax
push ebx
push esi
call fcn.00aa9f60
push 0xac28c0
push edi
call fcn.00aab3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00aa9f60
push 0xac28a0
push edi
call fcn.00aab3f0
push eax
push ebx
push esi
call fcn.00aa9f60
push 0xac2888
push edi
call fcn.00aab3f0
push eax
push ebx
push esi
call fcn.00aa9f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xaab1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00aab140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00aab140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00aab140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00aab140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xaabbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xaabc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xabd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xaabc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xaabc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x710c70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7109ec
sub ebx, 0x490816ff
mov ebx, ebx
add edi, edi
call fcn.00710cce
sub ebx, 1
mov edi, edi
xor dword [edx], eax
sub edi, 0xab2868ff
add ebx, 0xb36ca8cb
add edi, 1
inc edx
mov edi, edi
mov edi, ebx
sub ebx, edi
cmp edx, esi
jne fcn.00710c70
sub ebx, 0xa9122df0
sub edi, 0xcaed2b44
sub ebx, 0xeddae677
ret
Function at 0x40143f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0047f270
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, dword [ebp + 8]
jne 0x40146b
or eax, 0xffffffff
jmp 0x401530
mov eax, dword [esi + 8]
push edi
mov edi, dword [esi + 4]
add eax, edi
cmp eax, dword [esi]
jle 0x4014c7
cmp edi, 0x1000
jbe 0x40148b
push edi
call fcn.004856fc
pop ecx
mov ebx, eax
jmp 0x401491
lea ebx, [ebp - 0x1004]
test ebx, ebx
je 0x4014c4
mov eax, dword [esi]
sub eax, dword [esi + 8]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
push ebx
call fcn.00480c10
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sub ecx, dword [esi + 8]
add eax, dword [esi + 8]
add ecx, ebx
push eax
push dword [esi + 0xc]
push ecx
call fcn.00480c10
add esp, 0x18
mov edi, dword [esi + 4]
push 0
push edi
test ebx, ebx
jne 0x4014e2
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
jmp 0x40150b
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1008], ecx
cmp ebx, eax
je 0x40150b
push ebx
call fcn.004856f7
pop ecx
mov ecx, dword [ebp - 0x1008]
cmp ecx, 0xffffffff
je 0x40152d
mov eax, dword [esi + 8]
add eax, ecx
sub dword [esi + 4], ecx
cdq
idiv dword [esi]
add dword [esi + 0x10], ecx
mov dword [esi + 8], edx
cmp ecx, edi
jge 0x40152d
sub edi, ecx
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], edi
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret

Function at 0x401f18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push esi
test edx, edx
je 0x401fa1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f33
sub ecx, esi
je 0x401fa1
lea eax, [ebp - 4]
push eax
push 1
push ebx
push edx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fa4
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x401f79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x401fa4
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401f75
xor eax, eax
jmp 0x401fa4
push 0x57
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401faa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00481190
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402003
cmp dword [ebp - 0x88], 2
jne 0x402003
cmp dword [ebp - 0x94], 5
jb 0x402003
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x40246e
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00402aeb
Function at 0x4027a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov dword [ebp - 0x418], eax
lea esi, [ebp - 0x40c]
xor ecx, ecx
mov dword [ebp - 0x410], ecx
lea eax, [ebx + 8]
mov dword [ebp - 0x41c], eax
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x400
jle 0x4027f8
push eax
call fcn.004856fc
mov esi, eax
pop ecx
test esi, esi
jne 0x4027f8
push 0xfffffffffffffff5
pop eax
jmp 0x402938
mov eax, ebx
mov dword [esi], 0x47a5e4a
shr eax, 0x18
mov byte [esi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ebx
shr eax, 8
push ebx
mov byte [esi + 6], al
lea eax, [esi + 8]
push edi
push eax
mov byte [esi + 7], bl
call fcn.00480c10
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
xor ebx, ebx
xor edi, edi
mov eax, 0x40000000
mov dword [ebp - 0x414], eax
test ecx, ecx
jle 0x402914
sub ecx, ebx
cmp ecx, eax
jle 0x40284c
mov ecx, eax
push 0
push ecx
lea eax, [ebx + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4028c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2747
jne 0x4028a0
mov eax, dword [ebp - 0x414]
sar eax, 1
mov dword [ebp - 0x414], eax
cmp eax, 0x400000
jle 0x40288f
mov dword [ebp - 0x414], 0x400000
jmp 0x402896
cmp eax, 0x100
jl 0x4028ec
xor ecx, ecx
mov dword [ebp - 0x410], ecx
jmp 0x4028fc
cmp eax, 0x2733
jne 0x4028ec
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x410]
inc ecx
mov dword [ebp - 0x410], ecx
cmp ecx, 0x12c
jmp 0x4028ea
xor ecx, ecx
mov dword [ebp - 0x410], ecx
test eax, eax
jne 0x4028f0
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x418]
inc eax
mov dword [ebp - 0x418], eax
cmp eax, 0x3e8
jle 0x4028fc
push 0xfffffffffffffff4
jmp 0x402913
jle 0x402911
add ebx, eax
xor eax, eax
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x41c]
cmp ebx, ecx
jge 0x402914
mov eax, dword [ebp - 0x414]
jmp 0x402844
push 0xffffffffffffff9d
pop edi
lea eax, [ebp - 0x40c]
cmp esi, eax
je 0x402925
push esi
call fcn.004856f7
pop ecx
test ebx, ebx
jle 0x402936
push 0
push ebx
push 1
call fcn.00402949
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x402949
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 5
mov dword [ebp - 4], ebx
pop eax
cmp dword [ebp + 0x10], ebx
jne 0x402977
cmp esi, 4
je 0x40296f
cmp esi, 3
je 0x40296f
cmp esi, eax
jne 0x402977
or eax, 0xffffffff
jmp 0x402abf
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push str.KASC_STAT_MUTEX
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4029b6
push 0x3a98
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp esi, 1
je 0x402a8a
cmp esi, 2
je 0x402a70
jle 0x402a6b
cmp esi, 4
jle 0x402a1b
push 5
pop eax
cmp esi, eax
jne 0x402a6b
push 0x4d65a4
push 0x4d6574
call fcn.00402bda
push 0x4d65a8
push 0x4d658c
call fcn.00402bda
add esp, 0x10
mov eax, ebx
mov edx, ebx
mov ecx, dword [edx + 0x4d6590]
add ecx, dword [edx + 0x4d6578]
add edx, 4
add eax, ecx
cmp edx, 0x10
jle 0x402a03
jmp 0x402a5d
push 0x4d65a4
push 0x4d6574
call fcn.00402bda
push 0x4d65a8
push 0x4d658c
call fcn.00402bda
add esp, 0x10
mov ecx, ebx
mov eax, ebx
cmp esi, 4
jne 0x402a4d
add ecx, dword [eax + 0x4d6590]
jmp 0x402a53
add ecx, dword [eax + 0x4d6578]
add eax, 4
cmp eax, 0x10
jle 0x402a40
mov eax, ecx
push 5
pop ecx
xor edx, edx
div ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x402aa4
push 0xfffffffffffffffe
pop ebx
jmp 0x402aa4
push 0x4d65a8
push 0x4d658c
call fcn.00402bda
mov eax, dword [ebp + 0xc]
add dword [0x4d658c], eax
jmp 0x402aa2
push 0x4d65a4
push 0x4d6574
call fcn.00402bda
mov eax, dword [ebp + 0xc]
add dword [0x4d6574], eax
pop ecx
pop ecx
test edi, edi
je 0x402abc
cmp dword [ebp - 4], 0
jne 0x402ab5
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402aeb
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp - 0x1a4]
push ecx
or ebx, 0xffffffff
push 0x202
mov dword [esi], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402b25
mov eax, ebx
jmp 0x402bca
push edi
push 0
push 1
push 2
pop edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, ebx
jne 0x402b48
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xfffffffffffffffe
pop eax
jmp 0x402bc9
cmp dword [ebp + 0xc], 0
je 0x402b66
lea ecx, [ebp + 0xc]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x402b66
push 0xfffffffffffffffe
jmp 0x402bb2
cmp dword [ebp + 8], 1
jne 0x402bc7
push dword [ebp + 0x18]
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
jne 0x402ba1
push 0xfffffffffffffff9
jmp 0x402bb2
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
jne 0x402bc7
push 0xfffffffffffffff8
pop edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esi], ebx
mov eax, edi
jmp 0x402bc9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f259
mov esp, ebp
pop ebp
ret
Function at 0x404e8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d4664]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
call fcn.00481190
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00481190
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x404f1a
xor ecx, ecx
mov al, byte [ebp + ecx - 0x20c]
mov byte [ebp + ecx - 0x108], al
inc ecx
test al, al
jne 0x404ed9
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ef3
mov esi, 0x4a2e34
lea eax, [ebp - 0x108]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x404f9d
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x108], 0
test ecx, ecx
je 0x404f78
cmp byte [ecx], 0
je 0x404f78
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404f35
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f48
sub ecx, edx
sub ecx, 1
js 0x404f78
cmp byte [ebp + ecx - 0x108], 0x5c
je 0x404f78
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404f67
mov ax, word [0x4a2e40]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404f7f
mov esi, str.psapi.dll
lea eax, [ebp - 0x108]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f259
mov esp, ebp
pop ebp
ret