Function at 0x1011db70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, 1
push 0x101bb35c
push 0x518
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 2
push eax
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], esi
call fcn.1012b800
add esp, 0x14
test edi, edi
je 0x1011e48e
cmp dword [edi + 0xc], 0
je 0x1011e48e
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp eax, edx
jb 0x1011e48e
mov ecx, dword [edi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x1011e48e
add edx, dword [edi + 0xc]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xdc], edx
test eax, eax
je 0x1011e482
mov eax, dword [eax + 4]
mov dword [ebp - 0x100], 0x100
cmp eax, 7
jne 0x1011dcb2
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xe8], 0
push eax
push edx
push ecx
push edx
push dword [ebx + 4]
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x90]
push eax
call fcn.1017fb60
add esp, 0x1c
mov dword [ebp - 0xe4], eax
test eax, eax
je 0x1011dc94
push eax
push str.mbedtls_cipher_crypt
push 0x53a
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push esi
push dword [ebp - 0xd4]
call fcn.1012b8b0
mov eax, dword [ebp - 0xe4]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x18]
cmp ecx, dword [ebp - 0xf0]
je 0x1011e0ee
push str.should_never_happen
push 0x540
jmp 0x1011e498
cmp eax, 6
je 0x1011e29d
cmp eax, 8
je 0x1011e29d
cmp eax, 0xa
je 0x1011e29d
cmp eax, 2
jne 0x1011e482
mov edx, dword [ebx + 4]
xor eax, eax
cmp dword [ebx + 0xd0], 2
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xe0], edx
jl 0x1011dcfa
mov eax, edx
mov dword [ebp - 0xd8], eax
jmp 0x1011dd00
mov dword [ebp - 0xe0], edx
mov esi, dword [ebx + 0xc]
add eax, edx
cmp ecx, eax
jb 0x1011e265
mov eax, dword [ebp - 0xd8]
inc eax
add eax, esi
cmp ecx, eax
jb 0x1011e265
cmp dword [ebx + 0x4c], 1
jne 0x1011de71
push str.using_encrypt_then_mac
push 0x5eb
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 3
push dword [ebp - 0xd4]
call fcn.1012b800
mov eax, dword [ebx + 0xc]
sub dword [edi + 0x18], eax
lea eax, [ebp - 0xec]
push dword [ebx + 0xd0]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10121f70
mov esi, dword [ebp - 0xec]
lea eax, [ebp - 0x40]
push esi
push eax
push str.MACd_meta_data
push 0x5fd
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push dword [ebp - 0xd4]
call fcn.1012b0a0
add esp, 0x40
lea eax, [ebp - 0x40]
lea edi, [ebx + 0x40]
push esi
push eax
push edi
call fcn.10108c90
mov eax, dword [ebp - 0x104]
mov esi, dword [ebp - 0xdc]
push dword [eax + 0x18]
push esi
push edi
call fcn.10108c90
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.10108990
push edi
call fcn.10108a40
push dword [ebx + 0xc]
mov edi, dword [ebp - 0x104]
mov eax, dword [edi + 0x18]
add eax, esi
mov esi, dword [ebp - 0xd4]
push eax
push str.message__mac
push 0x606
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push esi
call fcn.1012b0a0
add esp, 0x40
lea eax, [ebp - 0x70]
push dword [ebx + 0xc]
push eax
push str.expected_mac
push 0x608
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push esi
call fcn.1012b0a0
push dword [ebx + 0xc]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 0xdc]
push eax
call fcn.101209d0
add esp, 0x28
test eax, eax
je 0x1011de59
push str.message_mac_does_not_match
push 0x60e
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push esi
call fcn.1012b800
add esp, 0x14
mov eax, 0xffff8e80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0xe0], eax
jmp 0x1011de77
mov esi, dword [ebp - 0xd4]
xor edx, edx
mov eax, ecx
div dword [ebp - 0xe0]
test edx, edx
je 0x1011debc
push dword [ebp - 0xe0]
push ecx
push str.msglen___zu_____ivlen___zu____0
push 0x620
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push esi
call fcn.1012b800
add esp, 0x1c
mov eax, 0xffff8e80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xd0], 2
lea eax, [ebx + 0x24]
jl 0x1011deff
push dword [ebp - 0xe0]
push dword [ebp - 0xdc]
push eax
call fcn.100e1b00
mov eax, dword [ebx + 4]
add esp, 0xc
mov edx, dword [ebp - 0xdc]
add dword [edi + 0x14], eax
add edx, eax
mov eax, dword [ebx + 4]
sub dword [edi + 0x18], eax
mov ecx, dword [edi + 0x18]
mov eax, dword [ebx + 4]
mov dword [ebp - 0xdc], edx
jmp 0x1011df0b
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xe0]
lea esi, [ebp - 0xf0]
push esi
push edx
push ecx
push edx
push eax
lea eax, [ebx + 0x24]
push eax
lea eax, [ebx + 0x90]
push eax
call fcn.1017fb60
mov esi, dword [ebp - 0xd4]
add esp, 0x1c
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x1011df6b
push eax
push str.mbedtls_cipher_crypt
push 0x639
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push esi
call fcn.1012b8b0
mov eax, dword [ebp - 0xd8]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x18]
cmp ecx, dword [ebp - 0xf0]
je 0x1011df8d
push str.should_never_happen
push 0x640
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push esi
jmp 0x1011e4a5
mov esi, dword [ebx + 0xd0]
mov dword [ebp - 0xd8], esi
cmp esi, 2
jge 0x1011dfc3
push dword [ebx + 4]
lea eax, [ebx + 0xb8]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.100e1b00
mov eax, dword [ebx + 0xd0]
add esp, 0xc
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xdc]
mov esi, ecx
movzx eax, byte [ecx + edx - 1]
sub esi, eax
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe4], 1
je 0x1011dfe4
sub esi, dword [ebx + 0xc]
dec esi
shr esi, 0x1f
dec esi
mov eax, esi
mov dword [ebp - 0xe0], esi
and eax, dword [ebp - 0xe8]
mov dword [ebp - 0xf4], eax
inc eax
cmp dword [ebp - 0xd8], 0
mov dword [ebp - 0xe8], eax
jle 0x1011e256
mov dword [ebp - 0xd8], ecx
sub dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x100]
cmp ecx, eax
mov dword [ebp - 0xf8], ecx
cmovbe eax, ecx
mov dword [ebp - 0xfc], 0
sub dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], ecx
jae 0x1011e0aa
mov esi, dword [ebp - 0xf8]
mov ebx, esi
sub ebx, dword [ebp - 0xd8]
add edx, dword [ebp - 0xd8]
mov dword [ebp - 0xd8], edx
movzx eax, byte [edx + ebx]
inc esi
mov ecx, dword [ebp - 0xf4]
xor ecx, eax
mov eax, ebx
mov edx, ecx
shr eax, 0x1f
neg edx
dec eax
or edx, ecx
inc ebx
mov ecx, dword [edi + 0x18]
not edx
shr edx, 0x1f
and edx, eax
mov eax, dword [ebp - 0xfc]
add eax, edx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xfc], eax
cmp esi, ecx
jb 0x1011e060
mov esi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0x108]
jmp 0x1011e0ac
xor eax, eax
mov edx, dword [ebp - 0xe8]
xor eax, edx
mov dword [ebp - 0xfc], eax
neg eax
or eax, dword [ebp - 0xfc]
not eax
shr eax, 0x1f
and esi, eax
mov eax, esi
mov dword [ebp - 0xe0], esi
neg eax
and edx, eax
mov eax, dword [ebp - 0xe4]
sub ecx, edx
mov dword [ebp - 0xe8], edx
mov dword [edi + 0x18], ecx
test eax, eax
jne 0x1011e227
sub ecx, dword [ebx + 0xc]
lea eax, [ebp - 0xec]
mov dword [edi + 0x18], ecx
push dword [ebx + 0xd0]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10121f70
add esp, 0x10
cmp dword [ebx + 0xd0], 0
jle 0x1011e247
mov ecx, dword [edi + 0x18]
mov edx, dword [ebp - 0xe8]
add edx, ecx
cmp dword [ebp - 0x100], edx
mov dword [ebp - 0xe4], edx
sbb edi, edi
lea eax, [edx - 0x100]
and edi, eax
lea eax, [ebp - 0xa0]
push eax
push edx
push edi
push ecx
push dword [ebp - 0xdc]
lea eax, [ebp - 0x40]
push dword [ebp - 0xec]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.1011d830
add esp, 0x20
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x1011e1a3
push eax
push str.mbedtls_ssl_cf_hmac
push 0x70b
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push dword [ebp - 0xd4]
call fcn.1012b8b0
mov eax, dword [ebp - 0xf4]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x100], eax
cmp edi, dword [ebp - 0xe4]
ja 0x1011e206
mov ebx, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xe4]
nop
push eax
push edi
push ecx
lea eax, [edi + ebx]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1011d9e0
mov ecx, dword [ebp - 0xf4]
inc edi
mov eax, dword [ebp - 0x100]
add esp, 0x14
cmp edi, esi
jbe 0x1011e1d0
mov ebx, dword [ebp - 0x108]
mov esi, dword [ebp - 0xe0]
mov ecx, dword [ebx + 0xc]
push ecx
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.101209d0
xor ecx, ecx
add esp, 0xc
test eax, eax
cmovne esi, ecx
lea eax, [ecx + 1]
test esi, esi
je 0x1011e2cc
cmp eax, 1
je 0x1011e450
push str.should_never_happen
push 0x736
jmp 0x1011e498
push str.should_never_happen
push 0x718
jmp 0x1011e498
push str.should_never_happen
push 0x6b7
jmp 0x1011e498
push esi
push edx
push ecx
push str.msglen___zu____max__ivlen__zu___maclen___zu___1______expl_IV__
push 0x5df
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push dword [ebp - 0xd4]
call fcn.1012b800
add esp, 0x20
mov eax, 0xffff8e80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x1011e2f9
cmp ecx, 8
jae 0x1011e2e2
push 8
push ecx
push str.msglen___zu_____explicit_iv_len___zu_
push 0x561
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push dword [ebp - 0xd4]
call fcn.1012b800
add esp, 0x1c
pop edi
pop esi
mov eax, 0xffff8e80
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
add dword [edi + 0x14], 8
mov esi, edx
add edx, 8
add ecx, 0xfffffff8
mov dword [ebp - 0xdc], edx
mov dword [edi + 0x18], ecx
jmp 0x1011e2fb
mov esi, edi
mov eax, dword [ebx + 0x10]
cmp ecx, eax
jae 0x1011e310
push eax
push ecx
push str.msglen___zu____taglen___zu_
push 0x575
jmp 0x1011e2b7
push 8
sub ecx, eax
lea eax, [ebx + 0x24]
push esi
mov dword [edi + 0x18], ecx
push dword [ebx + 8]
push eax
lea eax, [ebp - 0x10]
push 0xc
push eax
call fcn.10121d40
push dword [ebx + 0xd0]
lea eax, [ebp - 0xec]
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10121f70
mov esi, dword [ebp - 0xec]
lea eax, [ebp - 0x40]
push esi
push eax
push str.additional_data_used_for_AEAD
push 0x58a
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push dword [ebp - 0xd4]
call fcn.1012b0a0
add esp, 0x44
lea eax, [ebp - 0x10]
push dword [ebx + 4]
push eax
push str.IV_used
push 0x592
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push dword [ebp - 0xd4]
call fcn.1012b0a0
push dword [ebx + 0x10]
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 0xdc]
push eax
push str.TAG_used
push 0x594
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 4
push dword [ebp - 0xd4]
call fcn.1012b0a0
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0xf0]
mov edx, dword [ebp - 0xdc]
push ecx
push eax
mov eax, dword [edi + 0x10]
sub eax, edx
add eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x18]
push edx
add eax, ecx
push eax
push edx
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x90]
push eax
call fcn.1017fac0
mov esi, eax
add esp, 0x64
test esi, esi
je 0x1011e439
push esi
push str.mbedtls_cipher_auth_decrypt
push 0x5a0
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push dword [ebp - 0xd4]
call fcn.1012b8b0
add esp, 0x18
cmp esi, 0xffff9d00
je 0x1011e2cc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xf0]
cmp eax, dword [edi + 0x18]
je 0x1011e450
push str.should_never_happen
push 0x5ac
jmp 0x1011e498
push str.__decrypt_buf
push 0x750
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 2
push dword [ebp - 0xd4]
call fcn.1012b800
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
push str.should_never_happen
push 0x6c4
jmp 0x1011e498
push str.bad_record_structure_provided_to_decrypt_buf
push 0x51e
push str.D:_repo_relxigncode_neo_third_partymbedtlslibrary_ssl_msg.c
push 1
push dword [ebp - 0xd4]
call fcn.1012b800
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov eax, 0xffff9400
pop edi
pop esi
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret