joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409106
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.0040ed78
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040f553
add esp, 0x14
test eax, eax
jge 0x4092f3
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0040cd44
mov ecx, ebx
mov esi, eax
call fcn.00408ece
test eax, eax
je 0x409225
cmp dword [esi], 2
jne 0x40921e
call fcn.0040f808
test eax, eax
jne 0x4091b1
mov eax, 0x4b2
push eax
mov dword [0x42937c], eax
call fcn.0040ebaf
pop ecx
push 1
jmp 0x4092f5
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 0x4091f3
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408bc9
test eax, eax
je 0x409217
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40921e
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408bc9
test eax, eax
jne 0x40921e
push 2
jmp 0x4092f5
xor eax, eax
jmp 0x4092f6
cmp dword [esi + 0x14], 2
jne 0x40923f
cmp dword [esi + 8], 4
jne 0x40923f
mov ecx, edi
call fcn.0040de2f
push 3
jmp 0x4092f5
mov esi, 0x400
push 0x4284b0
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x4276d0
push dword [0x41f57c]
push dword [0x41f574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x4092ee
cmp byte [ebp - 0xe20], 0x59
je 0x4092ee
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 [0x42937c], edx
call fcn.0040ec8f
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.0040ea57
add esp, 0x10
or eax, 0xffffffff
jmp 0x4092f6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4092fd
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, 0x10
push eax
push str.2.0.2600.0
call fcn.0040f553
pop ecx
test eax, eax
pop ecx
jge 0x409350
push dword [ebp + 8]
push str.__s___q
jmp 0x40935c
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.0040f5e3
mov edi, eax
cmp edi, ebx
je 0x40942e
cmp edi, 0xbc2
je 0x4093a6
push ebx
push edi
mov dword [0x42937c], 0x484
call fcn.0040eac9
pop ecx
mov eax, edi
pop ecx
jmp 0x409430
cmp byte [ebp + 0xf], bl
je 0x409428
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.00407bd1
test eax, eax
jne 0x409418
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 0x40942e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40942e
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409437
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41ea88
call fcn.00414644
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, 0x4284b0
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x41f574]
call edi
sub eax, ebx
je 0x409475
dec eax
je 0x40948b
dec eax
je 0x409495
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 0x4094bb
push esi
push ebx
push dword [0x41f5a4]
push dword [0x41f5b4]
call edi
cmp eax, 2
je 0x4094c0
mov ecx, dword [ebp - 0x18]
call fcn.0040a51c
test al, al
je 0x4094c0
push 1
pop eax
jmp 0x409477
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x423a58
push 0x41fa08
call fcn.00404740
test eax, eax
jge 0x4094fe
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4094f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x4095fd
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x423d68
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x4095bc
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 0x40953b
push dword [ebp - 0x14]
jmp 0x4095b6
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 0x4276d0
push dword [0x41f5a0]
push dword [0x41f574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x409576
xor edi, edi
jmp 0x4095a2
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.00414820
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.0040f553
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x4095d6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4094e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4094e6
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4095ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4095fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x409477
Function at 0x4096df
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 0x409732
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004140b0
pop ecx
pop ecx
jmp 0x40976c
mov edi, 0x4284b0
push edi
push ebx
push dword [0x41f5a4]
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 [0x41f5a8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x409842
dec esi
je 0x409829
dec esi
je 0x409811
dec esi
je 0x4097b9
dec esi
jne 0x4097f7
push dword [ebp + 8]
push 0x4276d4
push edi
call fcn.0040f30d
push edi
call fcn.0040f445
test eax, eax
jne 0x4097f7
mov eax, 0x483
push edi
push eax
mov dword [0x42937c], eax
call fcn.0040ebaf
pop ecx
pop ecx
xor eax, eax
jmp 0x4097fa
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.00409437
cmp dword [esi + 0x10], ebx
je 0x409801
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.004098a9
test eax, eax
je 0x4097b5
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040d840
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 0x4097f7
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.004098a9
jmp 0x409839
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00409853
test eax, eax
jne 0x4097f7
jmp 0x4097b5
lea eax, [ebp - 0x408]
push eax
push 0x428f7c
jmp 0x409792
Function at 0x40a51c
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 0x40a588
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 0x40a59a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5a2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41eaec
call fcn.00414644
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 0x4284b0
lea eax, [ebp - 0x4ec]
push 0x400
push eax
push 0x4276d0
push str.DotNetVersion
push dword [0x41f574]
call esi
cmp byte [ebp - 0x4ec], bl
jne 0x40a60a
xor eax, eax
jmp 0x40a745
cmp dword [0x429380], ebx
jne 0x40a65d
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], bl
push 0x4284b0
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 0x4276d0
push str.UseDotNetUI
push dword [0x41f574]
call esi
cmp byte [ebp - 0xec], 0x59
je 0x40a668
cmp byte [ebp - 0xec], 0x79
je 0x40a668
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x40a66d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push dword [0x428acc]
mov ecx, dword [ebp - 0x10]
call fcn.0040a779
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 0x423b20
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.0040a992
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407082
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00407008
cmp dword [ebp - 0x38], ebx
jbe 0x40a737
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0xc], 0x41f5dc
cmp eax, ebx
je 0x40a6e8
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x40a6f1
xor esi, esi
jmp 0x40a71f
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.00414820
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.0040f553
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.00407008
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 0x40a779
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x4284b0
push 0
push dword [0x41f5a4]
mov esi, ecx
push str.dotnetredist.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
mov edi, 0x409
je 0x40a7af
push eax
mov ecx, esi
push dword [esp + 0x10]
call fcn.0040a7ba
test eax, eax
je 0x40a7b3
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x40be0a
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 0x40beba
dec eax
je 0x40beaf
dec eax
jne 0x40bec1
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 0x40be9f
dec eax
je 0x40be96
dec eax
jne 0x40bea2
mov dword [ebp - 0x18], 5
jmp 0x40bea2
mov dword [ebp - 0x18], 3
jmp 0x40bea2
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x40bec1
mov dword [ebp - 0x14], esi
jmp 0x40bec1
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x40bec1
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040cd4b
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40c0b0
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 0x40c0ea
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 0x40c0c8
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40d487
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 [0x423f60]
mov dword [ebp - 8], ecx
call fcn.0040d670
test eax, eax
je 0x40d57b
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b7]
mov byte [ebp - 0x4b8], bl
rep stosd dword es:[edi], eax
push dword [0x423f60]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b8]
push 0x4276d4
push eax
call fcn.0040f30d
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 0x40d573
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
push 0x423484
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 0x4276d0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40d57b
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.0040d670
test eax, eax
je 0x40d57b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40d506
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40d576

Function at 0x40d74c
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 0x40d802
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040ec8f
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40d7f2
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d7ae
lea eax, [ebp - 0x118]
push 0x423180
push eax
call fcn.00415130
pop ecx
test eax, eax
pop ecx
jne 0x40d7ca
mov eax, 0x486
push eax
mov dword [0x42937c], eax
call fcn.0040ebaf
pop ecx
push dword [0x42937c]
call fcn.0041502e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0040fc74
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 0x40d9bb
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, 0x4284b0
push edi
push ebx
push dword [0x41f698]
push dword [0x41f694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x42401c
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 [0x41f694]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x40da9d
dec eax
jne 0x40dab6
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0040d670
test eax, eax
je 0x40da99
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x4276d4
push esi
call fcn.0040f30d
push esi
call fcn.0040f445
test eax, eax
jne 0x40dab6
lea eax, [ebp - 0x41c]
push eax
push 0x428f7c
push esi
call fcn.0040f30d
push esi
call fcn.0040f445
test eax, eax
jne 0x40dab6
xor eax, eax
jmp 0x40dab9
lea eax, [ebp - 0x41c]
push eax
push 0x428f7c
push dword [ebp + 0xc]
call fcn.0040f30d
push dword [ebp + 0xc]
jmp 0x40da90
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40dac0
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], 0x40dc18
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 0x40db43
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40dbe5
push 0xd0
call fcn.004141c7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40dbe5
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 0x40dbe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40dc11
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 0x40e100
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41ee6a
call fcn.00414644
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], 0x41fa48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040e5fe
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 0x40e18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40e210
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004141c7
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.00413fc0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040e88c
test eax, eax
je 0x40e210
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 0x40e210
cmp dword [ebp - 0x10], edi
je 0x40e210
mov ecx, esi
call fcn.0040e2ac
test eax, eax
je 0x40e210
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40e210
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040e57a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4