joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447764
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47e75c]
cmp byte [eax + 0xc], 0
je 0x4478d1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4478ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47fbf4], 0
jne 0x4477b8
push 0x4478d8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4478e0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbf4], eax
cmp dword [0x47dad0], 0
jne 0x4478b3
push 0x4478f0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47dad0], eax
cmp dword [0x47dad0], 0
je 0x4478b3
push 0x4478fc
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbf8], eax
push 0x44790c
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbfc], eax
push 0x447920
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc00], eax
push 0x447938
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc04], eax
push 0x447950
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc08], eax
push 0x447964
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc0c], eax
push 0x44797c
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc10], eax
push 0x447994
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc14], eax
push 0x4479b0
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc18], eax
push 0x4479bc
mov eax, dword [0x47dad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fc1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4478d1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44ba20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043bc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44ba6f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404624
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4538b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453900]
test si, 4
je 0x4538c4
or bl, 1
test si, 8
je 0x4538ce
or bl, 4
test si, 1
je 0x4538d8
or bl, 8
test si, 2
je 0x4538e2
or bl, 0x10
test si, 0x10
je 0x4538ec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4538fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453904
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45393c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45391d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45392c
or bl, 4
test esi, 0x20000000
je 0x453937
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459f40
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459f52
add esp, 0xfffffff0
call fcn.00403930
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e280
mov eax, dword [0x47e27c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a2e4
mov eax, dword [0x47e28c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a2f0
mov eax, ebx
call fcn.0045a2fc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4567c4
push eax
push 0
push 0
mov eax, dword [0x47e494]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fcd4]
call fcn.004213a8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fcd4]
call fcn.004213a8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fcd4]
call fcn.004213a8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045a71c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a5f8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a5f8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a5f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a08f
call fcn.00403988
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a3dc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a587
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a568
mov dl, 1
mov eax, dword [0x413c78]
call fcn.0040359c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a557
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00447ac4
test al, al
je 0x45a54a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a598
lea eax, [ebp - 0x254]
call fcn.00409294
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a54a
xor eax, eax
push ebp
push 0x45a543
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a5d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a52c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404624
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a52c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a54a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a44d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041827c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a58e
lea eax, [ebp - 0x260]
call fcn.004043bc
ret

Function at 0x45aebc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47fc38]
cmp byte [eax + 0xa5], 0
jne 0x45af2d
cmp dword [0x47fc50], 0
jne 0x45aeee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ae78
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fc50], eax
cmp dword [0x47fc4c], 0
jne 0x45af09
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fc4c], eax
cmp dword [0x47fc54], 0
jne 0x45af2d
push esp
push 0
push 0
push 0x45ae1c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47fc54], eax
pop edx
ret
Function at 0x45b024
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b03b
add esp, 0xfffffff0
call fcn.00403930
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e280
mov eax, dword [0x47e468]
cmp word [eax + 2], 0
jne 0x45b063
mov eax, dword [0x47e468]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c6e8
mov eax, dword [0x47e570]
cmp word [eax + 2], 0
jne 0x45b07d
mov eax, dword [0x47e570]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c8e0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413614]
call fcn.0040359c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420754]
call fcn.00427c38
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b204
mov eax, dword [0x47e310]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428008
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ce50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47e310]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
pop esp
call fcn.0040c75c
test eax, eax
je 0x45b172
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bf0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c784
test eax, eax
je 0x45b186
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404624
mov eax, dword [0x47e118]
cmp byte [eax], 0
jne 0x45b1ba
mov eax, ebx
call fcn.0045b32c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d02c
mov eax, ebx
call fcn.0045d96c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b1fa
call fcn.00403988
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b5a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fc38]
cmp dword [eax + 0x30], 0
je 0x45b64a
cmp dword [ebx + 0x94], 0
jne 0x45b644
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b530
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b644
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b60a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b644
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415f40
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b619
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c128
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c15d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044ac
jmp 0x45c16a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404410
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d208
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d249
mov eax, esi
call fcn.004431b8
test al, al
je 0x45d249
mov eax, dword [ebx + 0x84]
call fcn.00442eb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d249
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442eb4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x460214
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045fd9c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040486c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x460272
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47e4a0]
mov dl, 1
mov eax, dword [0x45fc94]
call fcn.0040bb40
call fcn.00403d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46027c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040486c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4602d4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47e768]
mov dl, 1
mov eax, dword [0x45fc94]
call fcn.0040bb40
call fcn.00403d98
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045fdcc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x475138
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x412ee4]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x47527c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47df68], 0
jne 0x47518b
mov ecx, dword [0x47e144]
mov dl, 1
mov eax, dword [0x407798]
call fcn.0040bb04
call fcn.00403d98
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402eb8
mov eax, ebx
call fcn.00404c34
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47528c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406124
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c44
test eax, eax
jle 0x475223
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47521c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040463c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404624
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408644
test eax, eax
jne 0x47521c
mov ebx, 0x15
jmp 0x475228
mov ebx, 0x10
jmp 0x475228
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x47df68]
call fcn.00475090
mov eax, dword [ebp - 8]
call fcn.00475090
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040613c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475283
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043e0
lea eax, [ebp - 0x10]
mov edx, dword [0x412ee4]
call fcn.00404e94
ret

Function at 0x477560
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4775eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004043bc
push 0x40
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4775d5
mov edi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4775cf
push dword [esi]
mov eax, dword [edi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.004045ac
push dword [ebp - 0x44]
push 0x477604
mov eax, esi
mov edx, 3
call fcn.00404734
inc ebx
cmp dword [edi + ebx*4], 0
jne 0x4775a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4775f2
lea eax, [ebp - 0x44]
call fcn.004043bc
ret
Function at 0x477608
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040485c
xor eax, eax
push ebp
push 0x47769c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0x40
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x45]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x47767e
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x477677
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004045ac
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.004047b8
jne 0x477676
mov byte [ebp - 5], 1
jmp 0x47767e
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x477652
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4776a3
lea eax, [ebp - 0x4c]
call fcn.004043bc
lea eax, [ebp - 4]
call fcn.004043bc
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x45f363]
shl eax, 2
mov dword [0x45f367], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00452cd8
pop edx
call fcn.00452c3c
call fcn.00452d18
push 0
call fcn.00453fe0
pop ecx
push 0x45f30c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x45f36b], eax
push 0
jmp fcn.0045911c
Function at 0x40a1b8
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov ebx, dword [ebp + 8]
push eax
shl ebx, 3
push 4
lea ebx, [ebx + ebx*4]
lea ebx, [ebx + ebx*4]
lea ebx, [ebx + ebx*4]
push ebx
push 0x409f4c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
mov dword [0x467b2c], esi
push esi
call sub.KERNEL32.DLL_ResumeThread
mov eax, dword [0x467b2c]
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40a1fc
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ecx
push esp
mov eax, dword [0x467b2c]
push eax
call sub.KERNEL32.DLL_GetExitCodeThread
mov edx, dword [0x467b2c]
push edx
call sub.KERNEL32.DLL_SuspendThread
mov ecx, dword [esp]
push ecx
mov eax, dword [0x467b2c]
push eax
call sub.KERNEL32.DLL_TerminateThread
pop edx
ret

Function at 0x40a75c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
lea ebx, [ebp - 0x30]
mov eax, 0x463218
call fcn.004533cc
mov word [ebx + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x14
push 0xff
lea ecx, [ebp - 0x130]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x130]
push eax
call fcn.004530ec
pop ecx
cmp eax, 3
jne 0x40a7ec
mov word [ebx + 0x10], 0x20
lea edx, [ebp - 0x130]
lea eax, [ebp - 8]
call fcn.0045d380
inc dword [ebx + 0x1c]
mov ecx, 1
mov edx, 3
call fcn.0045d5d0
mov edx, eax
lea eax, [ebp - 4]
call fcn.0045d480
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0045d450
jmp 0x40a81d
mov word [ebx + 0x10], 0x2c
lea edx, [ebp - 0x130]
lea eax, [ebp - 0xc]
call fcn.0045d380
mov edx, eax
inc dword [ebx + 0x1c]
lea eax, [ebp - 4]
call fcn.0045d480
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0045d450
mov word [ebx + 0x10], 0x38
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0045d480
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebx + 0x10], 0x44
push eax
lea eax, [ebp - 4]
dec dword [ebx + 0x1c]
call fcn.0045d450
pop eax
mov word [ebx + 0x10], 0x38
inc dword [ebx + 0x1c]
mov edx, dword [ebx]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a98c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x463334
push ebx
call fcn.004533cc
mov dword [ebp - 0xc], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0045d3b8
inc dword [ebp - 0xc]
xor ebx, ebx
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
mov edx, 0x463069
lea eax, [ebp - 4]
call fcn.0045d380
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
call fcn.0045d894
test eax, eax
lea eax, [ebp - 4]
sete cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebp - 0xc]
call fcn.0045d450
pop ecx
test cl, cl
je 0x40aa15
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov ebx, eax
test ebx, ebx
jne 0x40aa49
push 0x46306c
call fcn.0040abac
pop ecx
jmp 0x40aa49
push 0x46307a
call fcn.0040aa74
pop ecx
test eax, eax
je 0x40aa3e
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov ebx, eax
test ebx, ebx
jne 0x40aa3e
push str.Shutting_down
call fcn.0040abac
pop ecx
push str.SeShutdownPrivilege
call fcn.0040ab10
pop ecx
test ebx, ebx
mov edx, 2
setne al
and eax, 1
push eax
lea eax, [ebp + 8]
dec dword [ebp - 0xc]
call fcn.0045d450
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40afb8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov byte [ebp - 8], dl
test dl, dl
jle 0x40afcb
call fcn.0045dd58
mov ebx, ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x463490
call fcn.004533cc
mov word [ebp - 0x18], 8
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0044487c
add dword [ebp - 0xc], 2
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00444964
mov edx, dword [ebp - 4]
mov byte [edx + 0x30], 0
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x40b01c
call fcn.0045dd65
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41139c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00450534
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4113eb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00450764
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418218
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41821e
ret
Function at 0x41a60c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41a65d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41a644
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41a634
jmp 0x41a65d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41a645
pop ebx
mov esp, ebp
pop ebp
ret