joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ac5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov dword [ebp - 8], eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
mov byte [ebp - 0x408], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x408b18
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00412860
pop ecx
pop ecx
jmp 0x408b52
mov edi, 0x426180
push edi
push ebx
push dword [0x41d5a0]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
push edi
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
push dword [0x41d5a4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x408c28
dec esi
je 0x408c0f
dec esi
je 0x408bf7
dec esi
je 0x408b9f
dec esi
jne 0x408bdd
push dword [ebp + 8]
push 0x4253a4
push edi
call fcn.0040dae4
push edi
call fcn.0040dc1c
test eax, eax
jne 0x408bdd
mov eax, 0x483
push edi
push eax
mov dword [0x42704c], eax
call fcn.0040d394
pop ecx
pop ecx
xor eax, eax
jmp 0x408be0
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.00408817
cmp dword [esi + 0x10], ebx
je 0x408be7
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.00408c8f
test eax, eax
je 0x408b9b
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040bfed
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x408bdd
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.00408c8f
jmp 0x408c1f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00408c39
test eax, eax
jne 0x408bdd
jmp 0x408b9b
lea eax, [ebp - 0x408]
push eax
push 0x426c4c
jmp 0x408b78
Function at 0x409844
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4098b0
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x4098c2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5df
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040105f
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x40a68f
dec eax
je 0x40a684
dec eax
jne 0x40a696
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x40a674
dec eax
je 0x40a66b
dec eax
jne 0x40a677
mov dword [ebp - 0x18], 5
jmp 0x40a677
mov dword [ebp - 0x18], 3
jmp 0x40a677
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x40a696
mov dword [ebp - 0x14], esi
jmp 0x40a696
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x40a696
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040b4e9
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40a885
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x40a8bf
mov eax, dword [ecx + 0x6c]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x40a89d
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40bc25
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
push dword [0x421c28]
mov dword [ebp - 8], ecx
call fcn.0040be0e
test eax, eax
je 0x40bd19
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x421c28]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x4253a4
push eax
call fcn.0040dae4
lea eax, [ebp - 0x4b8]
mov edi, str.Languages
push eax
push ebx
push str.Count
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
jbe 0x40bd11
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x421474
push str._s_d
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x20]
push 0x13
push eax
lea eax, [ebp - 0xb8]
push 0x4253a0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40bd19
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push str.0x0_s.ini
push eax
call esi
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x38]
push ebx
push 1
push eax
call fcn.0040be0e
test eax, eax
je 0x40bd19
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40bca4
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40bd14

Function at 0x40beea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40bfa0
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040d474
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40bf90
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40bf4c
lea eax, [ebp - 0x118]
push 0x421170
push eax
call fcn.004138e0
pop ecx
test eax, eax
pop ecx
jne 0x40bf68
mov eax, 0x486
push eax
mov dword [0x42704c], eax
call fcn.0040d394
pop ecx
push dword [0x42704c]
call fcn.004137de
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0040e41d
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x40c168
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x426180
push edi
push ebx
push dword [0x41d698]
push dword [0x41d694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x421ce4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
call esi
push edi
lea ecx, [ebp - 0x41c]
push 0x400
push ecx
push eax
push eax
push dword [0x41d694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x40c24a
dec eax
jne 0x40c263
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040be0e
test eax, eax
je 0x40c246
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x4253a4
push esi
call fcn.0040dae4
push esi
call fcn.0040dc1c
test eax, eax
jne 0x40c263
lea eax, [ebp - 0x41c]
push eax
push 0x426c4c
push esi
call fcn.0040dae4
push esi
call fcn.0040dc1c
test eax, eax
jne 0x40c263
xor eax, eax
jmp 0x40c266
lea eax, [ebp - 0x41c]
push eax
push 0x426c4c
push dword [ebp + 0xc]
call fcn.0040dae4
push dword [ebp + 0xc]
jmp 0x40c23d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c26d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x2cd4]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40c3c5
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x2cd4]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40c2f0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40c392
push 0xd0
call fcn.00412977
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40c392
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x2cd4]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x2898], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x40c396
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40c3be
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2898], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2898]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c902
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41c84a
call fcn.00412df4
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x11c]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x114], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x41da48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040ce00
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x40c98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40ca12
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00412977
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.00412770
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040d08e
test eax, eax
je 0x40ca12
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x118]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ca12
cmp dword [ebp - 0x10], edi
je 0x40ca12
mov ecx, esi
call fcn.0040caae
test eax, eax
je 0x40ca12
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40ca12
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040cd7c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40cbbd
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x40cc0c
cmp dword [ebp + 8], ebx
je 0x40cc0c
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push SysReAllocStringLen
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x40cc15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x114], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.0040d08e
test eax, eax
je 0x40cc0c
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x40cc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cc0c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10c]
mov eax, 0x400
cmp ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
jae 0x40cc74
mov dword [ebp + 8], ecx
push dword [ebp + 8]
call fcn.00412977
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x40ccd2
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
je 0x40ccd2
cmp eax, ebx
je 0x40ccd2
cmp dword [ebp + 0xc], 0x400
jae 0x40ccc4
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
jmp 0x40cc91
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0x10]
call esi
push edi
call fcn.00412014
pop ecx
push 1
pop eax
jmp 0x40cc0e

Function at 0x40cd7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x40cdf9
mov esi, 0x138
push esi
call fcn.00412977
mov ebx, eax
push esi
push 0
push ebx
call fcn.00412770
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cdf9
cmp dword [ebp - 8], 0
je 0x40cdf9
push ebx
lea ecx, [edi + 0x11c]
call fcn.0040d0d3
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0040d08e
test eax, eax
je 0x40cdf9
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x40cd95
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ce00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ce45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40ce94
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0040d08e
test eax, eax
je 0x40ce94
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0040d08e
test eax, eax
jne 0x40ce98
xor eax, eax
jmp 0x40ceea
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x40ced4
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x40cebe
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x40cea4
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040ceef
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ceef
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40cf1b
xor eax, eax
jmp 0x40cfcb
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40cfc0
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x40cfb5
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0040cfd0
cmp eax, ebx
je 0x40cf6b
cmp dword [eax + 0xc], edi
jne 0x40cf6b
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x40cf9c
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0040cfd0
mov edi, eax
cmp edi, ebx
je 0x40cfb5
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x40cfb5
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x40cfb0
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x40cfa6
jmp 0x40cfb3
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40d4b9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
lea eax, [ebp - 0x14]
push dword [0x42679c]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x814]
push eax
push 0x426180
call fcn.0040d935
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040dae4
lea eax, [ebp - 0x414]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x414]
push eax
push 0x12c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x4253a0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
leave
ret
Function at 0x40d54f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x4253a0
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.00412860
push esi
push dword [ebp + 0x10]
call fcn.00412860
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40d6da
push edi
push esi
call fcn.00412fff
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00412770
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6d0
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x4218dc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d612
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d6d0
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x40d6d0
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x40d671
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.00413300
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x40d6a2
lea eax, [ebp - 0x144]
push 0x421c08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40d6ba
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.00412860
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x40d666
push dword [ebp - 0x10]
call fcn.00412e13
pop ecx
pop edi
pop esi
pop ebx
leave
ret