joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433280
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483708
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042dac0
test eax, eax
je 0x433388
lea ecx, [esp + 0xc]
call fcn.00404200
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042dac0
mov ecx, eax
call fcn.0042b1e0
test eax, eax
je 0x43336f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43336f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43336f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00404400
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x433351
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43336f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4c11a0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x492e98
call fcn.00404400
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x4333e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042dac0
test eax, eax
je 0x4334cf
mov ecx, edi
call fcn.0042dac0
mov ecx, eax
call fcn.0042b090
test eax, eax
jne 0x4334cf
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4334cf
mov eax, dword [0x4c11a0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x433442
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042dac0
mov ecx, eax
call fcn.0042b2c0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x4334cf
cmp ebx, eax
jne 0x4334cf
cmp dword [esp + 0x10], eax
jne 0x4334b5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4361e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483998
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x436219
inc eax
mov dword [esi + 0x10], eax
jmp 0x43632c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43622d
mov eax, 0xffffffc7
jmp 0x43632e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43623e
cmp dword [esi + 8], eax
jne 0x43622d
cmp dword [esi + 8], eax
jne 0x436257
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x436257
mov eax, 0xffffffc7
jmp 0x43632e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43626b
push eax
mov ecx, ebx
call fcn.00435a10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00404200
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43629c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404220
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435180
test eax, eax
mov dword [esp + 0x38], eax
je 0x4362cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x492ec8
call fcn.00404400
mov eax, dword [esp + 0x38]
jmp 0x43632e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00436040
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x436313
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00436060
mov esi, eax
test esi, esi
jne 0x436343
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00436040
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4362e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x492ec8
call fcn.00404400
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x492ec8
call fcn.00404400
mov eax, esi
jmp 0x43632e

Function at 0x43ad70
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43add0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43add0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43add0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43add0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43ae10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x446990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484288
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.0047ca3e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004462f0
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.0047c96c
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.00479230
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.00479230
push 1
push 0
push 0
mov ecx, esi
call fcn.004791d8
push 1
push 0
push 1
mov ecx, esi
call fcn.004791d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047cab0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x446b10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4842a8
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.0047ca3e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004462f0
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.0047c96c
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 0x446bd4
cmp dword [esp + 0x40], 1
jne 0x446bd2
cmp ecx, eax
jge 0x446bd4
mov eax, ecx
cmp eax, 0xc8
jge 0x446be0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00446990
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.0047cab0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4473d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484353
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.00477651
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.0047cce6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047e202
test eax, eax
je 0x4474ec
mov ecx, dword [esp + 0x3c]
call fcn.0047cd13
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 0x4474b0
push edi
mov ecx, esi
call fcn.0047a383
mov ecx, esi
call fcn.00447690
cmp dword [esp + 0x38], 1
jne 0x4474e5
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.0047a4be
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 0x4496d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449703
push esi
call fcn.00457a70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4496fc
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 0x449789
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449772
mov eax, dword [esi + 8]
test eax, eax
je 0x449727
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 0x44976e
cmp eax, 2
je 0x449772
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44971a
cmp eax, 3
je 0x44974d
cmp eax, 1
jne 0x44971a
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 0x44971a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44971a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004497b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449798
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004497b0
add esp, 4
pop esi
ret

Function at 0x44a020
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44a041
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44a041
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44a041
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x478446
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47847e
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.004764fa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004764d2
jmp 0x47848a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479b38
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 0x479b7a
call fcn.0047f5f2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479b7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479b71
xor eax, eax
jmp 0x479b82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479b88
pop edi
pop esi
pop ebx
ret 4
Function at 0x47fb22
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 0x47fb50
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47fb6e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047fa88
jmp 0x47fb6e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47fb6e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047fa88
test edi, edi
mov eax, edi
jne 0x47fb58
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013fe
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
je 0x40151d
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x40151d
cmp byte [edi], bl
je 0x40151d
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004057f0
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004057f0
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.softwareEPSONSTM3Profile
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401517
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x10], esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
jne 0x401517
cmp byte [ebp - 0x114], bl
je 0x401517
lea eax, [ebp - 0x114]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push 0x40c28c
push str.DRVNAME
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
je 0x4014fa
cmp eax, 0x102
je 0x4014fa
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call edi
jmp 0x401510
push str.EPSON
push dword [ebp + 0xc]
call edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
jmp 0x40151f
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x40156f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
push edi
je 0x4015c0
mov ebx, dword [ebp + 0x10]
cmp dword [ebx], eax
je 0x4015c0
cmp dword [ebp + 0x14], eax
je 0x4015c0
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
test esi, esi
je 0x4015c0
add edi, 0xfffffffe
cmp edi, esi
jne 0x4015af
push 0xfffffffffffffffc
pop eax
jmp 0x4015c3
push esi
push dword [ebp + 8]
call fcn.004013e0
pop ecx
mov dword [ebx], eax
pop ecx
mov eax, esi
jmp 0x4015c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401655
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
mov dword [ebp - 4], 1
mov edi, dword [ebp - 4]
imul edi, edi, 0x104
inc dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0x40169e
push dword [ebp - 8]
call esi
push eax
call ebx
push dword [ebp - 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 8], eax
je 0x401701
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push edi
push eax
call fcn.0040156f
add esp, 0x10
test eax, eax
mov dword [ebp - 0xc], eax
je 0x401678
mov edi, dword [ebp - 4]
lea eax, [edi + edi*2]
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 [ebp - 0x10], eax
jne 0x401708
push dword [ebp - 8]
call esi
push eax
call ebx
push dword [ebp - 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffffd
jmp 0x4017dd
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.004012f3
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004057f0
and dword [ebp - 4], 0
add esp, 0x1c
test edi, edi
jle 0x40179e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push 0x104
push eax
mov eax, dword [ebp - 0xc]
push 0x40c28c
push str.ResDll
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jl 0x401777
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push eax
call fcn.00401523
cmp eax, 1
pop ecx
pop ecx
je 0x401785
inc dword [ebp - 4]
add dword [ebp - 0xc], 0xc
cmp dword [ebp - 4], edi
jl 0x401739
jmp 0x40179e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + eax*2]
push dword [ecx + eax*4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call esi
push eax
call ebx
push dword [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call edi
push dword [ebp - 8]
call esi
push eax
call ebx
push dword [ebp - 8]
call esi
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
mov dword [ecx], eax
jae 0x4017e0
push 0xfffffffffffffffc
pop eax
jmp 0x4017f2
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401905
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x401a28
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x401a28
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x401a28
cmp byte [ebx], 0
je 0x401a28
mov eax, dword [edi]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, 0x104
push esi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004057f0
push dword [ebp - 4]
push ebx
push edi
push dword [ebp + 8]
call fcn.004017f7
add esp, 0x1c
test eax, eax
jl 0x401a2b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x40c28c
push str.ResDll
push dword [ebp + 8]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jl 0x401a2b
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.00401523
test eax, eax
pop ecx
pop ecx
jne 0x401a21
mov eax, dword [ebp - 8]
push 0x409
push dword [ebp + 0x10]
mov dword [edi], eax
push edi
push dword [ebp + 8]
call fcn.004017f7
add esp, 0x10
test eax, eax
jl 0x401a2b
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push esi
push eax
push 0x40c28c
push str.ResDll
push dword [ebp + 8]
call ebx
mov esi, eax
test esi, esi
jl 0x401a24
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.00401523
test eax, eax
pop ecx
pop ecx
jne 0x401a24
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push edi
push dword [ebp + 8]
mov dword [edi], eax
call fcn.00401655
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
jge 0x401a21
jmp 0x401a2b
mov esi, dword [ebp - 4]
mov eax, esi
jmp 0x401a2b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 4], 0x104
call fcn.00401905
add esp, 0xc
test eax, eax
jge 0x401a5f
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x108]
push esi
push 0x40c28c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x401a8a
or eax, 0xffffffff
jmp 0x401a96
cmp byte [esi], 0
jne 0x401a94
push 0xfffffffffffffffe
pop eax
jmp 0x401a96
xor eax, eax
pop esi
leave
ret