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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501093
mov eax, dword fs:[0]
push eax
mov eax, 0x4108
call fcn.004d2490
mov eax, dword [0x53f084]
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 eax, ecx
mov dword [ebp - 0x4088], eax
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40a4], ecx
test eax, eax
jne 0x46bdf3
mov eax, 6
jmp 0x46c335
mov dword [ebp - 0x40bc], eax
xor edx, edx
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x40c4], 0x46bca0
mov dword [ebp - 0x40c0], 0x46bc00
mov dword [ebp - 0x4074], 0x46f4c0
mov dword [ebp - 0x4070], 0x46f520
mov dword [ebp - 0x406c], 0x46f530
mov dword [ebp - 0x4068], 0x46f580
mov dword [ebp - 0x4064], eax
mov dword [ebp - 0x407c], 0x46f410
mov dword [ebp - 0x4078], 0x46f430
mov dword [ebp - 0x40b8], 0x46f410
mov dword [ebp - 0x40b4], 0x46f430
nop dword [eax + 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 + 0x5494e0], eax
inc edx
cmp edx, 0x100
jb 0x46be70
cmp edx, 0x800
jae 0x46bf36
mov ecx, dword [edx*4 + 0x5490e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5494e0]
mov dword [edx*4 + 0x5494e0], ecx
inc edx
cmp edx, 0x800
jb 0x46bf12
mov dword [0x544a90], 0x470240
call fcn.004703d0
mov ecx, dword [0x544a90]
test eax, eax
mov edx, 0x4702e0
cmove ecx, edx
mov dword [0x544a90], ecx
lea ecx, [ebp - 0x4114]
call fcn.0046cc90
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x407c]
push eax
lea edx, [ebp - 0x4074]
call fcn.0046ea10
mov edi, eax
add esp, 8
test edi, edi
je 0x46bfa1
lea edx, [ebp - 0x407c]
lea ecx, [ebp - 0x4114]
call fcn.0046cd00
test edi, edi
jne 0x46bde9
xor ebx, ebx
mov dword [ebp - 0x4084], 0
mov dword [ebp - 0x40a0], 0xffffffff
mov dword [ebp - 0x409c], 0
cmp dword [ebp - 0x40f8], ebx
jbe 0x46c27b
mov eax, dword [ebp - 0x4104]
add eax, 0x1c
mov dword [ebp - 0x4080], eax
nop dword [eax]
lea eax, [ebp - 0x40b8]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x40a8]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x409c]
push eax
lea eax, [ebp - 0x4084]
push eax
lea eax, [ebp - 0x40a0]
push eax
push ebx
lea edx, [ebp - 0x4074]
lea ecx, [ebp - 0x4114]
call fcn.0046f030
add esp, 0x20
mov dword [ebp - 0x408c], eax
test eax, eax
jne 0x46c276
mov edi, dword [ebp - 0x40d4]
mov ecx, dword [edi + ebx*4 + 4]
sub ecx, dword [edi + ebx*4]
cmp ecx, 1
jb 0x46c276
push ecx
push ecx
lea ecx, [ebp - 0x4098]
call fcn.004189d0
mov dword [ebp - 4], 0
mov edx, dword [edi + ebx*4 + 4]
mov eax, dword [edi + ebx*4]
sub edx, eax
mov edi, dword [ebp - 0x4098]
test edi, edi
je 0x46c092
mov ecx, dword [ebp - 0x40d0]
lea esi, [ecx + eax*2]
test edx, edx
je 0x46c092
mov eax, edi
sub esi, edi
mov cx, word [esi + eax]
lea eax, [eax + 2]
mov word [eax - 2], cx
sub edx, 1
jne 0x46c082
push dword [ebp - 0x40a4]
lea ecx, [ebp - 0x28]
call fcn.00404020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x4094]
xor eax, eax
mov word [ebp - 0x58], ax
add esi, 0xfffffffe
mov eax, esi
mov dword [ebp - 0x48], 0
sub eax, edi
mov dword [ebp - 0x44], 7
sar eax, 1
push eax
call fcn.0040a2b0
push dword [ebp - 0x408c]
lea ecx, [ebp - 0x58]
push esi
push edi
call fcn.0046c610
mov byte [ebp - 4], 2
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.0040a0d0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00405080
mov edi, dword [ebp - 0x4080]
lea eax, [ebp - 0x28]
push eax
cmp byte [edi - 3], 0
je 0x46c127
mov ecx, dword [ebp - 0x4088]
call fcn.0046c360
jmp 0x46c201
lea ecx, [ebp - 0x40]
call fcn.00404020
push ecx
push str._MVST
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00419fb0
cmp eax, 0xffffffff
jne 0x46c159
push ecx
push str.SMDB
lea ecx, [ebp - 0x40]
call fcn.00419fb0
cmp eax, 0xffffffff
je 0x46c162
push eax
lea ecx, [ebp - 0x40]
call fcn.0040dd40
mov ecx, dword [ebp - 0x4088]
lea eax, [ebp - 0x40]
push eax
call fcn.0046c360
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46c24a
mov edi, dword [ebp - 0x40a8]
lea eax, [ebp - 0x40b0]
push 0
push eax
mov eax, dword [ebp - 0x40ac]
add eax, dword [ebp - 0x4084]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46c239
cmp dword [ebp - 0x40b0], edi
jne 0x46c239
mov edi, dword [ebp - 0x4080]
cmp byte [edi], 0
je 0x46c1ee
lea eax, [edi - 0x1c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x46c239
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46c24a
lea ecx, [ebp - 0x40]
call fcn.00405080
lea ecx, [ebp - 0x28]
call fcn.00405080
lea ecx, [ebp - 0x4098]
mov dword [ebp - 4], 0xffffffff
call fcn.00418b10
inc ebx
add edi, 0x20
mov dword [ebp - 0x4080], edi
cmp ebx, dword [ebp - 0x40f8]
jb 0x46bfe0
mov edi, dword [ebp - 0x408c]
jmp 0x46c27b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46c252
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x40]
call fcn.00405080
lea ecx, [ebp - 0x28]
call fcn.00405080
lea ecx, [ebp - 0x4098]
mov dword [ebp - 4], 0xffffffff
call fcn.00418b10
jmp 0x46c27b
mov edi, 6
push dword [ebp - 0x4084]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40e4]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40e0]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40dc]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40d8]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40d4]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
push dword [ebp - 0x40d0]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
add esp, 0x38
mov dword [ebp - 0x40d0], 0
lea edx, [ebp - 0x407c]
mov dword [ebp - 0x40cc], 0
lea ecx, [ebp - 0x4114]
call fcn.0046cb10
lea ecx, [ebp - 0x4114]
call fcn.0046cc90
mov eax, edi
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.004d170a
mov esp, ebp
pop ebp
ret 8