Function at 0x438460
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x438480
sar ecx, 1
mov edi, ecx
and edi, 2
mov edx, ecx
or ecx, 2
imul ecx, edi
xor edi, 2
and edx, 0xfffd
imul edx, edi
lea edi, [edx + ecx]
mov word [esp + 0x14], di
add ecx, edx
add ecx, 2
mov word [esp + 0x16], cx
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x484b4a4d
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x438525
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
lea edx, [eax + ecx]
add edx, 0x5eea0bf3
add eax, 0xf3
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 + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x41
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4384e0
mov ebx, dword [esp + 4]
mov eax, dword [0x442de0]
test eax, eax
je 0x43857f
xor ecx, ecx
mov edx, dword [0x442de4]
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xf81c0144
je 0x438550
inc ecx
cmp eax, ecx
jne 0x438540
jmp 0x43857f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43857f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push dword [0x442de8]
push eax
call fcn.00435090
add esp, 0x24
mov ebx, eax
mov dword [esp + 4], 0x3424163
mov word [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x4385ce
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0xc2aafd10
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xb0
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x4385a0
cmp ebx, dword [esp + 4]
jne 0x43874a
push dword [esp + 0x10]
call fcn.00433110
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], 0x484b4a4d
mov byte [esp + 8], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 4
ja 0x438657
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov edi, dword [esp]
movzx edi, byte [esp + edi + 4]
lea ebx, [edx + edi]
add ebx, 0x5eea0bf3
add edx, 0xf3
and edx, edi
mov edi, ebx
not edi
and edi, edx
add edi, edx
not edx
and edx, ebx
sub edx, edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
add dl, 0x41
mov edi, dword [esp]
mov byte [esp + edi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 5
jb 0x438610
mov ebx, dword [esp + 4]
mov edx, dword [0x442de0]
test edx, edx
je 0x4386c4
xor ebp, ebp
mov edi, dword [0x442de4]
nop
nop
nop
cmp dword [edi + ebp*8], 0xf81c0144
je 0x43868f
mov esi, ebp
and esi, 1
xor ebp, 1
lea ebp, [ebp + esi*2]
cmp ebp, edx
jb 0x438670
mov ebp, dword [esp + 0x44]
jmp 0x4386c4
mov edx, dword [edi + ebp*8 + 4]
cmp edx, ebx
mov ebp, dword [esp + 0x44]
je 0x4386c4
lea esi, [esp + 0x10]
lea edi, [esp + 0x14]
push esi
push ecx
push eax
push 2
push edi
push dword [esp + 0x48]
push 6
push dword [0x442de8]
push edx
mov edi, eax
call fcn.00435090
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x438741
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4386d5
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test ebp, ebp
je 0x438741
cmp dword [esp + 0x40], 0
je 0x438738
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x4386ef
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 0x1c], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
je 0x438738
and edx, 2
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x44]
mov dword [edx], ecx
push eax
call fcn.00433180
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret