Function at 0x1003f10a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10062d0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
cmp byte [ebp + 0x24], 0
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0xc], ecx
je 0x1003f335
cmp byte [ebp + 0x38], 0
je 0x1003f266
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x28]
call fcn.10008281
lea ecx, [esp + 0x34]
call fcn.1003dd4c
add esp, 0x18
xor ebx, ebx
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
je 0x1003f25f
push dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x40], 7
push eax
push dword [esp + 0x24]
mov word [esp + 0x34], cx
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], ebx
call fcn.1001d36a
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x28]
mov byte [esp + 0x94], 1
call fcn.1003ee8b
test eax, eax
jns 0x1003f253
mov dword [esp + 0x14], 0x2889
cmp dword [esp + 0x14], 0x297e
jle 0x1003f233
mov edi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x5b5d
mov esi, ebx
mov dword [esp + 0xc], 0x18b0
mov ebx, dword [esp + 0x10]
mov eax, esi
mov ecx, 0x1007cab8
xor eax, edi
cdq
push edx
push eax
call fcn.10001cb3
add esi, ebx
dec dword [esp + 0xc]
jne 0x1003f1eb
mov esi, dword [esp + 0x18]
add ebx, esi
dec dword [esp + 0x14]
push 0
mov dword [esp + 0x14], ebx
pop ebx
jne 0x1003f1dd
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x455d
jl 0x1003f1d1
inc edi
cmp edi, 0x6976
jl 0x1003f1cd
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [ebp + 0x3c]
lea ecx, [esp + 0x28]
push ebx
push 1
mov byte [eax], 1
call fcn.1000737d
lea ecx, [esp + 0x1c]
call fcn.100074ec
jmp 0x1003f401
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.1000737d
mov eax, dword [ebp + 0x3c]
mov byte [eax], bl
jmp 0x1003f245
mov dword [esp + 0xc], 0x60d3
cmp dword [esp + 0xc], 0x6225
push 0
pop ebx
jle 0x1003f2df
mov dword [esp + 0x10], ebx
mov edi, ebx
mov dword [esp + 0x14], 0x4b16
mov esi, ebx
mov dword [esp + 0x18], 0x7483
mov eax, esi
lea ecx, [esp + 0x40]
cdq
push edx
push eax
call fcn.10001a31
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003f2ab
mov eax, dword [eax]
push eax
call fcn.100490c6
pop ecx
push ebx
push 1
lea ecx, [esp + 0x48]
call fcn.1000209f
add esi, edi
dec dword [esp + 0x18]
jne 0x1003f293
mov esi, dword [esp + 0x10]
add edi, esi
dec dword [esp + 0x14]
jne 0x1003f289
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x4a60
jl 0x1003f27f
cmp dword [esp + 0xc], 0x6009
jge 0x1003f2f4
push str.qnr_mbl_ovgvqulmt_xmbj_xewen_acdzuetzx_fjoepa_iamwt_wxwamrfy_cfoguw_qij_ibiamadtk_unvgptfl
call fcn.100490c6
pop ecx
mov eax, dword [ebp + 0x10]
or dword [esp + 0x94], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp + 0x2c]
lea eax, [esp + 0x60]
push eax
call fcn.100408bf
mov ecx, dword [ebp + 8]
push eax
mov dword [esp + 0x98], 6
call fcn.1004096d
push ebx
lea ecx, [esp + 0x5c]
jmp 0x1003f3b6
mov dword [esp + 0x14], 0x1ba7
cmp dword [esp + 0x14], 0x11fd
jge 0x1003f38a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push str._ld__ld
call fcn.1004946a
mov esi, dword [esp + 0x1c]
add esp, 0xc
or edi, 0xffffffff
jmp 0x1003f373
mov ecx, esi
call fcn.1003f0c3
test al, al
jne 0x1003f37b
inc esi
cmp esi, dword [esp + 0x18]
jle 0x1003f367
jmp 0x1003f37d
mov edi, esi
push edi
push str._ld_n
call fcn.100490c6
pop ecx
pop ecx
cmp byte [ebp + 0x14], 0
je 0x1003f3bf
imul edx, dword [ebx], 0x18
lea ecx, [esp + 0x70]
mov esi, dword [ebp + 0x1c]
push dword [ebp + 0x18]
add edx, dword [esi]
call fcn.1003b0c7
pop ecx
imul ecx, dword [ebx], 0x18
push eax
add ecx, dword [esi]
call fcn.1001de2b
push 0
lea ecx, [esp + 0x74]
push 1
call fcn.1000737d
jmp 0x1003f401
mov edi, dword [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 0x34]
mov ecx, dword [edi]
mov eax, dword [edi]
cmp ecx, eax
mov eax, 0x921e124d
mov ecx, 0xfff9
setle dl
cmp eax, edx
sbb eax, eax
inc eax
cmp ecx, eax
mov eax, dword [esi]
sbb ecx, ecx
inc ecx
imul eax, ecx
xor ecx, ecx
mov dword [esi], eax
mov edx, dword [edi]
mov eax, dword [edi]
imul edx, eax
mov eax, dword [esi]
cmp edx, eax
mov eax, dword [esp + 0xc]
sete cl
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret