Function at 0x1000d090
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 0x100683ce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x1007e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x50], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x48], eax
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 0x50], 1
mov byte [esi], 0
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x14], 0x2710
test edx, edx
je 0x1000d2ac
mov ecx, dword [edx + 0x44]
mov eax, 0xcccccccd
mul ecx
mov edi, ecx
mov byte [ebp - 0x1c], 0
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, 0x10624dd3
mov dword [ebp - 0x4c], edx
mul ecx
push edi
shr edx, 6
mov eax, edx
xor edx, edx
div dword [ebp - 0x14]
push dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov eax, 0x6b5fca6b
mul ecx
push dword [ebp - 0x44]
mov ecx, edx
mov eax, 0x12e0be83
mul dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
sub eax, edx
shr ecx, 0x16
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
push ecx
xor ecx, ecx
cmp eax, 2
jbe 0x1000d249
movaps xmm0, xmmword [0x10077520]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0x3438246e
movaps xmm0, xmmword [0x10076d30]
movups xmmword [ebp - 0x30], xmm0
nop dword [eax]
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x23
jb 0x1000d1c0
sub esp, 0x18
mov byte [ebp - 0x1c], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d1f0
sub ecx, edi
lea eax, [ebp - 0x3f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x68]
push eax
call fcn.10004db0
add esp, 0x2c
mov ecx, esi
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1000d2ac
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d2a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000d2a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [str.bwb_NFbHDEt]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0x5f534f05
movaps xmm0, xmmword [0x100771c0]
movups xmmword [ebp - 0x30], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x23
jb 0x1000d266
sub esp, 0x18
mov byte [ebp - 0x1c], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d296
jmp 0x1000d1f7
push ecx
push edx
call fcn.100662c0
add esp, 8
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x1000d3d5
mov ecx, dword [edx + 0x40]
test ecx, ecx
je 0x1000d3d5
mov eax, 0xcccccccd
mov byte [ebp - 0x1c], 0
mul ecx
mov edi, ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov eax, edx
xor edx, edx
div dword [ebp - 0x18]
mov eax, 0x10624dd3
mov dword [ebp - 0x18], edx
mul ecx
push edi
shr edx, 6
mov eax, edx
xor edx, edx
div dword [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, 0x6b5fca6b
mul ecx
push dword [ebp - 0x14]
mov ecx, edx
mov eax, 0x12e0be83
mul dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
sub eax, edx
shr ecx, 0x16
shr eax, 1
add eax, edx
shr eax, 0x1d
dec eax
push ecx
xor ecx, ecx
cmp eax, 2
jbe 0x1000d3eb
movaps xmm0, xmmword [0x10076e40]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0x68647832
movaps xmm0, xmmword [0x10077650]
movups xmmword [ebp - 0x30], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x23
jb 0x1000d348
sub esp, 0x18
mov byte [ebp - 0x1c], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d378
sub ecx, edi
lea eax, [ebp - 0x3f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x68]
push eax
call fcn.10004db0
add esp, 0x2c
mov ecx, esi
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1000d3d5
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000d3cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000d243
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm0, xmmword [0x100773e0]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x20], 0x2529357f
movaps xmm0, xmmword [0x10076f60]
movups xmmword [ebp - 0x30], xmm0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x23
jb 0x1000d408
sub esp, 0x18
mov byte [ebp - 0x1c], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000d438
jmp 0x1000d37f