Function at 0x419010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x590
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x58c], eax
mov eax, dword [esp + 0x5b0]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x5ac]
push ebp
mov ebp, dword [esp + 0x5a0]
mov edx, ebp
push esi
mov esi, dword [esp + 0x5a0]
push edi
mov edi, dword [esp + 0x5bc]
mov dword [esp + 0x44], ecx
mov ecx, esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], eax
movdqu xmmword [esp + 0x60], xmm0
movdqu xmmword [esp + 0x70], xmm0
movdqu xmmword [esp + 0x80], xmm0
movdqu xmmword [esp + 0x90], xmm0
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x60]
dec edx
jne 0x419080
cmp dword [esp + 0x60], ebp
jne 0x4190b3
mov dword [ebx], edx
mov dword [edi], edx
xor eax, eax
mov ecx, dword [esp + 0x59c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x590
ret 0x20
mov eax, dword [edi]
mov ecx, 1
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0x60], 0
jne 0x4190cd
inc ecx
cmp ecx, 0xf
jbe 0x4190c0
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov edx, 0xf
cmovb eax, ecx
jmp 0x4190e0
cmp dword [esp + edx*4 + 0x60], 0
jne 0x4190ea
dec edx
jne 0x4190e0
cmp eax, edx
mov dword [esp + 0x24], edx
mov ebx, 1
cmova eax, edx
shl ebx, cl
mov dword [esp + 0x1c], eax
mov dword [edi], eax
cmp ecx, edx
jae 0x419115
sub ebx, dword [esp + ecx*4 + 0x60]
js 0x41920d
inc ecx
add ebx, ebx
cmp ecx, edx
jb 0x419104
mov eax, dword [esp + edx*4 + 0x60]
sub ebx, eax
mov dword [esp + 0x54], ebx
js 0x41920d
add eax, ebx
xor ecx, ecx
mov dword [esp + edx*4 + 0x60], eax
mov dword [esp + 0xa4], ecx
dec edx
je 0x419151
xor eax, eax
lea esp, [esp]
add ecx, dword [esp + eax + 0x64]
lea eax, [eax + 4]
mov dword [esp + eax + 0xa4], ecx
dec edx
jne 0x419140
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x419172
mov eax, dword [esp + edx*4 + 0xa0]
mov dword [esp + eax*4 + 0x11c], ecx
inc eax
mov dword [esp + edx*4 + 0xa0], eax
inc ecx
cmp ecx, ebp
jb 0x419153
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x11c]
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
or edx, 0xffffffff
neg ebx
mov dword [esp + 0x3c], edi
xor ebp, ebp
mov dword [esp + 0xa0], edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xe0], edi
mov dword [esp + 0x48], ebp
cmp eax, dword [esp + 0x24]
jg 0x4194ad
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x60]
lea edx, [edx + eax*4]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov edi, esi
mov edx, dword [edx]
test edx, edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
je 0x41948a
mov eax, dword [esp + 0x30]
lea ecx, [eax + 1]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
dec dword [esp + 0x40]
dec eax
mov dword [esp + 0x30], eax
lea eax, [ebx + ecx]
cmp dword [esp + 0x14], eax
jle 0x41934c
sub ebx, ecx
jmp 0x419224
mov eax, 0xfffffffd
jmp 0x419098
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x24]
add ebx, ecx
sub esi, eax
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x14]
inc edx
cmp esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
cmova esi, ecx
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x40]
jbe 0x419287
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x30]
add eax, ecx
cmp ebx, esi
jae 0x419283
inc ebx
cmp ebx, esi
jae 0x419283
lea esp, [esp]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x419283
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x419270
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x5c]
mov ecx, ebx
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x44]
test ebp, ebp
je 0x4192b2
or eax, 0xffffffff
sub eax, esi
add dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x64]
lea eax, [eax*8]
add eax, ebp
jmp 0x4192d7
mov edx, dword [ecx + 0xac]
lea eax, [esi*8 + 8]
add ecx, 0xac
push 1
push eax
call dword [edx + 4]
test eax, eax
je 0x4194a3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
lea ebp, [eax + 8]
add eax, 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + edx*4 + 0xe0], ebp
mov dword [ecx], ebp
mov dword [eax], 0
test edx, edx
je 0x419337
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
mov dword [esp + edx*4 + 0xa0], edi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x34], bl
mov ebx, ebp
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + ecx*4 + 0xdc]
mov dword [esp + 0x2c], ebx
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], ebx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + ecx]
cmp dword [esp + 0x14], eax
jg 0x419220
mov edx, dword [esp + 0x14]
mov al, dl
sub al, bl
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [esp + 0x58]
lea eax, [esp + eax*4 + 0x11c]
cmp dword [esp + 0x18], eax
jb 0x419376
mov byte [esp + 0x34], 0xc0
jmp 0x4193ce
mov eax, dword [esp + 0x5ac]
cmp ecx, eax
jae 0x419397
cmp ecx, 0x100
mov dword [esp + 0x2c], ecx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x34], al
jmp 0x4193c9
sub ecx, eax
cmp ecx, 0x1f
jae 0x41920d
mov eax, dword [esp + 0x5b4]
test eax, eax
je 0x41920d
mov al, byte [eax + ecx*2]
add al, 0x50
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x5b0]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x2c], eax
add dword [esp + 0x18], 4
mov ecx, edx
mov eax, edi
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x419415
mov ebx, dword [esp + 0x2c]
lea ecx, [eax*8]
add ecx, ebp
lea edi, [edx*8]
mov ebp, dword [esp + 0x34]
jmp 0x419400
mov dword [ecx], ebp
add eax, edx
mov dword [ecx + 4], ebx
add ecx, edi
cmp eax, esi
jb 0x419400
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x41942f
xor edi, eax
shr eax, 1
test edi, eax
jne 0x419427
mov edx, dword [esp + 0x10]
xor edi, eax
mov eax, 1
mov dword [esp + 0x3c], edi
mov ecx, ebx
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + edx*4 + 0xa0]
je 0x419472
mov edi, edi
sub ebx, dword [esp + 0x1c]
mov eax, 1
mov ecx, ebx
dec edx
shl eax, cl
dec eax
and eax, edi
cmp eax, dword [esp + edx*4 + 0xa0]
jne 0x419450
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x4191f3
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jg 0x4194ad
mov edx, dword [esp + 0x28]
jmp 0x4191d2
mov eax, 0xfffffffc
jmp 0x419098
cmp dword [esp + 0x54], 0
je 0x419096
cmp dword [esp + 0x24], 1
je 0x419096
mov eax, 0xfffffffb
jmp 0x419098