Function at 0x46a670
Capabilities:
Create directory
Encode data using xor
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d257d
mov eax, dword fs:[0]
push eax
mov eax, 0x4118
call fcn.004a0560
mov eax, dword [0x5020a8]
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, edx
mov esi, ecx
test esi, esi
je 0x46af5b
test edi, edi
je 0x46af5b
cmp word [esi], 0
je 0x46af5b
cmp word [edi], 0
je 0x46af5b
push 0x401c
lea eax, [ebp - 0x408c]
mov dword [ebp - 0x40bc], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x40c4], xmm0
call fcn.004a1c30
push 0x50
lea eax, [ebp - 0x4124]
push 0
push eax
call fcn.004a1c30
add esp, 0x18
mov dword [ebp - 0x4090], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40b0], 0
mov dword [ebp - 0x40cc], 0xffffffff
mov dword [ebp - 0x40a0], 0
push esi
mov dword [ebp - 0x40c8], 0
mov dword [ebp - 0x40ac], 0x46dd00
mov dword [ebp - 0x40a8], 0x46dd20
mov dword [ebp - 0x40d4], 0x46dd00
mov dword [ebp - 0x40d0], 0x46dd20
call fcn.00426980
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046a540
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46a7b8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a7ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af7c
push edx
push ecx
call fcn.0049fdd7
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x5c], 0x10
push 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x2c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40bc], eax
cmp eax, 0xffffffff
je 0x46a805
xor ebx, ebx
jmp 0x46a809
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x46a844
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46a83a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af81
push edx
push ecx
call fcn.0049fdd7
add esp, 8
test ebx, ebx
jne 0x46af20
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x40c4], 0x46dc50
mov dword [ebp - 0x40c0], 0x46dc70
xor edx, edx
mov dword [ebp - 0x408c], 0x46dda0
mov dword [ebp - 0x4088], 0x46de00
mov dword [ebp - 0x4084], 0x46de10
mov dword [ebp - 0x4080], 0x46de60
mov dword [ebp - 0x407c], eax
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 0x4078], ebx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x517ec0], eax
inc edx
cmp edx, 0x100
jb 0x46a8a2
cmp edx, 0x800
jae 0x46a974
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [edx*4 + 0x517ac0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x517ec0]
mov dword [edx*4 + 0x517ec0], ecx
inc edx
cmp edx, 0x800
jb 0x46a950
mov dword [0x517550], 0x46ec00
call fcn.0046ed90
mov ecx, dword [0x517550]
test eax, eax
mov edx, 0x46eca0
cmove ecx, edx
mov dword [0x517550], ecx
lea ecx, [ebp - 0x4124]
call fcn.0046b430
lea eax, [ebp - 0x40d4]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea edx, [ebp - 0x408c]
call fcn.0046d300
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46a9dc
lea edx, [ebp - 0x40ac]
lea ecx, [ebp - 0x4124]
call fcn.0046b4a0
jmp 0x46af20
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4094], ebx
call fcn.00426980
mov dword [ebp - 4], 3
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
cmp esi, 8
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x5c
je 0x46aa2c
cmp esi, 8
lea eax, [ebp - 0x40]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
je 0x46aa2c
push 1
push 0x4ea578
lea ecx, [ebp - 0x40]
call fcn.0046afa0
xor edi, edi
mov dword [ebp - 0x4098], edi
cmp dword [ebp - 0x4108], edi
jbe 0x46adf2
mov eax, dword [ebp - 0x4114]
add eax, 0x19
mov dword [ebp - 0x409c], eax
nop
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00453b10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x40e4]
mov dword [ebp - 0x40b4], 0
mov dword [ebp - 0x40a4], 0
mov esi, dword [eax + edi*4 + 4]
sub esi, dword [eax + edi*4]
cmp esi, dword [ebp - 0x40b0]
jbe 0x46aad5
push dword [ebp - 0x4090]
call fcn.004a4a3c
add esp, 4
mov dword [ebp - 0x40b0], esi
add esi, esi
je 0x46ad95
push esi
call fcn.004a9cc5
mov edi, eax
add esp, 4
mov dword [ebp - 0x4090], edi
test edi, edi
je 0x46ad9f
mov eax, dword [ebp - 0x4098]
mov edx, dword [ebp - 0x40e4]
mov ecx, dword [edx + eax*4]
mov edx, dword [edx + eax*4 + 4]
sub edx, ecx
jmp 0x46aae8
mov edx, dword [eax + edi*4 + 4]
mov ecx, dword [eax + edi*4]
sub edx, ecx
mov edi, dword [ebp - 0x4090]
test edi, edi
je 0x46ab10
mov eax, dword [ebp - 0x40e0]
lea esi, [eax + ecx*2]
test edx, edx
je 0x46ab10
mov ecx, edi
sub esi, edi
nop dword [eax]
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x46ab00
mov ecx, edi
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ab30
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00426ab0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0046afa0
mov eax, dword [ebp - 0x409c]
cmp byte [eax], 0
jne 0x46abca
lea eax, [ebp - 0x40d4]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x40a4]
push eax
lea eax, [ebp - 0x40b4]
push eax
lea eax, [ebp - 0x40c8]
push eax
lea eax, [ebp - 0x40a0]
push eax
lea eax, [ebp - 0x40cc]
push eax
push dword [ebp - 0x4098]
lea edx, [ebp - 0x408c]
lea ecx, [ebp - 0x4124]
call fcn.0046d940
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x4094], ebx
test ebx, ebx
jne 0x46ae16
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov edx, dword [ebp - 0x28]
mov ebx, 0x2f2f
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [esi + eax], 0
lea eax, [ebp - 0x28]
je 0x46ac47
cmp ecx, 8
cmovae eax, edx
cmp word [esi + eax], 0x2f
je 0x46ac06
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [esi + eax], bx
jne 0x46ac42
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
xor ecx, ecx
push ecx
mov word [esi + eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, 0x5c
cmovae eax, dword [ebp - 0x28]
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add esi, 2
jmp 0x46abd7
mov esi, dword [ebp - 0x409c]
mov ebx, dword [ebp - 0x4094]
push 0
cmp byte [esi], 0
je 0x46ac6c
cmp ecx, 8
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46aced
mov edi, dword [ebp - 0x40b4]
cmp ecx, 8
push 0x80
cmovae eax, edx
add edi, dword [ebp - 0x40a0]
push 2
xor ebx, ebx
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46aca9
mov ebx, 1
mov dword [ebp - 0x4094], ebx
jmp 0x46ace7
push 0
lea eax, [ebp - 0x40b8]
mov dword [ebp - 0x40b8], ebx
push eax
push dword [ebp - 0x40a4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x40a4]
cmp dword [ebp - 0x40b8], eax
mov eax, 1
push esi
cmovne ebx, eax
mov dword [ebp - 0x4094], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x409c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
test ebx, ebx
jne 0x46ae59
cmp edx, 8
jb 0x46ad33
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ad29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
push edx
push ecx
call fcn.0049fdd7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ad71
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ad67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
push edx
push ecx
call fcn.0049fdd7
add esp, 8
mov edi, dword [ebp - 0x4098]
add esi, 0x20
inc edi
mov dword [ebp - 0x409c], esi
mov dword [ebp - 0x4098], edi
cmp edi, dword [ebp - 0x4108]
jb 0x46aa50
jmp 0x46adf2
mov dword [ebp - 0x4090], 0
mov ebx, 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ade2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46add8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
push edx
push ecx
call fcn.0049fdd7
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x40a8]
push dword [ebp - 0x40a0]
cmp eax, 0x46dd20
jne 0x46aed1
call fcn.004a4a3c
add esp, 4
jmp 0x46aedd
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46ada4
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ae4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
push edx
push ecx
call fcn.0049fdd7
add esp, 8
jmp 0x46ada4
cmp edx, 8
jb 0x46ae90
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ae86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
push edx
push ecx
call fcn.0049fdd7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ade2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46add8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af86
jmp 0x46add8
lea ecx, [ebp - 0x40ac]
push ecx
call eax
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2c]
cmp esi, 8
jb 0x46af1a
mov edx, dword [ebp - 0x40]
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x46af10
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46af8b
push esi
push edx
call fcn.0049fdd7
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x40ac]
lea ecx, [ebp - 0x4124]
call fcn.0046b4a0
push dword [ebp - 0x4090]
call fcn.004a4a3c
mov eax, dword [ebp - 0x40bc]
add esp, 4
cmp eax, 0xffffffff
je 0x46af57
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46af57
call esi
mov eax, ebx
jmp 0x46af60
mov eax, 1
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.004a024d
mov esp, ebp
pop ebp
ret
call fcn.004a495f
call fcn.004a495f
call fcn.004a495f
call fcn.004a495f
int3