Function at 0x415a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x415a80
mov edx, eax
sar edx, 1
xor edx, 0x1b
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x415aa0
and eax, 0x36
add edx, eax
sar ecx, 1
add ecx, edx
jns 0x415abd
mov ecx, 0xffffffff
jmp 0x415abf
add ecx, ecx
push ecx
call fcn.004097d0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x21f22780
mov dword [esp + 0xc], 0x3d9f2391
mov dword [esp + 0x10], 0x398a3f9f
mov dword [esp + 0x14], 0x35e53bd8
mov dword [esp + 0x18], 0x31ba37bc
mov dword [esp + 0x1c], 0xd84338f
mov dword [esp + 0x20], 0x9b50f81
mov dword [esp + 0x24], 0x5bc0bb9
mov dword [esp + 0x28], 0x1ab07e4
mov dword [esp + 0x2c], 0x1d8e03bf
mov dword [esp + 0x30], 0x19a51f90
mov dword [esp + 0x34], 0x15a31bae
mov dword [esp + 0x38], 0x11b21799
mov dword [esp + 0x3c], 0x1310
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x415b7e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x68244949
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x93
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x415b50
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x415ba1
add ecx, 2
mov eax, esi
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415b90
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415bd1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x415bc0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415c01
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415bf0
mov word [eax], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x415c10
sar eax, 1
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x415c30
sar ecx, 1
lea ebx, [eax + ecx]
lea edx, [eax + ecx]
inc edx
lea ecx, [ebx*2 + 2]
xor edx, 0xd
mov ebx, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x415c60
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x415c7d
mov eax, 0xffffffff
jmp 0x415c7f
add eax, eax
push eax
call fcn.004097d0
add esp, 4
mov edi, eax
movzx eax, word [ebp]
mov ecx, edi
test ax, ax
je 0x415cb2
add ebp, 2
mov ecx, edi
nop
nop
nop
nop
nop
nop
mov word [ecx], ax
add ecx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x415ca0
lea eax, [ecx + 2]
mov word [ecx], 0x2f
mov dword [esp + 8], 0x571b493b
mov dword [esp + 0xc], 0x53ee55ec
mov dword [esp + 0x10], 0x5fec51fd
mov dword [esp + 0x14], 0x5bf35de3
mov dword [esp + 0x18], 0xa71459eb
mov dword [esp + 0x1c], 0xa3d1a51b
mov word [esp + 0x20], 0xa1a0
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov ebp, dword [esp + 0x5c]
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1e
ja 0x415d50
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
add ecx, 0xb82b746e
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xda
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1f
jb 0x415d20
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test dx, dx
je 0x415d71
add ecx, 2
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415d60
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415da1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x415d90
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415dd1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415dc0
mov word [eax], 0
mov dword [esp], 0x919e9fc6
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x415e21
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
add eax, 0xc30afe25
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x47
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x415df0
mov eax, esp
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.00418260
add esp, 0x20
mov ebx, eax
jmp dword [0x43ea4c]