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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5541ab
mov eax, dword [ebp + 0xc]
xor edx, edx
add dword [0xce7530], eax
adc dword [0xce7534], edx
mov ecx, dword [0xced760]
test ecx, ecx
je 0x554159
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00553eb4
add esp, 8
mov eax, dword [0xce7538]
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x5541a3
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
movsx eax, byte [edx + ecx]
mov edx, dword [ebp - 0x1c]
xor eax, edx
and eax, 0xff
mov ecx, dword [eax*4 + 0x80c228]
mov eax, dword [ebp - 0x1c]
shr eax, 8
xor ecx, eax
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
cmp edx, ecx
jb 0x554170
mov eax, dword [ebp - 0x1c]
mov dword [0xce7538], eax
mov edx, dword [0xced75c]
test edx, edx
jne 0x5541f8
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0xced54c]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
cmp eax, edx
je 0x5541dd
xor eax, eax
jmp 0x5545d9
mov eax, dword [ebp + 0xc]
xor edx, edx
add dword [0xce7774], eax
adc dword [0xce7778], edx
mov eax, 1
jmp 0x5545d9
mov edx, dword [0xced550]
cmp edx, 0xffffffff
jne 0x554329
inc dword [0xce777c]
mov ecx, dword [0xce777c]
cmp ecx, 0x3e8
jne 0x554222
xor eax, eax
jmp 0x5545d9
mov dl, byte [0xce777c]
mov byte [0xce751e], dl
mov ecx, dword [0x80c224]
mov dword [0xce7527], ecx
mov eax, dword [0xce777c]
lea eax, [eax + eax*2]
mov edx, dword [0x80c224]
mov dword [eax*8 + 0xce779c], edx
mov eax, dword [0x80c224]
cdq
mov dword [0xce7774], eax
mov dword [0xce7778], edx
mov ecx, dword [0x6e7470]
dec ecx
sub ecx, 2
jb 0x55426f
jmp 0x55428c
mov eax, dword [0xce777c]
inc eax
push eax
push 0xced658
lea edx, [ebp - 0x12c]
push edx
call fcn.00670e94
add esp, 0xc
jmp 0x5542a6
push dword [0xce777c]
push 0xced658
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00670e94
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [0xced550], eax
mov edx, dword [0xced550]
cmp edx, 0xffffffff
jne 0x5542d8
xor eax, eax
jmp 0x5545d9
lea edx, [ebp - 0x12c]
push edx
call fcn.00441278
pop ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [0x80c224]
push 0xce74fc
push dword [0xced550]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x10]
mov edx, dword [0x80c224]
cmp eax, edx
je 0x554315
xor eax, eax
jmp 0x5545d9
mov edx, dword [0xce7784]
add dword [0xce7780], edx
xor ecx, ecx
mov dword [0xce7784], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
add eax, dword [0xce7774]
adc edx, dword [0xce7778]
cmp edx, dword [0x80c220]
jne 0x55434c
cmp eax, dword [0x80c21c]
jae 0x554397
jmp 0x55434e
jge 0x554397
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0xced550]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
cmp eax, edx
je 0x554376
xor eax, eax
jmp 0x5545d9
mov eax, dword [ebp + 0xc]
xor edx, edx
add dword [0xce7774], eax
adc dword [0xce7778], edx
inc dword [0xce7784]
mov eax, 1
jmp 0x5545d9
mov eax, dword [0x80c21c]
mov ecx, eax
mov eax, dword [0xce7774]
sub ecx, eax
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [0xced550]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x5543d2
xor eax, eax
jmp 0x5545d9
mov eax, dword [ebp - 0x14]
xor edx, edx
add dword [0xce7774], eax
adc dword [0xce7778], edx
inc dword [0xce7784]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [0xce777c]
lea edx, [edx + edx*2]
mov ecx, dword [0xce7780]
mov dword [edx*8 + 0xce7798], ecx
mov eax, dword [0xce777c]
lea eax, [eax + eax*2]
mov edx, dword [0xce7784]
mov dword [eax*8 + 0xce7794], edx
mov ecx, dword [0xce777c]
lea ecx, [ecx + ecx*2]
mov eax, dword [ebp - 0x18]
mov dword [ecx*8 + 0xce77a0], eax
mov edx, dword [0xce777c]
lea edx, [edx + edx*2]
mov ecx, dword [0xce7774]
mov dword [edx*8 + 0xce778c], ecx
mov ecx, dword [0xce7778]
mov dword [edx*8 + 0xce7790], ecx
mov eax, dword [0xced550]
mov edx, dword [0xced54c]
cmp eax, edx
je 0x55446f
push dword [0xced550]
call sub.KERNEL32.DLL_CloseHandle
mov dword [0xced550], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jbe 0x5545d4
inc dword [0xce777c]
mov eax, dword [0xce777c]
cmp eax, 0x3e8
jne 0x55449d
xor eax, eax
jmp 0x5545d9
mov dl, byte [0xce777c]
mov byte [0xce751e], dl
mov ecx, dword [0x80c224]
mov dword [0xce7527], ecx
mov eax, dword [0x80c224]
mov edx, dword [ebp - 0x18]
add eax, edx
mov ecx, dword [0xce777c]
lea ecx, [ecx + ecx*2]
mov dword [ecx*8 + 0xce779c], eax
mov eax, dword [0x80c224]
mov edx, dword [ebp - 0x18]
add eax, edx
xor edx, edx
mov dword [0xce7774], eax
mov dword [0xce7778], edx
mov ecx, dword [0x6e7470]
dec ecx
sub ecx, 2
jb 0x5544f5
jmp 0x554512
mov eax, dword [0xce777c]
inc eax
push eax
push 0xced658
lea edx, [ebp - 0x230]
push edx
call fcn.00670e94
add esp, 0xc
jmp 0x55452c
push dword [0xce777c]
push 0xced658
lea ecx, [ebp - 0x230]
push ecx
call fcn.00670e94
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [0xced550], eax
mov edx, dword [0xced550]
cmp edx, 0xffffffff
jne 0x55455b
xor eax, eax
jmp 0x5545d9
lea edx, [ebp - 0x230]
push edx
call fcn.00441278
pop ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [0x80c224]
push 0xce74fc
push dword [0xced550]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x10]
mov edx, dword [0x80c224]
cmp eax, edx
je 0x554595
xor eax, eax
jmp 0x5545d9
push 0
lea edx, [ebp - 0x10]
push edx
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add ecx, eax
push ecx
push dword [0xced550]
call sub.KERNEL32.DLL_WriteFile
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
je 0x5545c0
xor eax, eax
jmp 0x5545d9
mov edx, dword [0xce7784]
add dword [0xce7780], edx
xor ecx, ecx
mov dword [0xce7784], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret