Function at 0x415b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edx, 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 0x415bb0
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 0x415bd0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x415bee
mov eax, 0xffffffff
jmp 0x415bf7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.004096b0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xda07c429
mov dword [esp + 0xc], 0xde3ad828
mov dword [esp + 0x10], 0xd22fdc3a
mov dword [esp + 0x14], 0xd60cd0f1
mov dword [esp + 0x18], 0xea1fd45d
mov dword [esp + 0x1c], 0xee1de812
mov dword [esp + 0x20], 0xe21cec18
mov dword [esp + 0x24], 0xe615e010
mov dword [esp + 0x28], 0xfa2ee4c5
mov dword [esp + 0x2c], 0xfe0bf802
mov dword [esp + 0x30], 0xf20cfc09
mov dword [esp + 0x34], 0xf60ef003
mov dword [esp + 0x38], 0x8a67f400
mov word [esp + 0x3c], 0x8889
mov dword [esp + 0x3e], 0
mov byte [esp + 0x42], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x3a
ja 0x415cc0
nop
nop
nop
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add edx, 0x5f437d0e
xor edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x35
mov ecx, dword [esp]
mov byte [esp + ecx + 8], dl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x3b
jb 0x415c90
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov edi, esi
test dx, dx
je 0x415cf1
add ecx, 2
mov edi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415ce0
mov word [edi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415d21
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 0x415d10
mov word [edi], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415d51
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 0x415d40
mov word [edi], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x415d60
mov ecx, dword [esp + 0x5c]
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 0x415d80
mov edx, dword [esp + 0x60]
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 0x415da0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x415dc4
mov eax, 0xffffffff
jmp 0x415dcd
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.004096b0
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x415e02
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 0x415df0
mov word [eax], 0x2f
mov dword [esp + 8], 0x6ea468b8
mov dword [esp + 0xc], 0x12876cf5
mov dword [esp + 0x10], 0x168510fa
mov dword [esp + 0x14], 0x1af41480
mov dword [esp + 0x18], 0x1e8d1888
mov dword [esp + 0x1c], 0x2d21c88
mov byte [esp + 0x20], 1
mov dword [esp + 0x21], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1c
ja 0x415e90
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, 0x9f6d8e3a
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xad
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1d
jb 0x415e60
add eax, 2
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x415ec1
add ecx, 2
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 0x415eb0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x415ef1
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 0x415ee0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415f21
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 0x415f10
mov word [eax], 0
mov dword [esp + 8], 0x25242770
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x415f95
nop
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]
lea edx, [eax + ecx]
add edx, 0xf0d94638
add eax, 0xf0d94638
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xe2
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x415f50
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.0041b520
add esp, 0x20
mov ebx, eax
jmp dword [0x447f28]