joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cd39
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x42312e
call fcn.00414c98
sub esp, 0x4c8
mov eax, dword [0x431d24]
push esi
push edi
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [0x434a58]
lea eax, [eax + ecx*2]
push eax
push 0x427ecc
push str._s_s
lea eax, [ebp - 0x410]
push 0xff
push eax
call fcn.0041403d
xor esi, esi
add esp, 0x14
cmp dword [0x432ed4], esi
jne 0x40cefb
push ebx
push 0x7f
mov word [ebp - 0x210], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016cc
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x427ea0
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.0041403d
add esp, 0x14
push 0x425ec8
lea ecx, [ebp - 0x464]
call fcn.00405bd2
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00405bd2
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push edi
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.004059b8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x410]
push ecx
push eax
lea eax, [ebp - 0x4d4]
push eax
call fcn.00406428
mov byte [ebp - 4], 3
push 0x427794
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.00406428
mov byte [ebp - 4], 4
push 0x427768
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00406428
mov byte [ebp - 4], 5
push 0x427764
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00406428
add esp, 0x3c
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x480]
call fcn.00403d21
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x49c]
call fcn.00403d21
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x4d4]
call fcn.00403d21
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x448]
call fcn.00403d21
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0x4b8]
call fcn.00403d21
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x464]
call fcn.00403d21
cmp dword [ebp - 0x414], 8
mov eax, dword [ebp - 0x428]
jae 0x40cee0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp - 0x42c]
call fcn.00403d21
pop ebx
jmp 0x40cf5f
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40cf44
xor ecx, ecx
cmp dword [edi], esi
sete cl
push ecx
push eax
push dword [edi + 0xc]
call fcn.0040c4cf
add esp, 0xc
push 1
push esi
push esi
push eax
push esi
push dword [edi]
lea eax, [ebp - 0x410]
push eax
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ad70
mov eax, dword [0x432ed4]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40cf5f
push dword [edi + 8]
lea eax, [ebp - 0x410]
push dword [edi]
push eax
call fcn.0040a806
pop ecx
pop ecx
push eax
call fcn.0040b28b
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0041428f
leave
ret
Function at 0x40d39d
Capabilities:
Download url
Receive data

Disassembly:
push 0xc
push 0x428518
call fcn.00414104
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d411
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.0041413f
ret
Function at 0x40d6d1
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x423178
call fcn.00414c98
sub esp, 0x234
mov eax, dword [0x431d24]
push ebx
xor eax, ebp
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x21c], ebp
xor edi, edi
inc edi
push edi
push dword [ebp - 0x21c]
push str.int___cdecl_ToolBox_XmpSetup::GetInstallType_void_
call fcn.0040c4cf
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov eax, 0x428950
jne 0x40d720
mov esi, eax
push ebx
push ebx
push ebx
push ebx
push eax
push 0x428908
push esi
lea ecx, [ebp - 0x240]
call fcn.0040b312
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x40d73f
push ebp
pop ebp
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], 0x104
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 1
push 0x20019
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x228]
call fcn.004031d6
cmp eax, ebx
mov esi, 0x428888
jne 0x40d7ba
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Path
lea ecx, [ebp - 0x228]
call fcn.00403243
cmp eax, ebx
jne 0x40d7ba
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x40d7ba
mov dword [ebp - 0x224], edi
jmp 0x40d8c9
lea eax, [ebp - 0x21c]
push eax
push str.lastuninstalltime
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x21c], ebx
call fcn.0040320b
push esi
mov edi, eax
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40d80f
push 1
push dword [ebp - 0x21c]
push str._XmpSetup_lastuninstalltime_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.0040123d
mov ecx, eax
call fcn.0040b2e1
cmp edi, ebx
jne 0x40d8c9
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x40d8c9
push ebx
mov dword [ebp - 0x220], eax
call fcn.00415c3c
push esi
mov edi, eax
call fcn.0040663e
test eax, eax
pop ecx
pop ecx
jne 0x40d865
push 1
push edi
push str._XmpSetup_time_now_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004011c0
mov ecx, eax
call fcn.0040b2e1
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40d8a4
push 1
push dword [ebp - 0x220]
push edi
call fcn.00415c2b
fstp qword [esp]
push 0x428808
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004012ba
mov ecx, eax
call fcn.0040b2e1
push dword [ebp - 0x220]
push edi
call fcn.00415c2b
fcomp qword [0x428800]
pop ecx
pop ecx
fnstsw ax
test ah, 5
jp 0x40d8c9
mov dword [ebp - 0x224], 1
push esi
call fcn.0040663e
test eax, eax
pop ecx
jne 0x40d8ff
push 1
push dword [ebp - 0x224]
push str._XmpSetup_install_type_
push ebx
push esi
call fcn.0040a806
pop ecx
pop ecx
mov ecx, eax
call fcn.0040ca6a
mov ecx, eax
call fcn.004010c6
mov ecx, eax
call fcn.0040b2e1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x228]
call fcn.00403171
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.0040cd39
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x224]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041428f
leave
ret
Function at 0x40e3a6
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.0040dff0
cmp dword [esi + 0x18], 8
pop ecx
mov bl, al
jb 0x40e3c0
mov eax, dword [esi + 4]
jmp 0x40e3c3
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40e3df
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040dff0
pop ecx
mov bl, al
pop esi
mov al, bl
pop ebx
ret

Function at 0x40e4d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x40e505
lea edx, [ebp + 8]
push edx
push ecx
push eax
push 0x40d424
push ecx
push ecx
mov dword [eax], 0xa31
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
ret

Function at 0x40f2d6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x423420
call fcn.00414c98
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebp
push ebx
push dword [ebp - 0x10]
push str.int___thiscall_CCmdlineParser::Parser_const_wchar_t__
call fcn.0040c4cf
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov eax, 0x429380
jne 0x40f30e
mov edi, eax
push ebx
push ebx
push ebx
push esi
push eax
push 0x429350
push edi
lea ecx, [ebp - 0x28]
call fcn.0040b312
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40f32a
push ebp
pop ebp
mov ecx, esi
call fcn.0040d93b
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x40f340
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
call fcn.00413e1d
lea eax, [eax + eax + 2]
push eax
call fcn.004114b6
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0x1c], eax
je 0x40f389
cmp edi, ebx
je 0x40f361
push edi
push eax
jmp 0x40f36b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [esi + 0x1c]
call fcn.00414f86
pop ecx
pop ecx
mov ecx, esi
call fcn.0040d9c7
test eax, eax
jne 0x40f386
mov ecx, esi
call fcn.0040d93b
jmp 0x40f389
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040cd39
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40fe07
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x42340e
call fcn.00414c98
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00408cae
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebp
push ebx
push dword [ebp - 0x10]
push str.__thiscall_CCmdlineParser::CCmdlineParser_const_wchar_t__
call fcn.0040c4cf
mov dword [ebp - 0x10], eax
add esp, 0xc
cmp dword [ebp - 0x10], ebx
mov eax, 0x429808
jne 0x40fe5d
mov dword [ebp - 0x10], eax
push ebx
push ebx
push ebx
push edi
push eax
push 0x4297c8
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
call fcn.0040b312
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], ebx
jne 0x40fe7d
push ebp
pop ebp
call fcn.004092bc
mov ecx, edi
call fcn.004057de
mov ecx, esi
call fcn.00405c2f
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [edi + 0x1c], ebx
jne 0x40fea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, edi
call fcn.0040f2d6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040cd39
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x415cbe
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a280
call fcn.00414104
mov edi, 0x94
mov eax, edi
call fcn.00414e00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x434e98], ecx
mov eax, dword [esi + 4]
mov dword [0x434ea4], eax
mov edx, dword [esi + 8]
mov dword [0x434ea8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434e9c], esi
cmp ecx, 2
je 0x415d1e
or esi, 0x8000
mov dword [0x434e9c], esi
shl eax, 8
add eax, edx
mov dword [0x434ea0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x415d59
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415d59
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415d71
cmp eax, 0x20b
je 0x415d5e
mov dword [ebp - 0x1c], esi
jmp 0x415d85
cmp dword [ecx + 0x84], 0xe
jbe 0x415d59
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415d7f
cmp dword [ecx + 0x74], 0xe
jbe 0x415d59
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004198f9
pop ecx
test eax, eax
jne 0x415d99
push 0x1c
call fcn.00415c9a
pop ecx
call fcn.0041a6b9
test eax, eax
jne 0x415daa
push 0x10
call fcn.00415c9a
pop ecx
call fcn.0041c67f
mov dword [ebp - 4], esi
call fcn.0041c481
test eax, eax
jge 0x415dc3
push 0x1b
call fcn.00415c75
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x436524], eax
call fcn.0041c35f
mov dword [0x434cb0], eax
call fcn.0041c2bd
test eax, eax
jge 0x415de9
push 8
call fcn.00415c75
pop ecx
call fcn.0041c08a
test eax, eax
jge 0x415dfa
push 9
call fcn.00415c75
pop ecx
push 1
call fcn.0041bac8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x415e10
push eax
call fcn.00415c75
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041c02d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415e31
movzx eax, word [ebp - 0x40]
jmp 0x415e34
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040fecb
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x415e52
push edi
call fcn.0041bbf5
call fcn.0041bc17
jmp 0x415e84
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041413f
ret
Function at 0x4192e6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x419314
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41931b
cmp ebx, dword [eax + 4]
jae 0x41931b
xor eax, eax
jmp 0x41950b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41932c
xor eax, eax
inc eax
jmp 0x41950a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x419342
cmp ecx, edx
jae 0x419487
cmp dword [eax + 4], 0
je 0x41934b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x419333
cmp dword [ebp + 8], 0
je 0x41936d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x419487
cmp eax, esi
jae 0x419487
mov eax, dword [0x434e28]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x419392
cmp dword [esi*4 + 0x434e30], edi
je 0x41948b
inc esi
cmp esi, eax
jl 0x419380
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419507
cmp dword [ebp - 8], 0x1000000
jne 0x419507
test byte [ebp - 0xc], 0xcc
je 0x419410
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x419507
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x419507
cmp word [eax + 0x18], 0x10b
jne 0x419507
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x419507
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x419410
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x419410
test byte [ecx + 0x27], 0x80
jne 0x419487
push 1
push 0x434e70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x419324
mov ecx, dword [0x434e28]
test ecx, ecx
mov edx, ecx
jle 0x419444
lea eax, [ecx*4 + 0x434e2c]
cmp dword [eax], edi
je 0x419444
dec edx
sub eax, 4
test edx, edx
jg 0x419438
test edx, edx
jne 0x419475
push 0xf
pop ebx
cmp ecx, ebx
jg 0x419451
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x419469
lea eax, [edx*4 + 0x434e30]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x419457
cmp ecx, 0x10
jge 0x419475
inc ecx
mov dword [0x434e28], ecx
push 0
push 0x434e70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x419324
xor eax, eax
jmp 0x41950a
test esi, esi
jle 0x419324
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x434e70
call ebx
test eax, eax
jne 0x419324
cmp dword [esi*4 + 0x434e30], edi
je 0x4194e1
mov eax, dword [0x434e28]
lea esi, [eax - 1]
test esi, esi
jl 0x4194cf
cmp dword [esi*4 + 0x434e30], edi
je 0x4194cb
dec esi
jns 0x4194bf
test esi, esi
jge 0x4194df
cmp eax, 0x10
jge 0x4194da
inc eax
mov dword [0x434e28], eax
lea esi, [eax - 1]
jmp 0x4194e1
je 0x4194f9
xor ecx, ecx
test esi, esi
jl 0x4194f9
lea eax, [ecx*4 + 0x434e30]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4194e7
push 0
push 0x434e70
call ebx
jmp 0x419324
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a958
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414e00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a9f3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x434e98]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41a9f3
cmp eax, 1
je 0x41aa14
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a9f3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41a9c0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41a9ef
xor eax, eax
inc eax
jmp 0x41aa33
cmp edi, eax
jae 0x41a9f7
xor eax, eax
jmp 0x41aa33
cmp eax, esi
jae 0x41a9fe
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x434e98]
jmp 0x41aa17
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41b945
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x42ae10
call fcn.00414104
mov eax, dword [0x431d24]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x41b9eb
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00414e00
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41b9d8
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41b9eb
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41ba06
cmp byte [edi + 1], 0x3a
jne 0x41ba06
movzx eax, byte [edi]
push eax
call fcn.00420aea
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41ba16
push edi
call fcn.00414568
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041428f
call fcn.0041413f
ret
Function at 0x41bb32
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42ae38
call fcn.00414104
push 8
call fcn.004182d7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x434ed8], esi
jne 0x41bb66
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x434ed4], esi
mov al, byte [ebp + 0x10]
mov byte [0x434ed0], al
cmp dword [ebp + 0xc], edi
jne 0x41bbb0
cmp dword [0x4354c8], edi
je 0x41bba0
mov eax, dword [0x4354c4]
sub eax, 4
mov dword [0x4354c4], eax
cmp eax, dword [0x4354c8]
jb 0x41bba0
mov eax, dword [eax]
cmp eax, edi
je 0x41bb81
call eax
jmp 0x41bb81
push 0x43009c
mov eax, 0x430094
call fcn.0041bab0
pop ecx
push 0x4300a8
mov eax, 0x4300a0
call fcn.0041bab0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41bbe1
cmp dword [ebp + 0x10], edi
jne 0x41bbef
mov dword [0x434ed8], esi
push dword [ebp + 8]
call fcn.0041ba6e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41bbee
push 8
call fcn.00418222
pop ecx
ret
call fcn.0041413f
ret

Function at 0x41bd18
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x431d24]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x432490]
je 0x41bd4f
inc eax
cmp eax, 0x13
jb 0x41bd40
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x432490]
jne 0x41be72
mov eax, dword [0x434cb8]
cmp eax, 1
je 0x41be4d
cmp eax, edx
jne 0x41bd7f
cmp dword [0x431d64], 1
je 0x41be4d
cmp ecx, 0xfc
je 0x41be72
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bdb5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0041a860
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00413f00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41bde9
mov eax, edi
push eax
call fcn.00413f00
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ab40
push edi
call fcn.004150f0
add esp, 0x10
push edi
call fcn.00413f00
push dword [esi + 0x432494]
mov ebx, eax
call fcn.00413f00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414e00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041a860
push edi
push ebx
call fcn.0041a870
push 0x42ab3c
push ebx
call fcn.0041a870
push dword [esi + 0x432494]
push ebx
call fcn.0041a870
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041f967
add esp, 0x2c
jmp 0x41be72
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x432494]
push dword [esi]
call fcn.00413f00
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0041428f
add ebp, 0x90
leave
ret
Function at 0x41c782
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x431d24]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41c7be
xor eax, eax
jmp 0x41c928
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4353c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c7fc
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00420b50
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c896
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41c8f9
jmp 0x41c820
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41c85b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c84c
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41c82c
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c8ba
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41c8c3
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41c81e
jmp 0x41c8c3
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c8ba
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41c8c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41c923
cmp dword [ebp - 0x68], eax
je 0x41c8f6
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41c8eb
call fcn.0041b704
mov dword [eax], 9
call fcn.0041b70d
mov dword [eax], esi
jmp 0x41c91e
push dword [ebp - 0x68]
call fcn.0041b716
pop ecx
jmp 0x41c91e
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c90b
cmp byte [edi], 0x1a
jne 0x41c90b
xor eax, eax
jmp 0x41c926
call fcn.0041b704
mov dword [eax], 0x1c
call fcn.0041b70d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41c926
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0041428f
add ebp, 0x3a4
leave
ret