Function at 0x101721b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10321cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x1041a064
lea edx, [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.1002c8a0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 4
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.1002bbf0
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x70]
movq qword [ebp - 0x88], xmm1
movq qword [ebp - 0x60], xmm1
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x70], xmm0
cmp esi, eax
je 0x10171fa8
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x10171f85
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10171f6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171fd4
mov eax, edx
push ecx
push eax
call fcn.102bb95a
movups xmm0, xmmword [ebp - 0x20]
add esp, 8
movq xmm1, qword [ebp - 0x88]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov ecx, 7
movups xmmword [esi], xmm0
mov word [ebp - 0x70], ax
movq qword [esi + 0x10], xmm1
jmp 0x10171fab
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x10171fe4
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10171fda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10171fda
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.1002c340
mov dword [esi + 0x24], 0
cmp byte [0x104b1950], 0
jne 0x101720ec
mov edi, dword [0x104b195c]
mov edx, edi
mov eax, dword [0x104b1958]
xor edx, 0xd28f2c5
xor eax, 0x1de26cd5
mov byte [0x104b1950], 1
mov dword [ebp - 0x74], eax
mov ecx, edx
shld ecx, eax, 0xd
mov esi, dword [ebp - 0x74]
shl eax, 0xd
xor edx, ecx
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
xor esi, eax
shr ecx, 7
xor edx, ecx
mov dword [ebp - 0x74], esi
mov ecx, esi
mov eax, ecx
shld edx, eax, 0x11
mov edx, edi
xor edi, 0xd28f2c5
shl eax, 0x11
xor edx, 0xd28f2c5
xor al, cl
mov ecx, edx
xor byte [0x104b1951], al
mov eax, dword [0x104b1958]
xor eax, 0x1de26cd4
mov dword [ebp - 0x74], eax
mov esi, dword [ebp - 0x74]
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor esi, eax
mov ecx, edx
mov eax, esi
shrd eax, ecx, 7
xor esi, eax
shr ecx, 7
xor edx, ecx
mov dword [ebp - 0x74], esi
mov ecx, esi
mov dword [ebp - 0x84], edx
mov eax, ecx
shld edx, eax, 0x11
mov edx, dword [0x104b1958]
shl eax, 0x11
xor edx, 0x1de26cd7
xor al, cl
mov ecx, edi
xor byte [0x104b1952], al
mov eax, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edi, ecx
xor edx, eax
mov ecx, edi
mov eax, edx
shrd eax, ecx, 7
xor edx, eax
shr ecx, 7
xor edi, ecx
mov eax, edx
shld edi, eax, 0x11
shl eax, 0x11
xor al, dl
xor byte [0x104b1953], al
push ecx
push 0x104b1953
push 0x104b1951
lea ecx, [ebp - 0x58]
call fcn.1001a620
mov byte [ebp - 4], 5
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
cmovae edx, dword [ebp - 0x58]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10172128
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1001a920
mov byte [ebp - 4], 6
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov esi, 7
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x14], esi
test eax, eax
je 0x10172653
or edx, 0xffffffff
nop dword [eax + eax]
mov ecx, edi
inc edx
inc edi
mov dword [ebp - 0x7c], edx
cmp eax, ecx
jbe 0x10172852
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
setae byte [ebp - 0x76]
mov al, byte [ecx + eax]
mov byte [ebp - 0x75], al
movzx eax, al
shr eax, 4
cmp eax, 0xe
ja case.0x101721aa.8
movzx eax, byte [eax + 0x10172868]
jmp dword [eax*4 + 0x10172858]
cmp dword [ebp - 0x30], edx
jbe 0x10172852
cmp byte [ebp - 0x76], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
cmovne eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], ecx
movsx ax, byte [eax + edx]
movzx eax, ax
mov dword [ebp - 0x90], eax
cmp ecx, esi
jae 0x10172206
lea eax, [ecx + 1]
cmp esi, 8
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx*2], si
xor esi, esi
mov word [eax + ecx*2 + 2], si
jmp 0x10172645
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x1017284d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x84], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x10172233
mov ecx, 0x7ffffffe
jmp 0x10172251
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x10172249
mov ecx, 0x7ffffffe
jmp 0x10172251
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x74], ecx
push eax
call fcn.1002ce60
mov ecx, dword [ebp - 0x74]
mov edx, eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x8c]
add ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x80], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x8c], eax
cmp esi, 8
jb 0x101722e7
mov eax, dword [ebp - 0x28]
push eax
push edx
mov dword [ebp - 0x74], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
lea esi, [esi*2 + 2]
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x74]
cmp esi, 0x1000
jb 0x101722d5
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10172737
mov eax, ecx
push esi
push eax
call fcn.102bb95a
mov eax, dword [ebp - 0x80]
add esp, 8
jmp 0x1017263f
lea eax, [ebp - 0x28]
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x90]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x80]
jmp 0x1017263f
mov eax, edi
inc edx
inc edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x30], eax
jbe 0x10172852
cmp byte [ebp - 0x76], 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x84]
cmovne eax, dword [ebp - 0x40]
mov al, byte [eax + ecx]
mov ah, byte [ebp - 0x75]
and al, 0x3f
and ah, 0x1f
movzx ecx, ah
shl cx, 6
movzx eax, al
or cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x8c], ecx
cmp ecx, esi
jae 0x10172386
lea eax, [ecx + 1]
cmp esi, 8
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx*2], si
xor esi, esi
mov word [eax + ecx*2 + 2], si
jmp 0x10172645
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x1017284d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x80], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x101723b0
mov ecx, 0x7ffffffe
jmp 0x101723ce
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x101723c6
mov ecx, 0x7ffffffe
jmp 0x101723ce
lea eax, [edx + esi]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x90], ecx
push eax
call fcn.1002ce60
mov ecx, dword [ebp - 0x90]
mov edx, eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x8c]
add ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x84], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x8c], eax
cmp esi, 8
jb 0x1017246a
mov eax, dword [ebp - 0x28]
push eax
push edx
mov dword [ebp - 0x80], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
lea esi, [esi*2 + 2]
mov ecx, dword [ebp - 0x74]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x80]
cmp esi, 0x1000
jb 0x10172455
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10172737
mov eax, ecx
push esi
push eax
call fcn.102bb95a
mov eax, dword [ebp - 0x84]
add esp, 8
jmp 0x1017263f
lea eax, [ebp - 0x28]
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov ecx, dword [ebp - 0x74]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x84]
jmp 0x1017263f
mov ecx, dword [ebp - 0x30]
mov eax, edi
mov dword [ebp - 0x84], eax
cmp ecx, eax
jbe 0x10172852
cmp byte [ebp - 0x76], 0
lea eax, [ebp - 0x40]
mov edx, edi
cmovne eax, dword [ebp - 0x40]
add dword [ebp - 0x7c], 2
mov al, byte [eax + edx]
mov byte [ebp - 0x91], al
lea eax, [edi + 1]
add edi, 2
mov dword [ebp - 0x84], eax
cmp ecx, eax
jbe 0x10172852
cmp byte [ebp - 0x76], 0
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x84]
cmovne eax, dword [ebp - 0x40]
mov dl, byte [eax + edx]
mov al, byte [ebp - 0x91]
and dl, 0x3f
and al, 0x3f
movzx ecx, al
movzx eax, byte [ebp - 0x75]
shl ax, 6
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
movzx edx, cx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x80], ecx
cmp ecx, esi
jae 0x1017253f
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x10172642
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x1017284d
lea eax, [ecx + 1]
mov ecx, eax
mov dword [ebp - 0x84], eax
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x1017256c
mov ecx, 0x7ffffffe
jmp 0x1017258a
mov edx, esi
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x10172582
mov ecx, 0x7ffffffe
jmp 0x1017258a
lea eax, [esi + edx]
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x90], ecx
push eax
call fcn.1002ce60
mov ecx, dword [ebp - 0x90]
mov edx, eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x80]
add ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x80], eax
cmp esi, 8
jb 0x1017261d
mov eax, dword [ebp - 0x28]
push eax
push edx
mov dword [ebp - 0x84], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
lea esi, [esi*2 + 2]
mov ecx, dword [ebp - 0x8c]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x84]
cmp esi, 0x1000
jb 0x10172611
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10172737
mov eax, ecx
push esi
push eax
call fcn.102bb95a
add esp, 8
jmp 0x1017263c
lea eax, [ebp - 0x28]
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp edi, eax
jb 0x10172170
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x98]
cmp esi, 8
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x10172671
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ecx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp ecx, 8
jb 0x101726bb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x101726b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10172737
push ecx
push edx
call fcn.102bb95a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 0x10
jb 0x1017270d
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x40]
mov edx, eax
cmp ecx, 0x1000
jb 0x10172703
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x84], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10172737
mov eax, dword [ebp - 0x84]
push ecx
push eax
call fcn.102bb95a
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x10172747
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1017273d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1017273d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
test esi, esi
je 0x1017281e
push 2
push 0
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
call esi
push dword [ebp - 0x7c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 0x10
mov dword [ebp - 0x74], eax
lea ecx, [edi + 0x18]
push eax
call fcn.1006bb40
push 0
push 0
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
mov esi, dword [ebp - 0x74]
push esi
push 1
push dword [edi + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [edi + 0x18]
xor edx, edx
add esp, 0x1c
mov byte [ebp - 0x75], 0
mov dword [ebp - 0x84], edx
test esi, esi
jle 0x101727f1
mov edi, eax
nop word [eax + eax]
lea esi, [edx + edi]
mov eax, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x84]
mov ecx, edx
sub ecx, eax
mov al, byte [ebp - 0x74]
sub al, dl
inc edx
mov dword [ebp - 0x84], edx
xor al, byte [ecx + 0x1040bf9c]
xor al, byte [esi]
add al, byte [ebp - 0x75]
mov byte [esi], al
mov byte [ebp - 0x75], al
cmp edx, dword [ebp - 0x74]
jl 0x101727b0
mov edi, dword [ebp - 0x98]
push dword [ebp - 0x7c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [edi + 0x18]
add esp, 4
mov ecx, dword [ebp - 0x74]
cmp dword [ecx + eax - 4], 0x43464700
jne 0x10172813
lea eax, [ecx - 4]
mov dword [edi + 0x24], eax
push dword [edi + 0x24]
lea ecx, [edi + 0x18]
call fcn.1006bb40
lea ecx, [ebp + 8]
call fcn.1002c340
lea ecx, [ebp + 0x20]
call fcn.1002c340
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret 0x30
call fcn.10014bf0
call fcn.1002c680
nop
mov cl, 0x21
pop ss
adc byte [ecx], dl
and edx, dword [edi]
adc byte [esp + 0x26481017], dl
pop ss
adc byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ecx]
add dword [edx], eax
int3