joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100920e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
or eax, 0xffffffff
push edi
mov edi, ecx
cmp ebx, 8
jb 0x1009218a
mov ecx, ebx
shr ecx, 3
mov dword [ebp - 4], ecx
push esi
nop
mov ecx, eax
sub ebx, 8
shr ecx, 0x10
movzx esi, cl
movzx ecx, byte [edi + 2]
xor esi, ecx
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, byte [edi + 1]
mov esi, dword [esi*4 + 0x10189ac0]
xor edx, ecx
mov ecx, eax
shr ecx, 0x18
xor esi, dword [edx*4 + 0x101885b8]
movzx edx, byte [edi + 3]
xor edx, ecx
movzx ecx, al
movzx eax, byte [edi]
xor ecx, eax
movzx eax, byte [edi + 7]
xor esi, dword [edx*4 + 0x101892c0]
xor esi, dword [ecx*4 + 0x10188a30]
xor esi, dword [eax*4 + 0x10189f88]
movzx eax, byte [edi + 6]
xor esi, dword [eax*4 + 0x10188e30]
movzx eax, byte [edi + 5]
xor esi, dword [eax*4 + 0x1018a388]
movzx eax, byte [edi + 4]
add edi, 8
xor esi, dword [eax*4 + 0x101896c0]
sub dword [ebp - 4], 1
mov eax, esi
jne 0x10092100
pop esi
test ebx, ebx
je 0x100921aa
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10189f88]
sub ebx, 1
jne 0x10092190
pop edi
not eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100967f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x20
push esi
mov esi, ecx
je 0x10096804
mov eax, 0x61
pop esi
pop ebp
ret
mov dword [esi + 0x90], 1
movzx ecx, byte [edx]
shl ecx, 8
movzx eax, byte [edx + 1]
add ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x94], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
movzx eax, byte [edx + 5]
add ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x98], ecx
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x9c], ecx
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa0], ecx
movzx ecx, byte [edx + 0x10]
movzx eax, byte [edx + 0x11]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x12]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x13]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa4], ecx
movzx ecx, byte [edx + 0x14]
movzx eax, byte [edx + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x17]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xa8], ecx
movzx ecx, byte [edx + 0x18]
movzx eax, byte [edx + 0x19]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1b]
shl ecx, 8
add ecx, eax
mov dword [esi + 0xac], ecx
movzx ecx, byte [edx + 0x1c]
movzx eax, byte [edx + 0x1d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x1f]
shl ecx, 8
add ecx, eax
xor eax, eax
mov dword [esi + 0xb0], ecx
pop esi
pop ebp
ret
Function at 0x10099ed0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x10099eec
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10099f08
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10099ef7
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push esi
push edx
push eax
mov ecx, ebx
call fcn.1001dad0
mov edx, dword [eax + 4]
test edx, edx
je 0x10099f72
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, esi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x10099f47
cmp eax, edx
jne 0x10099f3f
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x10099f4f
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x10099f4f
cmp eax, edx
jne 0x10099f4f
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [ebx + 8]
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.1001e2b0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100a8c70
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x103ad010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x28], esi
cmp edx, 0x20
ja case.0x100a8c95.3
movzx eax, byte [edx + 0x100a8da8]
jmp dword [eax*4 + 0x100a8d88]
push 7
push str.Mouse_1
jmp 0x100a8d5b
push 7
push str.Mouse_2
jmp 0x100a8d5b
push 7
push str.Mouse_3
jmp 0x100a8d5b
push 7
push str.Mouse_4
jmp 0x100a8d5b
push 7
push str.Mouse_5
jmp 0x100a8d5b
push 5
push str.Space
jmp 0x100a8d5b
push 4
push str.None
jmp 0x100a8d5b
xor eax, eax
push 0x10
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
vpxor xmm0, xmm0, xmm0
push 0
push edx
vmovdqu xmmword [ebp - 0x22], xmm0
vmovq qword [ebp - 0x12], xmm0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je 0x100a8d52
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
lea ecx, [ebp - 0x24]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a8d40
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
mov ecx, esi
jmp 0x100a8d71
push 7
push str.Unknown
mov ecx, esi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.10019730
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100bb27a
mov esp, ebp
pop ebp
ret
Function at 0x100b2310
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x103ad010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100b240a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100b2403
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100b23e9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100b23e9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100b23e9
mov edx, dword [esi]
test edx, edx
jne 0x100b23b2
push 0x200
push edx
push dword [0x103d1578]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100b2403
jmp 0x100b23dd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100b23dd
shl eax, 3
push eax
push edx
push 0
push dword [0x103d1578]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100b2403
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100b2371
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100b244f
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100b244f
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100b2449
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.100b21a0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100b2416
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bb27a
mov esp, ebp
pop ebp
ret
Function at 0x100b2460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x103ad010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x103d4470]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100b24c1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb27a
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100b24e2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100b2503
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100b2503
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100b24fd
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100b2503
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bb27a
mov esp, ebp
pop ebp
ret
Function at 0x100b2560
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x103d4478]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x100b2651
mov eax, dword [0x103d4470]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x100b25a5
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x100b2588
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100b2651
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100b2310
mov ecx, dword [0x103d4478]
add esp, 4
cmp esi, ecx
jae 0x100b2605
imul edi, esi, 0x2c
mov eax, dword [0x103d4470]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100b25fa
mov edx, ebx
mov ecx, esi
call fcn.100b2460
mov dword [ebp - 4], eax
test eax, eax
jne 0x100b2602
mov ecx, dword [0x103d4478]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100b25d1
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100b2651
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100b2642
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100b2636
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100b2615
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x103d1578]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100bb00c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100bafe8
pop esi
leave
ret 8
Function at 0x1010e1fc
Capabilities:
Get file size
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword [str.KERNEL32.DLL]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [0x101631c4]
sub esp, 4
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov ecx, dword [0x101631c4]
sub esp, 0xc
mov edi, eax
lea edx, [eax + ecx]
test ecx, ecx
je 0x1010e286
lea esi, [esi]
mov byte [eax], 0
add eax, 1
cmp eax, edx
jne 0x1010e27c
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [str.recti.xml]
sub esp, 0xc
cmp word [edi], 0
je 0x1010e70c
xor edx, edx
jmp 0x1010e2be
mov edx, eax
lea eax, [edx + 1]
cmp word [edi + eax*2], 0
jne 0x1010e2bc
add edx, edx
cmp word [edi + edx], 0x5c
je 0x1010e2e2
xor edx, edx
mov word [edi + eax*2], dx
sub eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x1010e2d1
movsx dx, byte [ecx]
lea eax, [edi + eax*2]
add ecx, 1
test dl, dl
je 0x1010e301
mov word [eax], dx
movsx dx, byte [ecx]
add eax, 2
add ecx, 1
test dl, dl
jne 0x1010e2f0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov edx, 0xfffffffe
xor eax, eax
jmp 0x1010e2ca
Function at 0x10001930
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040621
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x10058074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xa0], 8
lea eax, [edi + 0x8c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x1000197d
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x10001abb
xor eax, eax
mov dword [ebp - 0x814], 7
push eax
push 0x100432d0
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.10004960
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1002ad90
push esi
lea eax, [ebp - 0x810]
push 0x1004349c
push eax
call fcn.10004cb0
add esp, 0x18
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
call fcn.10001900
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x10001a5e
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x10001a35
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10004ab0
xor eax, eax
mov dword [ebp - 0x814], 7
push esi
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.10004020
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x10001a7c
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.10004ab0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.1002cef5
mov ecx, dword [ebp - 0x814]
add esp, 4
mov esi, eax
cmp ecx, 8
jb 0x10001ab9
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10004ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001212b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001ae0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040678
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x10058074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x830], ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], 0
call fcn.1002ad90
mov eax, dword [ebp - 0x830]
add esp, 0xc
add eax, 0x8c
cmp dword [eax + 0x14], 8
jb 0x10001b66
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x82c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10001ba7
mov eax, dword [esi]
jmp 0x10001ba9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x10001bcf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001bc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.10004960
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x10001bf9
mov eax, dword [esi]
jmp 0x10001bfb
mov eax, esi
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10001c26
test dx, dx
je 0x10001c22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10001c26
add eax, 4
add ecx, 4
test dx, dx
jne 0x10001c00
xor eax, eax
jmp 0x10001c2b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001ca7
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x828]
push edi
push dword [ebp - 0x82c]
push ebx
push eax
call fcn.10001900
mov edi, eax
cmp esi, edi
je 0x10001c89
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10001c62
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10004ab0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10001c7a
mov eax, dword [esi]
jmp 0x10001c7c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.10004020
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x10001ca7
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10004ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001212b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002f10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x10058074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1002ad90
lea eax, [esi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10002f47
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x100433d0
push eax
call fcn.10004cb0
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002f81
lea eax, [ebp - 0x20c]
push eax
call fcn.10005190
add esp, 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1002ad90
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.10004cb0
add esp, 0x1c
cmp word [ebp - 0x414], 0
jne 0x10002fc2
xor ecx, ecx
jmp 0x10002fdf
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002fd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x8c]
call fcn.10004960
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.1002ad90
push str.UseCache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.10004cb0
add esp, 0x1c
cmp word [ebp - 0x61c], 0
jne 0x10003033
xor ecx, ecx
jmp 0x1000304f
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003040
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x61c]
push eax
lea ecx, [esi + 0xa4]
call fcn.10004960
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.1002ad90
lea eax, [ebp - 0xa44]
push str.WSRT
push eax
call fcn.10005690
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10003091
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x10043424
push eax
call fcn.10004cb0
mov eax, dword [ebp - 0xa30]
add esp, 0xc
cmp eax, 8
jb 0x100030c4
inc eax
lea ecx, [ebp - 0xa44]
push eax
push dword [ebp - 0xa44]
call fcn.10004ab0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100030e4
lea eax, [ebp - 0x824]
push eax
call fcn.10005190
add esp, 4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.1002ad90
push str.UseCache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.10004cb0
add esp, 0x1c
cmp word [ebp - 0xa2c], 0
jne 0x10003125
xor ecx, ecx
jmp 0x1000313f
lea ecx, [ebp - 0xa2c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003130
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [esi + 0xbc]
call fcn.10004960
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001212b
mov esp, ebp
pop ebp
ret
Function at 0x10005190
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100051a1
sub ecx, edx
mov edx, 2
sar ecx, 1
mov dword [ebp - 4], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10012190
add esp, 4
mov dword [ebp + 8], eax
sub eax, esi
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x100051d4
call fcn.10010530
test al, al
je 0x1000520d
pop edx
push esi
pop edx
push esi
push ebp
push esp
pop edi
push eax
pop edi
push edx
pop esi
pop esi
push ecx
pop ebx
pop ebx
push ebp
pop esp
push esi
pop ebp
pop eax
pop ecx
push ecx
push eax
pop edi
push esi
pop ebp
push esi
pop ebx
pop ecx
push eax
pop ebp
push edi
call fcn.100105a0
test al, al
je 0x10005227
pop esi
push esp
push ecx
pop edx
push ebp
pop edx
push eax
pop eax
push esp
pop ebx
push ebp
push eax
pop esi
pop eax
pop ebx
push edi
push esp
call fcn.10010a00
test al, al
je 0x10005250
push edx
push esp
pop esp
pop esi
push ebx
pop eax
pop edi
push eax
push ecx
pop esp
pop edi
push edi
pop esp
pop ebp
pop ecx
pop ecx
push eax
push eax
push ecx
pop edi
pop ebp
pop ebp
push esp
pop ebx
push ebp
push eax
push ecx
push ebx
pop ebp
pop esp
pop eax
pop ecx
mov eax, dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 8], ebx
lea esi, [ebx + 1]
test eax, eax
js 0x10005319
mov esi, dword [ebp + 8]
nop word [eax + eax]
cmp word [esi + ebx*2], 0x5c
jne 0x10005308
call fcn.100105a0
test al, al
je 0x100052a1
push eax
pop esi
pop edi
pop esp
push esi
pop edi
pop ecx
pop ebp
push ebx
pop ebp
push ecx
push ecx
push eax
push edi
push ebx
pop esi
pop eax
pop edx
push esi
push esp
push edi
pop ecx
pop ebx
push ecx
pop ebx
push edx
pop edx
pop esp
pop edx
call fcn.10010060
test al, al
je 0x100052c0
push ebp
pop ecx
push esp
pop edx
push ecx
push ebx
push edi
push esp
pop ebx
pop eax
pop edx
pop edx
push ebx
pop esi
pop ecx
push ebx
push esi
pop ecx
push ebx
push edx
push ebp
pop edi
call fcn.10010300
test al, al
je 0x100052da
push edi
pop esp
pop edx
push eax
push edx
pop ebp
push ebx
push esp
push esp
pop esi
pop esp
pop eax
push ebx
push ecx
push esp
push esp
pop ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp - 8]
push esi
movzx edi, word [esi + ebx*2]
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005301
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000532d
mov eax, dword [ebp - 4]
mov word [esi + ebx*2], di
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x10005270
mov esi, 1
push dword [ebp + 8]
call fcn.10012199
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
xor esi, esi
call fcn.10012199
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret