joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401907
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040f514
push 1
mov ecx, esi
mov edi, eax
call fcn.0040f4f9
mov ecx, esi
call fcn.0040f4f2
push eax
mov ecx, esi
call fcn.0040f479
mov ecx, edi
call fcn.00410f30
push eax
mov ecx, esi
call fcn.0040f4b4
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401ab4
test eax, eax
jne 0x401986
mov edi, 0x47f
mov ecx, esi
mov dword [0x42ea7c], edi
call fcn.0040f4c1
shr eax, 0xa
push eax
push edi
call fcn.0041172e
pop ecx
pop ecx
jmp 0x401aa8
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x42719c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.004121fa
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.00417150
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.004121a3
test eax, eax
jne 0x4019dc
lea eax, [ebp - 0x400]
push eax
call fcn.004120f9
lea eax, [ebp - 0x400]
mov edi, 0x42bad4
push eax
push edi
call fcn.00417060
pop ecx
pop ecx
push dword [0x4281f4]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fec9
test eax, eax
jne 0x401a2b
push 2
mov ecx, esi
call fcn.0040f4f9
push dword [0x4281f4]
mov ecx, esi
call fcn.0040f4ad
push eax
push 0x42dba8
call fcn.00412024
jmp 0x401a47
push dword [0x4281f4]
push edi
push 0x42dba8
call fcn.00412024
mov ecx, esi
call fcn.0040fedd
test eax, eax
je 0x401aa8
push dword [0x428208]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040fec9
test eax, eax
je 0x401a77
push 0
push 1
push dword [0x428208]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.004100c6
mov ecx, ebx
call fcn.00401b75
test eax, eax
jne 0x401a94
mov eax, 0x481
push 0
mov dword [0x42ea7c], eax
push eax
jmp 0x40197a
cmp dword [esi + 0x14bc], 5
jne 0x401aac
mov ecx, esi
call fcn.00410025
test eax, eax
jne 0x401aac
xor eax, eax
jmp 0x401aaf
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401ab4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040f4c1
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401af5
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401b11
push esi
push edi
mov ecx, ebx
call fcn.00401b4a
test eax, eax
jne 0x401b41
push 0x42bad0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00411d79
add esp, 0xc
test eax, eax
jge 0x401b41
push edi
push esi
push 4
call fcn.00411d79
add esp, 0xc
test eax, eax
jge 0x401b41
xor eax, eax
jmp 0x401b44
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4020fd
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x4216f6
call fcn.004175e4
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040230b
test al, al
je 0x402130
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4022b4
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00402333
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.00416f58
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4021c6
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.004022c4
jmp 0x4021c8
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x4020b1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.00416f58
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x402250
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402247
cmp dword [ebp - 0x30], 0x8032
jne 0x40223b
mov ecx, dword [ebx + 0x98]
call fcn.0040273a
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402214
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x402204
push dword [ebp + 8]
call fcn.00416807
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x402289
lea ecx, [ebx + 8]
call fcn.0040248f
push ebx
call fcn.00416807
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x402293
xor eax, eax
jmp 0x4022b4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4026c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x4026e1
xor esi, esi
jmp 0x40270e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004176e0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402730
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402727
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4026d3
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e5d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4219bc
call fcn.004175e4
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x405e95
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x405ed4
cmp cl, 0x58
je 0x405ed4
push edi
call fcn.00417202
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.004018c4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401907
test eax, eax
je 0x405f9d
mov ecx, dword [ebp + 0x10]
call fcn.0040feac
test eax, eax
je 0x405edf
push 0x42bad4
jmp 0x405ee8
push eax
call esi
push eax
call fcn.00405e1a
jmp 0x405e9a
mov ecx, dword [ebp + 0x10]
call fcn.0040f4ad
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x4281f4]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00412024
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x405f9d
push edi
push 0x4275d8
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x42bad0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405f9d
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e1a
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405fbc
inc edi
cmp edi, ebx
jb 0x405f48
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004018fc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x405f9f

Function at 0x406387
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4063de
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42c77c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063d5
mov byte [0x42d77c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x406503
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42d798]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40652f
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42d798]
call esi
push 0
push dword [0x42d78c]
call esi
pop esi
ret
Function at 0x406530
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x42d798]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0040f3c5
cmp dword [eax], 1
je 0x40659a
cmp dword [eax + 4], ebx
je 0x4065ef
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4065ef
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x42d798]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406bf4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407699
test eax, eax
pop ecx
jne 0x406d51
mov esi, 0x42e1d0
push esi
call fcn.00407730
test eax, eax
pop ecx
jne 0x406d51
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x42e1d0]
push 0x42e1c4
mov dword [eax], ecx
call fcn.004076e9
test eax, eax
pop ecx
jne 0x406d51
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x42e1c4]
mov dword [ebx], eax
cmp dword [0x42e1d0], 1
jne 0x406c57
xor eax, eax
jmp 0x406d51
lea eax, [ebp + 8]
push eax
push 0x42e1c8
call fcn.00406be0
test eax, eax
jne 0x406d51
mov eax, dword [0x42e1d0]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x42e1d4], eax
jne 0x406c96
push 0xfffffffffffffffc
pop eax
jmp 0x406d51
push esi
call fcn.00407758
mov edi, eax
pop ecx
test edi, edi
je 0x406ccc
push dword [0x42e1d4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42e1d4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406d4f
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x42e1c0], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x42dfb4], eax
movzx eax, word [ebp + 0x14]
push 0x406f80
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x42dfb4]
test eax, eax
je 0x406d0f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x406d18
xor edi, edi
jmp 0x406d20
cmp edi, 2
jne 0x406d20
or edi, 0xffffffff
mov eax, dword [0x42e1d4]
test eax, eax
je 0x406d48
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42e1d4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x42e1c4], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407235
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x4073bc
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4073bc
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4072a7
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4073bc
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.0040789c
push 1
push 0x4276b0
push esi
mov edi, eax
call fcn.0040789c
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x4073bc
test edi, edi
je 0x4073bc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x407346
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x40734c
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x40735c
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4073bc
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4076e9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42e0bc
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x42bad0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x407718
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x427698
push eax
call fcn.00418160
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x407730
Capabilities:
Read .ini file

Disassembly:
push 0x42e0bc
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x407758
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x4077d8
push esi
push 0x4275d8
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x42e0bc
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x42bad0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4077d5
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x427698
push eax
call fcn.00418160
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x40776f
jmp 0x4077d8
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40794a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42dba8
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0x42bad0
push dword [ebp + 0xc]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jle 0x407a21
mov edi, dword [ebp + 8]
push edi
call esi
push dword [ebp + 0x10]
xor ecx, ecx
cmp byte [eax + edi - 1], 0x20
mov dword [ebp + 8], eax
setne cl
mov dword [ebp + 0xc], ecx
call esi
push dword [ebp + 0x18]
mov ebx, eax
call esi
push dword [ebp + 0x1c]
add ebx, eax
call esi
add eax, dword [ebp + 8]
mov edx, ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
setne cl
add eax, edx
lea eax, [ecx + eax + 1]
cmp dword [ebp + 0x14], eax
jl 0x407a21
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4079fb
push 0x4277f8
push edi
call esi
push dword [ebp + 0x10]
push edi
call esi
cmp dword [ebp + 0x1c], ebx
je 0x407a0c
push dword [ebp + 0x1c]
push edi
call esi
lea eax, [ebp - 0x104]
push eax
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x407a21
push dword [ebp + 0x18]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407b61
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and byte [ebp - 0x18], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
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
mov ebx, 0x42dba8
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x18]
push 0x14
mov edi, 0x42bad0
and dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 8]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x18], 0x79
je 0x407bad
cmp byte [ebp - 0x18], 0x59
jne 0x407be5
cmp dword [0x42ea80], 0
je 0x407bde
push ebx
lea eax, [ebp - 0x2c]
push 0x14
push eax
push edi
push dword [ebp + 0xc]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x2c], 0x79
je 0x407be5
cmp byte [ebp - 0x2c], 0x59
je 0x407be5
mov dword [ebp - 4], 1
jmp 0x407be5
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408129
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x421a1c
call fcn.004175e4
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x40819b
cmp ebx, edi
je 0x40819b
cmp ebx, 0x800704c7
jne 0x408171
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x408185
mov dword [eax], ebx
jmp 0x40823d
test ebx, ebx
je 0x40823d
cmp ebx, 0x1008
je 0x40823d
mov dword [0x42ea7c], 0x66d
call fcn.004064c9
xor eax, eax
jmp 0x40823f
call fcn.004124ed
test eax, eax
jne 0x4081b3
cmp ebx, edi
je 0x4081b3
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x4081bd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.004063e0
test eax, eax
jne 0x40822f
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], 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 - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x40823d
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14