joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c05
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Msi.DLL
call fcn.0040fc34
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00410421
add esp, 0x14
test eax, eax
jge 0x409df2
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0040d994
mov ecx, ebx
mov esi, eax
call fcn.004099cd
test eax, eax
je 0x409d24
cmp dword [esi], 2
jne 0x409d1d
call fcn.004106d6
test eax, eax
jne 0x409cb0
mov eax, 0x4b2
push eax
mov dword [0x42c904], eax
call fcn.0040fa6b
pop ecx
push 1
jmp 0x409df4
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x409cf2
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.004096c8
test eax, eax
je 0x409d16
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409d1d
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.004096c8
test eax, eax
jne 0x409d1d
push 2
jmp 0x409df4
xor eax, eax
jmp 0x409df5
cmp dword [esi + 0x14], 2
jne 0x409d3e
cmp dword [esi + 8], 4
jne 0x409d3e
mov ecx, edi
call fcn.0040ecf9
push 3
jmp 0x409df4
mov esi, 0x400
push 0x42ba38
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x429960
push dword [0x4215c8]
push dword [0x4215c0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x409ded
cmp byte [ebp - 0xe20], 0x59
je 0x409ded
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x42c904], edx
call fcn.0040fb4b
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.0040f921
add esp, 0x10
or eax, 0xffffffff
jmp 0x409df5
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409dfc
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edx, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0xf], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov dword [esi], ebx
stosb byte es:[edi], al
call fcn.00401046
add eax, 0x78
push eax
push str.2.0.2600.0
call fcn.00410421
pop ecx
test eax, eax
pop ecx
jge 0x409e4f
push dword [ebp + 8]
push str.__s___q
jmp 0x409e5b
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004104b1
mov edi, eax
cmp edi, ebx
je 0x409f2d
cmp edi, 0xbc2
je 0x409ea5
push ebx
push edi
mov dword [0x42c904], 0x484
call fcn.0040f985
pop ecx
mov eax, edi
pop ecx
jmp 0x409f2f
cmp byte [ebp + 0xf], bl
je 0x409f27
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [esi], 2
mov dword [ebp + 8], ebx
call fcn.004062b7
test eax, eax
jne 0x409f17
push 0x40
lea edi, [ebp - 0x20b]
pop ecx
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], ebx
je 0x409f2d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409f2d
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409f36
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x420270
call fcn.00415d54
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401046
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 0x42ba38
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x4215c0]
call edi
sub eax, ebx
je 0x409f74
dec eax
je 0x409f8a
dec eax
je 0x409f94
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
cmp byte [ebp + 8], bl
je 0x409fba
push esi
push ebx
push dword [0x4215f0]
push dword [0x421600]
call edi
cmp eax, 2
je 0x409fbf
mov ecx, dword [ebp - 0x18]
call fcn.0040b029
test al, al
je 0x409fbf
push 1
pop eax
jmp 0x409f76
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x425ba0
push 0x421a60
call fcn.00404d4a
test eax, eax
jge 0x409ffe
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x409ff6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x40a0fd
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x425e48
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x40a0bc
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call dword [ecx + 0x1c]
test eax, eax
jge 0x40a03b
push dword [ebp - 0x14]
jmp 0x40a0b6
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push 0x14
push eax
push 0x429960
push dword [0x4215ec]
push dword [0x4215c0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40a076
xor edi, edi
jmp 0x40a0a2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00415f30
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00410421
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x40a0d6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x409fe6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409fe6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a0ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40a0fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x409f76
Function at 0x40a1df
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 + 0x18]
cmp dword [ebp + 0x14], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x40a232
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004157c0
pop ecx
pop ecx
jmp 0x40a26c
mov edi, 0x42ba38
push edi
push ebx
push dword [0x4215f0]
push dword [ebp + 0xc]
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 [0x4215f4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0x10]
mov esi, dword [esi]
sub esi, ebx
je 0x40a342
dec esi
je 0x40a329
dec esi
je 0x40a311
dec esi
je 0x40a2b9
dec esi
jne 0x40a2f7
push dword [ebp + 8]
push 0x429964
push edi
call fcn.004101db
push edi
call fcn.00410313
test eax, eax
jne 0x40a2f7
mov eax, 0x483
push edi
push eax
mov dword [0x42c904], eax
call fcn.0040fa6b
pop ecx
pop ecx
xor eax, eax
jmp 0x40a2fa
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.00409f36
cmp dword [esi + 0x10], ebx
je 0x40a301
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.0040a3a9
test eax, eax
je 0x40a2b5
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040e70a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40a2f7
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.0040a3a9
jmp 0x40a339
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0040a353
test eax, eax
jne 0x40a2f7
jmp 0x40a2b5
lea eax, [ebp - 0x408]
push eax
push 0x42c504
jmp 0x40a292
Function at 0x40b029
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 0x40b095
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 0x40b0a7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b0af
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4202d4
call fcn.00415d54
sub esp, 0x4e0
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4eb]
mov byte [ebp - 0x4ec], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42ba38
lea eax, [ebp - 0x4ec]
push 0x400
push eax
push 0x429960
push str.DotNetVersion
push dword [0x4215c0]
call esi
cmp byte [ebp - 0x4ec], bl
jne 0x40b117
xor eax, eax
jmp 0x40b252
cmp dword [0x42c908], ebx
jne 0x40b16a
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], bl
push 0x42ba38
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xec]
push 0x80
push eax
push 0x429960
push str.UseDotNetUI
push dword [0x4215c0]
call esi
cmp byte [ebp - 0xec], 0x59
je 0x40b175
cmp byte [ebp - 0xec], 0x79
je 0x40b175
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40b17a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push dword [0x42c054]
mov ecx, dword [ebp - 0x10]
call fcn.0040b286
mov ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
mov dword [eax], ecx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x1c]
push 0x425c7c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x6c]
push 1
pop esi
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b49f
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407af6
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00407a7c
cmp dword [ebp - 0x38], ebx
jbe 0x40b244
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], 0x421628
cmp eax, ebx
je 0x40b1f5
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x40b1fe
xor esi, esi
jmp 0x40b22c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00415f30
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x4ec]
push esi
push eax
call fcn.00410421
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setl cl
mov esi, ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407a7c
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4f8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b286
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x42ba38
push 0
push dword [0x4215f0]
mov esi, ecx
push str.dotnetfx.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
mov edi, 0x409
je 0x40b2bc
push eax
mov ecx, esi
push dword [esp + 0x10]
call fcn.0040b2c7
test eax, eax
je 0x40b2c0
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40c917
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 0x40c9c7
dec eax
je 0x40c9bc
dec eax
jne 0x40c9ce
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 0x40c9ac
dec eax
je 0x40c9a3
dec eax
jne 0x40c9af
mov dword [ebp - 0x18], 5
jmp 0x40c9af
mov dword [ebp - 0x18], 3
jmp 0x40c9af
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x40c9ce
mov dword [ebp - 0x14], esi
jmp 0x40c9ce
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x40c9ce
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040d99b
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40cbbd
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 0x40cbf7
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 0x40cbd5
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40e351
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 [0x426040]
mov dword [ebp - 8], ecx
call fcn.0040e53a
test eax, eax
je 0x40e445
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x426040]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x429964
push eax
call fcn.004101db
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 0x40e43d
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x4255a0
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 0x429960
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40e445
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.0040e53a
test eax, eax
je 0x40e445
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40e3d0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40e440

Function at 0x40e616
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 0x40e6cc
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040fb4b
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40e6bc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40e678
lea eax, [ebp - 0x118]
push 0x4251c4
push eax
call fcn.00416840
pop ecx
test eax, eax
pop ecx
jne 0x40e694
mov eax, 0x486
push eax
mov dword [0x42c904], eax
call fcn.0040fa6b
pop ecx
push dword [0x42c904]
call fcn.0041673e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00410b57
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 0x40e885
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, 0x42ba38
push edi
push ebx
push dword [0x4216f0]
push dword [0x4216ec]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x4261a8
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 [0x4216ec]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x40e967
dec eax
jne 0x40e980
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040e53a
test eax, eax
je 0x40e963
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x429964
push esi
call fcn.004101db
push esi
call fcn.00410313
test eax, eax
jne 0x40e980
lea eax, [ebp - 0x41c]
push eax
push 0x42c504
push esi
call fcn.004101db
push esi
call fcn.00410313
test eax, eax
jne 0x40e980
xor eax, eax
jmp 0x40e983
lea eax, [ebp - 0x41c]
push eax
push 0x42c504
push dword [ebp + 0xc]
call fcn.004101db
push dword [ebp + 0xc]
jmp 0x40e95a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e98a
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 + 0x313c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40eae2
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 + 0x313c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40ea0d
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40eaaf
push 0xd0
call fcn.004158d7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40eaaf
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 + 0x313c]
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 + 0x2d00], 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 0x40eab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40eadb
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2d00], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2d00]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40efca
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4206a2
call fcn.00415d54
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], 0x421aa0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040f4c8
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 0x40f057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40f0da
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004158d7
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.004156d0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040f756
test eax, eax
je 0x40f0da
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 0x40f0da
cmp dword [ebp - 0x10], edi
je 0x40f0da
mov ecx, esi
call fcn.0040f176
test eax, eax
je 0x40f0da
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40f0da
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040f444
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4