Function at 0x415400
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x59c
mov eax, dword [0x44a1a0]
xor eax, esp
mov dword [esp + 0x594], eax
mov eax, dword [esp + 0x5bc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x5b8]
push ebp
mov ebp, dword [esp + 0x5ac]
mov edx, ebp
push esi
mov esi, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5c8]
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 0x415470
cmp dword [esp + 0x60], ebp
jne 0x4154a3
mov dword [ebx], edx
mov dword [edi], edx
xor eax, eax
mov ecx, dword [esp + 0x5a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e8c8
add esp, 0x59c
ret 0x20
mov eax, dword [edi]
mov ecx, 1
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0x60], 0
jne 0x4154bd
inc ecx
cmp ecx, 0xf
jbe 0x4154b0
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov edx, 0xf
cmovb eax, ecx
jmp 0x4154d0
cmp dword [esp + edx*4 + 0x60], 0
jne 0x4154da
dec edx
jne 0x4154d0
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 0x415505
sub ebx, dword [esp + ecx*4 + 0x60]
js 0x4155fd
inc ecx
add ebx, ebx
cmp ecx, edx
jb 0x4154f4
mov eax, dword [esp + edx*4 + 0x60]
sub ebx, eax
mov dword [esp + 0x54], ebx
js 0x4155fd
add eax, ebx
xor ecx, ecx
mov dword [esp + edx*4 + 0x60], eax
mov dword [esp + 0xa4], ecx
dec edx
je 0x415541
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 0x415530
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x415562
mov eax, dword [esp + edx*4 + 0xa0]
mov dword [esp + eax*4 + 0x120], ecx
inc eax
mov dword [esp + edx*4 + 0xa0], eax
inc ecx
cmp ecx, ebp
jb 0x415543
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x120]
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 + 0xe4], edi
mov dword [esp + 0x48], ebp
cmp eax, dword [esp + 0x24]
jg 0x41589d
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 0x41587a
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 0x41573c
sub ebx, ecx
jmp 0x415614
mov eax, 0xfffffffd
jmp 0x415488
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 0x415677
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x30]
add eax, ecx
cmp ebx, esi
jae 0x415673
inc ebx
cmp ebx, esi
jae 0x415673
lea esp, [esp]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x415673
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x415660
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 0x4156a2
or eax, 0xffffffff
sub eax, esi
add dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x64]
lea eax, [eax*8]
add eax, ebp
jmp 0x4156c7
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 0x415893
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 + 0xe4], ebp
mov dword [ecx], ebp
mov dword [eax], 0
test edx, edx
je 0x415727
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 + 0xe0]
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 0x415610
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 + 0x120]
cmp dword [esp + 0x18], eax
jb 0x415766
mov byte [esp + 0x34], 0xc0
jmp 0x4157be
mov eax, dword [esp + 0x5b8]
cmp ecx, eax
jae 0x415787
cmp ecx, 0x100
mov dword [esp + 0x2c], ecx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x34], al
jmp 0x4157b9
sub ecx, eax
cmp ecx, 0x1f
jae 0x4155fd
mov eax, dword [esp + 0x5c0]
test eax, eax
je 0x4155fd
mov al, byte [eax + ecx*2]
add al, 0x50
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x5bc]
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 0x415805
mov ebx, dword [esp + 0x2c]
lea ecx, [eax*8]
add ecx, ebp
lea edi, [edx*8]
mov ebp, dword [esp + 0x34]
jmp 0x4157f0
mov dword [ecx], ebp
add eax, edx
mov dword [ecx + 4], ebx
add ecx, edi
cmp eax, esi
jb 0x4157f0
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 0x41581f
xor edi, eax
shr eax, 1
test edi, eax
jne 0x415817
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 0x415862
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 0x415840
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 0x4155e3
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jg 0x41589d
mov edx, dword [esp + 0x28]
jmp 0x4155c2
mov eax, 0xfffffffc
jmp 0x415488
cmp dword [esp + 0x54], 0
je 0x415486
cmp dword [esp + 0x24], 1
je 0x415486
mov eax, 0xfffffffb
jmp 0x415488