joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dc84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45dc9b
add esp, 0xfffffff0
call fcn.00403cc4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e984
mov eax, dword [0x480a6c]
cmp word [eax + 2], 0
jne 0x45dcc3
mov eax, dword [0x480a6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f360
mov eax, dword [0x480b08]
cmp word [eax + 2], 0
jne 0x45dcdd
mov eax, dword [0x480b08]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f558
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413d54]
call fcn.00403930
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413d54]
call fcn.00403930
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420e7c]
call fcn.00428500
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45de64
mov eax, dword [0x48098c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004288d0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45fad8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48098c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cea0
test eax, eax
je 0x45ddd2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409124
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cec8
test eax, eax
je 0x45dde6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404934
mov eax, dword [0x480860]
cmp byte [eax], 0
jne 0x45de1a
mov eax, ebx
call fcn.0045df8c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045fcb4
mov eax, ebx
call fcn.004605f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45de5a
call fcn.00403d1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e200
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481c38]
cmp dword [eax + 0x30], 0
je 0x45e2aa
cmp dword [ebx + 0x94], 0
jne 0x45e2a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e190
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e2a4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e26a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e2a4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004166ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e279
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ed88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45edbd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047bc
jmp 0x45edca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404720
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45fe90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45fed1
mov eax, esi
call fcn.004463c0
test al, al
je 0x45fed1
mov eax, dword [ebx + 0x84]
call fcn.004460bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45fed1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004460bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x461df4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403068
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x480c74]
cmp byte [edx + 0xc], 0
je 0x461e58
mov edx, dword [0x480c6c]
cmp dword [edx], 2
jne 0x461e58
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x461e5c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x461f14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00461df4
test al, al
je 0x461ef6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004047bc
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x461ef6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404b7c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404b7c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004048bc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x461eaf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461f1b
lea eax, [ebp - 0x2c]
call fcn.004046cc
lea eax, [ebp - 0xc]
call fcn.004046cc
ret

Function at 0x4620b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004619bc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404b7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x462116
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x480a84]
mov dl, 1
mov eax, dword [0x4618b4]
call fcn.0040c240
call fcn.0040412c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x462120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462178
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x480c80]
mov dl, 1
mov eax, dword [0x4618b4]
call fcn.0040c240
call fcn.0040412c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004619ec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4670c8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4670f6
mov eax, ebx
call fcn.00467b80
cmp dword [ebx + 0x3c], 0
je 0x4670ef
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x467167
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x467159
cmp dword [ebx + 8], 0
je 0x467118
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46712a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x467159
cmp dword [ebx + 8], 0
je 0x46710b
cmp eax, 3
je 0x46713d
dec eax
jne 0x46710b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46710b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46710b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x467185
cmp dword [ebx + 0x10], 0xcc
je 0x467185
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00467190
pop ebx
ret
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x444008], 0x8088405
inc edx
mov dword [ebx + 0x444008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x42ee0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41eb80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x43112f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0x446188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0x446188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0x444ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x4011ca
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
enter 0x228, 0
push ebx
push esi
push edi
push 0x40a047
push 0x401464
call fcn.00407f14
mov eax, dword [0x40b520]
push dword [eax + 0x2c]
push 0x100
lea eax, [ebp - 0x105]
push eax
push 0
mov eax, dword [0x40b520]
push dword [eax + 0x28]
push 0x40a033
call sub.kernel32.dll_GetPrivateProfileStringA
lea eax, [ebp - 0x105]
push eax
call fcn.00406edc
test eax, eax
je 0x401231
lea eax, [ebp - 0x105]
push eax
lea eax, [ebp - 0x105]
push eax
call fcn.00401112
push eax
call fcn.00406f06
lea eax, [ebp - 0x105]
push eax
call fcn.00406edc
test eax, eax
jne 0x401423
lea eax, [ebp - 0x105]
push eax
push 0x40b981
call fcn.00406f06
push 0x40b981
call fcn.00406edc
test eax, eax
jne 0x401275
lea eax, [ebp - 0x105]
push eax
push 0x40b87f
call fcn.00406f06
lea eax, [ebp - 0x206]
push eax
push 0x40a036
call fcn.00406f06
lea eax, [ebp - 0x212]
push eax
push 0
call fcn.00407928
call fcn.00407688
push 2
call fcn.00407678
mov ecx, eax
add ecx, 3
and esi, 0
jmp 0x4012eb
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x212]
call fcn.00407960
lea eax, [ebp - 0x218]
push eax
push 0x14
call fcn.00407678
add eax, 0x41
push eax
call fcn.0040785c
pop eax
push dword [eax]
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
inc esi
cmp ecx, esi
jge 0x4012aa
lea eax, [ebp - 0x206]
push eax
mov eax, dword [ebp - 0x212]
push eax
call fcn.00406f59
lea eax, [ebp - 0x212]
push eax
push 0x40a042
call fcn.00407928
mov esi, 1
lea eax, [ebp - 0x212]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x212]
call fcn.00407960
lea eax, [ebp - 0x220]
push eax
push 0x14
call fcn.00407678
add eax, 0x41
push eax
call fcn.0040785c
pop eax
push dword [eax]
call fcn.004079c4
pop eax
push dword [eax]
call fcn.00407928
inc esi
cmp esi, 3
jle 0x401318
lea eax, [ebp - 0x206]
push eax
mov eax, dword [ebp - 0x212]
push eax
call fcn.00406f59
lea eax, [ebp - 0x105]
push eax
lea eax, [ebp - 0x206]
push eax
call fcn.00406f59
lea eax, [ebp - 0x105]
push eax
call fcn.004010e3
test al, al
jne 0x4013e7
lea eax, [ebp - 0x105]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x105]
push eax
lea eax, [ebp - 0x206]
push eax
call fcn.00406f59
lea eax, [ebp - 0x105]
push eax
call fcn.004010e3
test al, al
jne 0x4013e7
lea eax, [ebp - 0x105]
push eax
lea eax, [ebp - 0x206]
push eax
call fcn.00406f06
lea eax, [ebp - 0x105]
push eax
call fcn.004010e3
lea eax, [ebp - 0x206]
push eax
lea eax, [ebp - 0x105]
push eax
call fcn.00401112
push eax
call fcn.00406f06
mov eax, dword [0x40b520]
push dword [eax + 0x2c]
lea eax, [ebp - 0x206]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x28]
push 0x40a044
call sub.kernel32.dll_WritePrivateProfileStringA
jmp 0x401440
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401440
lea eax, [ebp - 0x105]
push eax
call fcn.004010e3
lea eax, [ebp - 0x105]
mov dword [ebp - 0x228], eax
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x40146b
push 0x40a047
call fcn.00407f68
ret
Function at 0x401476
Capabilities:
Check os version

Disassembly:
enter 0x7b0, 0
push ebx
push esi
push edi
push 0x40a0b4
push 0x4016f8
call fcn.00407f14
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.00407928
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x4014b6
jmp 0x4016e0
mov eax, dword [ebp - 0x84]
dec eax
jne 0x4015a0
cmp dword [ebp - 0x90], 4
jne 0x401512
cmp word [ebp - 0x88], 0x3b6
jne 0x401512
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a075
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x40159b
cmp dword [ebp - 0x90], 4
jne 0x40155c
cmp dword [ebp - 0x8c], 0xa
jne 0x40155c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x298]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a078
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x40159b
cmp dword [ebp - 0x8c], 0x5a
jne 0x40159b
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x39c]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a07b
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x4016e0
dec eax
jne 0x4016be
cmp dword [ebp - 0x90], 3
jne 0x4015eb
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x4a0]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a07e
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x4016bc
cmp dword [ebp - 0x90], 4
jne 0x40162f
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x5a4]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a086
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x4016bc
cmp dword [ebp - 0x90], 5
jne 0x4016bc
cmp dword [ebp - 0x8c], 0
jne 0x40167d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6a8]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a08d
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x4016bc
cmp dword [ebp - 0x8c], 1
jne 0x4016bc
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0x7ac]
push eax
mov eax, dword [0x40b520]
push dword [eax + 0x38]
call fcn.00406fc2
push 0x40a092
call fcn.00407744
call fcn.00407874
pop eax
push dword [eax]
call fcn.00407928
jmp 0x4016e0
inc eax
inc eax
jne 0x4016d2
mov eax, dword [ebp + 8]
push eax
push 0x40a09d
call fcn.00407928
jmp 0x4016e0
mov eax, dword [ebp + 8]
push eax
push 0x40a0ac
call fcn.00407928
xor eax, eax
pop dword fs:[eax]
add esp, 8
push 0x4016ff
push 0x40a0b4
call fcn.00407f68
ret