joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e2fc
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 0x45e4a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45e488
mov dl, 1
mov eax, dword [0x414570]
call fcn.004038dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404678
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45e477
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.0044b844
test al, al
je 0x45e46a
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, 0x45e4b8
lea eax, [ebp - 0x254]
call fcn.00409bec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45e46a
xor eax, eax
push ebp
push 0x45e463
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 0x45e4f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45e44c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048e0
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 0x45e44c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e46a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45e36d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418ad0
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 0x45e4ae
lea eax, [ebp - 0x260]
call fcn.00404678
ret

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

Disassembly:
push ecx
mov eax, dword [0x49cc30]
cmp byte [eax + 0xa5], 0
jne 0x45ee95
cmp dword [0x49cc48], 0
jne 0x45ee56
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ede0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49cc48], eax
cmp dword [0x49cc44], 0
jne 0x45ee71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49cc44], eax
cmp dword [0x49cc4c], 0
jne 0x45ee95
push esp
push 0
push 0
push 0x45ed84
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x49cc4c], eax
pop edx
ret
Function at 0x45efb8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45efcf
add esp, 0xfffffff0
call fcn.00403c70
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e494
mov eax, dword [0x49afb4]
cmp word [eax + 2], 0
jne 0x45eff7
mov eax, dword [0x49afb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460694
mov eax, dword [0x49b068]
cmp word [eax + 2], 0
jne 0x45f011
mov eax, dword [0x49b068]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046088c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413f0c]
call fcn.004038dc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413f0c]
call fcn.004038dc
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 [0x4209b4]
call fcn.004282e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f198
mov eax, dword [0x49aed4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004286b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x460e0c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49aed4]
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.0040d0d8
test eax, eax
je 0x45f106
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409534
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d100
test eax, eax
je 0x45f11a
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.004048e0
mov eax, dword [0x49ad9c]
cmp byte [eax], 0
jne 0x45f14e
mov eax, ebx
call fcn.0045f2c0
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.00460fe8
mov eax, ebx
call fcn.00461928
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f18e
call fcn.00403cc8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f534
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49cc30]
cmp dword [eax + 0x30], 0
je 0x45f5de
cmp dword [ebx + 0x94], 0
jne 0x45f5d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f4c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f5d8
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 0x45f59e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f5d8
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.0041673c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f5ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4600bc
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 0x4600f1
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.00404768
jmp 0x4600fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4611c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461205
mov eax, esi
call fcn.00446f38
test al, al
je 0x461205
mov eax, dword [ebx + 0x84]
call fcn.00446c34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461205
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446c34
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x464358
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4644c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404710
mov eax, dword [ebp - 0x10]
call fcn.004640c0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4643aa
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404bc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004647ec
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46447f
xor eax, eax
push ebp
push 0x464478
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00464230
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004644f0
test al, al
je 0x464456
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404768
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x464456
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b28
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x464450
mov eax, dword [ebp - 0x14]
call fcn.00404b28
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404868
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00464358
dec ebx
cmp ebx, 0xffffffff
jne 0x464409
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46447f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00464230
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404b28
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0046421c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4644c8
lea eax, [ebp - 0x3c]
call fcn.00404678
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040469c
ret

Function at 0x4644f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004030c8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x49b1d4]
cmp byte [edx + 0xc], 0
je 0x464554
mov edx, dword [0x49b1cc]
cmp dword [edx], 2
jne 0x464554
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4646dc
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.004640d4
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.00404b28
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46473a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49afd4]
mov dl, 1
mov eax, dword [0x463fcc]
call fcn.0040c448
call fcn.004040d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x464744
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.00404b28
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46479c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49b1e0]
mov dl, 1
mov eax, dword [0x463fcc]
call fcn.0040c448
call fcn.004040d8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00464104
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 0x46ba6c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46bb44
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49ccb0], 0
jne 0x46bb28
lea eax, [ebp - 4]
mov edx, 0x46bb5c
call fcn.00404710
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46bb28
mov eax, ebx
call fcn.00402734
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46bb21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46bb0b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46bb6c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46bb0b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49ccb0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb28
mov eax, dword [ebp - 0xc]
call fcn.00402754
ret
mov ebx, dword [0x49ccb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb4b
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x47afd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47affe
mov eax, ebx
call fcn.0047ba88
cmp dword [ebx + 0x3c], 0
je 0x47aff7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x47b06f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x47b061
cmp dword [ebx + 8], 0
je 0x47b020
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47b032
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47b061
cmp dword [ebx + 8], 0
je 0x47b013
cmp eax, 3
je 0x47b045
dec eax
jne 0x47b013
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 0x47b013
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47b013
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x47b08d
cmp dword [ebx + 0x10], 0xcc
je 0x47b08d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047b098
pop ebx
ret

Function at 0x490034
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push ebx
push eax
mov eax, dword [eax]
mov esi, edx
xor ebx, ebx
or ecx, ecx
je 0x490062
mov edx, eax
shr edx, 8
and edx, 0xffffff
mov bl, byte [esi]
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + 0x49a8e4]
xor eax, edx
inc esi
dec ecx
jne 0x490041
mov ecx, eax
pop eax
mov dword [eax], ecx
pop ebx
pop esi
ret
Function at 0x490904
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x490a5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0xc
call fcn.004030c8
test edi, edi
je 0x49094a
mov eax, edi
call fcn.00404b28
mov dword [ebp - 0x34], eax
cmp dword [esi], 0
je 0x490959
mov eax, dword [esi]
call fcn.00404b28
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 4], 0
jne 0x490969
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x490977
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x139]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
call fcn.00490868
mov ebx, eax
mov dx, 0x47
mov ax, 4
call fcn.0049085c
cmp ebx, eax
jb 0x4909a8
or dword [ebp - 0x18], 0x30
cmp byte [ebp + 0x10], 0
je 0x4909c1
xor edx, edx
mov ax, 5
call fcn.0049085c
cmp ebx, eax
jb 0x4909c1
or dword [ebp - 0x18], 0x40
mov al, byte [ebp + 0xc]
mov byte [0x49ccf4], al
mov eax, fcn.00490550
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov edi, eax
test edi, edi
setne bl
test bl, bl
je 0x490a17
lea eax, [ebp - 0x23e]
push eax
push edi
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x490a05
mov eax, esi
call fcn.00404678
jmp 0x490a17
mov eax, esi
lea edx, [ebp - 0x23e]
mov ecx, 0x105
call fcn.004048e0
lea eax, [ebp - 8]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x490a31
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test edi, edi
je 0x490a3f
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490a65
lea eax, [ebp - 8]
call fcn.004063d8
ret
Function at 0x4962e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
call sub.kernel32.dll_GetCommandLineA_1
mov dl, byte [eax]
sub dl, 1
jb 0x4963bc
sub dl, 0x21
je 0x496308
sub dl, 0xb
je 0x496323
sub dl, 2
je 0x496323
jmp 0x4963b6
inc eax
mov dl, byte [eax]
mov ecx, edx
test cl, cl
je 0x496316
sub cl, 0x22
jne 0x496308
test dl, dl
je 0x4963bc
jmp 0x4963b6
mov dl, byte [eax + 1]
sub dl, 0x50
je 0x496334
sub dl, 0x20
jne 0x4963b6
mov dl, byte [eax + 2]
sub dl, 0x41
je 0x496341
sub dl, 0x20
jne 0x4963b6
mov dl, byte [eax + 3]
sub dl, 0x47
je 0x49634e
sub dl, 0x20
jne 0x4963b6
mov dl, byte [eax + 4]
sub dl, 0x45
je 0x49635b
sub dl, 0x20
jne 0x4963b6
cmp byte [eax + 5], 0x20
jne 0x4963b6
add eax, 5
jmp 0x496367
inc eax
cmp byte [eax], 0x20
je 0x496366
mov dl, byte [eax]
mov ecx, edx
add cl, 0xcf
sub cl, 9
jae 0x4963bc
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
mov ebx, dword [ecx + 0x2f0]
xor eax, eax
mov al, dl
sub eax, 0x31
mov edx, eax
mov eax, ebx
call fcn.0046dfc0
mov eax, dword [ebx + 0x26c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
cmp eax, dword [edx + 0x310]
jne 0x4963bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00497f04
pop ebx
pop ebp
ret
inc eax
jmp 0x4962e9
pop ebx
pop ebp
ret

Function at 0x497420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4974c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00497024
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x4974d8
call fcn.0040497c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404930
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x4974a3
push 0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4974e4
call fcn.00490b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4974c8
lea eax, [ebp - 0xc]
call fcn.00404678
lea eax, [ebp - 4]
call fcn.00404678
ret

Function at 0x497664
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4976e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x300]
call fcn.0047522c
test eax, eax
je 0x4976cc
mov eax, dword [ebx + 0x300]
call fcn.0047522c
mov ebx, eax
push 5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [ebx + 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
push 0
mov eax, dword [ebx + 0x24]
call fcn.00404b28
push eax
push 0
mov eax, dword [0x49b048]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4976e9
lea eax, [ebp - 4]
call fcn.00404678
ret
Function at 0x40d360
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b75b
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.00460194
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d3e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e017
mov eax, dword [eax]
push 0x5891f0
push eax
call fcn.00450604
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046041f
test bl, bl
je 0x40d3e2
push 0x5891f0
lea ecx, [esp + 0xc]
call fcn.004607af
push 0x58cd58
lea ecx, [esp + 0xc]
call fcn.004607af
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 0x40d41e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046041f
jmp 0x40d4e9
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 0x40d4a2
lea edx, [esp + 0x7c]
push 0x58cd54
push edx
call fcn.00450604
add esp, 8
test eax, eax
je 0x40d4a2
lea eax, [esp + 0x7c]
push 0x58cd50
push eax
call fcn.00450604
add esp, 8
test eax, eax
je 0x40d4a2
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 0x40d432
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.0046041f
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 0x40dce0
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 0x40dd42
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