Function at 0x507360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x5ac
mov eax, dword [0x6336a0]
xor eax, esp
mov dword [esp + 0x5a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x5b8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
mov esi, ecx
je 0x507392
mov eax, 0x40000
jmp 0x507ac7
cmp byte [ebp + 0x2c], 0
je 0x5073a2
mov eax, 0x50000
jmp 0x507ac7
cmp dword [ebp], edi
mov dword [esp + 0x10], edi
je 0x5073b3
mov dword [esp + 0x10], 0xc
xor eax, eax
jmp 0x5073c0
movzx ecx, word [eax + 0x5f8200]
mov word [esp + eax + 0x3a8], cx
add eax, 2
cmp cx, di
jne 0x5073c0
cmp word [esp + 0x3a8], di
jne 0x5073eb
mov eax, 0x10000
jmp 0x507ac7
lea eax, [esp + 0x3a8]
cmp word [eax], 0x5c
jne 0x5073fd
mov word [eax], 0x2f
add eax, 2
cmp word [eax], di
jne 0x5073f2
mov ebx, 8
lea edx, [esp + 0x3a8]
mov dword [esp + 0x14], ebx
call fcn.00506c00
test al, al
je 0x507424
mov dword [esp + 0x14], edi
mov ebx, edi
mov eax, dword [esp + 0x5c4]
mov ecx, esi
mov esi, ebp
call fcn.00507010
cmp eax, edi
jne 0x507ac7
push edi
push edi
push 0x104
lea eax, [esp + 0x16c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x3bc]
push ecx
push edi
push 0xfde9
mov dword [esp + 0x394], edi
mov byte [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x160]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x507477
sub eax, edx
cmp dword [ebp], edi
mov edx, dword [ebp + 0x68]
mov dword [esp + 0x30], eax
mov ax, 8
mov byte [esp + 0x264], cl
mov dword [esp + 0x15c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x368], 1
mov dword [esp + 0x370], edi
mov word [esp + 0x42], di
mov word [esp + 0x18], 0xb17
mov word [esp + 0x1a], 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
mov word [esp + 0x1c], ax
je 0x5074df
mov ax, 9
mov word [esp + 0x1c], ax
cmp ebx, edi
mov word [esp + 0x44], ax
mov word [esp + 0x1e], bx
jne 0x507500
mov eax, dword [ebp + 0x70]
cmp eax, edi
jl 0x507500
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x28], eax
jmp 0x507504
mov dword [esp + 0x28], edi
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x58]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov cl, byte [ebp + 0x58]
lea edx, [esp + 0x388]
lea eax, [esp + 0x39c]
mov word [esp + 0x40], di
mov edi, dword [ebp + 0x5c]
mov dword [esp + 0x154], edx
mov dword [esp + 0x158], eax
mov byte [esp + 0x38d], cl
mov eax, esi
mov edx, edi
mov cl, 8
mov dword [esp + 0x34], 0x11
mov dword [esp + 0x38], 9
mov byte [esp + 0x388], 0x55
mov byte [esp + 0x389], 0x54
mov byte [esp + 0x38a], 0xd
mov byte [esp + 0x38b], 0
mov byte [esp + 0x38c], 7
call fcn.00597400
mov byte [esp + 0x38e], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.00597400
mov byte [esp + 0x38f], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.00597400
mov dl, byte [ebp + 0x50]
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x54]
mov bl, al
mov byte [esp + 0x391], dl
mov eax, esi
mov edx, edi
mov cl, 8
mov byte [esp + 0x390], bl
call fcn.00597400
mov byte [esp + 0x392], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.00597400
mov byte [esp + 0x393], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.00597400
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x64]
mov byte [esp + 0x394], al
mov al, byte [ebp + 0x60]
mov byte [esp + 0x395], al
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.00597400
mov byte [esp + 0x396], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.00597400
mov byte [esp + 0x397], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.00597400
mov ecx, dword [esp + 0x388]
mov edx, dword [esp + 0x38c]
mov byte [esp + 0x398], al
mov dword [esp + 0x39c], ecx
mov dword [esp + 0x3a0], edx
mov esi, ebp
lea edi, [esp + 0x18]
mov byte [esp + 0x3a4], bl
mov byte [esp + 0x39e], 5
call fcn.00506020
test eax, eax
je 0x507692
call fcn.005071a0
mov eax, 0x400
jmp 0x507ac7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [eax + ecx + 0x1e]
add dword [ebp + 0x18], edx
cmp dword [ebp + 0x14], 0
je 0x5076b4
call fcn.005071a0
mov eax, dword [ebp + 0x14]
jmp 0x507ac7
mov edi, dword [ebp]
test edi, edi
lea esi, [ebp + 0x30]
mov dword [esi], 0x12345678
mov dword [ebp + 0x34], 0x23456789
mov dword [ebp + 0x38], 0x34567890
je 0x5076e4
mov cl, byte [edi]
test cl, cl
je 0x5076e4
mov edx, esi
call fcn.00506bb0
add edi, 1
jne 0x5076d2
cmp byte [0x63c048], 0
jne 0x507706
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.00579407
add esp, 4
xor edi, edi
call fcn.00579414
sar eax, 7
mov byte [esp + edi + 0x37c], al
add edi, 1
cmp edi, 0xc
jl 0x507708
mov eax, dword [esp + 0x20]
shr eax, 8
mov byte [esp + 0x387], al
xor ebx, ebx
nop
mov edi, dword [esi]
movzx ecx, byte [esp + ebx + 0x37c]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e0a90]
mov eax, dword [esi + 8]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov edx, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5e0a90]
mov edi, dword [esi]
and edx, 0xfffd
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor cl, byte [esp + ebx + 0x37c]
mov dword [esi + 8], eax
mov byte [esp + ebx + 0x37c], cl
movzx ecx, byte [esp + ebx + 0x37d]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e0a90]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov edi, dword [esi]
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
mov edx, eax
shr eax, 8
xor eax, dword [ecx*4 + 0x5e0a90]
movzx ecx, byte [esp + ebx + 0x37e]
xor ecx, edi
and ecx, 0xff
mov dword [esi + 8], eax
mov ecx, dword [ecx*4 + 0x5e0a90]
and edx, 0xfffd
or edx, 2
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov eax, edx
xor eax, 1
imul ecx, ecx, 0x8088405
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x37d]
add ecx, 1
mov dword [esi + 4], ecx
mov byte [esp + ebx + 0x37d], al
mov eax, dword [esi + 8]
shr ecx, 0x18
mov edx, eax
xor ecx, eax
and edx, 0xfffd
and ecx, 0xff
or edx, 2
shr eax, 8
xor eax, dword [ecx*4 + 0x5e0a90]
mov ecx, edx
mov dword [esi + 8], eax
xor ecx, 1
imul ecx, edx
mov edi, dword [esi]
shr ecx, 8
xor cl, byte [esp + ebx + 0x37e]
mov edx, eax
mov byte [esp + ebx + 0x37e], cl
movzx ecx, byte [esp + ebx + 0x37f]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5e0a90]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
and edx, 0xfffd
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5e0a90]
or edx, 2
mov dword [esi + 8], eax
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x37f]
add ebx, 4
cmp ebx, 0xc
mov byte [esp + ebx + 0x37b], al
jl 0x507730
cmp dword [ebp], 0
je 0x507915
push 0xc
lea ecx, [esp + 0x380]
push ecx
mov ecx, ebp
call fcn.00506e10
add dword [ebp + 0x18], 0xc
mov ebx, dword [esp + 0x14]
xor esi, esi
xor eax, eax
cmp dword [ebp], esi
setne al
cmp ebx, 8
mov byte [ebp + 0x2d], al
jne 0x507939
lea edx, [esp + 0x18]
push edx
mov edi, ebp
call fcn.005071f0
jmp 0x507944
test ebx, ebx
jne 0x507946
mov eax, ebp
call fcn.00507300
mov esi, eax
cmp byte [ebp + 0x80], 0
mov byte [ebp + 0x2d], 0
je 0x507961
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x507961
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x90]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x18], edx
test eax, eax
mov dword [ebp + 0x7c], 0
mov dword [ebp + 0x70], ecx
jne 0x507ac7
test esi, esi
jne 0x507688
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x78]
add eax, edx
cmp dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
sete dl
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
je 0x507a0c
cmp dword [ebp], 0
jne 0x507a0c
test byte [esp + 0x1c], 1
mov word [esp + 0x1e], bx
jne 0x5079c5
and word [esp + 0x1c], 0xfff7
mov edx, dword [esp + 0x4c]
mov cx, word [esp + 0x1c]
sub edx, dword [ebp + 0x10]
mov eax, ebp
mov word [esp + 0x44], cx
call fcn.00506f60
test al, al
je 0x507a02
mov esi, ebp
lea edi, [esp + 0x18]
call fcn.00506020
test eax, eax
jne 0x507688
mov edx, dword [ebp + 0x18]
mov eax, ebp
call fcn.00506f60
test al, al
jne 0x507a46
mov eax, 0x2000000
jmp 0x507ac7
cmp word [esp + 0x1e], bx
je 0x507a1d
mov eax, 0x4000000
jmp 0x507ac7
test ebx, ebx
jne 0x507a25
test dl, dl
je 0x507a13
mov esi, ebp
lea edi, [esp + 0x18]
call fcn.005062f0
test eax, eax
jne 0x507688
mov dx, word [esp + 0x44]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x1c], dx
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x507ac7
mov eax, dword [esp + 0x38]
push eax
call fcn.00555176
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x15c]
add esp, 4
push ecx
mov esi, eax
push edx
push esi
call fcn.0057b7b0
add esp, 0xc
push 0x360
mov dword [esp + 0x15c], esi
call fcn.0055514b
mov ecx, 0xd8
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 4
test ecx, ecx
jne 0x507a9f
mov dword [ebp + 0x44], eax
jmp 0x507ac5
cmp dword [ecx + 0x35c], 0
je 0x507abf
jmp 0x507ab0
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x507ab0
mov dword [ecx + 0x35c], eax
xor eax, eax
mov ecx, dword [esp + 0x5b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00577139
add esp, 0x5ac
ret 8