joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40302b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403064
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403060
jmp 0x403050
cmp esi, eax
jae 0x403064
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403050
cmp esi, eax
jb 0x40306b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4052b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57de59
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4052fa
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, eax
cmp edi, ebx
je 0x40539a
push 0x20a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x40539a
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push ebx
push esi
call fcn.00553a60
add esp, 0xc
push 1
push 0x23
push esi
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x40537e
lea edi, [ebp - 0x10]
mov ecx, 0x105
mov edx, esi
call fcn.00405880
cmp eax, ebx
jge 0x405373
xor ecx, ecx
jmp 0x405376
mov ecx, dword [ebp - 0x10]
cmp eax, ebx
jne 0x405387
cmp ecx, ebx
je 0x405387
mov ecx, dword [ebp + 8]
push esi
call fcn.004032d0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x40539a
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
je 0x4053b2
push 0xc
push str.EPSONPRIUS
mov ecx, esi
call fcn.00405900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x10c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x40a8f3
push eax
call fcn.004533aa
add esp, 4
mov dword [esi + 0x10c], ebx
push esi
push 0x40a960
mov dword [esi + 0x114], ebx
mov dword [esi + 0x110], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi + 0x110]
xor eax, eax
test ecx, ecx
jle 0x40a935
test eax, eax
jl 0x40a951
cmp eax, ecx
jge 0x40a951
mov edx, dword [esi + 0x10c]
mov ebx, dword [ebp + 8]
cmp dword [edx + eax*8], ebx
je 0x40a93e
inc eax
cmp eax, ecx
jl 0x40a917
mov ebx, dword [ebp - 4]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, ecx
jge 0x40a951
mov ecx, edx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00453d3c
int3
Function at 0x4117a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fa58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
xor esi, esi
call edi
xor ecx, ecx
cmp cx, ax
jle 0x411824
push 0x11
call edi
xor edx, edx
cmp dx, ax
jle 0x411824
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x5b44ec
call fcn.00403320
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SOFTWAREEPSONInstallNavi
mov dword [ebp - 4], esi
call fcn.00403320
mov edx, SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
call fcn.00412e80
add esp, 8
cmp eax, 1
lea eax, [esi + 1]
je 0x411826
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c3d9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41188f
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4118c7
push 0x104
mov ecx, esi
call fcn.00403620
mov eax, dword [esi]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4118ed
push ecx
push eax
call fcn.00551122
add esp, 8
test eax, eax
jl 0x411911
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x411911
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004038e0
int3
Function at 0x411920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c3d9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41196f
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4119a7
push 0x104
mov ecx, esi
call fcn.00403620
mov eax, dword [esi]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4119cd
push ecx
push eax
call fcn.00551122
add esp, 8
test eax, eax
jl 0x4119f1
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4119f1
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004038e0
int3
Function at 0x411bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c928
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push str.Exec__s__Pram__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
push 0x44
lea edx, [ebp - 0x74]
push 0
push edx
call fcn.00553a60
mov eax, 1
add esp, 0x18
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], ax
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411c76
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x14]
push str.__s___s
push eax
call fcn.00404130
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0xffffff9c
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0x10
or ecx, eax
jge 0x411cc8
push 0
lea ecx, [ebp - 0x14]
call fcn.00403620
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411d1d
cmp dword [ebp + 0x10], 0
je 0x411d09
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x28]
push ecx
call edi
jmp 0x411d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_create_process__0x_X__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
push str.Exitcode__d_r_n
mov eax, 0x5f38b8
call fcn.004053d0
mov edi, dword [ebp - 0x18]
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57de21
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 2
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x412d00
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x2c], vtable.Registry.0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x20019
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0xc]
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20019
cmp eax, ebx
je 0x412e02
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412e02
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x412e02
cmp eax, 2
jbe 0x412d8b
cmp eax, 7
jne 0x412e02
push 0x5b25a8
lea ecx, [ebp - 0x14]
call fcn.00403320
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0043ff20
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004037d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], vtable.Registry.0
cmp eax, ebx
je 0x412e1a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x24], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov ecx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
xor edi, edi
mov dword [esp + 0x24], vtable.Registry.0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x20019
cmp eax, esi
je 0x412f06
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push esi
push esi
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412f06
mov eax, dword [esp + 0xc]
cmp eax, 4
jb 0x412f06
cmp eax, 5
ja 0x412f06
mov eax, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x14]
call fcn.00440100
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.Registry.0
cmp eax, esi
je 0x412f21
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413490
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x800
push 0x40
mov dword [ebp - 8], 0
mov ebx, 0x400
call edi
mov esi, eax
test esi, esi
je 0x413506
lea ebx, [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push esi
call fcn.00553a60
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add esp, 0xc
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebx - 2]
mov dword [ebp - 0xc], eax
cmp ecx, eax
jne 0x41350f
push esi
add ebx, 0x400
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebx + ebx]
push edx
push 0x40
call edi
mov esi, eax
test esi, esi
jne 0x4134c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x413523
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
push eax
push 0x40
call edi
mov edi, eax
test edi, edi
je 0x413513
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.00553a60
add esp, 0xc
cmp dword [ebp - 0xc], 0
jle 0x4135c6
mov eax, esi
lea esp, [esp]
cmp word [eax], 0
jne 0x413560
inc dword [ebp - 8]
cmp word [eax + 2], 0
je 0x413565
add eax, 2
jmp 0x413550
cmp dword [ebp - 8], 0
jle 0x4135c6
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 4]
cmp word [ecx], 0
jne 0x4135c0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0
push edi
call fcn.00553a60
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
sub edx, eax
sar edx, 1
inc edx
push edx
push eax
push ebx
push edi
call fcn.00552c34
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [ecx + 8]
add esp, 0x1c
push edi
add eax, 2
push edx
mov dword [ebp - 0xc], eax
call fcn.004651ff
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x4135c6
add dword [ebp - 4], 2
jmp 0x413571
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 8]
je 0x4135e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4135f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c329
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
push 0x5b25a8
call fcn.00403320
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
cmp ebx, esi
je 0x41366e
push 0x208
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, esi
je 0x41370c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
push esi
push edi
call fcn.00553a60
add esp, 0xc
cmp edi, esi
je 0x41370c
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
cmp ebx, esi
je 0x413690
cmp ebx, 0x104
jbe 0x4136d9
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, esi
je 0x4136a3
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, esi
je 0x41370c
lea esi, [ebx + 1]
lea ebx, [esi + esi]
call fcn.0040b160
mov edi, eax
test edi, edi
je 0x41370c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4136c8
cmp eax, esi
jbe 0x4136d7
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x41370c
push edi
push 0
jmp 0x413705
xor esi, esi
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4136e0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004036a0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, esi
je 0x41370c
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
call fcn.00414b80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413730
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cdd9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5eb6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413780
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
mov edi, 0x400
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413864
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov ebx, dword [ebp + 0xc]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4137e4
push edi
lea ecx, [ebp - 0x10]
call fcn.00403620
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push edi
push esi
push 0x5b25a8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00551122
add esp, 8
test eax, eax
jl 0x413919
cmp eax, dword [esi - 8]
jg 0x413919
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [edi - 1]
lea edx, [eax - 1]
cmp ebx, edx
je 0x413831
cmp ebx, eax
jne 0x41386e
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413851
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x400
call fcn.00453e50
test eax, eax
jne 0x4137b1
push 0x80004005
call fcn.004038e0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.004037d0
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41389c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004038e0
int3
Function at 0x413db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [eax]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x413dcd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413dcd
test al, 0x10
lea eax, [esi + 1]
je 0x413dcf
mov eax, esi
pop esi
ret

Function at 0x413de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [eax]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x413dfd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413dfd
test al, 0x10
lea eax, [esi + 1]
jne 0x413dff
mov eax, esi
pop esi
ret