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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d226d
mov eax, dword fs:[0]
push eax
mov eax, 0x4118
call fcn.004a0140
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 0x46aebb
test edi, edi
je 0x46aebb
cmp word [esi], 0
je 0x46aebb
cmp word [edi], 0
je 0x46aebb
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.004a1810
push 0x50
lea eax, [ebp - 0x4124]
push 0
push eax
call fcn.004a1810
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], 0x46dc60
mov dword [ebp - 0x40a8], 0x46dc80
mov dword [ebp - 0x40d4], 0x46dc60
mov dword [ebp - 0x40d0], 0x46dc80
call fcn.004269c0
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0046a4a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46a718
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a70e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aedc
push edx
push ecx
call fcn.0049f9b7
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 0x46a765
xor ebx, ebx
jmp 0x46a769
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x46a7a4
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46a79a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee1
push edx
push ecx
call fcn.0049f9b7
add esp, 8
test ebx, ebx
jne 0x46ae80
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x40c4], 0x46dbb0
mov dword [ebp - 0x40c0], 0x46dbd0
xor edx, edx
mov dword [ebp - 0x408c], 0x46dd00
mov dword [ebp - 0x4088], 0x46dd60
mov dword [ebp - 0x4084], 0x46dd70
mov dword [ebp - 0x4080], 0x46ddc0
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 0x46a802
cmp edx, 0x800
jae 0x46a8d4
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 0x46a8b0
mov dword [0x517560], 0x46eb60
call fcn.0046ecf0
mov ecx, dword [0x517560]
test eax, eax
mov edx, 0x46ec00
cmove ecx, edx
mov dword [0x517560], ecx
lea ecx, [ebp - 0x4124]
call fcn.0046b390
lea eax, [ebp - 0x40d4]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea edx, [ebp - 0x408c]
call fcn.0046d260
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46a93c
lea edx, [ebp - 0x40ac]
lea ecx, [ebp - 0x4124]
call fcn.0046b400
jmp 0x46ae80
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4094], ebx
call fcn.004269c0
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 0x46a98c
cmp esi, 8
lea eax, [ebp - 0x40]
cmovae eax, edx
cmp word [eax + ecx*2 - 2], 0x2f
je 0x46a98c
push 1
push 0x4ea5d0
lea ecx, [ebp - 0x40]
call fcn.0046af00
xor edi, edi
mov dword [ebp - 0x4098], edi
cmp dword [ebp - 0x4108], edi
jbe 0x46ad52
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.00453d20
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 0x46aa35
push dword [ebp - 0x4090]
call fcn.004a461c
add esp, 4
mov dword [ebp - 0x40b0], esi
add esi, esi
je 0x46acf5
push esi
call fcn.004a99c7
mov edi, eax
add esp, 4
mov dword [ebp - 0x4090], edi
test edi, edi
je 0x46acff
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 0x46aa48
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 0x46aa70
mov eax, dword [ebp - 0x40e0]
lea esi, [eax + ecx*2]
test edx, edx
je 0x46aa70
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 0x46aa60
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 0x46aa90
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00426af0
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.0046af00
mov eax, dword [ebp - 0x409c]
cmp byte [eax], 0
jne 0x46ab2a
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.0046d8a0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x4094], ebx
test ebx, ebx
jne 0x46ad76
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 0x46aba7
cmp ecx, 8
cmovae eax, edx
cmp word [esi + eax], 0x2f
je 0x46ab66
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [esi + eax], bx
jne 0x46aba2
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 0x46ab37
mov esi, dword [ebp - 0x409c]
mov ebx, dword [ebp - 0x4094]
push 0
cmp byte [esi], 0
je 0x46abcc
cmp ecx, 8
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46ac4d
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 0x46ac09
mov ebx, 1
mov dword [ebp - 0x4094], ebx
jmp 0x46ac47
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 0x46adb9
cmp edx, 8
jb 0x46ac93
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ac89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
push edx
push ecx
call fcn.0049f9b7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46acd1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46acc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
push edx
push ecx
call fcn.0049f9b7
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 0x46a9b0
jmp 0x46ad52
mov dword [ebp - 0x4090], 0
mov ebx, 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ad42
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ad38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
push edx
push ecx
call fcn.0049f9b7
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, 0x46dc80
jne 0x46ae31
call fcn.004a461c
add esp, 4
jmp 0x46ae3d
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46ad04
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46adaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
push edx
push ecx
call fcn.0049f9b7
add esp, 8
jmp 0x46ad04
cmp edx, 8
jb 0x46adf0
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ade6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
push edx
push ecx
call fcn.0049f9b7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ad42
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ad38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aee6
jmp 0x46ad38
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 0x46ae7a
mov edx, dword [ebp - 0x40]
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x46ae70
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46aeeb
push esi
push edx
call fcn.0049f9b7
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x40ac]
lea ecx, [ebp - 0x4124]
call fcn.0046b400
push dword [ebp - 0x4090]
call fcn.004a461c
mov eax, dword [ebp - 0x40bc]
add esp, 4
cmp eax, 0xffffffff
je 0x46aeb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46aeb7
call esi
mov eax, ebx
jmp 0x46aec0
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.0049fe2d
mov esp, ebp
pop ebp
ret
call fcn.004a453f
call fcn.004a453f
call fcn.004a453f
call fcn.004a453f
int3