Function at 0x10003200
Capabilities:
Encode data using xor
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ac
mov eax, dword [0x1000e008]
xor eax, esp
mov dword [esp + 0x5a8], eax
cmp dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x30809
mov dword [esp + 0x14], 0xb0e0502
mov dword [esp + 0x1c], 0xf010704
mov dword [esp + 0x20], 0xd060a0c
je 0x1000362c
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1a0]
push 0x104
push eax
call edi
mov ecx, esi
call fcn.10003ca0
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push eax
lea eax, [esp + 0x1a4]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1a0]
push 0x1000ab38
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x100036c8
push dword [esp + 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [esp + 0x3a8]
push 0x104
push eax
call edi
mov ecx, esi
call fcn.10003ca0
push eax
lea eax, [esp + 0x3ac]
push 0x104
push eax
call ebx
add esp, 0xc
mov dword [esp + 0x68], 0
xor eax, eax
mov dword [esp + 0x6c], 7
lea ecx, [esp + 0x3a8]
mov word [esp + 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003300
sub ecx, edx
lea eax, [esp + 0x3a8]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.10001e00
cmp dword [esp + 0x6c], 8
lea edx, [esp + 0x58]
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x58]
cmovae edx, dword [esp + 0x58]
lea ecx, [esp + 0x38]
cmovae edi, dword [esp + 0x58]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
lea ebx, [edx + eax*2]
mov byte [esp + 0x38], 0
mov eax, ebx
sub eax, edi
sar eax, 1
push eax
call fcn.10003940
push dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ebx
push edi
call fcn.10003ae0
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push 0x1000a64c
cmovae eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x10003643
push 0x100
push eax
lea eax, [esp + 0x1a8]
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
xor esi, esi
push dword [esp + 0x34]
call edi
add esp, 4
test eax, eax
jne 0x100033e4
push dword [esp + 0x34]
call ebx
mov byte [esp + esi + 0x1a4], al
add esp, 4
inc esi
cmp esi, 0x10
jl 0x100033c1
lea eax, [esp + 0x1a0]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100033f0
sub eax, edx
cdq
sub eax, edx
xor edx, edx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x10003443
nop word [eax + eax]
movsx ecx, byte [esp + edx + 0x1c]
movzx eax, byte [esp + ecx + 0x1a0]
mov ecx, edx
mov byte [esp + edx + 0x28], al
and ecx, 7
movsx eax, byte [esp + edx + 0x10]
movzx eax, byte [esp + eax + 0x1a0]
xor al, byte [esp + ecx + 0x28]
mov byte [esp + edx + 0xa0], al
inc edx
cmp edx, esi
jl 0x10003410
cmp esi, 0x100
jae 0x100036df
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea eax, [esp + 0xa0]
push 4
push eax
lea eax, [esp + 0x9c]
mov byte [esp + esi + 0xa8], 0
push 0xa
push eax
call edi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0xac], 0
call esi
add esp, 0x14
sub eax, 0x76c
mov dword [esp + 0x84], eax
lea eax, [esp + 0xa4]
push 2
push eax
lea eax, [esp + 0x9c]
push 0xa
push eax
call edi
lea eax, [esp + 0xa4]
mov byte [esp + 0xa6], 0
push eax
call esi
add esp, 0x14
dec eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0xa6]
push 2
push eax
lea eax, [esp + 0x9c]
push 0xa
push eax
call edi
lea eax, [esp + 0xa4]
mov byte [esp + 0xa6], 0
push eax
call esi
add esp, 0x14
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x74], 0
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__mktime64]
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov esi, edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push esi
push edi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fdiv qword [0x1000af20]
add esp, 0x10
fstp qword [esp + 0x10]
movsd xmm1, qword [esp + 0x10]
comisd xmm1, xmmword [0x1000af18]
jb 0x10003643
mov ecx, dword [ebp + 0xc]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jb 0x10003643
mov edx, dword [esp + 0x4c]
cvttsd2si eax, xmm1
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
cmp edx, 0x10
jb 0x100035d9
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100035cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000361c
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
cmp edx, 8
jb 0x1000362c
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10003622
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003622
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jb 0x10003675
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000366b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100036b8
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
cmp edx, 8
jb 0x100036c8
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100036be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100036be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10007d1e
add esp, 8
mov ecx, dword [esp + 0x5b4]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10007cd8
mov esp, ebp
pop ebp
ret
call fcn.10007e56
int3