Function at 0x4195c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [ebp + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x4195e0
mov edi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419600
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x4c], eax
add eax, edx
add eax, 0x1b
mov esi, 0xffffffff
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], ecx
jns 0x419633
mov eax, 0xffffffff
jmp 0x41963a
lea eax, [ecx*2 + 0x36]
push eax
call fcn.00408210
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0x41f247e0
mov dword [esp + 0x10], 0x4def43d1
mov dword [esp + 0x14], 0x49da4fef
mov dword [esp + 0x18], 0xb5054b28
mov dword [esp + 0x1c], 0xb12ab72c
mov dword [esp + 0x20], 0xbd24b31f
mov dword [esp + 0x24], 0xb915bf21
mov dword [esp + 0x28], 0xa52cbb29
mov dword [esp + 0x2c], 0xa11ba7c4
mov dword [esp + 0x30], 0xad3ea30f
mov dword [esp + 0x34], 0xa905af30
mov dword [esp + 0x38], 0x9503ab3e
mov dword [esp + 0x3c], 0x91329709
mov word [esp + 0x40], 0x9390
mov dword [esp + 0x42], 0
xor eax, eax
mov ecx, esi
or ecx, 0x71
add ecx, eax
mov edx, eax
xor edx, 0x71
lea ecx, [edx + ecx*2]
add cl, 2
xor cl, byte [esp + eax + 0xc]
add cl, 0xcb
mov byte [esp + eax + 0xc], cl
lea ecx, [eax + 1]
dec esi
mov eax, ecx
cmp ecx, 0x3a
jne 0x4196c0
movzx ecx, word [ebx]
mov edx, dword [esp + 4]
mov eax, edx
test cx, cx
je 0x419711
add ebx, 2
mov eax, edx
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x419700
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x419741
lea edx, [esp + 0xe]
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 0x419730
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x419771
add edi, 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 [edi]
add edi, 2
test cx, cx
jne 0x419760
mov word [eax], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419780
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4197a0
mov edx, dword [esp + 0x70]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4197c0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x4197e4
mov eax, 0xffffffff
jmp 0x4197ed
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.00408210
add esp, 4
mov ebx, eax
movzx eax, word [esi]
mov dword [esp + 8], ebx
test ax, ax
je 0x419821
add esi, 2
mov ebx, dword [esp + 8]
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x419810
mov word [ebx], 0x2f
mov dword [esp + 0xc], 0x21f927d5
mov dword [esp + 0x10], 0x3dae23a8
mov dword [esp + 0x14], 0x39883f83
mov dword [esp + 0x18], 0x35813bb5
mov dword [esp + 0x1c], 0x31803785
mov dword [esp + 0x20], 0xdc333bd
mov dword [esp + 0x24], 0xf0c
mov byte [esp + 0x28], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xc9
xor cl, byte [esp + eax + 0xc]
add cl, 0x13
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 0x1d
jne 0x419870
add ebx, 2
movzx eax, word [ebp]
test ax, ax
je 0x4198b2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4198a0
mov word [ebx], 0
movzx eax, word [esp + 0xc]
test ax, ax
je 0x4198e1
lea ecx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4198d0
mov word [ebx], 0
movzx eax, word [edi]
test ax, ax
je 0x419911
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x419900
mov word [ebx], 0
mov dword [esp + 0xc], 0x292a2b4a
xor eax, eax
movzx edx, byte [esp + eax + 0xc]
mov esi, eax
and esi, 1
xor esi, 0x4437e1f9
mov ecx, eax
and ecx, 2
sub ecx, esi
xor ecx, edx
add ecx, 0xaa48bc7f
mov edx, ecx
xor edx, 0xa3
and ecx, 0x5c
add ecx, ecx
sub ecx, edx
inc cl
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 4
jne 0x419920
lea eax, [esp + 0xc]
push 0
push 0
push 0xc00000
push eax
mov esi, dword [esp + 0x14]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x80]
call fcn.0041d570
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44412c]