joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x435638]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435619
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x435628
or bl, 4
test esi, 0x20000000
je 0x435633
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43bcfc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43bd0e
add esp, 0xfffffff0
call fcn.00403aac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ddfc
mov eax, dword [0x47fc10]
mov dword [eax + 4], ebx
mov dword [eax], 0x43c0a0
mov eax, dword [0x47fc1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x43c0ac
mov eax, ebx
call fcn.0043c0b8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416044]
call fcn.00403744
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416044]
call fcn.00403744
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416044]
call fcn.00403744
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416044]
call fcn.00403744
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416044]
call fcn.00403744
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, 0x4384d0
push eax
push 0
push 0
mov eax, dword [0x47fdf4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41f860]
call fcn.00420ff8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41f860]
call fcn.00420ff8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41f860]
call fcn.00420ff8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043c508
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c3d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c3d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43c3d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43be4b
call fcn.00403b04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43c1b4
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 0x43c35f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x43c340
mov dl, 1
mov eax, dword [0x416460]
call fcn.00403744
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045a4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43c32f
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.00457dd8
test al, al
je 0x43c322
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, 0x43c370
lea eax, [ebp - 0x254]
call fcn.00409a50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43c322
xor eax, eax
push ebp
push 0x43c31b
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 0x43c3a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43c304
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404814
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 0x43c304
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c322
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43c225
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419f58
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 0x43c366
lea eax, [ebp - 0x260]
call fcn.004045a4
ret

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

Disassembly:
push ecx
mov eax, dword [0x481b1c]
cmp byte [eax + 0xa5], 0
jne 0x43cd19
cmp dword [0x481b34], 0
jne 0x43ccda
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43cc64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481b34], eax
cmp dword [0x481b30], 0
jne 0x43ccf5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x481b30], eax
cmp dword [0x481b38], 0
jne 0x43cd19
push esp
push 0
push 0
push 0x43cc08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x481b38], eax
pop edx
ret
Function at 0x43d3ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481b1c]
cmp dword [eax + 0x30], 0
je 0x43d456
cmp dword [ebx + 0x94], 0
jne 0x43d450
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43d33c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x43d450
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 0x43d416
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43d450
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.004183ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43d425
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x43dfb4
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 0x43dfe9
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.00404694
jmp 0x43dff6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43efac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x43efed
mov eax, esi
call fcn.00453404
test al, al
je 0x43efed
mov eax, dword [ebx + 0x84]
call fcn.00453100
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43efed
push 0
mov eax, dword [ebx + 0x84]
call fcn.00453100
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x441f2c
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.004045a4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441f7b
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.00404814
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a474
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x481b9c], 0
je 0x44a5c3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47fea0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x44a5c3
mov eax, dword [0x481ba0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x481b9c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44a592
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x481b9c]
call fcn.004183ac
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44a58a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x44a58a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44a58a
mov eax, dword [ebp - 0x14]
call fcn.00453100
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44a58a
push ebp
call fcn.0044a430
pop ecx
test al, al
jne 0x44a58a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x44a546
mov eax, dword [ebp - 0x14]
call fcn.00451c30
dec eax
jle 0x44a58a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040397c
cmp byte [ebp - 1], 0
je 0x44a58a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44a58a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x481ba0]
call fcn.00449bfc
inc edi
dec ebx
jne 0x44a4d9
mov eax, dword [0x481ba0]
cmp dword [eax + 8], 0
jle 0x44a5aa
mov eax, dword [0x481ba0]
call fcn.00449c8c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44a5c3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044a298
pop ecx
test al, al
jne 0x44a5c3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44db98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44dbe4
mov eax, esi
call fcn.004356f8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44dbe4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44dbe4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44dd23
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44dc24
cmp eax, 0x108
ja 0x44dc24
mov eax, esi
call fcn.004356f8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44dd1a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x44dd23
jmp 0x44dd1a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44dd03
cmp eax, 0x20a
ja 0x44dd03
test byte [esi + 0x50], 0x80
jne 0x44dc56
sub eax, 0x203
je 0x44dc53
sub eax, 3
je 0x44dc53
sub eax, 3
jne 0x44dc56
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44dc6a
dec eax
je 0x44dc7f
dec eax
je 0x44dc9c
dec eax
je 0x44dc7f
jmp 0x44dca3
mov ecx, ebx
mov eax, dword [0x47fea0]
mov eax, dword [eax]
mov edx, esi
call fcn.0043ee64
jmp 0x44dd1a
cmp byte [esi + 0x5d], 1
jne 0x44dc95
mov eax, esi
mov si, 0xffed
call fcn.0040397c
jmp 0x44dd23
or word [esi + 0x54], 1
jmp 0x44dd1a
and word [esi + 0x54], 0xfffe
jmp 0x44dd1a
mov eax, dword [0x481b58]
cmp byte [eax + 0x20], 0
je 0x44dd1a
mov eax, dword [0x481b58]
cmp dword [eax + 0x1c], 0
je 0x44dd1a
mov eax, dword [ebx]
mov edx, dword [0x481b58]
cmp eax, dword [edx + 0x1c]
jne 0x44dd1a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0043563c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040397c
jmp 0x44dd23
cmp eax, 0xb00b
jne 0x44dd1a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0044c4c4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451290
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4512ac
cmp dword [esi + 4], 0
je 0x4512d9
test byte [ebx + 0x55], 1
jne 0x4512cb
mov eax, ebx
call fcn.0044fe30
test eax, eax
jne 0x4512cb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4513e9
mov edx, esi
mov eax, ebx
call fcn.00450db4
jmp 0x4513e9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4513e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00453100
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044dacc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00451290
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00453100
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4513e9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457a78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4800a8]
cmp byte [eax + 0xc], 0
je 0x457be5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457bde
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481bac], 0
jne 0x457acc
push 0x457bec
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x457bf4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bac], eax
cmp dword [0x47be10], 0
jne 0x457bc7
push 0x457c04
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47be10], eax
cmp dword [0x47be10], 0
je 0x457bc7
push 0x457c10
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb0], eax
push 0x457c20
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb4], eax
push 0x457c34
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb8], eax
push 0x457c4c
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bbc], eax
push 0x457c64
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc0], eax
push 0x457c78
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc4], eax
push 0x457c90
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc8], eax
push 0x457ca8
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bcc], eax
push 0x457cc4
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bd0], eax
push 0x457cd0
mov eax, dword [0x47be10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bd4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457be5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x45af88
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45afb6
mov eax, ebx
call fcn.0045ba3c
cmp dword [ebx + 0x40], 0
je 0x45afaf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45b027
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45b019
cmp dword [ebx + 8], 0
je 0x45afd8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45afea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45b019
cmp dword [ebx + 8], 0
je 0x45afcb
cmp eax, 3
je 0x45affd
dec eax
jne 0x45afcb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45afcb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45afcb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45b045
cmp dword [ebx + 0x14], 0xcc
je 0x45b045
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045b050
pop ebx
ret

Function at 0x46fd08
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x46fdc1
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
je 0x46fd39
lea edx, [ebp - 8]
mov eax, dword [0x47fea0]
mov eax, dword [eax]
call fcn.0043e95c
jmp 0x46fd46
lea eax, [ebp - 8]
mov edx, 0x46fdd8
call fcn.0040463c
mov dl, 1
mov eax, dword [0x42ddec]
call fcn.0042deec
mov dword [ebp - 4], eax
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0042df8c
xor eax, eax
push ebp
push 0x46fd99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x46fdf0
mov eax, dword [ebp - 4]
call fcn.0042dff0
mov ecx, dword [ebp - 8]
mov edx, 0x46fe30
mov eax, dword [ebp - 4]
call fcn.0042e18c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46fda3
mov eax, dword [ebp - 4]
call fcn.0042df5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fdc8
lea eax, [ebp - 8]
call fcn.004045a4
ret

Function at 0x46fe38
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x46fec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402a48
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004095d0
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408a30
mov eax, dword [ebp - 4]
call fcn.00404864
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x46fe9c
lea eax, [ebp - 4]
mov edx, 0x46fed8
call fcn.0040486c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fec8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045c8
ret
Function at 0x470040
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1dc], eax
xor eax, eax
push ebp
push 0x4700f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dl, 1
mov eax, dword [0x416460]
call fcn.00403744
mov edi, eax
push 0x40
lea eax, [ebp - 0x48]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x48]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4700dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
xor ebx, ebx
jmp 0x4700cb
push dword [esi]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x1dc]
call fcn.004095d0
mov edx, dword [ebp - 0x1dc]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x4700ab
mov ebx, edi
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4700fc
lea eax, [ebp - 0x1dc]
call fcn.004045a4
ret

Function at 0x4702e4
Capabilities:
Shutdown system

Disassembly:
call fcn.0047024c
push 0
push 2
call sub.user32.dll_ExitWindowsEx
ret

Function at 0x47037c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a54
xor eax, eax
push ebp
push 0x470482
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409460
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402c48
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409460
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403184
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x47042e
mov dword [ebp - 8], 0xffffffff
jmp 0x470464
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470489
lea eax, [ebp - 0xc]
call fcn.004045a4
lea eax, [ebp - 4]
call fcn.004045a4
ret
Function at 0x470af4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x470b49
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x470b34
and byte [ebp - 0x72], 0xfe
jmp 0x470b38
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x470bcf
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x470bcf
mov eax, ebx
and eax, 0xff
bt dword [0x47f674], eax
jae 0x470b9f
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00470aa8
pop ecx
cmp byte [ebp - 1], 0
je 0x470bca
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00470aa8
pop ecx
jmp 0x470bca
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00470aa8
pop ecx
cmp byte [ebp - 1], 0
je 0x470bca
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00470aa8
pop ecx
dec si
jne 0x470b5f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470bd8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x47f674], edx
jae 0x470c10
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00470aa8
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.00470aa8
pop ecx
pop ebx
pop ebp
ret