Function at 0x1005c8ca
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, edx
mov edi, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x20], eax
push ecx
call fcn.1005c7da
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1005c909
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.100375ba
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 8], edi
mov ecx, edi
push 8
mov edi, eax
push eax
call fcn.1005052a
mov dword [esp], esi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [esp]
mov eax, dword [esi + 0x58]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1005c928
mov edi, dword [esp]
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ecx
mov ecx, edi
call fcn.1003bd1a
mov esi, dword [edi + 0x3c]
cmp byte [edi + 0x38], 0
je 0x1005c96d
lea eax, [edi + 0x18]
mov dword [edi + 0x30], 0
push eax
call dword [0x1008bee0]
test esi, esi
jne 0x1005c9b2
lea esi, [esp + 0x14]
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1004505a
mov eax, dword [esi]
lea esi, [esp + 0x18]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.10053ffa
mov ebx, dword [esi]
test ebx, ebx
je 0x1005c9a9
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 1
call esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp]
jmp 0x1005ca16
mov ecx, edi
call fcn.1003bd1a
mov ebx, dword [edi + 0x3c]
xor esi, esi
mov edi, 0
test ebx, ebx
je 0x1005c9e3
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
movzx esi, al
mov edi, eax
and edi, 0xffffff00
mov ecx, dword [esp]
cmp byte [ecx + 0x38], 0
je 0x1005c9fd
lea eax, [ecx + 0x18]
mov dword [ecx + 0x30], 0
push eax
call dword [0x1008bee0]
test ebx, ebx
je 0x1005cac7
or edi, esi
mov esi, dword [esp + 0xc]
cmp edi, esi
mov ebx, dword [esp]
jb 0x1005cadc
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x14]
mov dword [edi], ebx
mov ecx, ebx
call fcn.1003bd1a
lea edx, [esp + 0x10]
mov dword [edx], esi
mov ecx, ebx
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.1005cafa
add esp, 8
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x1005ca62
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [0x1008bee0]
mov eax, 8
mov edi, dword [esp + 8]
mov ecx, edi
push eax
lea esi, [esp + 0x1c]
push esi
call fcn.1005052a
movsd xmm0, qword [esp + 0x18]
movsd qword [ebx + 0x68], xmm0
mov ecx, edi
mov eax, 8
push eax
push esi
call fcn.1005052a
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp]
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x74]
mov edx, edi
lock cmpxchg8b qword [esi + 0x70]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1005ca9c
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x78], eax
jmp 0x1005c8f6
mov dword [0x1008f8f4], 0x1008371f
int3
mov dword [0x1008f8f4], 0x1008205d
int3