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

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x53e6d3
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x53e6d3
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x53e6c6
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x53e6e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x53e6f6
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0053fbe0
add esp, 4
test eax, eax
jne 0x53e70d
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x53e7bd
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, dword [sym.imp.kernel32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x53e825
cmp edi, ebx
jae 0x53e825
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x53e825
mov eax, dword [esp + 0x30]
test eax, eax
je 0x53e825
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x53e825
mov al, byte [esp + 0x24]
test al, al
je 0x53e81d
cmp al, 0x1a
jne 0x53e825
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x53e825
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.005407f0
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x53e825
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x53e825
mov eax, dword [esp + 0x30]
test eax, eax
je 0x53e825
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x53e825
mov al, byte [esp + 0x24]
test al, al
je 0x53e81d
cmp al, 0x1a
jne 0x53e825
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x53e840
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x53e859
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0053fbe0
add esp, 4
test eax, eax
jne 0x53e86e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x53e9ae
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.kernel32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x53e8ac
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.00541755
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x53e98e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x53e8f4
mov al, byte [esi]
cmp al, 0xd
je 0x53e936
cmp al, 0xa
je 0x53e936
inc ecx
inc esi
cmp ecx, edx
jl 0x53e8e4
add ebp, edx
cmp edx, 0x1000
jl 0x53e938
push 0x1000
push ebx
call fcn.005425a5
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x53e938
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x53e98e
jmp 0x53e8da
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.005362e0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x53e956
cmp al, 0xa
jne 0x53e95f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x53e95f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.00541b70
push ebx
mov byte [edi + ebp], 0
call fcn.0054166c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
call fcn.0054166c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x53ea3c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jle 0x53e9f7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x53e9f7
cmp cl, 0xa
je 0x53e9f7
inc ebx
inc ebp
cmp ebx, eax
jl 0x53e9e4
lea eax, [ebx + 1]
push eax
call fcn.005362e0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x53ea16
cmp al, 0xa
jne 0x53ea1f
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x53ea1f
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.00541b70
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x550483
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 0x5504c5
call fcn.00553b17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x5504c5
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x5504bc
xor eax, eax
jmp 0x5504cd
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005504d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x5511d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x555440
call fcn.00542d0c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00553b17
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x551217
call fcn.00553b17
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x551225
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x551233
or eax, 0xffffffff
jmp 0x55131b
mov ecx, esi
call fcn.0055114e
mov dword [ebp - 0x14], eax
call fcn.0054eac8
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x55126a
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x55126a
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0054ea7c
push dword [ebp - 0x14]
call fcn.0054e5ae
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00550ee6
cmp eax, edi
je 0x5512dd
test byte [esi + 0x24], 0x10
je 0x5512ab
push 4
mov ecx, esi
pop ebx
call fcn.0054dfae
test ah, 1
je 0x5512a3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.005505d5
cmp dword [esi + 0x1c], edi
je 0x5512dd
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0054dfe2
jmp 0x5512dd
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x5512f1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x55130a
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x55130a
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00551188
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x55a400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6a2e2c]
xor edx, edx
cmp eax, edx
jne 0x55a426
xor eax, eax
mov byte [eax + 0x6a2d2c], al
inc eax
cmp eax, 0x100
jl 0x55a40e
mov dword [0x6a2e2c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6a2d2c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x55a4b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x55a48a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x55a458
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x55a4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x55a513
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x55a4fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x560e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x591cfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005617b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5ef9c4
call fcn.005815fc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x560f23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005815fc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x560f1c
push 0
mov ecx, eax
call fcn.00558030
mov dword [esi + 0xc], eax
jmp 0x560f25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x560f25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x583c8c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x583cc4
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.00581d16
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00581cee
jmp 0x583cd0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x585383
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 0x5853c5
call fcn.0058b284
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x5853c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x5853bc
xor eax, eax
jmp 0x5853cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005853d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x58b7b4
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_1]
cmp dword [esp + 0x10], 0
jne 0x58b7e2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x58b800
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0058b71a
jmp 0x58b800
mov eax, dword [esi + 0x14]
test eax, eax
je 0x58b800
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0058b71a
test edi, edi
mov eax, edi
jne 0x58b7ea
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4025b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4025d3
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.00402210
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00402270
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.00402330
lea eax, [esp + 0x18]
push eax
call fcn.00401c10
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4025a0
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x402684
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00402580
or ax, ax
je 0x40264c
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x402670
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x402670
lea eax, [esp + 0xa]
push esi
push eax
call fcn.00401d20
or al, al
jne 0x402684
jmp 0x40267f
lea eax, [esp + 8]
push esi
push eax
call fcn.00401c70
or al, al
jne 0x402684
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x40269c
cmp ax, 0xffff
je 0x40269c
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x4026c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4026e3
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.00402210
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00402270
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.00402330
lea eax, [esp + 0x18]
push eax
call fcn.00401c10
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4026b0
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x402794
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.00402580
or ax, ax
je 0x402794
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x402794
cmp byte [esp + eax + 0xa], 0x3a
jne 0x402794
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.00401c70
or al, al
jne 0x402780
jmp 0x40278f
mov ax, word [esi]
cmp ax, 1
jl 0x40278f
cmp ax, 6
jle 0x402794
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4027c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00402210
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00402270
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00402420
lea eax, [esp + 4]
push 0x10
push eax
call fcn.004023d0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x4027b0
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x40282f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00401a90
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x402840
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.00402210
lea eax, [esp]
push 0x10
push eax
call fcn.00402270
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.00402380
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x4028b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.00401c30
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00402210
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00402270
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.004022d0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00402480
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.00402530
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004024e0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x4028a0
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x402983
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.00401a90
or al, al
je 0x402951
mov word [esi], 2
jmp 0x402983
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.00401a90
or al, al
je 0x40296b
mov word [esi], 3
jmp 0x402983
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00401a90
or al, al
je 0x402983
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x402b70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.00402a70
or al, al
jne 0x402cfa
test byte [edi + 0x1c], 4
je 0x402bd3
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x402c60
mov dword [ebx + 0xa8], 0
jmp 0x402c6c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x402c80
mov dword [ebx + 0xac], 0
jmp 0x402c89
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x402ca0
cmp word [ebp + 0xe], 0xffff
jne 0x402ca0
or dword [ebx + 0x2c], 8
jmp 0x402ca6
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x402be0
push esi
call fcn.00402ae0
push esi
call fcn.00402a20
push esi
call fcn.004029e0
mov eax, dword [esi + 0x10]
push eax
call fcn.00403ea0
mov word [esi + 0xc], ax
or ax, ax
je 0x402cf0
lea eax, [esi + 4]
push eax
call fcn.00403cf0
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.004029b0
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x404df0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.00402d10
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.00404920
or al, al
jne 0x404e7a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00405710
or al, al
jne 0x404e7a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004055d0
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00405760
or di, di
je 0x404e7a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8