joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415825
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x497510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [0x49e404]
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, dword [edi + 8]
call ebp
lea ecx, [esp + 0x1c]
call fcn.0040a2e5
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.0040a2e5
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
shr eax, 0x10
inc eax
cmp ecx, ebx
mov byte [esp + 0x30], 1
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
je 0x415892
push eax
push 1
push 0x400
push ecx
call dword [0x49e768]
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x6c]
push eax
call fcn.004096f5
mov edx, dword [esi + 0x6c]
cmp dword [edx + 0x48], ebx
je 0x415980
push ebx
push ebx
mov ecx, esi
call fcn.00419b55
test eax, eax
je 0x415980
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x70]
push eax
call fcn.004096f5
mov edx, dword [esi + 0x70]
cmp dword [edx + 0x48], ebx
je 0x415980
push ebx
push ebx
mov ecx, esi
call fcn.00419b55
test eax, eax
je 0x415980
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 4]
add ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x415922
push edx
push 1
push 0x400
push eax
call dword [0x49e768]
call ebp
mov ecx, esi
call fcn.00416a95
mov ecx, esi
call 0x4181a5
push ebx
push ebx
mov ecx, esi
call fcn.00419b55
test eax, eax
je 0x415980
mov ecx, dword [esi + 0x6c]
mov eax, 0x51eb851f
mov ecx, dword [ecx + 4]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x41596c
push edx
push 1
push 0x400
push eax
call dword [0x49e768]
call ebp
mov ecx, esi
call fcn.00415f15
call ebp
mov ecx, esi
call fcn.00416ce5
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00476811
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00476811
cmp dword [edi + 0xc], ebx
je 0x4159b9
mov edi, dword [edi + 0x10]
cmp edi, ebx
je 0x4159b9
push ebx
push 1
push 0x111
push edi
call dword [0x49e6bc]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x42b304
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1d0
push ebx
mov ebx, ecx
push ebp
Function at 0x42cca3
Capabilities:
Get number of processors

Disassembly:
mov dword [0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xd8]
push eax
call fcn.0042a384
mov edi, dword [esi + 0x14c]
xor ebp, ebp
cmp edi, ebp
mov ebx, eax
mov dword [esp + 0x14], edi
je 0x42ce0f
cmp dword [esi + 0x1c], ebp
je 0x42ce0f
push esi
lea ecx, [esp + 0x30]
call fcn.0047abd9
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xd8]
mov dword [esp + 0x48], ebp
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*4]
push ecx
lea ecx, [esp + 0x30]
call fcn.0047a487
mov dword [esp + 0x18], eax
xor eax, eax
cmp edi, ebp
mov dword [esp + 0x10], eax
jle 0x42cdb8
mov edx, dword [esi + 0x148]
mov ecx, dword [edx + eax*4]
cmp ecx, 4
jle 0x42cd9d
mov eax, dword [esi + 0x134]
lea eax, [eax + ebp + 0x3c]
mov al, byte [eax]
test al, 2
jne 0x42cd9d
mov dl, al
and dl, 4
neg dl
sbb edx, edx
and edx, 0x10
add edx, 0x14
mov edi, edx
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
cmp edx, 0x14
jle 0x42cd65
test al, 8
jne 0x42cd65
test al, 0x10
je 0x42cd62
or edi, 2
jmp 0x42cd65
or edi, 1
push 0x64
push ecx
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x49e75c]
mov eax, dword [esi + 0x134]
mov edx, dword [esi]
push edi
lea ecx, [eax + ebp + 0x48]
lea eax, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x17c]
cmp eax, ebx
jle 0x42cd9d
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0xcc
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42cd19
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push edx
call fcn.0047a487
mov eax, dword [esi]
mov ecx, esi
lea edi, [ebx + 4]
call dword [eax + 0x11c]
cmp edi, eax
jg 0x42cde3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edi, eax
lea ecx, [esp + 0x2c]
mov dword [esi + 0xac], edi
mov dword [esp + 0x48], 0xffffffff
call fcn.0047ac4b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov eax, dword [esi]
mov ecx, esi
lea edi, [ebx + 4]
call dword [eax + 0x11c]
cmp edi, eax
jle 0x42ce24
mov eax, edi
jmp 0x42ce2e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x42ccae
Capabilities:
Get number of processors

Disassembly:
mov dword [0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xd8]
push eax
call fcn.0042a384
mov edi, dword [esi + 0x14c]
xor ebp, ebp
cmp edi, ebp
mov ebx, eax
mov dword [esp + 0x14], edi
je 0x42ce0f
cmp dword [esi + 0x1c], ebp
je 0x42ce0f
push esi
lea ecx, [esp + 0x30]
call fcn.0047abd9
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xd8]
mov dword [esp + 0x48], ebp
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*4]
push ecx
lea ecx, [esp + 0x30]
call fcn.0047a487
mov dword [esp + 0x18], eax
xor eax, eax
cmp edi, ebp
mov dword [esp + 0x10], eax
jle 0x42cdb8
mov edx, dword [esi + 0x148]
mov ecx, dword [edx + eax*4]
cmp ecx, 4
jle 0x42cd9d
mov eax, dword [esi + 0x134]
lea eax, [eax + ebp + 0x3c]
mov al, byte [eax]
test al, 2
jne 0x42cd9d
mov dl, al
and dl, 4
neg dl
sbb edx, edx
and edx, 0x10
add edx, 0x14
mov edi, edx
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
cmp edx, 0x14
jle 0x42cd65
test al, 8
jne 0x42cd65
test al, 0x10
je 0x42cd62
or edi, 2
jmp 0x42cd65
or edi, 1
push 0x64
push ecx
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x49e75c]
mov eax, dword [esi + 0x134]
mov edx, dword [esi]
push edi
lea ecx, [eax + ebp + 0x48]
lea eax, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x17c]
cmp eax, ebx
jle 0x42cd9d
mov ebx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0xcc
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x42cd19
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push edx
call fcn.0047a487
mov eax, dword [esi]
mov ecx, esi
lea edi, [ebx + 4]
call dword [eax + 0x11c]
cmp edi, eax
jg 0x42cde3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edi, eax
lea ecx, [esp + 0x2c]
mov dword [esi + 0xac], edi
mov dword [esp + 0x48], 0xffffffff
call fcn.0047ac4b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov eax, dword [esi]
mov ecx, esi
lea edi, [ebx + 4]
call dword [eax + 0x11c]
cmp edi, eax
jle 0x42ce24
mov eax, edi
jmp 0x42ce2e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xac], eax
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x4444a3
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4995df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4bf20c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
push 0x200
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.00476beb
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push 0x1ff
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
call dword [0x49e23c]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00476c3a
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004765a4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0047682f
sti
and al, byte [ebx]
add byte [ebx - 0x74f3dbb4], cl
invalid
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x449998
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x499bf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4a578c
mov dword [esp + 0x1c], 8
call fcn.00449ae8
mov edi, dword [esi + 0xe4]
xor ebx, ebx
cmp edi, ebx
je 0x449a00
mov eax, dword [edi + 0x14]
cmp edi, ebx
mov dword [esi + 0xe4], eax
je 0x4499f6
lea ecx, [edi + 4]
call fcn.00476834
push edi
call fcn.00476dcd
add esp, 4
mov edi, dword [esi + 0xe4]
cmp edi, ebx
jne 0x4499d8
lea ecx, [esi + 0xdc]
mov dword [esp + 0x10], ecx
mov dword [ecx], 0x4a890c
mov byte [esp + 0x1c], 9
call fcn.0047ae38
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1c], 6
call fcn.0047121f
lea edi, [esi + 0x8c]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4a57bc
mov edx, dword [edi + 4]
mov byte [esp + 0x1c], 0xa
cmp edx, ebx
je 0x449a65
mov eax, dword [edi + 8]
cmp eax, ebx
jbe 0x449a65
push ebp
mov ecx, edx
mov ebp, eax
mov eax, dword [ecx]
cmp eax, ebx
je 0x449a5e
mov eax, dword [eax]
cmp eax, ebx
jne 0x449a58
add ecx, 4
dec ebp
jne 0x449a52
pop ebp
push edx
call fcn.00476dcd
mov ecx, dword [edi + 0x14]
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
call fcn.00470ee7
lea ecx, [esi + 0x70]
mov dword [edi + 0x14], ebx
mov byte [esp + 0x1c], 4
call fcn.004718e1
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 3
call fcn.004718e1
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 2
call fcn.004718e1
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.0046fe82
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], bl
call fcn.00470ddc
mov ecx, esi
call fcn.00449528
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45ae10
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [esi], eax
mov ecx, dword [ebx + 4]
mov dword [ecx + ebp*4], esi
mov dx, word [esp + 0x30]
mov al, 1
mov word [esi + 0xc], dx
mov dword [esi + 0xc], edx
Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d2b
cmp byte [esi + ebx - 1], 0xa
je 0x401cff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401df0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x10003540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029787
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1003b0ac]
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 esi, ecx
cmp dword [esi + 0x9c], 8
lea eax, [esi + 0x88]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x1000358d
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x100036d6
xor eax, eax
mov dword [ebp - 0x814], 7
push eax
push 0x1002b428
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
call fcn.10002b40
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10015420
push edi
lea eax, [ebp - 0x810]
push 0x1002b44c
push eax
call fcn.10002d60
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [esi + 5], 0
mov ecx, esi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x10003625
call fcn.100033b0
mov esi, eax
jmp 0x1000362c
call fcn.10003510
mov esi, eax
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x10003679
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x10003654
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10002c40
xor eax, eax
mov dword [ebp - 0x814], 7
push esi
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], eax
mov word [ebp - 0x828], ax
call fcn.10002660
mov eax, dword [ebp - 0x82c]
cmp eax, 8
jb 0x10003697
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.10002c40
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.100174e7
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x100036d4
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10002c40
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.100125ea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003700
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100297d2
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x1003b0ac]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
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.10015420
lea eax, [edi + 0x88]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10003783
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
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 0x100037c9
mov eax, dword [esi]
jmp 0x100037cb
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x100037f1
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100037e2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.10002b40
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x1000381b
mov eax, dword [esi]
jmp 0x1000381d
mov eax, esi
mov ecx, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10003846
test dx, dx
je 0x10003842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10003846
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003820
xor eax, eax
jmp 0x1000384b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100038b2
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x10003887
call fcn.100033b0
push eax
mov ecx, esi
call fcn.100025b0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x100038b2
inc ecx
push ecx
jmp 0x100038a1
call fcn.10003510
push eax
mov ecx, esi
call fcn.100025b0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x100038b2
inc eax
push eax
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10002c40
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.100125ea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x1003b0ac]
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.10015420
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10004bd7
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x1002b4e4
push eax
call fcn.10002d60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004c11
lea eax, [ebp - 0x20c]
push eax
call fcn.10009e80
add esp, 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10015420
push str.Use.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.10002d60
add esp, 0x1c
cmp word [ebp - 0x414], 0
jne 0x10004c52
xor ecx, ecx
jmp 0x10004c6f
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004c60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [esi + 0x88]
call fcn.10002b40
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.10015420
push str.UseCache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.10002d60
add esp, 0x1c
cmp word [ebp - 0x61c], 0
jne 0x10004cc3
xor ecx, ecx
jmp 0x10004cdf
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004cd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x61c]
push eax
lea ecx, [esi + 0xa0]
call fcn.10002b40
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.10015420
lea eax, [ebp - 0xa44]
push str.XYZPath
push eax
call fcn.1000a2d0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10004d21
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x1002b52c
push eax
call fcn.10002d60
mov eax, dword [ebp - 0xa30]
add esp, 0xc
cmp eax, 8
jb 0x10004d54
inc eax
lea ecx, [ebp - 0xa44]
push eax
push dword [ebp - 0xa44]
call fcn.10002c40
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004d74
lea eax, [ebp - 0x824]
push eax
call fcn.10009e80
add esp, 4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.10015420
push str.UseCache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.10002d60
add esp, 0x1c
cmp word [ebp - 0xa2c], 0
jne 0x10004db5
xor ecx, ecx
jmp 0x10004dcf
lea ecx, [ebp - 0xa2c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004dc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [esi + 0xb8]
call fcn.10002b40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100125ea
mov esp, ebp
pop ebp
ret
Function at 0x10009b10
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10012620
mov eax, dword [0x1003b0ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
call fcn.10019aef
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.1001a213
add esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.100099c0
add esp, 0x28
xor edi, edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
push 0x1002b8b4
push ebx
cmovne edi, ecx
call fcn.10019f72
mov esi, eax
add esp, 8
test esi, esi
je 0x10009c40
test edi, edi
jne 0x10009bd6
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.10016a00
add esp, 0x10
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009be0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.10016a00
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.10016a00
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.10016a00
push esi
call fcn.10016748
add esp, 0x34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100125ea
mov esp, ebp
pop ebp
ret

Function at 0x10009e80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10009e90
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001264d
add esp, 4
mov ebx, eax
sub eax, esi
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x10009ec0
xor esi, esi
mov dword [ebp + 8], 1
test edi, edi
js 0x10009f19
nop dword [eax]
cmp word [ebx + esi*2], 0x5c
jne 0x10009f0d
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009f04
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10009f2a
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x10009ee0
mov dword [ebp + 8], 1
push ebx
call fcn.100125e5
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
mov dword [ebp + 8], 0
call fcn.100125e5
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret