Function at 0x10016030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b487
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1016c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov ecx, dword [0x101f4698]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x10016273
mov ecx, dword [0x101f4834]
mov cl, byte [ecx + edx]
test cl, cl
jne 0x1001626f
mov esi, dword [0x101df848]
test esi, esi
je 0x1001613e
mov ecx, dword [0x101f5c0c]
add ecx, 0xffffffd6
xor ecx, 0xea42cdf6
mov eax, dword [ecx + edx]
cmp eax, dword [ecx + esi]
jne 0x100160c1
mov ecx, dword [0x101f4774]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x1001613e
mov byte [ebp - 0x51], 1
xor eax, eax
mov dword [ebp - 0x20], 0x60a0308
mov dword [ebp - 0x1c], 0x50e3418
mov dword [ebp - 0x18], 0x6b12060e
nop dword [eax]
xor byte [ebp + eax - 0x20], 0x6b
inc eax
cmp eax, 0xc
jb 0x100160e0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10016101
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10011990
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, 0x101e9590
push eax
mov dword [ebp - 0x58], ebx
call fcn.100107b0
cmp byte [eax], 0
je 0x10016141
mov byte [ebp - 0x52], bl
jmp 0x10016145
mov byte [ebp - 0x51], bl
mov byte [ebp - 0x52], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1001618a
mov edx, dword [ebp - 0x24]
and ebx, 0xfffffffe
cmp edx, 0x10
jb 0x1001618a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016180
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016180
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10128808
add esp, 8
cmp byte [ebp - 0x52], 0
jne 0x1001626f
cmp byte [ebp - 0x51], 0
jne 0x1001622a
mov dword [ebp - 0x20], 0x60a0308
xor eax, eax
mov dword [ebp - 0x1c], 0xe1f3418
mov word [ebp - 0x18], 0x60a
mov byte [ebp - 0x16], 0x6b
nop dword [eax + eax]
xor byte [ebp + eax - 0x20], 0x6b
inc eax
cmp eax, 0xb
jb 0x100161c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100161f0
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.10011990
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 1
or ebx, 2
mov ecx, 0x101e9590
push eax
mov dword [ebp - 0x58], ebx
call fcn.100107b0
mov byte [ebp - 0x51], 1
cmp byte [eax], 0
jne 0x1001622e
mov byte [ebp - 0x51], 0
test bl, 2
je 0x10016269
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10016269
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001625f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001625f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10128808
add esp, 8
cmp byte [ebp - 0x51], 0
je 0x10016273
mov al, 1
jmp 0x10016275
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1012838d
mov esp, ebp
pop ebp
ret 4