Function at 0x420fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421000
mov ecx, dword [esp + 0x70]
mov esi, dword [ecx + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp word [esi + edx + 2], 0
lea edx, [edx + 2]
jne 0x421020
mov ecx, eax
sar ecx, 1
sar edx, 1
mov dword [esp + 0x50], edx
and eax, 0x36
mov dword [esp + 0x4c], ecx
xor ecx, 0x1b
add ecx, eax
add ecx, edx
jns 0x42104e
mov ecx, 0xffffffff
jmp 0x421050
add ecx, ecx
push ecx
call fcn.0040c510
add esp, 4
mov dword [esp + 4], 0x13e611f4
mov dword [esp + 8], 0x1ffd1d8b
mov dword [esp + 0xc], 0x1b8e19f9
mov dword [esp + 0x10], 0x7cb0524
mov dword [esp + 0x14], 0x39e0198
mov dword [esp + 0x18], 0xf980de1
mov dword [esp + 0x1c], 0xbe3099b
mov dword [esp + 0x20], 0x37a035a3
mov dword [esp + 0x24], 0x33c13110
mov dword [esp + 0x28], 0x3fa23dd1
mov dword [esp + 0x2c], 0x3bd339a4
mov dword [esp + 0x30], 0x27c925b2
mov dword [esp + 0x34], 0x23c621b3
mov word [esp + 0x38], 0x2d2c
mov dword [esp + 0x3a], 0
mov word [esp + 0x3e], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0xc4
xor cl, byte [esp + edx + 4]
add cl, 0x2c
mov byte [esp + edx + 4], cl
inc edx
cmp edx, 0x3c
jne 0x4210e0
movzx ecx, word [edi]
mov ebx, eax
test cx, cx
je 0x421121
add edi, 2
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x421110
mov word [ebx], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x421151
lea edx, [esp + 6]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421140
mov word [ebx], 0
movzx ecx, word [esi]
test cx, cx
je 0x421181
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x421170
mov dword [esp + 0x40], eax
mov word [ebx], 0
mov eax, dword [esp + 0x6c]
mov ebp, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x4211a0
mov ecx, dword [esp + 0x6c]
mov ebx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4211c0
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 0x4211e0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x421204
mov eax, 0xffffffff
jmp 0x42120d
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040c510
add esp, 4
movzx ecx, word [ebp]
mov dword [esp + 0x44], eax
mov esi, eax
test cx, cx
je 0x421242
add ebp, 2
mov esi, dword [esp + 0x44]
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x421230
mov word [esi], 0x2f
mov dword [esp + 4], 0x9d10b3d
mov dword [esp + 8], 0x58a0780
mov dword [esp + 0xc], 0x1f003ff
mov dword [esp + 0x10], 0x1de91f8d
mov dword [esp + 0x14], 0x19e81bed
mov dword [esp + 0x18], 0x15271795
mov dword [esp + 0x1c], 0x1314
mov eax, 0xe46fcd43
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x1b9032c1]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0xb0
mov byte [esp + eax + 0x1b9032c1], cl
inc eax
cmp eax, 0xe46fcd5f
jne 0x421290
add esi, 2
movzx eax, word [ebx]
test ax, ax
je 0x4212e1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4212d0
mov word [esi], 0
movzx eax, word [esp + 4]
test ax, ax
je 0x421313
lea ecx, [esp + 6]
mov ebx, dword [esp + 0x40]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421300
jmp 0x421317
mov ebx, dword [esp + 0x40]
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x421341
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x421330
mov word [esi], 0
mov dword [esp + 4], 0x2322217a
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 4]
mov edx, eax
or edx, 0xa8532e38
and edx, ecx
add edx, edx
neg edx
add edx, eax
add edx, 0xa8532e38
add dl, cl
add dl, 0xe8
mov byte [esp + eax + 4], dl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 7
jb 0x421360
lea eax, [esp + 4]
push 0
push 0
push 0xc00000
push eax
push ebx
push dword [esp + 0x58]
push dword [esp + 0x80]
call fcn.00424400
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44ca88]