joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TEX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x429652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429648
mov eax, 1
add ebx, ebx
jne 0x42966b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429660
jne 0x42967c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429660
xor ecx, ecx
sub eax, 3
jb 0x429690
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429702
mov ebp, eax
add ebx, ebx
jne 0x42969b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4296a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4296cc
inc ecx
add ebx, ebx
jne 0x4296b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4296ad
jne 0x4296c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4296ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4296ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4296dd
jmp 0x42964e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4296ec
add edi, ecx
jmp 0x42964e
pop esi
mov edi, esi
mov ecx, 0x225
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42970a
cmp byte [edi], 6
jne 0x42970a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42970f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x42977e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x293ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29428]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42973c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29430]
or eax, eax
je 0x429778
mov dword [ebx], eax
add ebx, 4
jmp 0x429759
call dword [esi + 0x2942c]
mov ebp, dword [esi + 0x29434]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4297b2
sub esp, 0xffffff80
jmp 0x401360
Function at 0x40115e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41239c]
push esi
mov dword [ebp + 0x194], eax
push 0x104
lea eax, [ebp - 0x74]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x4011f7
push eax
call fcn.0040ccae
pop ecx
mov esi, eax
push esi
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push dword [ebp - 0x7c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011eb
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x40e3cc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011eb
push 0x34
push dword [ebp - 0x80]
push dword [ebp + 0x1a0]
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
inc eax
jmp 0x4011f9
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop esi
call fcn.0040cd0f
add ebp, 0x198
leave
ret
Function at 0x402080
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40209a
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x4020c3
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_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4020ce
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4029f7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x41239c]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040204b
cmp eax, esi
jne 0x402a7f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402a48
lea eax, [ebp - 0x70]
push eax
call fcn.004029f7
cmp eax, esi
jne 0x402a7e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402a3b
call fcn.00401fe6
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401fe6
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0040cd0f
add ebp, 0x94
leave
ret 4
Function at 0x40393d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x41239c]
push ebx
push esi
mov dword [ebp + 0x124], eax
call fcn.0040120d
push 0x40ee28
call dword [sym.imp.KankanLiteLiveUD.dll_ExecutionLiveUpdateFile]
pop ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x40ea34
push dword [ebp + 0x130]
mov ebx, 0x412410
push 0x412288
mov ecx, ebx
call fcn.004024d6
test eax, eax
jge 0x40399e
push eax
push str.run:_M.Init_return__X
call fcn.00409326
pop ecx
pop ecx
push dword [ebp + 0x134]
call fcn.0040713d
mov ecx, eax
call fcn.00405667
test al, al
jne 0x4039bc
or esi, 0xffffffff
jmp 0x403abb
push 1
push 4
mov ecx, ebx
call fcn.00402b40
test eax, eax
jge 0x4039d8
push eax
push str.run:_M.RegClassObj_return__X
call fcn.00409326
pop ecx
pop ecx
push edi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp + 0x20], 0
lea edi, [ebp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Low_
lea eax, [ebp + 0x20]
push eax
call esi
push str..IntegrityLevel.txt
lea eax, [ebp + 0x20]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x20]
push eax
call esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040279a
push 0x40edcc
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
pop ecx
pop ecx
je 0x403a57
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
test edi, edi
je 0x403a77
call fcn.00407ff5
push eax
push 0x40edc8
push edi
call dword [sym.imp.MSVCR71.dll_fprintf]
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x10
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x403a89
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 4]
push eax
call edi
test eax, eax
jne 0x403a7f
mov ecx, ebx
call fcn.00402b82
call fcn.0040713d
mov ecx, eax
call fcn.00406b9a
mov ecx, ebx
call fcn.00402aee
lea eax, [ebp + 0x20]
push eax
call esi
xor esi, esi
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x124]
mov eax, esi
pop esi
pop ebx
call fcn.0040cd0f
add ebp, 0x128
leave
ret
Function at 0x4048de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x40d57d
call fcn.0040cd30
sub esp, 0x420
mov eax, dword [0x41239c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x412260]
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x40497b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x404960
push esi
call fcn.00401db5
test al, al
pop ecx
je 0x404960
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040ce60
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40496c
push esi
lea ecx, [ebp - 0x41c]
call fcn.00402c47
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.00401e46
cmp eax, ebx
jne 0x40499e
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404994
lea ecx, [ebp - 0x418]
call fcn.004026b1
mov esi, 0x8007000e
jmp 0x404a88
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x420], edi
jne 0x4049c0
call fcn.00401f16
mov esi, eax
jmp 0x404a6f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4049e5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x4049ec
call fcn.00401f16
jmp 0x404a61
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.00402cc9
jmp 0x404a19
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x404a2f
mov esi, 0x8007000e
jmp 0x404a63
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00404779
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404a88
lea ecx, [ebp - 0x418]
call fcn.004026b1
lea ecx, [ebp - 0x41c]
call fcn.004025e8
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040cd0f
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405420
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x41239c]
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00401d1c
mov esi, eax
cmp esi, 3
pop ecx
je 0x40553c
cmp esi, 4
je 0x40553c
cmp esi, 1
je 0x40553c
cmp esi, 2
je 0x40553c
push str.kankanlite_app_mutex
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405493
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40555b
push ebx
push str._KANKANLITE_SERVER_EXIT_EVENT_
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [ebp - 0x20]
mov ebx, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x20]
push eax
call fcn.00408e7b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push str.DOWNLOG_ROOT
push eax
call fcn.004026dd
add esp, 0x10
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll__putenv]
lea eax, [ebp - 0x20]
mov dword [esp], str.prop.txt
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402736
add esp, 0xc
cmp esi, edi
jne 0x405505
push edi
push dword [ebp + 8]
call fcn.0040393d
pop ecx
pop ecx
mov edi, eax
jmp 0x40551c
cmp esi, 5
jne 0x40550e
push 1
jmp 0x4054f7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x5c]
call esi
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
pop ebx
jmp 0x40555b
xor eax, eax
cmp esi, 1
jne 0x40554d
push dword [ebp + 8]
call fcn.00405346
jmp 0x40555a
cmp esi, 2
jne 0x40555b
push dword [ebp + 8]
call fcn.004053d3
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040cd0f
leave
ret 0x10
Function at 0x405715
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x405781
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405775
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x40efec
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405775
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
or edi, eax
or esi, ecx
jmp 0x405777
xor esi, esi
push ebx
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
jmp 0x405783
xor esi, esi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret

Function at 0x40579a
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x41239c]
mov dword [esp], eax
mov ecx, dword [esp]
add esp, 4
jmp fcn.0040cd0f

Function at 0x40580b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40585c
cmp dword [ebp + 0x10], 1
je 0x405845
cmp dword [ebp + 0x10], 2
jne 0x405853
test edi, edi
mov eax, dword [ebp - 4]
je 0x405858
cmp byte [eax + edi - 1], 0
je 0x405858
push 0xd
pop eax
jmp 0x40585c
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x409326
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40d7fb
call fcn.0040cd30
sub esp, 0x2ac
mov eax, dword [0x41239c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Low_
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409039
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str..KKL.txt
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040279a
push 0x40f378
push dword [ebp - 0x2b8]
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
lea eax, [ebp - 0x2b4]
cmp dword [ebp - 0x2b8], eax
pop ecx
pop ecx
je 0x409410
push dword [ebp - 0x2b8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp esi, ebx
je 0x409474
push 0x40
mov byte [ebp - 0x218], bl
xor eax, eax
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409219
push edx
push eax
push str._I64u__s
lea eax, [ebp - 0x218]
push 0x103
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x18
test eax, eax
jge 0x409458
mov byte [ebp - 0x115], bl
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_vfprintf]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040cd0f
leave
ret

Function at 0x409d7d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40d881
call fcn.0040cd30
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x40f3bc
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040bc43
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x20], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b709
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [ebp + 8]
cmp eax, edi
jne 0x40b72a
mov eax, dword [esi + 0x24]
cmp eax, dword [ebp + 0xc]
je 0x40b738
call ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
push 0x10
call fcn.0040ccb3
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 4], edi
mov dword [edi + 4], eax
call ebx
mov dword [edi + 8], eax
jmp 0x40b77b
mov ebx, dword [eax]
mov ecx, dword [edi + 8]
sub ecx, dword [ebx + 8]
cmp ecx, 0x1770
jle 0x40b783
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 8]
call fcn.0040b45d
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jne 0x40b757
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 8]
call fcn.0040b6ad
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40d0c5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40f538
call fcn.0040cd58
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d105
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d105
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d11d
cmp eax, 0x20b
je 0x40d10a
mov dword [ebp - 0x1c], ebx
jmp 0x40d131
cmp dword [ecx + 0x84], 0xe
jbe 0x40d105
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40d12b
cmp dword [ecx + 0x74], 0xe
jbe 0x40d105
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x412d28], 0xffffffff
or dword [0x412d2c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x412d20]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x412d1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x412d24], eax
call fcn.0040d354
call fcn.0040abde
cmp dword [0x4123c0], ebx
jne 0x40d191
push fcn.0040abde
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040d3e2
push 0x41202c
push 0x412028
call sub.MSVCR71.dll__initterm
push 0x40d398
call fcn.0040cdd6
mov eax, dword [0x412d18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x412d14]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40d1e5
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x412024
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40d263
cmp al, bl
je 0x40d20f
cmp dword [ebp - 0x20], ebx
jne 0x40d263
mov al, byte [esi]
cmp al, bl
je 0x40d21f
cmp al, 0x20
ja 0x40d21f
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40d20f
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40d23b
movzx eax, word [ebp - 0x54]
jmp 0x40d23e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00405420
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40d25b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40d2b8
cmp al, 0x22
jne 0x40d272
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40d285
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40d1fd
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040cd93
ret