Function at 0x100b3580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc0
call fcn.10175fd0
mov eax, dword [0x1024ee80]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov eax, dword [esp + 0xd8]
push ebp
mov ebp, dword [esp + 0xec]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
push esi
push edi
test eax, eax
jne 0x100b35f2
call fcn.1004da90
mov dword [esp + 0x34], eax
test ebp, ebp
push eax
cmove ebp, eax
mov dword [esp + 0x18], ebp
call fcn.10052770
add esp, 4
mov edi, eax
mov dword [esp + 0x28], edi
cmp dword [esp + 0xd8], ebx
jle 0x100b3c8e
mov esi, dword [esp + 0xe0]
test esi, esi
jle 0x100b3c8e
mov ecx, dword [esp + 0x3c]
cmp ecx, esi
jl 0x100b3c67
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x100b3c67
mov ebp, ecx
push 0xcd
sub ebp, edi
dec ebp
push str.crypto_rsa_rsa_oaep.c
push ebp
mov dword [esp + 0x38], ebp
call fcn.1004ddb0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100b3694
call fcn.10055e90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xcf
push str.crypto_rsa_rsa_oaep.c
call fcn.10055f90
push 0
push 0xc0100
push 4
call fcn.10056040
add esp, 0x18
jmp 0x100b3c13
push 0xd3
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x44]
call fcn.1004ddb0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x100b36c5
call fcn.10055e90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xd5
jmp 0x100b3674
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0x3c]
add edx, esi
add ecx, eax
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x100b3710
mov ebx, eax
mov ebp, ecx
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebp
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [ebp], cl
sub ebx, 1
jne 0x100b36e0
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
movzx ebx, byte [ecx]
lea esi, [ecx + 1]
push dword [esp + 0x14]
inc ecx
mov dword [esp + 0x1c], esi
add ecx, edi
lea eax, [esp + 0x50]
push ebp
push ecx
lea ebx, [ebx - 1]
mov dword [esp + 0x3c], ecx
push edi
shr ebx, 0x1f
push eax
neg ebx
call fcn.100b33b0
add esp, 0x14
test eax, eax
jne 0x100b3c13
xor edx, edx
test edi, edi
jle 0x100b3865
cmp edi, 8
jb 0x100b384f
lea eax, [esi - 1]
lea ebp, [esp + 0x4c]
add eax, edi
cmp ebp, eax
lea ecx, [esp + edi + 0x4b]
mov ebp, dword [esp + 0x2c]
ja 0x100b3775
cmp ecx, esi
jae 0x100b384f
cmp edi, 0x40
jb 0x100b3811
mov eax, edi
and eax, 0x8000003f
jns 0x100b378c
dec eax
or eax, 0xffffffc0
inc eax
lea ebp, [esp + 0x4c]
mov ecx, edi
sub ebp, esi
sub ecx, eax
mov dword [esp + 0x44], ebp
lea eax, [esi + 0x20]
mov edi, dword [esp + 0x44]
lea ebp, [esp + 0x5c]
sub ebp, esi
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
movups xmm0, xmmword [esp + edx + 0x4c]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax - 0x60]
xorps xmm1, xmm0
movups xmmword [esp + edx + 0x4c], xmm1
movups xmm0, xmmword [esp + edx + 0x5c]
movups xmm1, xmmword [eax - 0x50]
xorps xmm1, xmm0
movups xmmword [esp + edx + 0x5c], xmm1
add edx, 0x40
movups xmm0, xmmword [edi + eax - 0x40]
movups xmm1, xmmword [eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [eax - 0x30]
movups xmm0, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
cmp edx, ecx
jl 0x100b37b3
mov edi, dword [esp + 0x28]
mov eax, edi
mov esi, dword [esp + 0x18]
and al, 0x3f
cmp al, 8
jb 0x100b384b
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x100b381f
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
sub ecx, eax
nop dword [eax]
nop word [eax + eax]
movq xmm1, qword [esi + edx]
movq xmm0, qword [esp + edx + 0x4c]
xorps xmm1, xmm0
movq qword [esp + edx + 0x4c], xmm1
add edx, 8
cmp edx, ecx
jl 0x100b3830
cmp edx, edi
jge 0x100b3865
lea eax, [esp + 0x4c]
sub esi, eax
lea ecx, [esp + 0x4c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, edi
jl 0x100b3855
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push edi
push eax
push ebp
push dword [esp + 0x20]
call fcn.100b33b0
add esp, 0x14
test eax, eax
jne 0x100b3c13
xor edx, edx
test ebp, ebp
jle 0x100b39a4
mov ecx, dword [esp + 0x10]
cmp ebp, 8
jb 0x100b3980
mov esi, dword [esp + 0x30]
lea eax, [esi - 1]
add eax, ebp
cmp ecx, eax
ja 0x100b38b5
lea eax, [ecx - 1]
add eax, ebp
cmp eax, esi
jae 0x100b3980
cmp ebp, 0x40
jb 0x100b3936
mov eax, ebp
and eax, 0x8000003f
jns 0x100b38c8
dec eax
or eax, 0xffffffc0
inc eax
mov dword [esp + 0x14], ebp
add esi, 0x30
sub dword [esp + 0x14], eax
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x10]
nop
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [esi - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x14]
jl 0x100b38e0
mov eax, ebp
and al, 0x3f
cmp al, 8
jb 0x100b397c
jmp 0x100b393c
mov ecx, esi
sub ecx, dword [esp + 0x10]
mov eax, ebp
and eax, reloc.WS2_32.dll_getsockopt
jns 0x100b394a
dec eax
or eax, 0xfffffff8
inc eax
mov esi, ebp
sub esi, eax
mov eax, dword [esp + 0x10]
add eax, edx
nop dword [eax]
nop dword [eax + eax]
movq xmm1, qword [ecx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, esi
jl 0x100b3960
mov ecx, dword [esp + 0x10]
cmp edx, ebp
jge 0x100b39a4
mov edi, dword [esp + 0x30]
mov esi, ebp
sub edi, dword [esp + 0x10]
add ecx, edx
sub esi, edx
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x100b3992
mov edi, dword [esp + 0x28]
push 0
push dword [esp + 0x38]
lea eax, [esp + 0x94]
push 0
push eax
push dword [esp + 0xfc]
push dword [esp + 0x30]
call fcn.1004bdb0
add esp, 0x18
test eax, eax
je 0x100b3c13
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push edi
push eax
push esi
call fcn.10001390
mov edx, dword [esp + 0x34]
add esp, 0xc
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and ebx, ecx
mov dword [esp + 0x14], ebx
xor ebx, ebx
cmp edx, ebp
jge 0x100b3a54
movzx esi, byte [edi + esi]
mov eax, ebx
mov edx, esi
not eax
xor edx, 1
dec edx
shr edx, 0x1f
neg edx
and eax, edx
or ebx, edx
mov dword [esp + 0x1c], eax
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
and ecx, edi
and eax, dword [esp + 0x24]
inc edi
or eax, ecx
mov dword [esp + 0x24], eax
lea eax, [esi - 1]
mov esi, dword [esp + 0x10]
shr eax, 0x1f
neg eax
or eax, ebx
and dword [esp + 0x14], eax
cmp edi, ebp
jl 0x100b3a04
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xd8]
mov eax, ebp
sub eax, dword [esp + 0x24]
mov esi, ebp
dec eax
sub esi, edx
sub ecx, eax
mov dword [esp + 0x40], eax
xor ecx, eax
xor eax, dword [esp + 0xd8]
or ecx, eax
mov eax, dword [esp + 0xd8]
xor ecx, eax
lea edi, [esi - 1]
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x34], edi
and ecx, ebx
mov ebx, dword [esp + 0x14]
and ebx, ecx
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x14], ebx
xor ecx, eax
mov eax, edi
xor eax, dword [esp + 0xd8]
or ecx, eax
xor ecx, edi
shr ecx, 0x1f
neg ecx
mov dword [esp + 0x1c], ecx
not ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and eax, edi
and ecx, dword [esp + 0xd8]
mov edi, 1
or ecx, eax
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x34], edi
jle 0x100b3b6e
sub esi, dword [esp + 0x40]
inc edx
mov dword [esp + 0x44], edx
lea eax, [esi - 1]
mov dword [esp + 0x30], eax
nop
and eax, edi
mov esi, ebp
sub esi, edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, esi
jge 0x100b3b56
mov eax, dword [esp + 0x10]
movzx ecx, cl
add eax, edx
mov ebp, ecx
mov dword [esp + 0x38], ecx
not ebp
sub esi, edx
nop dword [eax + eax]
mov dword [esp + 0x1c], ecx
lea eax, [eax + 1]
movzx ecx, byte [eax + edi - 1]
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
and bl, cl
movzx ecx, byte [eax - 1]
and dl, cl
mov ecx, dword [esp + 0x38]
or dl, bl
mov byte [eax - 1], dl
sub esi, 1
jne 0x100b3b20
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
add edi, edi
cmp edi, dword [esp + 0x34]
jl 0x100b3af0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
xor esi, esi
test ecx, ecx
jle 0x100b3be1
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
inc ebp
shr ecx, 0x1f
neg edi
mov dword [esp + 0x38], ecx
add ebp, edx
nop dword [eax]
mov eax, edi
lea ebp, [ebp + 1]
shr eax, 0x1f
inc edi
xor al, cl
or al, cl
neg al
movzx ecx, al
movzx eax, bl
and ecx, eax
movzx eax, byte [ebp - 1]
mov dword [esp + 0x1c], ecx
not ecx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and dl, al
mov eax, dword [esp + 0x48]
movzx eax, byte [eax + esi]
and cl, al
mov eax, dword [esp + 0x48]
or cl, dl
mov byte [eax + esi], cl
inc esi
mov ecx, dword [esp + 0x38]
cmp esi, dword [esp + 0x24]
jl 0x100b3b90
mov ebp, dword [esp + 0x2c]
call fcn.10055e90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0x13a
push str.crypto_rsa_rsa_oaep.c
call fcn.10055f90
push 0
push 0x79
push 4
call fcn.10056040
mov eax, ebx
and eax, 1
push eax
call fcn.10063e70
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0x40
push eax
call fcn.10001320
push 0x13f
push str.crypto_rsa_rsa_oaep.c
push ebp
push dword [esp + 0x24]
call fcn.1004deb0
push 0x140
push str.crypto_rsa_rsa_oaep.c
push dword [esp + 0x5c]
push dword [esp + 0x44]
call fcn.1004deb0
mov dword [esp + 0x44], ebx
add esp, 0x28
not ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
and ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
or eax, ecx
jmp 0x100b3c91
call fcn.10055e90
push str.RSA_padding_check_PKCS1_OAEP_mgf1
push 0xc8
push str.crypto_rsa_rsa_oaep.c
call fcn.10055f90
push 0
push 0x79
push 4
call fcn.10056040
add esp, 0x18
or eax, 0xffffffff
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10175bf0
add esp, 0xc0
ret