joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7d9a
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 0x4a7ddc
call fcn.004c13ba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4a7ddc
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4a7dd3
xor eax, eax
jmp 0x4a7de4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7dea
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a9ee9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4a9f0b
cmp dword [edi + 0x3c], 0
jne 0x4a9f0b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004c13ba
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004a9f38
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a9f86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c13ba
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4a9fb7
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004a9fca
pop edi
pop esi
pop ebx
ret 8
Function at 0x4bf99a
Capabilities:
Create http request

Disassembly:
mov eax, 0x4d52bc
call fcn.00439568
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4bf9d2
call fcn.004c13ba
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4bf9f7
push eax
push dword [esi + 4]
call fcn.004c0705
jmp 0x4bfa03
push esi
push eax
mov ecx, 0x517bb0
call fcn.004bfa14
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4bfb87
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4d52f7
call fcn.00439568
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004a9866
mov eax, dword [0x510634]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x517bb0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004bfa14
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004a92f2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004308d2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004a92a2
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004a9169
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
and ebx, ebx
call fcn.0043b68e
push 0x2b446aae
pop ebx
xor dword [eax], edx
dec ecx
or ebx, ebx
push 0x6effc0db
pop ecx
add eax, 1
dec ebx
sub ecx, 0xf60b2ef6
add ecx, ebx
cmp eax, esi
jne fcn.0043b649
sub ebx, 0x894f2b86
or ebx, ecx
add ebx, 0x80d4cd46
ret
Function at 0x40273a
Capabilities:
Terminate process

Disassembly:
call section..text
push 0
push 0x405018
push 0x405014
call fcn.00402cd8
push 0
push 0x405020
push 0x40501c
call fcn.00402cd8
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403372
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405a44]
test eax, eax
je 0x40338b
call eax
test eax, eax
jne 0x40338b
push 0xfffffffffffffffe
jmp 0x4033a5
push 1
push 0x405010
push 0x405008
call fcn.00402cd8
add esp, 0xc
test eax, eax
je 0x4033ab
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00402cd8
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x4033d1
mov esi, 0x404b99
mov cl, 0x20
jmp 0x4033da
cmp al, 0x20
ja 0x4033e4
inc esi
mov al, byte [esi]
test al, al
jne 0x4033d5
cmp al, 0x20
jbe 0x4033fb
mov al, byte [esi]
cmp al, 0x22
jne 0x4033ed
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x4033e6
jmp 0x4033fb
cmp al, cl
ja 0x403401
inc esi
mov al, byte [esi]
test al, al
jne 0x4033f6
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x40342a
movzx eax, word [ebp - 0x14]
jmp 0x40342d
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040273a
pop ecx
pop esi
leave
ret

Function at 0x403468
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405397], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0xfffffc18
push 0xfffffc18
push 0xcf0000
push 0x4058a0
push 0x405908
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4034b2
xor eax, eax
jmp 0x4034c9
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
Function at 0x401700
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x14
add eax, 0xffffff9b
cmp eax, 0x64
ja case.0x40171b.113
xor ecx, ecx
mov cl, byte [eax + 0x4019dc]
jmp dword [ecx*4 + 0x4019a8]
mov edx, dword [0x409a38]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
add esp, 0x14
ret
push 5
push str.rundll32.exe_shell32.dll_Control_RunDLL_alsndmgr.cpl__
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x409a3c]
test eax, eax
je case.0x40171b.113
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x14
ret
push 1
call fcn.00402300
add esp, 4
add esp, 0x14
ret
mov eax, dword [0x409a7c]
mov ecx, dword [0x409a78]
push eax
push ecx
push 0
call fcn.004035c0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [0x409a8c]
mov eax, dword [0x409a88]
push edx
push eax
push 1
call fcn.004035c0
add esp, 0xc
add esp, 0x14
ret
call fcn.004033e0
test eax, eax
je case.0x40171b.113
lea ecx, [esp]
push ecx
push 7
call fcn.00403750
add esp, 8
cmp word [esp], 0
je 0x401806
mov eax, dword [0x409afc]
test eax, eax
jne 0x40180f
push 7
call fcn.00403860
add esp, 4
test eax, eax
je 0x401806
mov edx, dword [0x409a38]
push 0
push 0x6a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x409afc], 1
call fcn.00403420
add esp, 0x14
ret
mov eax, dword [0x409afc]
test eax, eax
je 0x401836
cmp word [esp], 0
jne 0x401836
mov eax, dword [0x409a38]
push 0
push 0x6b
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x409afc], 0
call fcn.00403420
add esp, 0x14
ret
call fcn.004033e0
test eax, eax
je case.0x40171b.113
lea ecx, [esp]
push ecx
push 5
call fcn.00403750
add esp, 8
cmp word [esp], 0
je 0x4018a3
mov eax, dword [0x409b00]
test eax, eax
jne 0x4018ac
push 5
call fcn.00403860
add esp, 4
test eax, eax
je 0x4018a3
mov edx, dword [0x409a38]
push 0
push 0x6a
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x409b00], 1
call fcn.00403420
add esp, 0x14
ret
mov eax, dword [0x409b00]
test eax, eax
je 0x4018d3
cmp word [esp], 0
jne 0x4018d3
mov eax, dword [0x409a38]
push 0
push 0x6b
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x409b00], 0
call fcn.00403420
add esp, 0x14
ret
push 0x409de4
call fcn.00402970
push 1
call fcn.00403a60
mov eax, dword [0x409de4]
push eax
mov dword [0x409088], eax
call fcn.00402770
push 1
call fcn.004029b0
add esp, 0x10
call fcn.00403ac0
add esp, 0x14
ret
mov ecx, dword [0x409088]
push ecx
call fcn.00403a60
mov edx, dword [0x409088]
push edx
call fcn.004029b0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403ac0
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40195e
push 0x409de4
call fcn.00402970
add esp, 4
mov dword [0x409a48], 0
mov eax, dword [0x409de4]
cmp eax, 1
je 0x401976
push eax
mov dword [0x409088], eax
call fcn.00402770
add esp, 4
mov dword [0x409084], 1
add esp, 0x14
ret
push 0x409de4
call fcn.00402970
add esp, 4
add esp, 0x14
ret
mov dword [0x409aec], 0
call fcn.00402720
add esp, 0x14
ret
Function at 0x401bb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 0x202
push esi
jne 0x401be7
push 5
push str.rundll32.exe_shell32.dll_Control_RunDLL_alsndmgr.cpl__
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [0x409a3c]
test eax, eax
je 0x401c68
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
add esp, 8
ret
cmp eax, 0x205
jne 0x401c68
call fcn.00401c70
mov esi, eax
test esi, esi
je 0x401c68
mov eax, dword [0x409a38]
push 0
push 1
push 0x212
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x409a38]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x409a38]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push 0
push ecx
push edx
push 0x28
push esi
mov dword [0x409af4], 1
mov dword [0x409de0], 0
mov dword [0x409de8], 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x402770
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x409b04
push 0
push str.SoftwareRealtekAlcMonitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4027c6
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.PrevSpeakerConfig
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x4027d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x409b04
push 0
push str.SoftwareRealtekAlcMonitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402854
mov eax, 4
lea edx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.PrevSpeakerConfig
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40283b
mov dword [esp + 4], 0x140004
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
mov dword [ecx], edx
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x140004
mov dword [ecx], eax
add esp, 0x14
ret
Function at 0x403af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 6
mov esi, str.SoftwareRealtekInitAp_
lea edi, [esp + 0x18]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x2001f
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 0xffffffff
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x403b84
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x418]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b79
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret

Function at 0x404995
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409688
cmp edx, dword [eax]
je 0x4049b7
add eax, 8
inc ecx
cmp eax, 0x409718
jl 0x4049a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409688]
jne 0x404ae5
mov eax, dword [0x409b20]
cmp eax, 1
je 0x404abf
test eax, eax
jne 0x4049e8
cmp dword [0x4095d4], 1
je 0x404abf
cmp edx, 0xfc
je 0x404ae5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404a1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404f40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004050b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404a62
lea eax, [ebp - 0x1a4]
push eax
call fcn.004050b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407578
push edi
call fcn.00405d40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404f40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404f50
lea eax, [ebp - 0xa0]
push 0x407558
push eax
call fcn.00404f50
push dword [esi + 0x40968c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404f50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405cae
add esp, 0x2c
pop edi
jmp 0x404ae5
lea eax, [ebp + 8]
lea esi, [esi + 0x40968c]
push 0
push eax
push dword [esi]
call fcn.004050b0
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 0x27524c14
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov ebx, dword [ebx]
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x27524c29
test esi, esi
je 0x27524c47
mov dword [esp], eax
call fcn.27524bc7
cmp eax, esi
jne 0x27524c29
mov eax, dword [ebx + 0x18]
jmp 0x27524c4a
mov eax, dword [ebx + 0x18]
add esp, 4
pop ebx
pop esi
ret

Function at 0x27538b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x27538b4d
pop edi
pop ebx
pop ebp
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x27538b84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x27538b80
lea ecx, [ecx]
cmp esi, eax
jae 0x27538b84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x27538b70
cmp esi, eax
jb 0x27538b8d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x27539390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x27539402
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x275393d1
cmp eax, 2
jne 0x275393ec
test esi, esi
mov eax, dword [ebp + 0x10]
je 0x275393fc
test eax, eax
je 0x275393f7
test al, 1
jne 0x275393ec
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x275393fc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x401590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4015b6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40164a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401605
cmp eax, 0x40
je 0x401605
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4015a9
cmp eax, 0x40
je 0x4015a9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4015a9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d4b
cmp byte [esi + ebx - 1], 0xa
je 0x401d1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.00401048
sub esp, eax
lea esi, [ebp - 0x1008]
mov eax, dword [esp + eax]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x401e06
test byte [0x404020], 2
jne 0x401e1a
mov eax, esi
call sym._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 + 0x10], eax
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401e06
Function at 0x401e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1038
call fcn.00401048
sub esp, eax
mov esi, edx
lea edi, [ebp - 0x1018]
mov eax, dword [esp + eax]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], 0x800
mov dword [esp + 8], edi
mov dword [esp + 4], 0x67
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jne 0x401eb1
test byte [0x404020], 2
jne 0x401f6f
mov eax, edi
call sym._output
mov eax, 0x405046
call sym._output
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1020], esi
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x101c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x3100
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
test eax, eax
jne 0x401f48
test byte [0x404020], 2
jne 0x401f22
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], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401f15
mov eax, dword [ebp - 0x101c]
call sym._output
mov eax, dword [ebp - 0x101c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
push eax
mov eax, 0x405062
call sym._output
jmp 0x401f15
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 + 0x10], eax
mov dword [esp + 4], 0x404020
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401eb1
Function at 0x402060
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
cmp word [eax], 0
je 0x4021e6
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x5c
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402078
mov ebx, eax
sub ebx, esi
sar ebx, 1
cmp esi, eax
je 0x4020c6
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4020ce
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x40], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
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 [ebp - 0x38], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
sub esp, 0xc
test eax, eax
je 0x4020c6
mov ecx, dword [ebp - 0x40]
call ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], 0
mov ebx, dword [ebp - 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 0x2c]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebx
mov ecx, dword [ebp - 0x30]
push edx
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x3c]
sub esp, 0x14
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 0x4020c6
ret