joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45056b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x450608
push ebx
push esi
call fcn.00450534
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044e8d4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4505b5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x450607
push edi
push eax
call fcn.0044e5c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4505d5
call fcn.0044e587
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x450606
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044e8d4
add esp, 0x20
test eax, eax
jne 0x4505f4
push edi
call fcn.0044e587
jmp 0x4505fc
push ebx
call fcn.0044e587
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40310f
pop dword [ebp - 0x10]
mov eax, 0x27087d40
sub eax, 0x26c84c31
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6756a28f
sub dword [ebp - 0x20], 0x19045d44
mov dword [ebp - 0x1c], 0xc03a68ce
add dword [ebp - 0x1c], 0x71f8e377
mov dword [ebp - 0x18], 0x80fa5066
add dword [ebp - 0x18], 0xcb51f3c8
mov dword [ebp - 0x14], 0xbc14f103
sub dword [ebp - 0x14], 0xbc14f103
lea eax, [ebp - 0x20]
push eax
mov eax, 0xa1a28b92
add eax, 0x5e9ea50e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x26432f72
add dword [ebp - 0x20], 0x4e2f39e4
mov dword [ebp - 0x1c], 0x993d6d7
sub dword [ebp - 0x1c], 0xc8277562
mov dword [ebp - 0x18], 0x321310d7
add dword [ebp - 0x18], 0x315c5b95
mov dword [ebp - 0x14], 0xdaa16ca4
add dword [ebp - 0x14], 0x255e935c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0a9
push 0
call eax
mov ecx, 0x4592
mov edx, eax
mov esi, 0x13006f11
sub esi, 0x12bebf11
add esi, dword [ebp - 0x10]
mov ebx, 0xf1fa1ba4
xor dword [ebp - 4], eax
mov edi, dword [esi]
xor edi, ebx
sub dword [ebp - 8], 0xd2552c79
mov dword [edx], edi
mov dword [ebp - 0xc], 0xe08e1112
add edx, 0x5da96a76
sub edx, 0x5da96a72
add esi, 0x45798e5d
sub esi, 0x45798e59
loop 0x403220
add eax, 0x5d046d3
sub eax, 0x5cf3db8
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401d74
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
cmp dword [0x30fca20], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401daa
push 0
lea eax, [ebp - 0xb18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x4245c0]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4245c4]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x30], eax
call fcn.00401d6a
mov ecx, dword [0x4245c8]
mov eax, dword [0x4245cc]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x30fca20], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x30fc01c]
cmove eax, edx
xor edx, edx
cmp dword [0x30fca20], 0x3eb
mov dword [0x30fc01c], eax
mov eax, dword [0x30fba10]
cmove eax, edx
add ecx, ebx
mov dword [0x30fba10], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x2c]
mov ecx, dword [0x30fca20]
xor eax, edx
mov dword [0x30fc018], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401ec5
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x30fca20]
sub edi, eax
cmp ecx, 0xc
jne 0x401edb
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.00401d71
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401f27
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401de8
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41656e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42335c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408885
mov dword [ebp - 0x14], eax
cmp dword [0x823134], esi
jne 0x416661
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4165ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416741
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416741
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416741
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x823134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x823138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x82313c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823144], eax
test eax, eax
je 0x41665e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823140], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416686
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416679
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41669b
push 4
pop eax
jmp 0x416743
cmp dword [ebp - 0x14], esi
je 0x41669b
push dword [0x823134]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416680
mov eax, dword [0x823140]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4166f9
cmp dword [0x823144], edi
je 0x4166f9
push eax
call ebx
push dword [0x823144]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4166f9
test eax, eax
je 0x4166f9
call ecx
test eax, eax
je 0x4166ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4166ee
test byte [ebp - 8], 1
jne 0x4166f9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416729
mov eax, dword [0x823138]
cmp eax, edi
je 0x416726
push eax
call ebx
test eax, eax
je 0x416726
call eax
mov esi, eax
test esi, esi
je 0x416726
mov eax, dword [0x82313c]
cmp eax, edi
je 0x416726
push eax
call ebx
test eax, eax
je 0x416726
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x823134]
call ebx
test eax, eax
je 0x416741
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416743
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040659b
mov esp, ebp
pop ebp
ret
Function at 0x403ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x403b0c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403b34
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403b3a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x403ba2
jg 0x403b51
test esi, esi
je 0x403ba2
test ecx, ecx
jl 0x403b9d
jg 0x403b5b
test eax, eax
je 0x403b9d
cmp edi, ecx
jg 0x403b6f
jl 0x403b65
cmp esi, eax
jae 0x403b6f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403ba5
mov ecx, dword [ebp + 8]
jmp 0x403baf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403bc9
jg 0x403baf
test esi, esi
je 0x403bc9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403bc9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x403c0c
jl 0x403c00
test ecx, ecx
jne 0x403c0c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403c25
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x403c6d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x403c73
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x403c73
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x403ce6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403c9c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x403cd4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x403ce6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403cb0
test edi, edi
je 0x403ce6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404090
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4040cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4040cc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4041a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4040f4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404100
movsx eax, bl
jmp 0x404138
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x404162
sub eax, 1
je 0x404162
sub eax, 2
jne 0x4041a3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404180
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4041a3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b0f
mov esp, ebp
pop ebp
ret 4
Function at 0x404e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x404f2c
cmp byte [esi + 0x3d], 0
je 0x404f2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404f1a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x404ee1
sub eax, 1
je 0x404ee5
sub eax, 2
jne 0x404f1a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404f03
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404f1a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00406b0f
mov esp, ebp
pop ebp
ret

Function at 0x4066b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4066db
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4066de
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00406690
pop esi
leave
ret 8

Function at 0x4073af
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4073ee
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4073ee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4073ee
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4073ee
cmp dword [ecx + 0x74], 0xe
jbe 0x4073ee
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x418294
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0x1000
push 0x4041d0
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov ecx, dword [0x432004]
sub ecx, edi
cmp ecx, 0x1000
jbe 0x4182ba
mov ecx, 0x1000
push 0x4071d0
push ecx
push edi
push 0x4041d0
push esi
push str.Environment
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
add edi, eax
cmp edi, dword [0x432004]
jae 0x4186d8
ret

Function at 0x4183bb
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push edi
push ecx
add ecx, dword [0x432527]
push 2
push ecx
push dword [0x402018]
call dword [sym.imp.KERNEL32.DLL_GlobalReAlloc]
or eax, eax
je 0x4186d8
mov dword [0x402018], eax
push dword [0x402018]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
add eax, dword [0x432527]
lea edi, [eax - 1]
pop ecx
add dword [0x432527], ecx
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
push dword [0x402018]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
ret

Function at 0x418df8
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov edi, dword [0x43202c]
call fcn.00418d31
mov esi, dword [0x432018]
call fcn.0041883c
cmp edi, dword [0x43200c]
jae 0x4186d8
mov eax, edi
sub eax, ebx
dec eax
mov dword [ebx - 0x34], eax
mov eax, edi
sub eax, ebx
mov dword [ebx - 0x2c], eax
add eax, 0x40
mov dword [ebx - 0x20], eax
call fcn.00418d52
sub esi, dword [section..bss]
mov dword [ebx - 0x1c], esi
mov edx, dword [0x432020]
call fcn.00418317
jb 0x4186f6
mov edx, dword [0x43202c]
mov ecx, dword [edx + 0x14]
add ecx, 0x40
call fcn.00418346
jb 0x4186f6
mov edx, dword [section..bss]
mov ecx, esi
call fcn.00418346
jb 0x4186f6
call fcn.0041837c
ret
Function at 0x4190f5
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0x431c55
jmp fcn.004188fd
lea esi, [edi - 1]
push ecx
push esi
mov dword [0x432060], 0
jmp 0x419f5b
pop esi
pop ecx
ret
push dword [0x43202c]
push dword [0x43205c]
mov dword [0x43205c], 0
push dword [0x4320a8]
push dword [edx + 4]
mov dword [edx + 4], 1
push edx
mov ebx, esi
mov esi, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [0x43204c], eax
mov dword [0x4320a8], 0
xor ebp, ebp
mov al, byte [esi]
or al, al
je 0x41a0a2
cmp al, 0x7b
je 0x41a0a2
inc esi
cmp al, 0x5b
jne 0x419fbb
mov ebp, esi
inc esi
inc dword [0x4320a8]
call fcn.00419ff3
lodsb al, byte [esi]
cmp al, 0x2c
je 0x419fd7
cmp al, 0x5d
je 0x419fdf
cmp al, 0x26
je 0x41a0a2
dec esi
jmp 0x41a0a2
cmp byte [ebx], 0x2c
jne 0x419f9b
inc ebx
jmp 0x419f9b
cmp byte [ebx], 0x2c
jne 0x41a0a2
inc ebx
inc dword [0x4320a8]
mov esi, ebp
jmp 0x419f9b
cmp byte [ebx], 0
jne 0x418748
mov eax, dword [esp + 4]
dec eax
call fcn.0041a5a1
pop edx
pop dword [edx + 4]
pop dword [0x4320a8]
pop dword [0x43205c]
pop dword [0x43202c]
jmp 0x419697

Function at 0x419109
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push dword [0x432004]
push esi
mov al, 2
xor edx, edx
call fcn.004183a2
push eax
xor al, al
xor edx, edx
call fcn.004183a2
pop ecx
mov edx, dword [0x432004]
dec edx
mov byte [edx], 0x1a
sub edx, ecx
jb 0x4186d8
mov esi, edx
cmp edx, edi
jbe 0x4186d8
mov dword [0x432004], edx
call fcn.0041835c
call fcn.0041837c
pop edx
xor ecx, ecx
mov ebx, esi
inc ecx
mov dword [0x432048], edi
mov eax, edx
stosd dword es:[edi], eax
mov eax, ecx
stosd dword es:[edi], eax
mov eax, esi
sub eax, ebx
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
push ebx
push edx
call fcn.0041918c
call fcn.00419421
pop edx
pop ebx
cmp byte [esi - 1], 0
je 0x419184
cmp byte [esi - 1], 0x1a
jne 0x419155
pop dword [0x432004]
clc
ret