joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c900
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00466eba
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c2a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00466de8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004636ac
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004636ac
push 1
push 0
push 0
mov ecx, esi
call fcn.00463654
push 1
push 0
push 1
mov ecx, esi
call fcn.00463654
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466f2c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ca80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00466eba
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c2a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00466de8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43cb44
cmp dword [esp + 0x40], 1
jne 0x43cb42
cmp ecx, eax
jge 0x43cb44
mov eax, ecx
cmp eax, 0xc8
jge 0x43cb50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c900
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466f2c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d2c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e0f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461acd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467162
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046867e
test eax, eax
je 0x43d3dc
mov ecx, dword [esp + 0x3c]
call fcn.0046718f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d3a0
push edi
mov ecx, esi
call fcn.004647f8
mov ecx, esi
call fcn.0043d540
cmp dword [esp + 0x38], 1
jne 0x43d3d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464933
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fe00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fe33
push esi
call fcn.00442f10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fe2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43feb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fea2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fe57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fe9e
cmp eax, 2
je 0x43fea2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fe4a
cmp eax, 3
je 0x43fe7d
cmp eax, 1
jne 0x43fe4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fe4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fe4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fee0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fec8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fee0
add esp, 4
pop esi
ret
Function at 0x44c7a0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44c7ea
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44c819
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44c85b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4628c2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4628fa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046094c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460924
jmp 0x462906
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463ff2
call fcn.00469a69
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463ff2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463fe9
xor eax, eax
jmp 0x463ffa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464000
pop edi
pop esi
pop ebx
ret 4

Function at 0x469f99
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469fc7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469fe5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469eff
jmp 0x469fe5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469fe5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469eff
test edi, edi
mov eax, edi
jne 0x469fcf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401060
mov esi, eax
mov ecx, esi
call fcn.00404a40
push 1
mov ecx, esi
mov edi, eax
call fcn.00404a10
mov ecx, edi
call fcn.004059d0
test ax, ax
jne 0x4016ab
push 2
mov ecx, esi
call fcn.00404a10
mov ecx, esi
call fcn.00404a00
push eax
mov ecx, esi
call fcn.00404970
mov ecx, ebx
call fcn.00401870
test eax, eax
jne 0x401773
push eax
push 0x481
mov dword [0x414870], 0x481
call fcn.00406060
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x800
ret
mov ecx, edi
call fcn.00405a10
push eax
mov ecx, esi
call fcn.004049b0
lea eax, [esp + 0x40c]
push 0x400
push eax
mov ecx, ebx
call fcn.00401790
test eax, eax
jne 0x401700
mov ecx, esi
mov dword [0x414870], 0x47f
call fcn.004049c0
shr eax, 0xa
push eax
push 0x47f
call fcn.00406060
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x800
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x40c]
push ecx
push 0
push 0x4110f0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0xc]
push eax
call fcn.00406a00
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.004075c0
add esp, 8
lea edx, [esp + 0xc]
mov byte [eax], 0
push edx
call fcn.00406980
test eax, eax
jne 0x40174e
lea eax, [esp + 0xc]
push eax
call fcn.004068b0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00404970
mov ecx, esi
call fcn.00405070
test eax, eax
jne 0x401678
pop edi
pop esi
pop ebx
add esp, 0x800
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x800
ret

Function at 0x401790
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00401060
mov ecx, eax
call fcn.004049c0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, eax
push edi
push ebp
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4017d3
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00401830
test eax, eax
jne 0x401821
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4017ec
push esi
push edi
mov ecx, ebx
call fcn.00401830
test eax, eax
jne 0x401821
push 0x413da0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00406690
add esp, 0xc
test eax, eax
jge 0x401821
push edi
push esi
push 4
call fcn.00406690
add esp, 0xc
test eax, eax
jge 0x401821
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x4022d0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40e0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x730
lea eax, [esp + 0x22c]
push esi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
lea edx, [esp + 0x230]
push ecx
push 0
push 0x41111c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x334]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x334]
lea ecx, [esp + 0x108]
push edx
call fcn.00405720
mov ecx, dword [str.Setup.INI]
lea eax, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x744], 0
call fcn.00405ae0
lea edx, [esp + 4]
add esi, 4
push edx
push 0x104
push esi
push 0x413da0
push str.PASSWORD
push 0x41110c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x108]
mov dword [esp + 0x73c], 0xffffffff
call fcn.00405890
mov ecx, dword [esp + 0x734]
pop esi
mov dword fs:[0], ecx
add esp, 0x73c
ret

Function at 0x4024b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x413e1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4024cf
mov ecx, dword [0x413e1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4027f0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.00403400
add esp, 4
test eax, eax
jne 0x402971
push 0x414330
call fcn.004034a0
add esp, 4
test eax, eax
jne 0x402971
mov ecx, dword [esp + 0x28]
mov edx, dword [0x414330]
push 0x41473c
mov dword [ecx], edx
call fcn.00403450
add esp, 4
test eax, eax
jne 0x402971
mov ebx, dword [esp + 0x24]
mov eax, dword [0x41473c]
mov dword [ebx], eax
mov eax, dword [0x414330]
cmp eax, 1
jne 0x402859
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x414750
call fcn.004027d0
test eax, eax
jne 0x402971
mov edx, dword [0x414330]
lea eax, [edx*4]
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 [0x414334], eax
jne 0x40289f
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
push 0x414330
call fcn.004034d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4028de
mov ecx, dword [0x414334]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x414334]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x414748], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
push 0x402ba0
and edx, 0xffff
push ecx
push edx
push esi
mov dword [0x41474c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, eax
mov eax, dword [0x41474c]
test eax, eax
je 0x40292e
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp esi, 1
jne 0x402937
xor esi, esi
jmp 0x40293f
cmp esi, 2
jne 0x40293f
or esi, 0xffffffff
mov eax, dword [0x414334]
test eax, eax
je 0x402967
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x414334]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebx]
mov eax, esi
mov dword [0x41473c], ecx
pop edi
pop esi
pop ebx
ret
Function at 0x402ef0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, dword [esp + 0xdc]
push edi
push 0x3ee
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40308f
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
push 0x7f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3ef
push esi
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40308f
push esi
call ebp
cmp dword [esp + 0x10], eax
jge 0x402f61
lea ecx, [esp + 0x5c]
push 0x7f
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40308f
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.00403630
push 1
push 0x411134
push esi
mov ebx, eax
call fcn.00403630
mov ebp, eax
push esi
push edi
and ebp, 0xffff
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, ebx
mov dword [esp + 0x10], 0
and esi, 0xffff
add esi, ebp
shr ebx, 0x10
test esi, esi
mov dword [esp + 0x1c], ebx
je 0x40308f
test ebx, ebx
je 0x40308f
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ebx, eax
sub ecx, edx
cmp ebx, esi
mov dword [esp + 0x14], ecx
jge 0x40300d
mov eax, esi
sub eax, ebx
lea ebx, [esi + ebp]
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, 1
jmp 0x403011
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x403022
add edx, 4
mov dword [esp + 0x14], edx
jmp 0x403026
test eax, eax
je 0x40308f
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push edx
push ebp
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 1
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push ebp
mov ebp, dword [sym.imp.USER32.dll_MoveWindow]
call ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push eax
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push 1
push ecx
push ebx
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax]
sub edx, ecx
push edx
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x403450
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
lea eax, [esp]
push 0x414228
push 0x13
push eax
push 0x413da0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403481
mov eax, 0xfffffffa
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push 0x41114c
push edx
call fcn.00407a52
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
Function at 0x4034a0
Capabilities:
Read .ini file

Disassembly:
push 0x414228
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 0x4034d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x98
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
xor esi, esi
push edi
cmp dword [ebp], 0
jbe 0x403568
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x41116c
lea eax, [esp + 0x30]
push str._s_d
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push 0x414228
push 0x13
push ecx
push 0x413da0
push edx
push str.Languages
call ebx
test eax, eax
je 0x403563
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x41114c
push ecx
call fcn.00407a52
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + esi*4], eax
mov eax, dword [ebp]
inc esi
cmp esi, eax
jb 0x4034f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x4041d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40e116
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], ebx
push 0xf003f
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push 0x80000002
lea ecx, [esp + 0x20]
mov dword [esp + 0x23c], ebx
call fcn.004046e0
test eax, eax
jne 0x40430c
mov ecx, 0x81
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x20]
push ebx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x208
mov esi, 1
call edi
test eax, eax
jne 0x40430c
mov dword [esp + 0x10], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 1
call fcn.004046e0
test eax, eax
jne 0x4042a6
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.00404370
test eax, eax
jne 0x40433d
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push 0x80000002
lea ecx, [esp + 0x1c]
call fcn.004046e0
test eax, eax
jne 0x4042d7
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebp
call fcn.00404370
test eax, eax
jne 0x40433d
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004046c0
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x30]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
inc esi
call edi
test eax, eax
je 0x404265
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.004046c0
xor eax, eax
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call fcn.004046c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.004046c0
mov eax, 1
jmp 0x404322