Function at 0x438580
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 0x438600
mov edx, dword [ecx]
test edx, edx
je 0x438600
mov dword [esp + 4], 0x20272625
mov byte [esp + 8], 0
mov eax, 0x13489
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x13485]
xor esi, eax
mov edi, esi
and edi, 0x52
xor esi, 0x52
lea ebx, [esi + edi*2]
inc bl
mov byte [esp + eax - 0x13485], bl
inc eax
cmp eax, 0x1348e
jne 0x4385b0
mov eax, dword [esp + 4]
mov ebx, dword [0x449ea0]
test ebx, ebx
je 0x438679
xor edi, edi
mov esi, dword [0x449ea4]
cmp dword [esi + edi*8], 0x2dedf0b8
je 0x438658
inc edi
cmp ebx, edi
jne 0x4385f0
jmp 0x438679
mov dword [esp + 4], 0xff3e3930
mov byte [esp + 8], 0
mov eax, 0x1348a
mov ecx, 0xfffecb75
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x13486]
mov edx, eax
and edx, esi
add edx, edx
mov edi, ecx
sub edi, esi
add esi, eax
and edi, edx
not edx
and edx, esi
sub edx, edi
add dl, 0x4e
mov byte [esp + eax - 0x13486], dl
inc eax
dec ecx
cmp eax, 0x1348f
jne 0x438620
mov eax, dword [esp + 4]
jmp 0x4387fa
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
je 0x438679
push dword [ebp + 8]
push edx
push 2
push esi
push dword [0x449ea8]
mov esi, ecx
call fcn.0043b0a0
mov ecx, esi
add esp, 0x14
mov edi, dword [ebp + 0xc]
cmp edi, 1
mov esi, dword [ebp + 0x10]
mov edx, esi
sbb edx, 0
jl 0x438745
cmp eax, 0xc000010a
jne 0x438745
mov edx, 0xffffd8f0
mov eax, edi
mul edx
sub edx, edi
imul esi, esi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 4], 0x20272625
mov byte [esp + 8], 0
mov eax, 0x13489
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x13485]
xor esi, eax
mov edi, esi
and edi, 0x52
xor esi, 0x52
lea ebx, [esi + edi*2]
inc bl
mov byte [esp + eax - 0x13485], bl
inc eax
cmp eax, 0x1348e
jne 0x4386d0
mov eax, dword [esp + 4]
mov esi, dword [0x449ea0]
test esi, esi
je 0x438745
xor edi, edi
mov ebx, dword [0x449ea4]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4e66b5a3
je 0x438720
inc edi
cmp esi, edi
jne 0x438710
jmp 0x438745
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x438745
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 3
push esi
push dword [0x449ea8]
mov esi, ecx
call fcn.0043b0a0
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x4387fa
mov edx, dword [ecx]
test edx, edx
je 0x4387fa
mov dword [esp + 4], 0x20272625
mov byte [esp + 8], 0
mov esi, 0x13489
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + esi - 0x13485]
xor edi, esi
mov ebx, edi
and ebx, 0x52
xor edi, 0x52
lea ebx, [edi + ebx*2]
inc bl
mov byte [esp + esi - 0x13485], bl
inc esi
cmp esi, 0x1348e
jne 0x438770
mov esi, dword [0x449ea0]
test esi, esi
je 0x4387f4
mov edi, dword [esp + 4]
mov dword [esp + 0xc], edi
xor ebx, ebx
mov edi, dword [0x449ea4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xb62b8d10
je 0x4387d0
inc ebx
cmp esi, ebx
jne 0x4387c0
jmp 0x4387f4
mov esi, dword [edi + ebx*8 + 4]
cmp esi, dword [esp + 0xc]
je 0x4387f4
push edx
push 1
push esi
push dword [0x449ea8]
mov esi, ecx
mov edi, eax
call fcn.0043b0a0
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