joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56bb90
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606c56
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.UI::CWindow.0
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x64]
push 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi + 0x55], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0
push 0
mov dword [ebp - 4], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.00479e10
mov dword [edi + 0x64], eax
push 0
mov dword [edi + 0x6c], 0
lea ecx, [edi + 0x70]
push 0
mov byte [ebp - 4], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.00479e10
mov dword [edi + 0x70], eax
mov eax, edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x57d240
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57d250
mov edi, 0x1505
mov esi, 0
sub ecx, edx
je 0x57d277
movsx edx, byte [esi + ebx]
mov eax, edi
shl eax, 5
inc esi
add edi, eax
add edi, edx
cmp esi, ecx
jb 0x57d265
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5839b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607a6e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6f08b4], edi
mov dword [edi], vtable.CRaceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00462690
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.00482700
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.00466e70
mov dword [edi + 0x14], eax
mov ecx, edi
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0
mov byte [edi + 0x1c], 0
call fcn.00584910
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x598070
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608fd7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CArea.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
lea ecx, [edi + 0x64]
mov byte [ebp - 4], 7
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.00462690
mov dword [edi + 0x64], eax
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
lea ecx, [edi + 0x8c]
mov byte [ebp - 4], 0xa
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
call fcn.00462690
mov dword [edi + 0x8c], eax
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 0xb
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
call fcn.00466e40
mov dword [edi + 0x98], eax
mov eax, edi
mov dword [edi + 0x84], 0xff00ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b2fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a4fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
sub edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
inc edi
sub esi, ebx
inc esi
je 0x5b30ad
test edi, edi
je 0x5b30ad
push 0x40
call fcn.005c46b3
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x5b304a
mov ecx, eax
call fcn.005b75d0
mov ecx, eax
jmp 0x5b304c
xor ecx, ecx
mov eax, dword [ebp + 0x10]
cmp edi, esi
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
cmovg esi, edi
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0x24], esi
movzx eax, word [eax + 0x8c]
imul eax, edx
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
add eax, ebx
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5b7740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a668
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x69a450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6f08d4], edi
mov dword [edi], vtable.CSoundManager.0
lea ecx, [edi + 0x6c]
mov dword [ebp - 4], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
call fcn.00466e70
mov dword [edi + 0x6c], eax
mov eax, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x43480000
mov dword [edi + 0x1c], 0x447a0000
mov dword [edi + 0x20], 0x3f800000
mov dword [edi + 0x24], 0x3f800000
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5e92d6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x69a450]
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.005d148d
mov dword [ebp - 0x14], eax
cmp dword [0x6ed168], esi
jne 0x5e93c9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5e9356
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5e94a9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5e94a9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5e94a9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6ed168], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6ed16c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6ed170], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6ed178], eax
test eax, eax
je 0x5e93c6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6ed174], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5e93ee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5e93e1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5e9403
push 4
pop eax
jmp 0x5e94ab
cmp dword [ebp - 0x14], esi
je 0x5e9403
push dword [0x6ed168]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5e93e8
mov eax, dword [0x6ed174]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5e9461
cmp dword [0x6ed178], edi
je 0x5e9461
push eax
call ebx
push dword [0x6ed178]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5e9461
test eax, eax
je 0x5e9461
call ecx
test eax, eax
je 0x5e9456
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 0x5e9456
test byte [ebp - 8], 1
jne 0x5e9461
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5e9491
mov eax, dword [0x6ed16c]
cmp eax, edi
je 0x5e948e
push eax
call ebx
test eax, eax
je 0x5e948e
call eax
mov esi, eax
test esi, esi
je 0x5e948e
mov eax, dword [0x6ed170]
cmp eax, edi
je 0x5e948e
push eax
call ebx
test eax, eax
je 0x5e948e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6ed168]
call ebx
test eax, eax
je 0x5e94a9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5e94ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c46a4
mov esp, ebp
pop ebp
ret
Function at 0x10003001
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x5c5070]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1000316b
push 0x40
mov edx, esi
mov ecx, edi
call 0x10005240
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call 0x10005240
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100030c9
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call 0x10005240
add esi, 0x28
dec edi
jne 0x10003087
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x100030c9
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call 0x10005240
lea esi, [esi + 0x28]
dec ebx
jne 0x100030ae
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10001f85
push dword [ebp - 0x18]
mov ecx, dword [0x5c6438]
mov edx, edi
call fcn.10001ee1
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10003168
cmp dword [ebx + 0x64], 0
je 0x10003168
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10003110
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x10003114
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000313d
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x1000313f
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10003162
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401300
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b9b2e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov eax, 1
test byte [0x4f0178], al
jne 0x40137f
or dword [0x4f0178], eax
push 0x4be549
mov ecx, 0x4f015c
mov dword [esp + 0x120], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x4bc670
call fcn.004b779a
add esp, 4
mov dword [esp + 0x11c], 0xffffffff
cmp dword [0x4f0170], 0
jne 0x401445
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.MSVCR80.dll_strcat_s]
push str.AOMEIPA
lea ecx, [esp + 0x10]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4013f8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x4013f8
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4013f8
call edi
push eax
push str.Failed_to_CreateDirectory_by_GetPAAnalyticsPath_____d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
push str.PA_OF.dat
lea ecx, [esp + 0x10]
push 0x104
push ecx
call esi
add esp, 0xc
call fcn.004b6ae0
lea edx, [esp + 0xc]
mov edi, eax
mov esi, dword [edi]
push edx
push 0x37
add esi, 8
call fcn.00401140
add esp, 4
push eax
mov eax, dword [esi]
push str._s___s
push edi
call eax
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x4f015c
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [0x4f0174], 0x10
mov eax, dword [0x4f0160]
jae 0x401458
mov eax, 0x4f0160
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b76e6
add esp, 0x114
ret
Function at 0x401480
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b8f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov eax, 1
test byte [0x4d6fe4], al
jne 0x4014ff
or dword [0x4d6fe4], eax
push 0x4be549
mov ecx, 0x4d6fc8
mov dword [esp + 0x120], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x4bc680
call fcn.004b779a
add esp, 4
mov dword [esp + 0x11c], 0xffffffff
cmp dword [0x4d6fdc], 0
jne 0x40159c
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.MSVCR80.dll_strcat_s]
push str.AOMEIPA
lea ecx, [esp + 0x10]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401578
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x401578
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401578
call edi
push eax
push str.Failed_to_CreateDirectory_by_GetPAAnalyticsPath_____d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
push str.InstallDay.ini
lea ecx, [esp + 0x10]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov ecx, 0x4d6fc8
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [0x4d6fe0], 0x10
mov eax, dword [0x4d6fcc]
jae 0x4015af
mov eax, 0x4d6fcc
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b76e6
add esp, 0x114
ret
Function at 0x401690
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b9aec
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x15c]
push 0x103
xor edi, edi
lea eax, [esp + 0x45]
push edi
push eax
mov esi, ecx
mov byte [esp + 0x4c], 0
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.00401480
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x154], edi
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x401714
lea eax, [esp + 0x28]
push eax
push 0x104
lea ecx, [esp + 0x48]
push ecx
push 0x4be5f0
push str.install
push str.DATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ntdll.dll__atoi64]
add esp, 4
mov ebx, eax
or eax, edx
mov dword [esp + 0x1c], edx
jne 0x401773
mov dword [esi], edi
mov dword [esi + 4], edi
lea ecx, [esp + 0x24]
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [esp + 0x154], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0x3e8
jmp 0x4017e2
mov dword [esi], ebx
mov dword [esi + 4], edx
call fcn.004015e0
mov ecx, dword [esp + 0x1c]
push 0
push 0x18
push ecx
mov esi, eax
mov edi, edx
push ebx
mov dword [ebp], esi
mov dword [ebp + 4], edi
call sub.ntdll.dll__alldiv
push 0
push 0xe10
push edx
push eax
call sub.ntdll.dll__alldiv
push 0
push 0x18
push edi
push esi
mov ebx, eax
mov dword [esp + 0x2c], edx
call sub.ntdll.dll__alldiv
push 0
push 0xe10
push edx
push eax
call sub.ntdll.dll__alldiv
sub eax, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edx
mov esi, eax
mov dword [esp + 0x154], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004b76e6
add esp, 0x144
ret

Function at 0x401930
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
call fcn.004018d0
mov esi, eax
test esi, esi
jne 0x401966
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004b76e6
add esp, 0x104
ret
push 0xff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.ntdll.dll_memset
add esp, 0xc
push esi
push 0x100
lea ecx, [esp + 0xc]
push ecx
push 0x4be5f0
push str.Version
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.ntdll.dll_atoi]
mov ecx, dword [esp + 0x108]
add esp, 4
pop esi
xor ecx, esp
call fcn.004b76e6
add esp, 0x104
ret
Function at 0x4019d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
push edi
push 0x7f
lea eax, [esp + 0x19]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x20], 0
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x101
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a73
call fcn.004b6ae0
mov edi, eax
mov esi, dword [edi]
push 0xec
add esi, 8
call fcn.00401140
mov edx, dword [esi]
push eax
push str._s:_Failed_to_RegOpenKeyA_in_GetOsName.
push edi
call edx
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004b76e6
add esp, 0x90
ret
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x4be698
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ae0
call fcn.004b6ae0
mov edi, eax
mov esi, dword [edi]
push 0xf2
add esi, 8
call fcn.00401140
mov ecx, dword [esi]
push eax
push str._s:_Failed_to_RegQueryValueExA_in_GetOsName.
push edi
call ecx
mov edx, dword [esp + 0x18]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004b76e6
add esp, 0x90
ret
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004b76e6
add esp, 0x90
ret