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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b70f0]
cmp byte [eax + 0xc], 0
je 0x446e25
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x446e1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b8c18], 0
jne 0x446d0c
push 0x446e2c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x446e34
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c18], eax
cmp dword [0x4b5b64], 0
jne 0x446e07
push 0x446e44
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4b5b64], eax
cmp dword [0x4b5b64], 0
je 0x446e07
push 0x446e50
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c1c], eax
push 0x446e60
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c20], eax
push 0x446e74
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c24], eax
push 0x446e8c
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c28], eax
push 0x446ea4
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c2c], eax
push 0x446eb8
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c30], eax
push 0x446ed0
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c34], eax
push 0x446ee8
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c38], eax
push 0x446f04
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c3c], eax
push 0x446f10
mov eax, dword [0x4b5b64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b8c40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446e25
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44ab88
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.00404774
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44abd7
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.004049dc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452a24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452a74]
test si, 4
je 0x452a38
or bl, 1
test si, 8
je 0x452a42
or bl, 4
test si, 1
je 0x452a4c
or bl, 8
test si, 2
je 0x452a56
or bl, 0x10
test si, 0x10
je 0x452a60
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452a6f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x452a78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x452ab0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452a91
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452aa0
or bl, 4
test esi, 0x20000000
je 0x452aab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4590cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4590de
add esp, 0xfffffff0
call fcn.00403c08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427780
mov eax, dword [0x4b6b04]
mov dword [eax + 4], ebx
mov dword [eax], 0x459470
mov eax, dword [0x4b6b18]
mov dword [eax + 4], ebx
mov dword [eax], 0x45947c
mov eax, ebx
call fcn.00459488
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
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, 0x455950
push eax
push 0
push 0
mov eax, dword [0x4b6d58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x429860]
call fcn.0042aca4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x429860]
call fcn.0042aca4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x429860]
call fcn.0042aca4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004598a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459784
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459784
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459784
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45921b
call fcn.00403c60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459568
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 0x459713
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4596f4
mov dl, 1
mov eax, dword [0x41c1b0]
call fcn.0040388c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404774
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4596e3
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.00447018
test al, al
je 0x4596d6
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, 0x459724
lea eax, [ebp - 0x254]
call fcn.0040a15c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4596d6
xor eax, eax
push ebp
push 0x4596cf
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 0x45975c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4596b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049dc
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 0x4596b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4596d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4595d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421150
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 0x45971a
lea eax, [ebp - 0x260]
call fcn.00404774
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b8c5c]
cmp byte [eax + 0xa5], 0
jne 0x45a0b9
cmp dword [0x4b8c74], 0
jne 0x45a07a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a004
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b8c74], eax
cmp dword [0x4b8c70], 0
jne 0x45a095
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b8c70], eax
cmp dword [0x4b8c78], 0
jne 0x45a0b9
push esp
push 0
push 0
push 0x459fa8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b8c78], eax
pop edx
ret
Function at 0x45a1b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a1c7
add esp, 0xfffffff0
call fcn.00403c08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427780
mov eax, dword [0x4b6d38]
cmp word [eax + 2], 0
jne 0x45a1ef
mov eax, dword [0x4b6d38]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b7fc
mov eax, dword [0x4b6e74]
cmp word [eax + 2], 0
jne 0x45a209
mov eax, dword [0x4b6e74]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b9f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ba58]
call fcn.0040388c
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 [0x42a010]
call fcn.0042fc5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a390
mov eax, dword [0x4b6bc0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043002c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bf64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b6bc0]
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.0040d978
test eax, eax
je 0x45a2fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ab8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9a0
test eax, eax
je 0x45a312
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.004049dc
mov eax, dword [0x4b6978]
cmp byte [eax], 0
jne 0x45a346
mov eax, ebx
call fcn.0045a4b8
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.0045c140
mov eax, ebx
call fcn.0045caf0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a386
call fcn.00403c60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a72c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b8c5c]
cmp dword [eax + 0x30], 0
je 0x45a7d6
cmp dword [ebx + 0x94], 0
jne 0x45a7d0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a6bc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a7d0
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 0x45a796
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a7d0
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.0041e658
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a7a5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b2b4
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 0x45b2e9
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.00404864
jmp 0x45b2f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c31c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c35d
mov eax, esi
call fcn.004428e0
test al, al
je 0x45c35d
mov eax, dword [ebx + 0x84]
call fcn.004425dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c35d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004425dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45ee00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x45ee94
push 0
mov eax, ebx
call fcn.00404c24
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x45ee6f
mov eax, esi
call fcn.00404a2c
inc eax
push eax
mov eax, esi
call fcn.00404c24
push eax
push 1
push 0
mov eax, edi
call fcn.00404c24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x45ee8a
mov ecx, dword [0x4b6bbc]
mov dl, 1
mov eax, dword [0x45d450]
call fcn.0040cc28
call fcn.00404134
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x45eeb0
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 dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00404774
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c24
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x45ef57
xor eax, eax
push ebp
push 0x45ef50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404db0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404c24
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404c24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ef32
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404db0
jmp 0x45ef39
mov eax, ebx
call fcn.00404774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ef57
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x469c7c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x469d36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dl, byte [ebx + 0x30]
mov byte [eax], dl
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
sub esi, eax
test esi, esi
je 0x469cbb
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402a60
add esi, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x18]
sub ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 8]
add dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x20], esi
cmp esi, dword [ebx + 0x18]
jne 0x469d12
mov edx, esi
dec edx
mov eax, dword [ebx + 0x10]
call fcn.0041e46c
mov edi, eax
mov dword [ebx + 0x20], edi
cmp edi, dword [ebx + 0x10]
jne 0x469d12
lea edx, [ebp - 4]
mov eax, dword [0x4b6d78]
call fcn.00406c3c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00469b7c
mov eax, dword [ebx + 0x20]
mov al, byte [eax]
mov byte [ebx + 0x30], al
mov eax, dword [ebx + 0x20]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469d3d
lea eax, [ebp - 4]
call fcn.00404774
ret

Function at 0x4890b0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
xor ebx, ebx
mov esi, eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
rol cx, 5
xor cl, byte [eax + ebx + 0x4b60fc]
inc esi
dec edx
jne 0x4890ba
mov eax, ecx
pop ebx
pop esi
ret
Function at 0x4b1e98
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407acc
ret
Function at 0x4012a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40200c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x401340
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401320
xor eax, eax
push ebp
push 0x401319
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 0x40135c
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 0x401320
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40200c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40200c], ax
mov esp, ebp
pop ebp
ret

Function at 0x401970
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x403034], 0
je 0x4019d1
cmp word [0x403208], 0xd7b2
jne 0x401999
cmp dword [0x403210], 0
jbe 0x401999
mov eax, 0x403204
call dword [0x403220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x402040
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 0x4019f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x402018], 0
jne 0x4019ed
push 0
push 0x402060
push 0x402040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40fa3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x411864
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x401ae0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x401aa7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [0x411050]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x401ad1
mov ecx, dword [esi + 4]
push eax
push ecx
call 0x40f170
jmp 0x401ae6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call 0x40f170
jmp 0x401ae6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x411850
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.0040f0da
mov ecx, esi
mov dword [edi], 0x41183c
mov dword [esp + 0x1c], 0xffffffff
call 0x40f152
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a590
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46615b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ac59
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a612
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458b70
mov eax, dword [eax]
push 0x5401f0
push eax
call fcn.0044b7a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045aee4
test bl, bl
je 0x40a612
push 0x5401f0
lea ecx, [esp + 0xc]
call fcn.0045b274
push 0x543d6c
lea ecx, [esp + 0xc]
call fcn.0045b274
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a64e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045aee4
jmp 0x40a719
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a6d2
lea edx, [esp + 0x7c]
push 0x543d68
push edx
call fcn.0044b7a4
add esp, 8
test eax, eax
je 0x40a6d2
lea eax, [esp + 0x7c]
push 0x543d64
push eax
call fcn.0044b7a4
add esp, 8
test eax, eax
je 0x40a6d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a662
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045aee4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40af10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40af72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc