Function at 0x437e80
Capabilities:
Check if file exists
Delete directory
Delete file
Encode data using xor
Get file attributes
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4736a1
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x328], ecx
mov eax, dword [ebp + 8]
lea edx, [ecx + 2]
xor esi, esi
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], esi
xor eax, eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437ee2
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x328]
lea ecx, [ebp - 0x40]
call fcn.00411b40
mov dword [ebp - 4], 0
test edi, edi
je 0x437f82
cmp word [edi], 0
je 0x437f82
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push edi
cmovae edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x348]
call fcn.004185a0
mov edx, dword [ebp - 0x2c]
add esp, 4
mov esi, 4
cmp edx, 8
jb 0x437f6a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437f60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
movups xmm0, xmmword [ebp - 0x348]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x338]
movq qword [ebp - 0x30], xmm0
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push 0x4c8f50
cmovae edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x88]
call fcn.004185a0
or esi, 8
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x320], esi
push 0x28c
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00452b60
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
cmovae edx, dword [ebp - 0x88]
sub esp, 8
mov esi, esp
mov ecx, edx
mov dword [esi], 0
lea edi, [ecx + 2]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437ff2
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00411b40
lea ecx, [ebp - 0x314]
call fcn.004181b0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2e0], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x4380dc
cmp dword [ebp - 0x304], 0
mov byte [ebp - 0x2e0], 0
setne al
test al, al
jne 0x438133
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x314]
call fcn.004182f0
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x43809f
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438095
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x438867
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43885d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
jmp 0x43885d
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2dc]
call edi
test eax, eax
je 0x438045
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438100
sub ecx, edx
lea eax, [ebp - 0x2ac]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x314]
call fcn.00411b40
mov eax, dword [ebp - 0x2d8]
shr eax, 4
and al, 1
mov byte [ebp - 0x2fc], al
mov esi, dword [ebp - 0x324]
nop dword [eax]
cmp dword [ebp - 0x300], 8
lea ecx, [ebp - 0x314]
cmovae ecx, dword [ebp - 0x314]
cmp dword [ebp - 0x304], 1
jne 0x438174
push 1
mov edx, 0x4c7bc0
call fcn.004146b0
add esp, 4
test eax, eax
je 0x4387de
cmp dword [ebp - 0x300], 8
lea ecx, [ebp - 0x314]
cmovae ecx, dword [ebp - 0x314]
cmp dword [ebp - 0x304], 2
jne 0x4381a8
push 2
mov edx, 0x4c8f54
call fcn.004146b0
add esp, 4
test eax, eax
jne 0x4381a8
mov al, 1
jmp 0x4381aa
xor al, al
test al, al
jne 0x4387de
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x4381fb
cmp word [ecx], 0
je 0x4381fb
cmp dword [ebp - 0x300], 8
lea eax, [ebp - 0x314]
mov edx, ecx
lea ecx, [ebp - 0x348]
cmovae eax, dword [ebp - 0x314]
push eax
call fcn.004185a0
mov ecx, dword [ebp - 0x318]
add esp, 4
or ecx, 0x10
lea eax, [ebp - 0x348]
or ecx, 1
jmp 0x438216
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x360]
call fcn.00411780
mov ecx, dword [ebp - 0x318]
or ecx, 2
mov dword [ebp - 0x58], 0
xor edx, edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x318], ecx
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 4
test cl, 2
je 0x4382cd
mov edx, dword [ebp - 0x34c]
and ecx, 0xfffffffd
mov dword [ebp - 0x318], ecx
cmp edx, 8
jb 0x4382b0
mov ecx, dword [ebp - 0x360]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4382a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
mov ecx, dword [ebp - 0x318]
add esp, 8
xor eax, eax
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 7
mov word [ebp - 0x360], ax
mov byte [ebp - 4], 5
test cl, 1
je 0x43831f
mov edx, dword [ebp - 0x334]
and ecx, 0xfffffffe
mov dword [ebp - 0x318], ecx
cmp edx, 8
jb 0x43831f
mov ecx, dword [ebp - 0x348]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438315
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x328]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004185a0
mov edi, dword [ebp - 0x318]
add esp, 4
or edi, 0x20
mov dword [ebp - 0x318], edi
mov dword [ebp - 0x320], edi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438377
test eax, 0x400
je 0x438377
mov al, 1
jmp 0x438379
xor al, al
cmp byte [ebp - 0x2fc], 0
je 0x4383a5
test al, al
jne 0x4383a5
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov ecx, dword [ebp - 0x328]
cmovae edx, dword [ebp - 0x58]
push esi
call fcn.00437e80
add esp, 4
jmp 0x438748
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
mov byte [ebp - 4], 7
mov ecx, esi
xor eax, eax
mov dword [ebp - 0x28], 0
or edi, 0x80
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x318], edi
mov dword [ebp - 0x320], edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4383e6
sub ecx, edx
xor eax, eax
sar ecx, 1
add ecx, 0x40
setb al
neg eax
or eax, ecx
push eax
push 2
call fcn.00454560
mov edi, eax
add esp, 8
mov edx, edi
sub edx, esi
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [edx + esi - 2], cx
test cx, cx
jne 0x438412
push edi
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438430
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00411b40
push edi
call fcn.004605b8
mov esi, dword [ebp - 0x318]
add esp, 4
and esi, 0xffffff7f
mov dword [ebp - 4], 6
or esi, 0x40
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x320], esi
mov byte [ebp - 4], 8
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x348]
cmovae edx, dword [ebp - 0x28]
call fcn.00418090
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x438503
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4384d1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4384c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x334]
cmp edx, 8
jb 0x438543
mov ecx, dword [ebp - 0x348]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438539
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov edx, 0x811c9dc5
cmovae esi, eax
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x438578
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x438567
mov esi, dword [ebp - 0x324]
lea eax, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x368]
mov ecx, esi
push eax
call fcn.004149a0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x438641
cmp ecx, dword [esi + 4]
sete byte [ebp - 0x319]
je 0x438648
mov edi, dword [ebp - 0x32c]
cmp byte [ebp - 0x319], 0
je 0x438707
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, edi
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4385d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xd
jb 0x4386dd
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4385f0
sub edx, ecx
mov ecx, str.preflight.bin
sar edx, 1
lea eax, [edx - 0xd]
lea eax, [esi + eax*2]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4386d4
test dx, dx
je 0x43863a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4386d4
add eax, 4
add ecx, 4
test dx, dx
jne 0x438610
xor eax, eax
jmp 0x4386d9
mov byte [ebp - 0x319], 1
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x32c]
cmovae esi, edi
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438660
sub ecx, edx
sar ecx, 1
cmp ecx, 0xd
jb 0x4385b2
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x438680
sub edx, ecx
lea eax, [esi - 0x1a]
sar edx, 1
mov ecx, str.preflight.dat
lea eax, [eax + edx*2]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4386c6
test dx, dx
je 0x4386c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4386c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4386a0
xor eax, eax
jmp 0x4386cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x438707
jmp 0x4385b2
sbb eax, eax
or eax, 1
test eax, eax
je 0x438707
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov ecx, 0x78
cmovae edx, dword [ebp - 0x70]
call fcn.00441530
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x438742
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x438738
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push ecx
push edi
call fcn.00451449
add esp, 8
mov esi, dword [ebp - 0x324]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x438786
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43877c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x4387d8
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4387ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438884
push edx
push ecx
call fcn.00451449
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp byte [ebp - 0x2e0], 0
je 0x438805
cmp dword [ebp - 0x304], 0
mov byte [ebp - 0x2e0], 0
setne al
test al, al
jne 0x438140
jmp 0x438045
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2dc]
call edi
test eax, eax
je 0x438045
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438825
sub ecx, edx
lea eax, [ebp - 0x2ac]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x314]
call fcn.00411b40
mov eax, dword [ebp - 0x2d8]
shr eax, 4
and al, 1
mov byte [ebp - 0x2fc], al
jmp 0x438140
push edx
push ecx
call fcn.00451449
add esp, 8
mov al, 1
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.00450db2
mov esp, ebp
pop ebp
ret
call fcn.00460976
int3