joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443f68
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 0x444113
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4440f4
mov dl, 1
mov eax, dword [0x417824]
call fcn.00404620
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405530
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4440e3
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.0045d9b4
test al, al
je 0x4440d6
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, 0x444124
lea eax, [ebp - 0x254]
call fcn.0040af08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4440d6
xor eax, eax
push ebp
push 0x4440cf
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 0x44415c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4440b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004057a0
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 0x4440b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004057a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4440d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x443fd9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b5e0
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 0x44411a
lea eax, [ebp - 0x260]
call fcn.00405530
ret

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

Disassembly:
push ecx
mov eax, dword [0x497c1c]
cmp byte [eax + 0xad], 0
jne 0x444afd
cmp dword [0x497c38], 0
jne 0x444abe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x444a48
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x497c38], eax
cmp dword [0x497c34], 0
jne 0x444ad9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x497c34], eax
cmp dword [0x497c3c], 0
jne 0x444afd
push esp
push 0
push 0
push 0x4449ec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x497c3c], eax
pop edx
ret
Function at 0x444cd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x444ce7
add esp, 0xfffffff0
call fcn.00404974
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ff44
mov eax, dword [0x492514]
cmp word [eax + 2], 0
jne 0x444d0f
mov eax, dword [0x492514]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00446714
mov eax, dword [0x4925f4]
cmp word [eax + 2], 0
jne 0x444d29
mov eax, dword [0x4925f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00446920
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417400]
call fcn.00404620
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417400]
call fcn.00404620
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417400]
call fcn.00404620
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x423764]
call fcn.0042ae48
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x444ee0
mov eax, dword [0x492408]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b21c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x446fe4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x492408]
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
call fcn.0040ea28
test eax, eax
je 0x444e30
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a8ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ea5c
test eax, eax
je 0x444e44
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004057a0
mov byte [ebx + 0xd4], 0
push ebx
push 0x4463f8
call fcn.004210c0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4922a4]
cmp byte [eax], 0
jne 0x444e95
mov eax, ebx
call fcn.00445024
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004471bc
mov eax, ebx
call fcn.00447d20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x444ed5
call fcn.004049cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4452a4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x445343
cmp dword [ebx + 0x94], 0
jne 0x44533d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44522c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44533d
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 0x445303
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44533d
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.00419888
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x445312
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44555c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x497c1c]
cmp dword [eax + 0x30], 0
je 0x4456b9
test bl, bl
jne 0x44560a
cmp dword [esi + 0x9c], 0
jne 0x4455ff
mov eax, esi
call fcn.00447b9c
push eax
push 0x445488
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4455d0
mov eax, dword [0x497c1c]
call fcn.0044818c
test al, al
je 0x4455d0
mov eax, dword [0x497c40]
call fcn.00406774
mov edi, eax
cmp edi, 0
jl 0x4455d0
push 0
mov eax, dword [0x497c40]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4455ba
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4455ff
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419888
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4455df
inc dword [esi + 0x9c]
jmp 0x4456b9
cmp dword [esi + 0x9c], 0
jle 0x4456b9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4456b9
cmp dword [esi + 0x44], 0
je 0x445665
mov eax, dword [0x497c1c]
call fcn.0044818c
test al, al
je 0x445665
mov eax, dword [0x497c40]
call fcn.00406774
mov edi, eax
cmp edi, 0
jl 0x445665
push 5
mov eax, dword [0x497c40]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x44564f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x445694
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419888
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x445674
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x497c40
mov ecx, 1
mov edx, dword [0x445468]
call fcn.00406928
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x44614c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4461b6
mov eax, ebx
call fcn.0044818c
test al, al
jne 0x4461b6
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.00405620
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4461a3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4461c3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405584
jmp 0x4461c3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405584
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4473a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44740e
mov eax, esi
call fcn.00458874
test al, al
je 0x44740e
mov eax, dword [ebx + 0x84]
call fcn.00458568
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44740e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x447402
push 0
mov eax, dword [ebx + 0x84]
call fcn.00458568
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00450724
jmp 0x44740e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004471dc
pop esi
pop ebx
ret
Function at 0x44dfbc
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 [0x497ca8], 0
je 0x44e105
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4925c4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x44e105
mov eax, dword [0x497cac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x497ca8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44e0d4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x497ca8]
call fcn.00419888
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44e0cc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x44e0cc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44e0cc
mov eax, dword [ebp - 0x14]
call fcn.00458568
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e0cc
push ebp
call fcn.0044df78
pop ecx
test al, al
jne 0x44e0cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040484c
test al, al
je 0x44e0cc
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, 0xffbc
call fcn.0040484c
cmp byte [ebp - 1], 0
je 0x44e0cc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44e0cc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x497cac]
call fcn.0044d6e8
inc edi
dec ebx
jne 0x44e021
mov eax, dword [0x497cac]
cmp dword [eax + 8], 0
jle 0x44e0ec
mov eax, dword [0x497cac]
call fcn.0044d7a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44e105
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044dddc
pop ecx
test al, al
jne 0x44e105
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 0x455464
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040773c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00450344
test ebx, ebx
jne 0x4554b7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004553a0
mov ebx, eax
test ebx, ebx
je 0x4555a2
cmp esi, ebx
je 0x4554e0
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4554f5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45552d
add eax, 0xffffff5f
sub eax, 2
jb 0x455545
dec eax
sub eax, 2
jb 0x455559
dec eax
sub eax, 2
jb 0x45554f
jmp 0x455563
add eax, 0xfffffdff
sub eax, 2
jb 0x455545
dec eax
sub eax, 2
jb 0x455559
dec eax
sub eax, 2
jb 0x45554f
jmp 0x455563
mov byte [esp + 0x120], 0
jmp 0x45556b
mov byte [esp + 0x120], 2
jmp 0x45556b
mov byte [esp + 0x120], 1
jmp 0x45556b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0043bc00
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00451abc
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4555a4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x45d658
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4927e0]
cmp byte [eax + 0xc], 0
je 0x45d7c5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d7be
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x497cb8], 0
jne 0x45d6ac
push 0x45d7cc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45d7d4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cb8], eax
cmp dword [0x49077c], 0
jne 0x45d7a7
push 0x45d7e4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x49077c], eax
cmp dword [0x49077c], 0
je 0x45d7a7
push 0x45d7f0
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cbc], eax
push 0x45d800
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cc0], eax
push 0x45d814
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cc4], eax
push 0x45d82c
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cc8], eax
push 0x45d844
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497ccc], eax
push 0x45d858
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cd0], eax
push 0x45d870
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cd4], eax
push 0x45d888
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cd8], eax
push 0x45d8a4
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497cdc], eax
push 0x45d8b0
mov eax, dword [0x49077c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497ce0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7c5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x45f554
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
call fcn.0040a25c
test al, al
je 0x45f692
lea eax, [ebp - 0x68]
call fcn.0045eaa0
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.004059dc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x45f67b
xor eax, eax
push ebp
push 0x45f674
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45f65d
xor eax, eax
push ebp
push 0x45f656
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45f63f
xor eax, eax
push ebp
push 0x45f638
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x68]
call fcn.0045eac4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f63f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f65d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f67b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x68]
call fcn.0045eb58
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x78]
mov edi, eax
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
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4603a8
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x460428
movzx eax, word [ebx + 0x3e]
push eax
movzx eax, byte [ebx + 0x44]
mov eax, dword [eax*4 + 0x490948]
push eax
movzx eax, byte [ebx + 0x3c]
mov eax, dword [eax*4 + 0x4908e8]
push eax
call sub.wsock32.dll_socket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, eax
mov dword [ebx + 0x40], esi
inc esi
setne al
mov byte [ebx + 0x30], al
test al, al
je 0x460428
cmp byte [ebx + 0x31], 1
jne 0x460413
mov dword [esp], 1
push esp
push 0x8004667e
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_ioctlsocket
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
mov eax, ebx
mov si, 0xffef
call fcn.0040484c
pop edx
pop esi
pop ebx
ret
Function at 0x460628
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00405530
test ebx, ebx
je 0x4606c6
movzx eax, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x460665
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4606d2
mov eax, esi
mov edx, ebx
call fcn.00405584
jmp 0x4606d2
mov eax, ebx
call fcn.004059dc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4606d2
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
movzx eax, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
movzx eax, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
movzx eax, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
movzx eax, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x4606e4
call fcn.0040af88
jmp 0x4606d2
mov eax, esi
mov edx, 0x4606f8
call fcn.00405584
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x46073c
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00405530
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
jne 0x460779
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004057a0
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x461940
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
movzx eax, bl
cmp eax, 0x5b
jge 0x46197c
cmp eax, 0x2e
jge 0x461964
sub eax, 0x23
je 0x4619ca
sub eax, 2
je 0x4619ab
sub eax, 6
je 0x4619ab
jmp 0x4619e5
add eax, 0xffffffd2
sub eax, 0xc
jb 0x4619ab
sub eax, 5
je 0x4619ab
dec eax
je 0x4619ca
dec eax
sub eax, 0x1a
jb 0x4619ab
jmp 0x4619e5
cmp eax, 0xa3
jg 0x46199a
je 0x4619ab
add eax, 0xffffffa5
sub eax, 4
jb 0x4619ca
dec eax
je 0x4619ca
add eax, 0xffffffe5
sub eax, 4
jb 0x4619ca
jmp 0x4619e5
sub eax, 0xa7
je 0x4619ab
sub eax, 9
je 0x4619ab
sub eax, 5
jne 0x4619e5
mov dl, 1
mov al, 0x10
call fcn.004618ec
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461920
xor edx, edx
mov al, 0x10
call fcn.004618ec
pop ebx
ret
mov al, 1
call fcn.00461908
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461920
xor eax, eax
call fcn.00461908
pop ebx
ret
push ebx
call sub.user32.dll_VkKeyScanA
call fcn.00461920
pop ebx
ret

Function at 0x4657d8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4657ed
or edx, 0x200
test eax, 0x20000000
je 0x465820
test eax, 0x40000000
je 0x46580c
test eax, 0x80000000
je 0x465807
or edx, 0x40
jmp 0x465847
or edx, 0x20
jmp 0x465847
test eax, 0x80000000
je 0x46581b
or edx, 0x80
jmp 0x465847
or edx, 0x10
jmp 0x465847
test eax, 0x40000000
je 0x465838
test eax, 0x80000000
je 0x465833
or edx, 4
jmp 0x465847
or edx, 2
jmp 0x465847
test eax, 0x80000000
je 0x465844
or edx, 8
jmp 0x465847
or edx, 1
mov eax, edx
pop ebp
ret 4