joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c12208e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x7c133774]
push ebx
mov ebx, dword [ebp + 0x3a8]
xor eax, ebp
push esi
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3ac]
push edi
mov edi, dword [ebp + 0x3a4]
mov esi, ecx
mov dword [ebp - 0x78], eax
call dword [0x7c132050]
xor eax, eax
push 2
push eax
push edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x74], edi
jne 0x7c1220f6
call fcn.7c1216cb
mov esi, eax
jmp 0x7c12218e
push dword [ebp - 0x78]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x7c122163
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x7c122163
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + edi]
lea eax, [esi + 2]
cmp eax, 0x400
jbe 0x7c122137
push eax
lea ecx, [ebp - 0x6c]
call fcn.7c1231f6
jmp 0x7c12213d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x7c12214a
mov esi, 0x8007000e
jmp 0x7c122185
call dword [0x7c132050]
push edi
push dword [ebp - 0x6c]
push edi
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x7c12216a
call fcn.7c1216cb
jmp 0x7c122183
mov eax, dword [ebp - 0x6c]
push dword [ebp + 0x3b0]
and word [esi + eax], 0
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
call fcn.7c1221c2
mov esi, eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x7c12219e
lea ecx, [ebp - 0x6c]
call fcn.7c1231ed
lea ecx, [ebp - 0x70]
call fcn.7c1217ba
mov ecx, dword [ebp + 0x398]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.7c12c83f
add ebp, 0x39c
leave
ret 0x10
Function at 0x7c122d6a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x7c133774]
push ebx
push esi
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.7c122c9b
cmp eax, esi
jne 0x7c122df5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x7c122dc1
lea eax, [ebp - 0x6c]
push eax
call fcn.7c122d6a
cmp eax, esi
jne 0x7c122df4
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x70]
je 0x7c122db4
call fcn.7c122c84
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.7c122c84
mov ecx, dword [ebp + 0x194]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.7c12c83f
add ebp, 0x198
leave
ret 4
Function at 0x7c1230ef
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x7c1230fa
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x7c12330b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x7c133774]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 0x7b0]
mov dword [ebp + 0x7a4], eax
mov esi, ecx
call dword [0x7c132050]
xor ebx, ebx
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push edi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x7c123369
call fcn.7c1216cb
mov esi, eax
jmp 0x7c12348b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
mov edi, 0x400
cmp eax, edi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x70], eax
jbe 0x7c123390
push eax
lea ecx, [ebp - 0x64]
call fcn.7c1231f6
jmp 0x7c123396
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], ebx
jne 0x7c1233a7
mov dword [ebp - 0x68], 0x8007000e
jmp 0x7c12346f
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7c1233cd
call fcn.7c1216cb
cmp eax, ebx
mov dword [ebp - 0x68], eax
jl 0x7c12346f
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x74]
mov byte [ecx + eax], bl
lea eax, [esi + esi + 2]
cmp eax, edi
mov dword [ebp + 0x3a0], ebx
jbe 0x7c1233f2
push eax
lea ecx, [ebp + 0x3a0]
call fcn.7c1231f6
jmp 0x7c1233fe
lea eax, [ebp + 0x3a4]
mov dword [ebp + 0x3a0], eax
cmp dword [ebp + 0x3a0], ebx
jne 0x7c123417
lea eax, [ebp + 0x3a4]
mov dword [ebp - 0x68], 0x8007000e
test eax, eax
jmp 0x7c123462
call dword [0x7c132050]
push dword [ebp - 0x70]
push dword [ebp + 0x3a0]
push dword [ebp - 0x70]
push dword [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x7c12343f
call fcn.7c1216cb
jmp 0x7c123453
push dword [ebp + 0x7b4]
lea ecx, [ebp - 0x80]
push dword [ebp + 0x3a0]
call fcn.7c1221c2
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x3a4]
cmp dword [ebp + 0x3a0], eax
je 0x7c12346f
lea ecx, [ebp + 0x3a0]
call fcn.7c1231ed
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x7c123488
lea ecx, [ebp - 0x64]
call fcn.7c1231ed
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x78]
call fcn.7c1217ba
mov ecx, dword [ebp + 0x7a4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.7c12c83f
add ebp, 0x7a8
leave
ret 8
Function at 0x7c12a159
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL71.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c12a229
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c12a1af
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x7c12a20d
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c12a20d
push ebp
push edi
call fcn.7c124201
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x7c12a1f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c12a217
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c12a217
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c12a229
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x7c12a234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
call sym.ATL71.DLL_AtlAxWinInit
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [esp + 0x24]
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
call edi
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x7c12a304
push ebx
push 0xf0
push dword [esp + 0x28]
push esi
call edi
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
je 0x7c12a28a
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x7c12a2e8
push eax
call ebx
mov edi, eax
test edi, edi
je 0x7c12a2e8
push ebp
push edi
call fcn.7c124201
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x7c12a2d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x7c12a2f2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x7c12a2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop ebx
je 0x7c12a304
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x7c12c550
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x7c133774]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.7c12c520
mov eax, sym.ATL71.DLL_Ordinal_16
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.7c12cd40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x7c12c5b4
cmp dword [ebp - 0x1c], 5
jb 0x7c12c5cc
jmp 0x7c12c5c8
cmp dword [ebp - 0x10], 1
jne 0x7c12c5cc
cmp dword [ebp - 0x1c], 4
ja 0x7c12c5c8
jne 0x7c12c5cc
cmp dword [ebp - 0x18], 0
jbe 0x7c12c5cc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x7c12fb4c
call fcn.7c121137
test eax, eax
jge 0x7c12c5ed
mov byte [0x7c13397c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.7c12c83f
add ebp, 0x78
leave
ret

Function at 0x7c12c809
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x7c133a98], 0
push esi
jne 0x7c12c77c
call fcn.7c12c6b4
test eax, eax
je 0x7c12c7bf
mov eax, dword [0x7c133a98]
cmp eax, 1
jne 0x7c12c79d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x7c12c7bf
pop esi
ret
push eax
call dword [0x7c133aa0]
test eax, eax
jne 0x7c12c807
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x7c12c7c3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x7c133a98]
call dword [0x7c133aa0]
mov edi, eax
test edi, edi
je 0x7c12c7ea
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x7c12c806
lea edi, [esi + 0xff0]
push esi
push dword [0x7c133a98]
call dword [0x7c133a9c]
add esi, 0x10
cmp esi, edi
jb 0x7c12c7f0
mov eax, esi
pop edi
pop esi
ret
jmp 0x7c12c769
Function at 0x7c12cbe5
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x7c12fdd0
call fcn.7c12cda0
mov eax, dword [0x7c133774]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x7c133b64]
test eax, eax
je 0x7c12cc28
and dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x7c12cd32
mov eax, dword [ebp + 8]
dec eax
je 0x7c12cc44
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x7c12cc58
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c12cc87
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call fcn.7c12d410
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x7c12ccce
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x7c12fc1c
push eax
call fcn.7c12cf00
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.7c12d240
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x7c12fc18
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push 0x7c12fbe4
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x2f26350a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6f48198f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401060
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
cmp word [eax], 0
je 0x401079
nop
add ebx, 2
cmp word [ebx], 0
jne 0x401070
cmp ebx, eax
jne 0x401085
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
sub ebx, eax
mov esi, eax
mov dword [esp], 0xfffffff5
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
sar ebx, 1
call ebp
push ecx
lea edi, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0xc], edi
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
jne 0x40107d
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x3c], ecx
call ecx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0x34], eax
call eax
sub esp, 0x20
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [esp + 0x30], eax
je 0x40107d
mov ecx, dword [esp + 0x3c]
call ecx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
mov esi, dword [esp + 0x34]
call esi
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebp
push edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40107d
Function at 0x401240
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x102c
call fcn.00403a18
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
mov dword [esp], 0
mov esi, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0x800
mov dword [esp + 4], 0x67
mov dword [esp], eax
mov dword [esp + 8], ebx
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x40129c
test byte [0x404000], 2
jne 0x401350
mov eax, ebx
call dbg.output
mov eax, 0x40501e
call dbg.output
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], 0x3100
mov dword [esp + 0x10], eax
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x40132d
test byte [0x404000], 2
jne 0x401307
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.FormatMessage_failed_n
mov dword [esp + 8], str.fatal_error
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x4012fa
mov eax, dword [esp + 0x2c]
call dbg.output
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
push eax
mov eax, 0x40503a
call dbg.output
jmp 0x4012fa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed__error__ld_n
mov dword [esp + 8], str.fatal_string_error
mov dword [esp + 4], global___dbch
mov dword [esp], 1
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.2
jmp 0x40129c

Function at 0x401390
Capabilities:
Terminate process

Disassembly:
push esi
push ebx
push eax
mov eax, 0x1020
call fcn.00403a18
sub esp, eax
mov eax, dword [esp + eax]
mov dword [esp], 0
mov esi, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
lea ebx, [esp + 0x20]
mov dword [esp + 0xc], 0x800
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ebx
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x4013e1
test byte [0x404000], 2
jne 0x4013f5
mov eax, ebx
call dbg.output
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.LoadString_failed__error__ld_n
mov dword [esp + 8], str.fatal_string
mov dword [esp + 4], global___dbch
mov dword [esp], 1
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.2
jmp 0x4013e1
Function at 0x403100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40315b
cmp byte [ebx + esi - 1], 0xa
je 0x40312f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x403902
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x406084]
cmp dword [edx + 0x24], edi
je 0x403864
test byte [0x404018], 8
jne 0x4038b0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x404028], 8
jne 0x403870
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x403806
cmp esi, 3
ja 0x403806
mov ecx, dword [ebp + 0xc]
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
lea edx, [ecx + 1]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405420]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.3
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x403817
mov esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
shr esi, 0x10
test edx, 0x8080
mov dword [esp], ebx
cmove edx, esi
lea esi, [ecx + 2]
mov eax, edx
cmove ecx, esi
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x404028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4037a1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4037a1
mov dword [esp], 0x404018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40378e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov ecx, eax
lea ebx, [esp + 0x28]
mul edx
mov dword [esp + 4], str._3u._03u:
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x403794
mov eax, 0xffffffff
jmp 0x403864

Function at 0x403970
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x402e96
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x402ef4
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402ef4
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x402ef4
cmp dword [edx + ecx], 0x4550
jne 0x402ef4
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x402edf
mov edi, 0x8664
cmp ax, di
je 0x402ef4
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x402ef4
add ecx, 0xc
cmp esi, ecx
jae 0x402ef6
xor eax, eax
pop edi
pop esi
pop ebp
ret 4