joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a54d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
xor ebx, ebx
mov esi, 0x428cc8
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.004016ac
cmp dword [ebp - 4], ebx
je 0x40a609
push dword [ebp - 4]
call fcn.0041cd9f
pop ecx
mov dword [ebp - 8], eax
push eax
lea ecx, [ebp - 0x20]
push dword [ebp - 4]
mov dword [ebp - 0x20], 0x104
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004016ac
cmp esi, ebx
je 0x40a600
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4257cc
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a600
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
shr eax, 0x10
cmp ax, 3
jb 0x40a600
push dword [ebp - 8]
call fcn.0041ccfb
pop ecx
xor eax, eax
jmp 0x40a60c
push dword [ebp - 8]
call fcn.0041ccfb
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
leave
ret

Function at 0x40a610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push 0x20019
xor ebx, ebx
push 0x4257d8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0040217a
push 0x14
lea ecx, [ebp - 0x2c]
pop eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x422420
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.004016d3
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4257d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x2c]
call fcn.0040665c
cmp dword [ebp - 0x10], ebx
je 0x40a695
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40a6b0
lea ecx, [ebp - 0x1c]
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a6ab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop eax
jmp 0x40a6d3
mov eax, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x1c]
movzx esi, word [eax]
sub esi, 0x30
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a6d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a6d6
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
push dword [0x4254c8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a72f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a72f
push 0x425800
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x40a71f
push ebx
push ebx
push 0x90df
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a8b9
push esi
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
mov ecx, 0x428c18
push dword [ebp + 8]
push ebx
call fcn.0040bfbf
call fcn.0040ce1a
mov edi, 0x104
mov esi, 0x428cb8
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040cd38
push edi
lea ecx, [ebp - 0x1c]
call fcn.004016d3
push eax
push dword [0x428c1c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x1c]
call fcn.004016ac
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
call fcn.0040590f
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.004107be
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00410622
mov ecx, eax
call fcn.00405951
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410622
lea ecx, [ebp - 0x2c]
call fcn.0040166e
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004021cc
lea ecx, [ebp - 0x1c]
call fcn.0040166e
lea ecx, [ebp - 0x3c]
call fcn.0040166e
lea ecx, [ebp - 0x6c]
call fcn.0040166e
push 0x428cb8
mov ecx, 0x428c08
call fcn.004021cc
push 0x20019
push 0x4250ec
push SysReAllocStringLen
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.0040217a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x14], 0x428cc8
mov dword [ebp - 0x10], ebx
call fcn.004016d3
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], ebx
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x428bc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
call fcn.004016ac
lea ecx, [ebp - 0x50]
call fcn.004016e9
push dword [0x428be0]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x422414
call fcn.0040201a
push dword [ebp + 0x14]
mov dword [0x428cd8], eax
push dword [ebp + 0x10]
call fcn.00408ec7
pop ecx
mov esi, eax
pop ecx
mov ecx, 0x428c18
call fcn.0040c0d1
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.004016fd
cmp dword [ebp - 4], ebx
je 0x40a8b5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b39a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4070
call fcn.0041cd70
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov edi, 0x104
xor ebx, ebx
mov esi, 0x428cb8
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
call fcn.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.004016ac
cmp dword [ebp - 4], ebx
je 0x40b4d4
push dword [ebp - 4]
call fcn.0041cd9f
pop ecx
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xc], esi
push ebx
mov dword [ebp - 8], ebx
call fcn.004016d3
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004016ac
cmp esi, ebx
je 0x40b4cb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4257cc
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b4cb
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x10]
push 0x425880
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x4070]
call fcn.00403f70
push 0x425830
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0x422420
call fcn.00408259
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4070]
call fcn.00404764
lea ecx, [ebp - 0x2c]
call fcn.004016fd
lea ecx, [ebp - 0x40]
call fcn.004016fd
lea ecx, [ebp - 0x4070]
call fcn.0040a530
push dword [ebp - 0x18]
call fcn.0041ccfb
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b4d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4258b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b5af
push 0x428cb8
lea ecx, [ebp - 0x10]
call fcn.0040235b
push 1
push 0x22
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x422424
call fcn.004029e1
cmp word [0x425898], bx
mov eax, 0x425898
mov ecx, eax
je 0x40b546
inc ecx
inc ecx
cmp word [ecx], bx
jne 0x40b53f
sub ecx, eax
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a9c
cmp dword [ebp - 4], ebx
jne 0x40b55e
xor esi, esi
jmp 0x40b569
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00401876
push esi
push dword [ebp - 0xc]
push 1
push ebx
push 0x425888
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
push dword [ebp - 0x14]
test eax, eax
jne 0x40b5a1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040166e
jmp 0x40b632
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.0040166e
lea eax, [ebp - 0x24]
push 0xfffffffffffffffb
push 0x425760
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x422420
mov dword [ebp - 0x10], 0x64
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
call fcn.004016d3
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040665c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xd8]
push eax
call fcn.00406838
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0040cbb4
lea ecx, [ebp - 0x78]
call fcn.00417ff9
lea ecx, [ebp - 0x88]
call fcn.004016fd
lea ecx, [ebp - 0x24]
call fcn.004016fd
pop ebx
leave
ret
Function at 0x40b635
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, 0x428ca8
mov dword [ebp - 0x10], 0x422420
mov ecx, esi
call fcn.00401876
push dword [0x428cac]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b699
push 1
mov ecx, esi
call fcn.0040b720
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x4258e0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040b6f0
jmp 0x40b6a4
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040a4ba
cmp dword [ebp - 4], 0
pop esi
je 0x40b6e6
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40b6e6
lea ecx, [ebp - 0x50]
call fcn.00409d71
lea ecx, [ebp - 0x50]
call fcn.0040b755
test al, al
jne 0x40b6de
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00409ef8
lea ecx, [ebp - 0x50]
call fcn.0040a50c
lea ecx, [ebp - 0x10]
call fcn.004016fd
leave
ret
Function at 0x40b755
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4130
call fcn.0041cd70
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x425790
mov dword [ebp - 0x14], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b8da
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40b8d1
cmp dword [ebp - 0xc], ebx
je 0x40b8d1
push esi
push edi
mov ecx, 0xfff
lea edi, [ebp - 0x412f]
mov byte [ebp - 0x4130], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
jbe 0x40b8c1
mov esi, 0x425710
cmp byte [ebp - 1], bl
jne 0x40b8c1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x3fff
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x4130]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 0x18], 0x104
mov byte [ebp - 0x4130], bl
mov byte [ebp - 0x130], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x28]
push eax
call fcn.004022f5
cmp word [0x425710], bx
mov dword [ebp - 0x28], 0x422424
mov eax, esi
je 0x40b866
inc eax
inc eax
cmp word [eax], bx
jne 0x40b85f
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
push ebx
call fcn.0040cc9a
cmp word [0x425710], bx
mov eax, esi
je 0x40b887
inc eax
inc eax
cmp word [eax], bx
jne 0x40b880
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push esi
call fcn.00402a9c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call fcn.00410ad0
pop ecx
test al, al
pop ecx
je 0x40b8af
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x28]
call fcn.0040166e
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x40b7f9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
jmp 0x40b8dc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret
Function at 0x40bcf8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push 0x4258b0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd35
lea ecx, [ebp - 4]
call fcn.0040beae
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0x64
mov edi, 0x422420
pop eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edi
call fcn.0040cd38
lea ecx, [ebp - 0x3c]
call fcn.004016d3
lea ecx, [ebp - 0xc]
mov ebx, 0x425888
push ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x3c]
call fcn.0040665c
cmp dword [ebp - 0x20], esi
je 0x40be97
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40be97
mov ecx, dword [ebp + 8]
push 1
push 1
push esi
push 0x425684
call fcn.00409ac4
test al, al
jne 0x40be97
push dword [0x428cc4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 1
push 0x22
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edi
call fcn.0040c645
cmp word [0x425898], si
mov eax, 0x425898
mov ecx, eax
je 0x40bdf5
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40bdee
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040195c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405442
test eax, eax
je 0x40be75
cmp dword [ebp - 4], esi
je 0x40be24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
push 0x2001f
push esi
push 0x4258b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40be53
lea ecx, [ebp - 4]
call fcn.0040beae
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1c]
call fcn.00401876
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1c]
call fcn.004016fd
lea ecx, [ebp - 0x2c]
call fcn.004016fd
cmp dword [ebp - 4], esi
je 0x40be93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40bea9
lea ecx, [ebp - 0x2c]
call fcn.004016fd
lea ecx, [ebp - 4]
call fcn.0040beae
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4141df
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 0x24], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
mov esi, ecx
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
call fcn.00401876
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x428bc4
push 0x425c18
push 0x42537c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.0041cd10
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00408259
push eax
call fcn.0041be5d
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004016fd
pop edi
pop esi
leave
ret 4
Function at 0x416a71
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and byte [ebp - 0x24], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
mov esi, ecx
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
call fcn.00401876
push dword [esi + 4]
lea eax, [ebp - 0x24]
push 0x14
push eax
push 0x428bc4
push 0x4256d0
push 0x42537c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0
push dword [ebp + 8]
call fcn.0041cd10
add esp, 0xc
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00408259
push eax
call fcn.0041be5d
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004016fd
pop edi
pop esi
leave
ret 4

Function at 0x416e57
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x428c18
call fcn.0040c358
mov edi, eax
mov eax, esi
neg eax
lea ecx, [esi + 0x7c]
sbb eax, eax
and eax, ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00416f1e
mov eax, esi
lea ecx, [esi + 0x80]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00416f1e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
leave
ret 4

Function at 0x417ea7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417eca
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417ecd
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
ret

Function at 0x418696
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, ecx
call fcn.00418df3
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x50], 0x4224e4
push 0x7f89
mov dword [esi + 0x54], 0x4224e0
push ebx
mov dword [esi], 0x422a10
mov dword [esi + 0x50], 0x422a0c
mov dword [esi + 0x54], 0x422a08
mov dword [esi + 0x74], eax
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x426034
push 0x426028
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x70], eax
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [esi + 0x6c], ebx
call fcn.0041cd10
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
mov byte [esi + 0x78], 1
jb 0x418743
mov byte [esi + 0x78], bl
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41b140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and byte [ebp - 0x40], 0
push ebx
push esi
push edi
mov esi, ecx
push 0xc
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
push 0
rep stosd dword es:[edi], eax
mov ebx, 0x101d
push 1
push ebx
push dword [esi + 0x78]
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push 0
push 2
push ebx
mov dword [ebp - 0xc], eax
push dword [esi + 0x78]
call edi
push 0
push 3
push ebx
mov dword [ebp - 8], eax
push dword [esi + 0x78]
call edi
push 0
push 4
push ebx
mov dword [ebp - 4], eax
push dword [esi + 0x78]
call edi
push eax
lea eax, [ebp - 0x40]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x426060
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x40]
push eax
lea eax, [esi + 0x1c1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41b1eb
mov ecx, 0x428ca8
call fcn.00401876
push dword [0x428cac]
lea eax, [ebp - 0x40]
push eax
push 0x42604c
push 0x42537c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp byte [esi + 0x144], 0
lea edi, [esi + 0x144]
je 0x41b208
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x41b271
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi], 0
jne 0x41b25f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x428c18
call fcn.0040c358
mov edi, eax
mov eax, esi
neg eax
lea ecx, [esi + 0x50]
sbb eax, eax
and eax, ecx
lea ecx, [edi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416f1e
mov eax, esi
lea ecx, [esi + 0x54]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416f1e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41b6a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
neg esi
lea eax, [ecx - 0x58]
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x41b6e7
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0xc], 2
jne 0x41b6d8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41b6ed
cmp dword [ebp + 0xc], 0
jne 0x41b6e7
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 1
je 0x41b704
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x58]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0x10]
push eax
call fcn.0041b77b
xor eax, eax
pop esi
pop ebp
ret 0x10