Function at 0x100fb520
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147e2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x68
push esi
mov dword [ebp - 0x24], 0
xor esi, esi
xor edx, edx
mov dword [ebp - 0x40], esi
push edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], edx
mov eax, dword [0x101ee248]
test eax, eax
je 0x100fb579
mov eax, dword [eax + 0x18]
lea ecx, [esi + 1]
jmp 0x100fb580
mov ecx, 2
xor eax, eax
mov dword [ebp - 0x14], ecx
test cl, 2
je 0x100fb58e
and ecx, 0xfffffffd
mov dword [ebp - 0x14], ecx
test cl, 1
je 0x100fb599
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x100fb745
movaps xmm0, xmmword [0x1017fe80]
mov eax, 0x10
xorps xmm0, xmmword [0x1017ff80]
mov dword [ebp - 0x66], 0xe7e1f4ec
mov dword [ebp - 0x62], 0xf496ecf4
mov dword [ebp - 0x5e], 0x97f49590
mov word [ebp - 0x5a], 0xd4e2
movups xmmword [ebp - 0x76], xmm0
xor byte [ebp + eax - 0x76], 0xd4
inc eax
cmp eax, 0x1e
jb 0x100fb5d3
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x76]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100fb600
sub ecx, edx
lea eax, [ebp - 0x76]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.10003450
mov edx, dword [0x101ee250]
test edx, edx
je 0x100fb625
mov edx, dword [edx + 0x50]
jmp 0x100fb627
xor edx, edx
mov esi, dword [0x101ee248]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
test esi, esi
je 0x100fb63f
mov esi, dword [esi + 0x18]
or eax, 8
jmp 0x100fb644
or eax, 0x10
xor esi, esi
test al, 0x10
je 0x100fb64b
and eax, 0xffffffef
test al, 8
je 0x100fb652
and eax, 0xfffffff7
mov byte [ebp - 4], 2
or eax, 0x20
xor ecx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x20], ecx
push eax
mov dword [ebp - 0x34], ecx
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x30], edi
call fcn.100c4c10
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100fb6e1
cmp edi, dword [ebp - 0x14]
je 0x100fb697
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x30], edi
jmp 0x100fb6b0
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.10004e90
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub esi, eax
dec ecx
add ecx, esi
lea esi, [eax + 1]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], ecx
push eax
mov edx, ecx
lea ecx, [ebp - 0x28]
push esi
call fcn.100c4c10
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100fb688
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x20], esi
jmp 0x100fb6e3
xor esi, esi
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
cmp ecx, 0xf
jbe 0x100fb72d
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100fb720
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fb768
push ecx
push edx
call fcn.1006ccbf
mov edx, dword [ebp - 0x14]
add esp, 8
cmp esi, edi
je 0x100fb745
push dword [esi]
call fcn.100fb1f0
add esi, 4
cmp esi, edi
jne 0x100fb731
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x100fb778
sub edx, esi
mov eax, esi
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x100fb76e
mov esi, dword [eax - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100fb76e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push esi
call fcn.1006ccbf
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret