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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ceb
mov eax, dword fs:[0]
push eax
mov eax, 0x42f0
call fcn.0049d700
mov eax, dword [0x5000a8]
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 - 0x429c], edx
mov esi, ecx
push 0x401c
lea eax, [ebp - 0x4264]
mov dword [ebp - 0x4290], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x4298], xmm0
call fcn.0049edd0
push 0x50
lea eax, [ebp - 0x42fc]
push 0
push eax
call fcn.0049edd0
xor edi, edi
mov dword [ebp - 0x42a4], 0xffffffff
mov ecx, esi
mov dword [ebp - 0x230], edi
add esp, 0x18
mov dword [ebp - 0x4278], edi
xor eax, eax
mov dword [ebp - 0x4284], edi
mov dword [ebp - 0x427c], edi
mov dword [ebp - 0x42a0], edi
lea edx, [ecx + 2]
mov dword [ebp - 0x426c], 0x46e930
mov dword [ebp - 0x4268], 0x46e950
mov dword [ebp - 0x42ac], 0x46e930
mov dword [ebp - 0x42a8], 0x46e950
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b675
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004263f0
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0046b460
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46b6ed
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b6e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bd38
push edx
push ecx
call fcn.0049cf77
add esp, 8
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x234], 0x10
push 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x248]
cmovae 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 - 0x4290], eax
cmp eax, 0xffffffff
je 0x46b74c
xor ebx, ebx
jmp 0x46b750
call esi
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x46b791
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46b787
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bd3d
push edx
push ecx
call fcn.0049cf77
add esp, 8
test ebx, ebx
jne 0x46bbde
lea eax, [ebp - 0x4298]
mov dword [ebp - 0x4298], 0x46e880
mov dword [ebp - 0x4294], 0x46e8a0
xor edx, edx
mov dword [ebp - 0x4264], 0x46e9d0
mov dword [ebp - 0x4260], 0x46ea30
mov dword [ebp - 0x425c], 0x46ea40
mov dword [ebp - 0x4258], 0x46ea90
mov dword [ebp - 0x4254], eax
mov dword [ebp - 0x424c], ebx
mov dword [ebp - 0x4250], ebx
nop
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 + 0x515d20], eax
inc edx
cmp edx, 0x100
jb 0x46b7f0
cmp edx, 0x800
jae 0x46b8b6
mov ecx, dword [edx*4 + 0x515920]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x515d20]
mov dword [edx*4 + 0x515d20], ecx
inc edx
cmp edx, 0x800
jb 0x46b892
mov dword [0x515394], 0x46f830
call fcn.0046f9c0
mov ecx, dword [0x515394]
test eax, eax
mov edx, 0x46f8d0
cmove ecx, edx
mov dword [0x515394], ecx
lea ecx, [ebp - 0x42fc]
call fcn.0046c060
lea eax, [ebp - 0x42ac]
push eax
lea eax, [ebp - 0x426c]
push eax
lea edx, [ebp - 0x4264]
call fcn.0046df30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46b91e
lea edx, [ebp - 0x426c]
lea ecx, [ebp - 0x42fc]
call fcn.0046c0d0
jmp 0x46bbde
xor eax, eax
mov dword [ebp - 0x4270], eax
cmp dword [ebp - 0x42e0], eax
jbe 0x46bbac
mov eax, dword [ebp - 0x42ec]
add eax, 0x19
mov dword [ebp - 0x4274], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049edd0
push dword [ebp - 0x429c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b1d3b
mov eax, dword [ebp - 0x4270]
add esp, 0x18
mov edx, dword [ebp - 0x42bc]
mov dword [ebp - 0x4288], 0
mov dword [ebp - 0x4280], 0
mov esi, dword [edx + eax*4 + 4]
sub esi, dword [edx + eax*4]
cmp esi, dword [ebp - 0x4284]
jbe 0x46b9e4
push edi
call fcn.004a1bdc
add esp, 4
mov dword [ebp - 0x4284], esi
add esi, esi
je 0x46bbc9
push esi
call fcn.004a8532
mov edi, eax
add esp, 4
mov dword [ebp - 0x4278], edi
test edi, edi
je 0x46bbcb
mov eax, dword [ebp - 0x4270]
mov edx, dword [ebp - 0x42bc]
mov ecx, dword [edx + eax*4]
mov edx, dword [edx + eax*4 + 4]
sub edx, ecx
jmp 0x46b9f1
mov ecx, dword [edx + eax*4]
mov edx, dword [edx + eax*4 + 4]
sub edx, ecx
test edi, edi
je 0x46ba12
mov eax, dword [ebp - 0x42b8]
lea esi, [eax + ecx*2]
test edx, edx
je 0x46ba12
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x46ba02
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x4274]
cmp byte [esi], 0
jne 0x46ba81
lea eax, [ebp - 0x42ac]
push eax
lea eax, [ebp - 0x426c]
push eax
lea eax, [ebp - 0x4280]
push eax
lea eax, [ebp - 0x4288]
push eax
lea eax, [ebp - 0x42a0]
push eax
lea eax, [ebp - 0x427c]
push eax
lea eax, [ebp - 0x42a4]
push eax
mov eax, dword [ebp - 0x4270]
lea edx, [ebp - 0x4264]
push eax
lea ecx, [ebp - 0x42fc]
call fcn.0046e570
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x46bba6
mov ax, word [ebp - 0x218]
xor edi, edi
test ax, ax
je 0x46baf5
xor ecx, ecx
movzx edx, ax
lea esi, [ebp - 0x218]
nop word [eax + eax]
movzx eax, dx
cmp eax, 0x2f
je 0x46bab2
mov edx, 0x2f2f
cmp ax, dx
jne 0x46bad9
cmp ecx, 0x208
jae 0x46bd42
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 0x46baa0
mov esi, dword [ebp - 0x4274]
cmp byte [esi], 0
lea eax, [ebp - 0x218]
push 0
je 0x46bb0b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x46bb7a
mov edi, dword [ebp - 0x4288]
xor ebx, ebx
add edi, dword [ebp - 0x427c]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46bb3c
mov ebx, 1
jmp 0x46bb74
push 0
lea eax, [ebp - 0x428c]
mov dword [ebp - 0x428c], ebx
push eax
push dword [ebp - 0x4280]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4280]
cmp dword [ebp - 0x428c], eax
mov eax, 1
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x4274]
mov edi, dword [ebp - 0x4278]
test ebx, ebx
jne 0x46bba6
mov eax, dword [ebp - 0x4270]
add esi, 0x20
inc eax
mov dword [ebp - 0x4274], esi
mov dword [ebp - 0x4270], eax
cmp eax, dword [ebp - 0x42e0]
jb 0x46b941
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x427c]
cmp eax, 0x46e950
jne 0x46bbd2
call fcn.004a1bdc
add esp, 4
jmp 0x46bbde
xor edi, edi
mov ebx, 1
jmp 0x46bba6
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42cc]
cmp eax, 0x46e950
jne 0x46bbfb
call fcn.004a1bdc
add esp, 4
jmp 0x46bc07
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c8]
cmp eax, 0x46e950
jne 0x46bc24
call fcn.004a1bdc
add esp, 4
jmp 0x46bc30
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c4]
cmp eax, 0x46e950
jne 0x46bc4d
call fcn.004a1bdc
add esp, 4
jmp 0x46bc59
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42c0]
cmp eax, 0x46e950
jne 0x46bc76
call fcn.004a1bdc
add esp, 4
jmp 0x46bc82
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42bc]
cmp eax, 0x46e950
jne 0x46bc9f
call fcn.004a1bdc
add esp, 4
jmp 0x46bcab
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
mov eax, dword [ebp - 0x4268]
push dword [ebp - 0x42b8]
cmp eax, 0x46e950
jne 0x46bcc8
call fcn.004a1bdc
add esp, 4
jmp 0x46bcd4
lea ecx, [ebp - 0x426c]
push ecx
call eax
add esp, 8
lea edx, [ebp - 0x426c]
mov dword [ebp - 0x42b8], 0
lea ecx, [ebp - 0x42fc]
mov dword [ebp - 0x42b4], 0
call fcn.0046bee0
push edi
call fcn.004a1bdc
mov eax, dword [ebp - 0x4290]
add esp, 4
cmp eax, 0xffffffff
je 0x46bd1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46bd1a
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.0049d3ed
mov esp, ebp
pop ebp
ret
call fcn.004a1aff
call fcn.004a1aff
call fcn.0049d61c
int3