Function at 0x100a86e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14c], ebx
call fcn.100a1330
mov eax, dword [edi + 0xc]
add esp, 4
mov ecx, str.SCRAM_SHA_256_PLUS
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a8740
test dl, dl
je 0x100a873c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a8740
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a8720
xor eax, eax
jmp 0x100a8745
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100a8893
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
push eax
push dword [edi + 4]
call fcn.100a9590
mov ebx, eax
add esp, 8
lea eax, [ebp - 0x140]
test ebx, ebx
jne 0x100a878d
push eax
call fcn.100a13b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
push 0x101e7748
push eax
call fcn.100a1550
mov eax, dword [ebp - 0x144]
add eax, 0x18
push eax
mov dword [ebp - 0x148], eax
call fcn.100f426e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100a87f7
push ebx
call fcn.100f385c
add esp, 4
lea eax, [ebp - 0x140]
push eax
call fcn.100a13b0
mov eax, dword [ebp - 0x14c]
add eax, 0x294
push str.out_of_memory_n
push eax
call fcn.100a14d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [str.ptls_server_end_point__]
lea eax, [esi + 0x18]
movups xmmword [esi], xmm0
movq xmm0, qword [0x101e775c]
movq qword [esi + 0x10], xmm0
push dword [ebp - 0x144]
push ebx
push eax
call fcn.100e6590
push dword [ebp - 0x148]
call fcn.101d3240
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.100a1450
add esp, 0x18
test eax, eax
jne 0x100a8851
push ebx
call fcn.100f385c
push esi
call fcn.100f385c
add esp, 8
jmp 0x100a87bf
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x140]
push eax
push dword [ebp - 0x148]
push esi
call fcn.101d3070
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], ecx
push ebx
mov byte [ecx + eax], 0
call fcn.100f385c
push esi
call fcn.100f385c
add esp, 0x14
jmp 0x100a88b7
cmp byte [ebx + 0x274], 0
lea eax, [ebp - 0x140]
je 0x100a88a9
push str.ceSws
jmp 0x100a88ae
push str.cbiws
push eax
call fcn.100a1550
add esp, 8
cmp dword [ebp - 0x138], 0
je 0x100a87bf
push dword [edi + 0x4c]
lea eax, [ebp - 0x140]
push str._r_s
push eax
call fcn.100a1550
add esp, 0xc
cmp dword [ebp - 0x138], 0
je 0x100a87bf
push dword [ebp - 0x140]
call fcn.100fef59
mov ebx, eax
add esp, 4
mov dword [edi + 0x38], ebx
test ebx, ebx
je 0x100a87bf
lea esi, [edi + 0x10]
push esi
push dword [edi + 0x48]
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [edi + 8]
call fcn.101d37e0
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.101d3a30
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.101d39e0
push 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.101d36a0
mov edx, dword [edi + 0x34]
add esp, 0x34
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a8950
sub ecx, esi
lea eax, [ebp - 0x134]
push ecx
push edx
push eax
call fcn.101d3770
push 1
lea eax, [ebp - 0x134]
push 0x1026ac28
push eax
call fcn.101d3770
mov edx, dword [edi + 0x3c]
add esp, 0x18
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a8985
sub ecx, esi
lea eax, [ebp - 0x134]
push ecx
push edx
push eax
call fcn.101d3770
push 1
lea eax, [ebp - 0x134]
push 0x1026ac28
push eax
call fcn.101d3770
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a89b7
sub ecx, edx
lea eax, [ebp - 0x134]
push ecx
push ebx
push eax
call fcn.101d3770
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.101d3780
add esp, 0x14
xor eax, eax
nop dword [eax]
nop word [eax + eax]
movups xmm1, xmmword [ebp + eax - 0x64]
movups xmm0, xmmword [ebp + eax - 0x24]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x84], xmm1
add eax, 0x10
cmp eax, 0x20
jl 0x100a89f0
lea eax, [ebp - 0x140]
push 0x101e7780
push eax
call fcn.100a1550
push 0x20
call fcn.101d3240
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.100a1450
add esp, 0x14
test eax, eax
je 0x100a87bf
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x140]
push eax
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.101d3070
mov ecx, dword [ebp - 0x13c]
add ecx, eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x13c], ecx
mov byte [ecx + eax], 0
push dword [ebp - 0x140]
call fcn.100fef59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a87bf
lea eax, [ebp - 0x140]
push eax
call fcn.100a13b0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100e40d6
mov esp, ebp
pop ebp
ret