joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ea28
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 0x47ebd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47ebb4
mov dl, 1
mov eax, dword [0x41bcd8]
call fcn.00403b3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47eba3
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.0046c490
test al, al
je 0x47eb96
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, 0x47ebe4
lea eax, [ebp - 0x254]
call fcn.0040a3c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47eb96
xor eax, eax
push ebp
push 0x47eb8f
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 0x47ec1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47eb78
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
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 0x47eb78
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eb96
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47ea99
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004207d0
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 0x47ebda
lea eax, [ebp - 0x260]
call fcn.00404a60
ret

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

Disassembly:
push ecx
mov eax, dword [0x4dabf4]
cmp byte [eax + 0xa5], 0
jne 0x47f579
cmp dword [0x4dac0c], 0
jne 0x47f53a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47f4c4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dac0c], eax
cmp dword [0x4dac08], 0
jne 0x47f555
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4dac08], eax
cmp dword [0x4dac10], 0
jne 0x47f579
push esp
push 0
push 0
push 0x47f468
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4dac10], eax
pop edx
ret
Function at 0x47f670
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47f687
add esp, 0xfffffff0
call fcn.00403ed0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426d98
mov eax, dword [0x4d8e90]
cmp word [eax + 2], 0
jne 0x47f6af
mov eax, dword [0x4d8e90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00480df0
mov eax, dword [0x4d8fe0]
cmp word [eax + 2], 0
jne 0x47f6c9
mov eax, dword [0x4d8fe0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00480fe8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b674]
call fcn.00403b3c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b674]
call fcn.00403b3c
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], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42933c]
call fcn.00430d08
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47f850
mov eax, dword [0x4d8d0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004310d8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x481588
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d8d0c]
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.0040e280
test eax, eax
je 0x47f7be
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409da8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e2a8
test eax, eax
je 0x47f7d2
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.00404cd0
mov eax, dword [0x4d8b14]
cmp byte [eax], 0
jne 0x47f806
mov eax, ebx
call fcn.0047f978
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.00481764
mov eax, ebx
call fcn.00482128
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47f846
call fcn.00403f28
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fbf8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dabf4]
cmp dword [eax + 0x30], 0
je 0x47fca2
cmp dword [ebx + 0x94], 0
jne 0x47fc9c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47fb88
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47fc9c
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 0x47fc62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47fc9c
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.0041df38
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47fc71
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x480804
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 0x480839
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.00404b50
jmp 0x480846
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ab4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x481940
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x481981
mov eax, esi
call fcn.00467a14
test al, al
je 0x481981
mov eax, dword [ebx + 0x84]
call fcn.00467710
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x481981
push 0
mov eax, dword [ebx + 0x84]
call fcn.00467710
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x483a58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483cb8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x483abb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00483520
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ddf4
cmp al, 1
jne 0x483abb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00483838
test al, al
je 0x483c47
cmp dword [ebp - 8], 0
jge 0x483ad9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00483520
mov eax, dword [ebp - 0x210]
call fcn.00404d20
cmp ebx, eax
jge 0x483b23
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00483520
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4d9214]
and eax, 0xff
bt dword [edx], eax
jae 0x483b23
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x483b37
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00483a34
cmp ebx, dword [ebp - 8]
je 0x483c39
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x483b63
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d68
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d8418]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x483c26
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d68
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d8418]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00467710
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d68
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d8418]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00467710
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c2d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x483c9a
cmp dword [ebp - 8], 0
jge 0x483c52
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00483520
mov eax, dword [ebp - 0x218]
call fcn.00404d20
cmp eax, dword [ebp - 8]
jg 0x483c8c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00483520
mov eax, dword [ebp - 0x21c]
call fcn.00404d20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00483a34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483cbf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404a84
ret
Function at 0x4aa104
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4aa129
cmp dword [esp + 4], 5
jb 0x4aa129
mov al, 1
jmp 0x4aa12b
xor eax, eax
add esp, 0x94
ret
Function at 0x4bcb88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bcbf9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4d8a3c]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4bcbe3
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004bcb78
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bb35c]
call fcn.004bda48
mov dword [0x4d8aa4], eax
mov eax, dword [ebp - 4]
call fcn.004bca04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcc00
lea eax, [ebp - 8]
call fcn.00406844
ret

Function at 0x4bcc98
Capabilities:
Get file system object information

Disassembly:
push esi
add esp, 0xfffffea0
mov esi, 0x4008
test cl, cl
je 0x4bccab
or esi, 2
test dl, dl
je 0x4bccb4
or esi, 0
jmp 0x4bccb7
or esi, 1
push esi
push 0x160
lea edx, [esp + 8]
push edx
push 0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
ret
Function at 0x4bd8d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404f10
xor eax, eax
push ebp
push 0x4bda2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4bb144]
call fcn.00419f18
test eax, eax
jl 0x4bd93b
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.004bcc7c
and eax, 0x7f
mov eax, dword [eax*4 + 0x4d8a3c]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4bd99e
mov eax, dword [ebx]
call fcn.00404d20
test eax, eax
jle 0x4bd99e
mov eax, dword [ebx]
call fcn.00404d20
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4bd962
mov eax, ebx
mov edx, 0x4bda44
call fcn.00404d28
mov eax, dword [ebx]
call fcn.00404d20
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
call fcn.00405a28
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x18]
call fcn.004bcb78
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4bd9e9
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [0x4d8b68]
call fcn.00406d24
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
pop eax
call fcn.0040a448
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404ab4
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x40841c]
call fcn.0040d3f0
call fcn.004043fc
mov eax, dword [ebp - 8]
call fcn.004bd84c
mov ebx, eax
test edi, edi
je 0x4bd9fe
mov eax, edi
call fcn.00403b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bda33
lea eax, [ebp - 0x1c]
call fcn.00404a60
lea eax, [ebp - 0x18]
call fcn.00406844
lea eax, [ebp - 0x14]
call fcn.00404a60
lea eax, [ebp - 4]
call fcn.00404a60
ret

Function at 0x4be610
Capabilities:
Create process on windows

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x3c
call fcn.004031cc
mov dword [esp], 0x3c
mov eax, dword [0x4d8f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 5
push esp
call sub.shell32.dll_ShellExecuteExA
add esp, 0x3c
pop ebx
ret
Function at 0x4bf12c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bf296
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d91f8]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x4d91f8]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047ecd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00446d48
xor edx, edx
push ebp
push 0x4bf279
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4bf1e9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.00406844
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x344]
call fcn.004bd294
push eax
mov eax, dword [0x4d8f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4bf1df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004044a8
jmp 0x4bf280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bf225
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00446928
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004befbc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4bf201
push 0
mov edx, 0x4bef54
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.004464e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf280
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x26c]
call fcn.00446d94
mov eax, dword [0x4d91f8]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0047ecd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf29d
lea eax, [ebp - 0x10]
call fcn.00406844
ret

Function at 0x4c5018
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x4c4fd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4cba08
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404f10
xor eax, eax
push ebp
push 0x4cbb6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.00404a60
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.00404f20
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4cbb50
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x28], 0x400
mov eax, dword [ebp - 0x28]
call fcn.00402830
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cbb3f
mov dword [ebp - 0x28], 0x400
cmp byte [ebp + 8], 0
je 0x4cbabd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x18], eax
jmp 0x4cbadd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegEnumValueA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cbb35
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
call fcn.004050ac
lea eax, [ebp - 0x1c]
call fcn.00404f78
mov edx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.00402a2c
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4cbb18
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.00404ab4
jmp 0x4cbb32
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x4cbb88
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.00404de0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x4cba8e
mov eax, dword [ebp - 0x24]
call fcn.00402850
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbb75
lea eax, [ebp - 0x1c]
call fcn.00404a60
lea eax, [ebp - 8]
call fcn.00404a60
ret
Function at 0x40c4f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x495f2b
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.0048733e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c572
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00484b4c
mov eax, dword [eax]
push 0x4b91f0
push eax
call fcn.00476d64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004875c9
test bl, bl
je 0x40c572
push 0x4b91f0
lea ecx, [esp + 0xc]
call fcn.00487959
push 0x4bcd94
lea ecx, [esp + 0xc]
call fcn.00487959
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 0x40c5ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004875c9
jmp 0x40c679
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 0x40c632
lea edx, [esp + 0x7c]
push 0x4bcd90
push edx
call fcn.00476d64
add esp, 8
test eax, eax
je 0x40c632
lea eax, [esp + 0x7c]
push 0x4bcd8c
push eax
call fcn.00476d64
add esp, 8
test eax, eax
je 0x40c632
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 0x40c5c2
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.004875c9
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 0x40ce70
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 0x40ced2
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