Function at 0x415890
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
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 0x4158b0
sar eax, 1
mov ebx, dword [edx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4158d0
add eax, 0x1b
sar ecx, 1
mov edx, ecx
and edx, eax
xor ecx, eax
lea eax, [ecx + edx*2]
test eax, eax
jns 0x4158f4
mov eax, 0xffffffff
jmp 0x4158f6
add eax, eax
push eax
call fcn.004092e0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x61d267c0
mov dword [esp + 0xc], 0x5dff63f1
mov dword [esp + 0x10], 0x59ca5fff
mov dword [esp + 0x14], 0x55e55bb8
mov dword [esp + 0x18], 0x51da57dc
mov dword [esp + 0x1c], 0x4dc453cf
mov dword [esp + 0x20], 0x49d54fc1
mov dword [esp + 0x24], 0x45dc4bd9
mov dword [esp + 0x28], 0x41eb47a4
mov dword [esp + 0x2c], 0x3dce43df
mov dword [esp + 0x30], 0x39a53fb0
mov dword [esp + 0x34], 0x35a33bae
mov dword [esp + 0x38], 0x319237b9
mov dword [esp + 0x3c], 0x3330
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x37
ja 0x4159bc
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add edx, 0x33732199
xor edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
mov ecx, edx
xor ecx, 0xfd
and edx, 2
add edx, edx
sub edx, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 8], dl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x38
jb 0x415980
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov edi, esi
test dx, dx
je 0x4159e1
add ecx, 2
mov edi, esi
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4159d0
mov word [edi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415a11
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x415a00
mov word [edi], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415a41
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415a30
mov word [edi], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x415a50
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x415a70
mov edx, dword [esp + 0x5c]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x415a90
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x415ab4
mov eax, 0xffffffff
jmp 0x415abd
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.004092e0
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x415af2
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x415ae0
mov word [eax], 0x2f
mov dword [esp + 8], 0x29612b75
mov dword [esp + 0xc], 0x2dba2fb0
mov dword [esp + 0x10], 0x51c05347
mov dword [esp + 0x14], 0x553957c5
mov dword [esp + 0x18], 0x59c85bc5
mov dword [esp + 0x1c], 0x5d0f5fcd
mov dword [esp + 0x20], 0x435c
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1c
ja 0x415b8d
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]
lea ebp, [ecx + edx]
add ebp, 0xa469c3b7
add ecx, 0xa469c3b7
and ecx, edx
add ecx, ecx
sub ebp, ecx
mov dword [esp + 4], ebp
mov ecx, dword [esp + 4]
add cl, 0x6d
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1d
jb 0x415b50
add eax, 2
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x415bc1
add ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415bb0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415bf1
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 0x415be0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415c21
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 0x415c10
mov word [eax], 0
mov dword [esp + 8], 0x838281ea
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x415c7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x59b44f20
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x60
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x415c50
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x70]
call fcn.00417e80
add esp, 0x20
mov ebx, eax
jmp dword [0x43ec7c]