joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4427e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046581e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046aeb7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c3d3
test eax, eax
je 0x4428fc
mov ecx, dword [esp + 0x3c]
call fcn.0046aee4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4428c0
push edi
mov ecx, esi
call fcn.00468549
mov ecx, esi
call fcn.00442a60
cmp dword [esp + 0x38], 1
jne 0x4428f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468684
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445330
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445363
push esi
call fcn.00448440
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44535c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4453e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4453d2
mov eax, dword [esi + 8]
test eax, eax
je 0x445387
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4453ce
cmp eax, 2
je 0x4453d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44537a
cmp eax, 3
je 0x4453ad
cmp eax, 1
jne 0x44537a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44537a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44537a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445410
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4453f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445410
add esp, 4
pop esi
ret

Function at 0x450f20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x450fc3
test eax, eax
jbe 0x450fc3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x450fc3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x450f6e
xor esi, esi
jmp 0x450f74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x450f9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00452e30
add esi, eax
push esi
mov ebx, esi
call fcn.00452e30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x450f80
pop ebp
test edi, edi
pop edi
jne 0x450fc3
test ebx, ebx
je 0x450fc3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004553f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x451105
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45121d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45121d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00465c70
mov esi, eax
test esi, esi
je 0x45121d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45121d
mov ecx, esi
call fcn.00451070
cmp edi, eax
jge 0x45121d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4511a3
mov dword [esp + 0x34], 1
jmp 0x4511fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45121d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00450670
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x466614
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46664c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004646a1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464679
jmp 0x466658
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467d06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467d48
call fcn.0046d7be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467d48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467d3f
xor eax, eax
jmp 0x467d50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467d56
pop edi
pop esi
pop ebx
ret 4
Function at 0x46dcee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dd1c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dd3a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046dc54
jmp 0x46dd3a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dd3a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046dc54
test edi, edi
mov eax, edi
jne 0x46dd24
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
je 0x4010cb
mov ebp, dword [esp + 0x1c]
cmp ebp, 1
jl 0x4010cb
push 0x41cf2c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftDirectX_SDK
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401055
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
push 0
lea edi, [ebp + ebp]
push str.DX9SDK_Samples_Path
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
mov word [edi + esi - 2], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40109d
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
pop ecx
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push str.Media_
mov ebx, eax
call edi
add ebx, eax
cmp ebx, ebp
jge 0x4010cb
push str.Media_
push esi
call fcn.0040692a
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
pop ecx
ret
Function at 0x40a585
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41b888
cmp edx, dword [eax]
je 0x40a5a7
add eax, 8
inc ecx
cmp eax, 0x41b918
jl 0x40a598
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41b888]
jne 0x40a6d5
mov eax, dword [0x41cf44]
cmp eax, 1
je 0x40a6af
test eax, eax
jne 0x40a5d8
cmp dword [0x41b794], 1
je 0x40a6af
cmp edx, 0xfc
je 0x40a6d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a60f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b0d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a652
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418bac
push edi
call fcn.0040e3a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b0d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b0e0
lea eax, [ebp - 0xa0]
push 0x418b8c
push eax
call fcn.0040b0e0
push dword [esi + 0x41b88c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b0e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e315
add esp, 0x2c
pop edi
jmp 0x40a6d5
lea eax, [ebp + 8]
lea esi, [esi + 0x41b88c]
push 0
push eax
push dword [esi]
call fcn.0040b220
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 0x401bd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407ce0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407ce0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d074]
test esi, esi
jle 0x401d50
mov eax, dword [0x40d078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401c64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ce7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401c50
mov dword [esp], ebx
call fcn.00402620
mov edi, eax
test eax, eax
je 0x401d77
mov eax, dword [0x40d078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402760
mov edx, dword [0x40d078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ce0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401cf0
add dword [0x40d074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401bd0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401c6e
mov eax, dword [0x40d078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401bd0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401bd0
lea esi, [esi]
nop
Function at 0x402290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d088]
sub esp, 4
test ebx, ebx
je 0x4022e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4022de
test esi, esi
je 0x4022de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022c0
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402620
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402645
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402650
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402645
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402698
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40268e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40269a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402680
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4011b0
Capabilities:
Copy file

Disassembly:
sub esp, 0x10
mov eax, dword [0x405050]
mov ecx, dword [0x405054]
mov edx, dword [0x405058]
mov dword [esp], eax
mov al, byte [0x40505c]
mov dword [esp + 4], ecx
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 8], edx
jne 0x401260
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40123e
push esi
push 0
push str.SYSTEM32WINWB86.IME
call fcn.00401160
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
push eax
push str.winwb86.IME
call esi
push 0
push str.SYSTEM32WINWB86.MB
call fcn.00401160
add esp, 4
push eax
push str.winwb86.MB
call esi
lea ecx, [esp + 4]
push ecx
push str.SYSTEM32WINWB86.IME
call fcn.00401160
add esp, 4
push eax
call sub.IMM32.dll_ImmInstallIMEA
pop esi
jmp 0x401242
mov eax, dword [esp + 0x14]
push eax
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x401260
push 0
push 0x405044
push 0x405060
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x10
ret

Function at 0x401ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405178
cmp edx, dword [eax]
je 0x401ee3
add eax, 8
inc ecx
cmp eax, 0x405208
jl 0x401ed4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405178]
jne 0x402011
mov eax, dword [0x40562c]
cmp eax, 1
je 0x401feb
test eax, eax
jne 0x401f14
cmp dword [0x4050cc], 1
je 0x401feb
cmp edx, 0xfc
je 0x402011
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401f4b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004025e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401f8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004025e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043a8
push edi
call fcn.00403270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402480
lea eax, [ebp - 0xa0]
push 0x404388
push eax
call fcn.00402480
push dword [esi + 0x40517c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004031de
add esp, 0x2c
pop edi
jmp 0x402011
lea eax, [ebp + 8]
lea esi, [esi + 0x40517c]
push 0
push eax
push dword [esi]
call fcn.004025e0
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 0x401700
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004018b0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4017fe
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4017a1
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4017e4
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4017b8
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4017d3
test al, 0x40
je 0x4017ca
mov ecx, dword [edi + 0x20]
jmp 0x4017d1
test al, 0x80
je 0x4017e4
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4017e4
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401770
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42c560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e7c5b
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.004d9881
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42c5e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d6b8d
mov eax, dword [eax]
push 0x7352a4
push eax
call fcn.004b64d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d9b0c
test bl, bl
je 0x42c5e2
push 0x7352a4
lea ecx, [esp + 0xc]
call fcn.004d9ee8
push 0x738e30
lea ecx, [esp + 0xc]
call fcn.004d9ee8
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 0x42c61e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d9b0c
jmp 0x42c6e9
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 0x42c6a2
lea edx, [esp + 0x7c]
push 0x738e2c
push edx
call fcn.004b64d4
add esp, 8
test eax, eax
je 0x42c6a2
lea eax, [esp + 0x7c]
push 0x738e28
push eax
call fcn.004b64d4
add esp, 8
test eax, eax
je 0x42c6a2
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 0x42c632
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.004d9b0c
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 0x42d960
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 0x42d9c2
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 0x42d9d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e7dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x748130]
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 0x42db08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42da36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d9b0c
xor eax, eax
jmp 0x42db7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004d9c95
push esi
lea ecx, [esp + 0xc]
call fcn.004d9f24
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x738e68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42db5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x738e60
push accept
call fcn.0042d960
test eax, eax
jne 0x42db5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x738e4c
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0042d960
test eax, eax
jne 0x42db5d
lea eax, [esp + 0x14]
push 0x738e44
push eax
call fcn.004b7690
mov esi, eax
add esp, 8
test esi, esi
jne 0x42db3c
lea ecx, [esp + 0x14]
push 0x738e40
push ecx
call fcn.004b7610
mov esi, eax
add esp, 8
test esi, esi
jne 0x42db3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42db3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004d9c45
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42da4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d9b0c
xor eax, eax
jmp 0x42db7f
mov byte [esi], 0
push 0x738e3c
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.004d9b0c
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