Function at 0x1005eac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d5fa5
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push esi
mov esi, dword [0x100fb7b8]
push edi
mov edi, dword [0x100fb7bc]
cmp esi, edi
je 0x1005eb10
lea ecx, [esi + 0x18]
call fcn.1000d830
mov ecx, esi
call fcn.1000d830
add esi, 0x3c
cmp esi, edi
jne 0x1005eaf0
mov eax, dword [0x100fb7b8]
mov dword [0x100fb7bc], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x1005ed4c
mov ecx, dword [esi]
call fcn.1005e8e0
mov ecx, dword [0x100fc320]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
call edx
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x1005ed40
call fcn.1000e7d0
test al, al
je 0x1005ed40
cmp edi, dword [ebp + 8]
jne 0x1005ed40
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0x100d9068
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x3c], xmm0
call fcn.1000e1d0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
call fcn.1005e9d0
sub eax, 4
je 0x1005ebf0
sub eax, 1
jne 0x1005ed03
mov dword [ebp - 0x1a], 0x4bb04fb
xor ecx, ecx
mov dword [ebp - 0x16], 0x4ae
mov byte [ebp - 0x12], 1
lea eax, [ecx + 0x4c8]
xor word [ebp + ecx*2 - 0x1a], ax
inc ecx
cmp ecx, 3
jb 0x1005ebc0
lea ecx, [ebp - 0x1a]
mov byte [ebp - 0x12], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ebe0
lea eax, [ebp - 0x1a]
jmp 0x1005ec2e
mov dword [ebp - 0x24], 0x4ba04f9
xor eax, eax
mov dword [ebp - 0x20], 0x4be
mov byte [ebp - 0x1c], 1
lea ecx, [eax + 0x4c8]
xor word [ebp + eax*2 - 0x24], cx
inc eax
cmp eax, 3
jb 0x1005ec04
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x1c], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005ec20
lea eax, [ebp - 0x24]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000d8b0
mov ecx, dword [esi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x100fc310]
lea edi, [ebp - 0x104]
push edi
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
call edx
test al, al
je 0x1005ed03
mov ecx, edi
mov eax, edi
mov dword [ebp - 0x44], eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ec70
sub ecx, edx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x80]
call fcn.100208a0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x68]
call fcn.1000d260
mov byte [ebp - 4], 2
mov ecx, dword [esi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [esi]
mov al, byte [eax + 0x1017dbf4]
mov byte [ebp - 0x50], al
call fcn.10005ff0
mov ecx, dword [esi]
add ecx, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x80]
mov ecx, dword [0x100fb7bc]
push eax
cmp ecx, dword [0x100fb7c0]
je 0x1005eced
call fcn.1005f9a0
add dword [0x100fb7bc], 0x3c
jmp 0x1005ecf3
push ecx
call fcn.1005f760
lea ecx, [ebp - 0x68]
call fcn.1000d830
lea ecx, [ebp - 0x80]
call fcn.1000d830
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x1005ed40
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ed36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ed6c
push ecx
push edx
call fcn.100d178a
add esp, 8
add esi, 4
cmp esi, dword [ebp - 0x10]
jne 0x1005eb35
mov eax, dword [0x100fb7b8]
cmp eax, dword [0x100fb7bc]
mov ecx, dword [ebp - 0xc]
pop edi
setne al
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3