Function at 0x438c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx + 8], 0
je 0x438cc3
mov edx, dword [ecx]
test edx, edx
je 0x438cc3
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], 0x94959a9b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
add bl, 0xa6
xor bl, byte [esp + eax + 4]
add bl, 0xc2
mov byte [esp + eax + 4], bl
inc eax
cmp eax, 7
jne 0x438c80
mov eax, dword [esp + 4]
mov ebx, dword [0x44ac38]
test ebx, ebx
je 0x438d3e
xor edi, edi
mov esi, dword [0x44ac3c]
cmp dword [esi + edi*8], 0x2dedf0b8
je 0x438d1a
inc edi
cmp ebx, edi
jne 0x438cb0
mov edi, dword [ebp + 0x10]
jmp 0x438d3e
mov dword [esp + 4], 0x511e1f24
mov byte [esp + 8], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 4]
mov esi, eax
and esi, 0xa
mov edi, ecx
xor edi, 0xdab745c5
add edi, esi
xor edi, edx
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
add dl, 0x26
mov byte [esp + ecx + 4], dl
inc ecx
add eax, 2
cmp ecx, 5
jne 0x438ce0
mov eax, dword [esp + 4]
jmp 0x438e9b
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
mov edi, dword [ebp + 0x10]
je 0x438d3e
push dword [ebp + 8]
push edx
push 2
push esi
push dword [0x44ac40]
mov esi, ecx
call fcn.0043b650
mov ecx, esi
add esp, 0x14
mov esi, dword [ebp + 0xc]
cmp esi, 1
mov edx, edi
sbb edx, 0
jl 0x438df5
cmp eax, 0xc000010a
jne 0x438df5
mov edx, 0xffffd8f0
mov eax, esi
mul edx
sub edx, esi
imul esi, edi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 4], 0x94959a9b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
mov ebx, eax
add bl, 0xa6
xor bl, byte [esp + eax + 4]
add bl, 0xc2
mov byte [esp + eax + 4], bl
inc eax
cmp eax, 7
jne 0x438d90
mov eax, dword [esp + 4]
mov esi, dword [0x44ac38]
test esi, esi
je 0x438df5
xor edi, edi
mov ebx, dword [0x44ac3c]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4e66b5a3
je 0x438dd0
inc edi
cmp esi, edi
jne 0x438dc0
jmp 0x438df5
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x438df5
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 3
push esi
push dword [0x44ac40]
mov esi, ecx
call fcn.0043b650
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x438e9b
mov edx, dword [ecx]
test edx, edx
je 0x438e9b
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x94959a9b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
add dl, 0xa6
xor dl, byte [esp + ebx + 4]
add dl, 0xc2
mov byte [esp + ebx + 4], dl
inc ebx
cmp ebx, 7
jne 0x438e30
mov esi, dword [0x44ac38]
test esi, esi
je 0x438e95
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [0x44ac3c]
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xb62b8d10
je 0x438e70
inc ebx
cmp esi, ebx
jne 0x438e60
jmp 0x438e95
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x438e95
push dword [esp + 0xc]
push 1
push esi
push dword [0x44ac40]
mov esi, ecx
mov edi, eax
call fcn.0043b650
mov eax, edi
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc