Function at 0x401a20
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418fff
mov eax, dword fs:[0]
push eax
sub esp, 0x71c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x680], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x658]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x648], 0
push 0x41fb24
movups xmmword [ebp - 0x658], xmm0
mov dword [ebp - 0x644], 0
call fcn.00403250
cmp dword [ebp + 0x1c], 7
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
lea edi, [ebp - 0x658]
cmova ecx, dword [ebp + 8]
cmp dword [ebp - 0x644], 7
mov edx, dword [ebp - 0x658]
cmova edi, edx
movzx ecx, word [ecx + eax*2 - 2]
mov eax, dword [ebp - 0x648]
test eax, eax
je 0x401ad4
mov esi, edi
cmp word [esi], cx
je 0x401bbd
add esi, 2
sub eax, 1
jne 0x401ac3
or esi, 0xffffffff
mov eax, dword [ebp - 0x644]
cmp eax, 7
jbe 0x401b11
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40226f
push ecx
push edx
call fcn.0040d068
add esp, 8
cmp esi, 0xffffffff
jne 0x401b23
push 0x41fb2c
lea ecx, [ebp + 8]
call fcn.00402af0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4239c0]
mov dword [ebp - 0x698], ecx
cmp eax, dword [ecx + 4]
jle 0x401ba0
push 0x4239c0
call fcn.0040d222
add esp, 4
cmp dword [0x4239c0], 0xffffffff
jne 0x401ba0
mov dword [0x4239d4], 0
mov dword [0x4239d0], 0
mov dword [0x4239cc], 0
mov dword [0x4239c4], 0
mov byte [ebp - 4], 2
call fcn.00404710
push 0x4194a0
call fcn.0040d053
push 0x4239c0
mov byte [ebp - 4], 0
call fcn.0040d1d1
add esp, 8
mov esi, dword [0x4239b4]
push 0xa
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40224b
jmp 0x401bce
test esi, esi
je 0x401ad4
sub esi, edi
sar esi, 1
jmp 0x401ad7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x678], eax
test eax, eax
je 0x40224b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x678]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40224b
mov dword [ebp - 0x6a0], 0x4055b0
mov dword [ebp - 0x6b0], 0x4055b0
mov dword [ebp - 0x69c], 0x4055d0
mov dword [ebp - 0x6ac], 0x4055d0
mov dword [ebp - 0x6d4], 0x4016d0
mov dword [ebp - 0x6d0], 0x401990
mov dword [ebp - 0x6cc], 0x401840
mov dword [ebp - 0x6c8], 0x4019b0
mov dword [ebp - 0x6c0], eax
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], esi
mov byte [ebp - 0x6c4], 0
mov dword [ebp - 0x6b4], 0
mov byte [ebp - 4], 3
xor edx, edx
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 + 0x423a00], eax
inc edx
cmp edx, 0x100
jb 0x401c80
cmp edx, 0x800
jae 0x401d46
mov ecx, dword [edx*4 + 0x423600]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x423a00]
mov dword [edx*4 + 0x423a00], ecx
inc edx
cmp edx, 0x800
jb 0x401d22
mov dword [0x4239b8], 0x408450
call fcn.004085e0
test eax, eax
jne 0x401d63
mov dword [0x4239b8], 0x4084f0
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x718], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x714], 0
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x710], 0
push eax
lea edx, [ebp - 0x6d4]
mov dword [ebp - 0x70c], 0
lea ecx, [ebp - 0x728]
mov dword [ebp - 0x6e8], 0
movups xmmword [ebp - 0x728], xmm0
mov dword [ebp - 0x6e4], 0
movups xmmword [ebp - 0x6f8], xmm0
mov dword [ebp - 0x6e0], 0
call fcn.00407ba0
add esp, 8
test eax, eax
je 0x401e06
lea edx, [ebp - 0x6a0]
lea ecx, [ebp - 0x728]
call fcn.004058a0
push 0x41fb30
lea ecx, [ebp - 0x640]
call fcn.004029a0
jmp 0x40225e
xor edx, edx
mov dword [ebp - 0x6a8], 0
mov dword [ebp - 0x688], 0
mov dword [ebp - 0x6a4], 0
mov dword [ebp - 0x67c], edx
cmp dword [ebp - 0x70c], edx
jbe 0x40218f
xor ecx, ecx
mov dword [ebp - 0x678], ecx
mov eax, dword [ebp - 0x6e8]
mov edi, dword [ebp - 0x718]
add edi, ecx
mov dword [ebp - 0x68c], 0
mov dword [ebp - 0x684], 0
mov ecx, dword [eax + edx*4]
mov edx, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x6e4]
sub edx, ecx
mov dword [ebp - 0x674], edi
lea esi, [eax + ecx*2]
mov ecx, 0
je 0x401e92
mov ax, word [esi + ecx*2]
mov word [ebp + ecx*2 - 0x218], ax
inc ecx
cmp ecx, edx
jb 0x401e81
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004103ce
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00410425
lea ecx, [ebp - 0x420]
add esp, 0x30
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ee2
lea eax, [ebp - 0x628]
sub ecx, edx
push eax
sar ecx, 1
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x218]
lea eax, [eax + ecx*2]
push eax
call fcn.00410425
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f20
sub ecx, edx
mov eax, 0x7ffffffe
mov edx, dword [ebp + 0x18]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x402274
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
push ecx
cmova eax, dword [ebp + 8]
lea ecx, [ebp - 0x218]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x698]
lea ecx, [ebp - 0x640]
call fcn.00402fd0
or dword [ebp - 0x680], 1
lea eax, [ebp - 0x640]
cmp dword [ebp - 0x62c], 7
push 0
cmova eax, dword [ebp - 0x640]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x6d8], esi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x62c]
cmp ecx, 7
jbe 0x401fe8
mov edx, dword [ebp - 0x640]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401fde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40226f
push ecx
push edx
call fcn.0040d068
add esp, 8
xor eax, eax
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
cmp esi, 0xffffffff
je 0x4021e9
mov ecx, dword [ebp - 0x674]
mov edi, dword [edi + 8]
mov dword [ebp - 0x694], edi
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x674], ecx
mov eax, edi
or eax, ecx
je 0x40215c
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x6a8]
push eax
push dword [ebp - 0x67c]
lea edx, [ebp - 0x6d4]
lea ecx, [ebp - 0x728]
call fcn.004080e0
add esp, 0x20
test eax, eax
jne 0x402209
mov edi, dword [ebp - 0x684]
push eax
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x690]
push eax
mov eax, dword [ebp - 0x68c]
add eax, dword [ebp - 0x688]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4021e9
mov eax, dword [ebp - 0x690]
cmp eax, edi
jne 0x4021e9
mov edi, dword [ebp - 0x694]
mov ecx, dword [ebp - 0x698]
sub edi, eax
mov eax, dword [0x4239c0]
sbb dword [ebp - 0x674], 0
mov dword [ebp - 0x694], edi
cmp eax, dword [ecx + 4]
jle 0x40214c
push 0x4239c0
call fcn.0040d222
add esp, 4
cmp dword [0x4239c0], 0xffffffff
jne 0x40214c
mov dword [0x4239d4], 0
mov dword [0x4239d0], 0
mov dword [0x4239cc], 0
mov dword [0x4239c4], 0
mov byte [ebp - 4], 6
call fcn.00404710
push 0x4194a0
call fcn.0040d053
push 0x4239c0
mov byte [ebp - 4], 4
call fcn.0040d1d1
add esp, 8
call fcn.00404670
mov ecx, dword [ebp - 0x674]
jmp 0x402026
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x67c]
mov ecx, dword [ebp - 0x678]
inc edx
add ecx, 0x20
mov dword [ebp - 0x67c], edx
mov dword [ebp - 0x678], ecx
cmp edx, dword [ebp - 0x70c]
jb 0x401e40
lea edx, [ebp - 0x6a0]
lea ecx, [ebp - 0x728]
call fcn.004058a0
cmp byte [ebp - 0x6c4], 0
je 0x4021b7
push dword [ebp - 0x6c0]
call fcn.0040d1a1
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x402230
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402226
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40226f
jmp 0x402226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x670]
call fcn.00405100
push 0x4214c4
lea eax, [ebp - 0x670]
jmp 0x402269
push str.Could_not_decompress_data_as_it_is_corrupt.
lea ecx, [ebp - 0x670]
call fcn.004029a0
push 0x4214c4
lea eax, [ebp - 0x670]
jmp 0x402269
push ecx
push edx
call fcn.0040d068
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cdb6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x640]
call fcn.00405100
push 0x4214c4
lea eax, [ebp - 0x640]
push eax
call fcn.0040e15a
call fcn.0041012f
call fcn.004010a0
int3