Function at 0x4387c0
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 0x438857
mov edx, dword [ecx]
test edx, edx
je 0x438857
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
nop
movzx esi, byte [esp + eax - 0xe7]
lea ebx, [eax - 0x6a48e400]
mov edi, eax
and edi, esi
or ebx, esi
xor ebx, edi
mov esi, ebx
not esi
and esi, 0x98
and ebx, 0x67
sub ebx, esi
inc bl
mov byte [esp + eax - 0xe7], bl
inc eax
cmp eax, 0xf0
jne 0x4387f0
mov eax, dword [esp + 4]
mov ebx, dword [0x44b030]
test ebx, ebx
je 0x4388ed
xor edi, edi
mov esi, dword [0x44b034]
cmp dword [esi + edi*8], 0x2dedf0b8
je 0x4388cc
inc edi
cmp ebx, edi
jne 0x438840
jmp 0x4388ed
mov dword [esp + 4], 0x43020108
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0xc0
movzx edx, byte [esp + eax - 0xbc]
mov ecx, eax
and ecx, edx
mov edi, ecx
or edi, 0xfffffffd
inc edi
mov esi, ecx
and esi, 0xffffffc5
imul esi, edi
mov edi, ecx
and edi, 2
or ecx, 2
imul ecx, edi
add esi, edx
sub esi, ecx
lea ecx, [eax + esi]
add ecx, 0x8e8cac3f
mov edx, ecx
xor edx, 0x7e
mov esi, ecx
or esi, 1
and esi, edx
xor ecx, 1
lea ecx, [ecx + esi*2]
mov byte [esp + eax - 0xbc], cl
inc eax
cmp eax, 0xc7
jne 0x438870
mov eax, dword [esp + 4]
jmp 0x438a7b
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
je 0x4388ed
push dword [ebp + 8]
push edx
push 2
push esi
push dword [0x44b038]
mov esi, ecx
call fcn.0043b600
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 0x4389c5
cmp eax, 0xc000010a
jne 0x4389c5
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], 0x787b7a7d
mov byte [esp + 8], 0
mov eax, 0xeb
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xe7]
lea ebx, [eax - 0x6a48e400]
mov edi, eax
and edi, esi
or ebx, esi
xor ebx, edi
mov esi, ebx
not esi
and esi, 0x98
and ebx, 0x67
sub ebx, esi
inc bl
mov byte [esp + eax - 0xe7], bl
inc eax
cmp eax, 0xf0
jne 0x438940
mov eax, dword [esp + 4]
mov esi, dword [0x44b030]
test esi, esi
je 0x4389c5
xor edi, edi
mov ebx, dword [0x44b034]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4e66b5a3
je 0x4389a0
inc edi
cmp esi, edi
jne 0x438990
jmp 0x4389c5
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x4389c5
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 3
push esi
push dword [0x44b038]
mov esi, ecx
call fcn.0043b600
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x438a7b
mov edx, dword [ecx]
test edx, edx
je 0x438a7b
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x787b7a7d
mov byte [esp + 8], 0
mov esi, 0xeb
nop
nop
nop
movzx edi, byte [esp + esi - 0xe7]
lea ebx, [esi - 0x6a48e400]
mov edx, esi
and edx, edi
or ebx, edi
xor ebx, edx
mov edx, ebx
not edx
and edx, 0x98
and ebx, 0x67
sub ebx, edx
inc bl
mov byte [esp + esi - 0xe7], bl
inc esi
cmp esi, 0xf0
jne 0x4389f0
mov esi, dword [0x44b030]
test esi, esi
je 0x438a75
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [0x44b034]
nop
nop
nop
cmp dword [edi + ebx*8], 0xb62b8d10
je 0x438a50
inc ebx
cmp esi, ebx
jne 0x438a40
jmp 0x438a75
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x438a75
push dword [esp + 0xc]
push 1
push esi
push dword [0x44b038]
mov esi, ecx
mov edi, eax
call fcn.0043b600
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