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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3b6b
mov eax, dword fs:[0]
push eax
mov eax, 0x42f4
call fcn.0049d110
mov eax, dword [0x4fe0c0]
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 dword [ebp - 0x42a4], edx
mov esi, ecx
push 0x4018
lea eax, [ebp - 0x4260]
mov dword [ebp - 0x42a0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4264], 0
push 0
push eax
movq qword [ebp - 0x429c], xmm0
call fcn.0049e870
push 0x4c
lea eax, [ebp - 0x42fc]
mov dword [ebp - 0x4300], 0
push 0
push eax
call fcn.0049e870
add esp, 0x18
mov dword [ebp - 0x4294], 0xffffffff
xor eax, eax
mov dword [ebp - 0x426c], 0x46dc40
xor edi, edi
mov dword [ebp - 0x4280], eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4270], edi
push esi
mov dword [ebp - 0x4274], edi
mov dword [ebp - 0x42a8], eax
mov dword [ebp - 0x4268], 0x46dc60
mov dword [ebp - 0x42b0], 0x46dc40
mov dword [ebp - 0x42ac], 0x46dc60
call fcn.00425670
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x248]
call fcn.0046a740
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x46a9ab
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46a9a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b039
push ecx
push edx
call fcn.0049caae
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x234], 0xf
push 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmova eax, dword [ebp - 0x248]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x21c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4298], eax
cmp eax, 0xffffffff
je 0x46aa0a
xor ebx, ebx
jmp 0x46aa0e
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
cmp ecx, 0xf
jbe 0x46aa4f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46aa45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46b03e
push ecx
push edx
call fcn.0049caae
add esp, 8
test ebx, ebx
jne 0x46aed4
lea eax, [ebp - 0x42a0]
mov dword [ebp - 0x42a0], 0x46db90
mov dword [ebp - 0x429c], 0x46dbb0
xor edx, edx
mov dword [ebp - 0x4264], 0x46dce0
mov dword [ebp - 0x4260], 0x46dd40
mov dword [ebp - 0x425c], 0x46dd50
mov dword [ebp - 0x4258], 0x46dda0
mov dword [ebp - 0x4254], eax
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4250], ebx
nop dword [eax]
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 + 0x513de0], eax
inc edx
cmp edx, 0x100
jb 0x46aab0
cmp edx, 0x800
jae 0x46ab76
mov ecx, dword [edx*4 + 0x5139e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x513de0]
mov dword [edx*4 + 0x513de0], ecx
inc edx
cmp edx, 0x800
jb 0x46ab52
mov dword [0x513454], 0x46eb90
call fcn.0046ed20
test eax, eax
jne 0x46ab93
mov dword [0x513454], 0x46ec30
lea ecx, [ebp - 0x4300]
call fcn.0046b370
lea eax, [ebp - 0x42b0]
push eax
lea eax, [ebp - 0x426c]
push eax
lea edx, [ebp - 0x4264]
call fcn.0046d280
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46abd6
lea edx, [ebp - 0x426c]
lea ecx, [ebp - 0x4300]
call fcn.0046b3e0
jmp 0x46aed4
xor eax, eax
mov dword [ebp - 0x4278], ebx
mov dword [ebp - 0x4288], eax
cmp dword [ebp - 0x42e4], eax
jbe 0x46aea2
mov eax, dword [ebp - 0x42f0]
add eax, 0x19
mov dword [ebp - 0x427c], eax
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e870
push dword [ebp - 0x42a4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b4e7b
mov ebx, dword [ebp - 0x4288]
xor eax, eax
mov dword [ebp - 0x428c], eax
add esp, 0x18
mov dword [ebp - 0x4284], eax
mov eax, dword [ebp - 0x42c0]
mov esi, dword [eax + ebx*4 + 4]
sub esi, dword [eax + ebx*4]
cmp esi, dword [ebp - 0x4274]
jbe 0x46ac97
push edi
call fcn.004a1f50
add esp, 4
mov dword [ebp - 0x4274], esi
add esi, esi
je 0x46aebf
push esi
call fcn.004ab1f4
mov edi, eax
add esp, 4
mov dword [ebp - 0x4270], edi
test edi, edi
je 0x46aec1
mov eax, dword [ebp - 0x42c0]
mov edx, dword [eax + ebx*4 + 4]
mov ecx, dword [eax + ebx*4]
sub edx, ecx
jmp 0x46aca4
mov edx, dword [eax + ebx*4 + 4]
mov ecx, dword [eax + ebx*4]
sub edx, ecx
test edi, edi
je 0x46acc5
mov eax, dword [ebp - 0x42bc]
lea esi, [eax + ecx*2]
test edx, edx
je 0x46acc5
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x46acb5
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x427c]
cmp byte [esi], 0
jne 0x46ad34
lea eax, [ebp - 0x42b0]
push eax
lea eax, [ebp - 0x426c]
push eax
lea eax, [ebp - 0x4284]
push eax
lea eax, [ebp - 0x428c]
push eax
lea eax, [ebp - 0x42a8]
push eax
lea eax, [ebp - 0x4280]
push eax
lea eax, [ebp - 0x4294]
push eax
push ebx
lea edx, [ebp - 0x4264]
lea ecx, [ebp - 0x4300]
call fcn.0046d8c0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x4278], ebx
test ebx, ebx
jne 0x46ae9c
mov ax, word [ebp - 0x218]
xor edi, edi
test ax, ax
je 0x46ada5
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x218]
nop dword [eax]
movzx eax, dx
cmp eax, 0x2f
je 0x46ad62
mov edx, 0x2f2f
cmp ax, dx
jne 0x46ad89
cmp ecx, 0x208
jae 0x46b043
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
inc edi
lea esi, [ebp - 0x218]
lea ecx, [edi + edi]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x46ad50
mov esi, dword [ebp - 0x427c]
cmp byte [esi], 0
mov edi, dword [ebp - 0x4274]
mov ebx, dword [ebp - 0x4270]
push 0
je 0x46adca
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46ae6a
push 0x80
xor eax, eax
push 2
push eax
push eax
mov dword [ebp - 0x4278], eax
lea eax, [ebp - 0x218]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ae00
mov dword [ebp - 0x4278], 1
jmp 0x46ae64
push 0
lea eax, [ebp - 0x4290]
mov dword [ebp - 0x4290], 0
push eax
push dword [ebp - 0x4284]
mov eax, dword [ebp - 0x428c]
add eax, dword [ebp - 0x4280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4284]
mov dword [ebp - 0x4270], ebx
mov dword [ebp - 0x4274], edi
cmp dword [ebp - 0x4290], eax
je 0x46ae5d
mov dword [ebp - 0x4278], 1
mov dword [ebp - 0x4270], ebx
mov dword [ebp - 0x4274], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x427c]
mov ebx, dword [ebp - 0x4278]
mov edi, dword [ebp - 0x4270]
test ebx, ebx
jne 0x46ae9c
mov eax, dword [ebp - 0x4288]
add esi, 0x20
inc eax
mov dword [ebp - 0x427c], esi
mov dword [ebp - 0x4288], eax
cmp eax, dword [ebp - 0x42e4]
jb 0x46ac00
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x4280]
cmp eax, 0x46dc60
jne 0x46aec8
call fcn.004a1f50
add esp, 4
jmp 0x46aed4
xor edi, edi
mov ebx, 1
jmp 0x46ae9c
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42d0]
cmp eax, 0x46dc60
jne 0x46aef1
call fcn.004a1f50
add esp, 4
jmp 0x46aefd
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42cc]
cmp eax, 0x46dc60
jne 0x46af1a
call fcn.004a1f50
add esp, 4
jmp 0x46af26
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c8]
cmp eax, 0x46dc60
jne 0x46af43
call fcn.004a1f50
add esp, 4
jmp 0x46af4f
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c4]
cmp eax, 0x46dc60
jne 0x46af6c
call fcn.004a1f50
add esp, 4
jmp 0x46af78
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c0]
cmp eax, 0x46dc60
jne 0x46af95
call fcn.004a1f50
add esp, 4
jmp 0x46afa1
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42bc]
cmp eax, 0x46dc60
jne 0x46afbe
call fcn.004a1f50
add esp, 4
jmp 0x46afca
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
lea edx, [ebp - 0x426c]
mov dword [ebp - 0x42bc], 0
lea ecx, [ebp - 0x4300]
mov dword [ebp - 0x42b8], 0
call fcn.0046b1f0
lea ecx, [ebp - 0x4300]
call fcn.0046b370
push edi
call fcn.004a1f50
mov eax, dword [ebp - 0x4298]
add esp, 4
cmp eax, 0xffffffff
je 0x46b01b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46b01b
call esi
mov eax, ebx
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.0049cdfb
mov esp, ebp
pop ebp
ret
call fcn.004a1e4f
call fcn.004a1e4f
call fcn.0049d02a
int3