Function at 0x5d8e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [esp + 0x40]
push esi
call fcn.005db670
add esp, 4
xor ebp, ebp
test eax, eax
je 0x5d90d9
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5d8ebe
push esi
call eax
add esp, 4
mov ebx, eax
cmp ebx, dword [esp + 0x4c]
ja 0x5d8f71
jmp 0x5d8f91
mov esi, dword [esi + 4]
mov edi, dword [esi + 4]
mov edx, edi
sar edx, 0x1f
and edx, edi
mov eax, edi
nop dword [eax]
test eax, eax
jle 0x5d8ee1
mov ecx, dword [esi]
mov ecx, dword [ecx + eax*4 - 4]
dec eax
test ecx, ecx
je 0x5d8ed0
jmp 0x5d8ef4
xor ebx, ebx
test edi, edi
jns 0x5d8f91
mov eax, dword [esi]
mov ecx, dword [eax + edx*4 - 4]
dec edx
mov eax, edx
shl eax, 5
mov esi, ecx
shr esi, 0x10
xor ebx, ebx
cmp ecx, 0x10000
setae bl
cmovb esi, ecx
shl ebx, 4
mov edi, esi
shr edi, 8
xor edx, edx
cmp esi, 0x100
setae dl
mov dword [esp], edx
cmovb edi, esi
mov esi, edi
shr esi, 4
xor edx, edx
cmp edi, 0x10
cmovb esi, edi
setae dl
mov dword [esp + 0x14], edx
mov edi, esi
shr edi, 2
xor edx, edx
cmp esi, 4
cmovb edi, esi
setae dl
cmp ecx, 1
sbb eax, 0
add eax, 8
or eax, ebx
cmp edi, 2
mov ecx, dword [esp]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*4]
lea ebx, [eax + edx*2]
sbb ebx, 0xffffffff
shr ebx, 3
cmp ebx, dword [esp + 0x4c]
jbe 0x5d8f91
push 0x116
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x87
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x5d90d9
push 0x18
call sym.adb.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x5d8fe3
mov edi, eax
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x12], 0
mov dword [eax + 0xe], 0
push 0x80
push 0
call sym.adb.exe_OPENSSL_realloc
add esp, 8
test eax, eax
je 0x5d9001
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0x20
mov ecx, dword [edi + 8]
mov dword [eax + ecx*4], 0
inc dword [edi + 8]
jmp 0x5d9007
push 0x6f
push str.external_boringssl_src_crypto_fipsmodule_bn_ctx.c
push 0x41
push 0
push 3
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor ebp, ebp
xor esi, esi
jmp 0x5d90d0
mov word [edi + 0x14], 0x101
push edi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov esi, eax
push edi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov ebp, eax
push ebx
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov esi, eax
je 0x5d9075
test ebp, ebp
je 0x5d9075
test esi, esi
je 0x5d9075
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
cmp edx, 4
je 0x5d90e3
cmp edx, 3
je 0x5d910d
cmp edx, 1
jne 0x5d9122
push ecx
push eax
push ebx
push esi
call fcn.005d6890
add esp, 0x10
test eax, eax
jg 0x5d9158
jmp 0x5d908d
push 0x124
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x41
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor ebp, ebp
cmp byte [edi + 0x14], 0
jne 0x5d90a8
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [ecx - 1]
mov dword [edi + 8], edx
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi + 0x10], eax
push sym.adb.exe_BN_free
push 0x5e5450
push dword [edi]
call sym.adb.exe_sk_pop_free_ex
add esp, 0xc
push dword [edi + 4]
call sym.adb.exe_OPENSSL_free
add esp, 4
push edi
call sym.adb.exe_OPENSSL_free
add esp, 4
push esi
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, ebp
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x20
pxor xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.adb.exe_RSA_padding_add_PKCS1_OAEP_mgf1
add esp, 0x20
test eax, eax
jg 0x5d9158
jmp 0x5d908d
cmp ebx, ecx
jae 0x5d9136
push 0xff
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
jmp 0x5d9081
push 0x135
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x8f
jmp 0x5d9081
jbe 0x5d9149
push 0x104
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x74
jmp 0x5d9081
test ecx, ecx
je 0x5d9158
push ecx
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
test ebx, ebx
mov dword [esp + 8], esi
mov dword [esp + 0x28], ebp
je 0x5d92fc
lea ebp, [ebx - 1]
shr ebp, 2
lea eax, [ebp + 1]
mov dword [esp], eax
push eax
mov esi, dword [esp + 0x18]
push esi
call fcn.0059f5c0
add esp, 8
test eax, eax
je 0x5d9311
mov dword [esp + 0x10], edi
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
mov eax, ebx
shr eax, 2
cmp eax, ebp
mov dword [esp + 0xc], ebp
mov edi, ebp
mov ebp, ecx
cmovb edi, eax
xor ecx, ecx
mov edx, 0
mov esi, ebx
mov dword [esp + 0x1c], ebx
cmp edi, 0x14
mov esi, dword [esp + 8]
jb 0x5d92c1
mov edx, dword [esp + 0xc]
cmp eax, edx
cmovae eax, edx
mov edx, dword [esp + 0x1c]
add edx, esi
cmp ebp, edx
jae 0x5d920a
lea edx, [eax*4 + 4]
add edx, ebp
shl eax, 2
mov ebx, dword [esp + 0x1c]
mov esi, ebx
sub esi, eax
mov eax, dword [esp + 8]
add eax, esi
add eax, 0xfffffffc
mov esi, dword [esp + 8]
cmp eax, edx
mov edx, 0
jb 0x5d92c1
lea edx, [edi + 1]
mov eax, edx
and eax, 7
mov ebx, 8
cmovne ebx, eax
mov dword [esp + 0x18], ebx
sub edx, ebx
mov dword [esp + 4], edx
lea eax, [edx*4]
mov edx, dword [esp + 0x1c]
mov ebx, edx
sub ebx, eax
mov eax, esi
lea esi, [ebp + 0x10]
add edx, eax
add edx, 0xfffffff0
not edi
add edi, dword [esp + 0x18]
xor eax, eax
pxor xmm0, xmm0
movdqu xmm1, xmmword [edx + eax*4 - 0x10]
movdqu xmm2, xmmword [edx + eax*4]
pshufd xmm2, xmm2, 0x1b
pshufd xmm1, xmm1, 0x1b
movdqa xmm3, xmm2
punpckhbw xmm3, xmm0
pshuflw xmm3, xmm3, 0x1b
pshufhw xmm3, xmm3, 0x1b
punpcklbw xmm2, xmm0
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm2, xmm3
movdqa xmm3, xmm1
punpckhbw xmm3, xmm0
pshuflw xmm3, xmm3, 0x1b
pshufhw xmm3, xmm3, 0x1b
punpcklbw xmm1, xmm0
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm1, xmm3
movdqu xmmword [esi - 0x10], xmm2
movdqu xmmword [esi], xmm1
add esi, 0x20
add eax, 0xfffffff8
cmp edi, eax
jne 0x5d9249
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [ebx + esi]
add eax, 0xfffffffc
mov dword [esp + 4], edx
mov edi, edx
mov esi, dword [esp + 0x14]
nop word cs:[eax + eax]
lea edx, [ebx + ecx]
cmp edx, 3
jbe 0x5d931c
mov edx, dword [eax + ecx]
bswap edx
mov dword [ebp + edi*4], edx
inc edi
add ecx, 0xfffffffc
cmp dword [esp], edi
jne 0x5d92e0
jmp 0x5d9372
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x14]
mov dword [esi + 4], 0
jmp 0x5d9372
xor ebp, ebp
mov esi, dword [esp + 8]
jmp 0x5d908f
mov dword [esp], ebp
add ebx, ecx
je 0x5d933e
xor eax, eax
xor esi, esi
mov ebp, dword [esp + 8]
shl esi, 8
movzx edx, byte [ebp + eax]
or edx, esi
inc eax
mov esi, edx
cmp eax, ebx
jb 0x5d932b
jmp 0x5d9340
xor edx, edx
mov ebx, dword [esp]
mov dword [ebx + edi*4], edx
mov eax, dword [esp + 0xc]
shl eax, 2
mov edx, dword [esp + 4]
shl edx, 2
sub eax, edx
add eax, ecx
mov esi, dword [esp + 0x14]
je 0x5d9372
mov ecx, eax
lea eax, [ebx + edi*4]
add eax, 4
push ecx
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov ecx, dword [esi]
mov dword [esp], ecx
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp + 0x24], eax
mov esi, dword [eax + 4]
cmp ecx, esi
mov eax, esi
mov dword [esp + 0x18], esi
mov eax, ecx
mov dword [esp + 0xc], ecx
cmovb esi, ecx
xor edx, edx
test esi, esi
je 0x5d93db
xor ebx, ebx
mov ecx, dword [esp + 4]
nop dword [eax + eax]
mov eax, dword [esp]
mov ebp, dword [eax + ebx*4]
mov edi, dword [ecx + ebx*4]
mov eax, ebp
sub eax, edi
xor edi, ebp
xor eax, ebp
or eax, edi
xor eax, ebp
mov ebp, eax
sar ebp, 0x1f
not eax
shr eax, 0x1f
or eax, ebp
test edi, edi
cmovne edx, eax
inc ebx
cmp esi, ebx
jne 0x5d93b0
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xc]
mov ecx, eax
mov ebp, dword [esp + 0x18]
sub ecx, ebp
mov edx, dword [esp]
jae 0x5d940c
mov ecx, ebp
sub ecx, eax
xor esi, esi
cmp ecx, 8
jae 0x5d9422
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 4]
jmp 0x5d9570
jbe 0x5d944b
xor esi, esi
cmp ecx, 8
mov ebx, dword [esp + 0x40]
jae 0x5d9460
mov edi, dword [esp + 0x10]
jmp 0x5d9673
lea esi, [ecx - 8]
mov eax, esi
shr eax, 3
inc eax
mov edx, eax
and edx, 3
mov dword [esp], edx
cmp esi, 0x18
mov edi, dword [esp + 0x10]
jae 0x5d948b
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
jmp 0x5d9501
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
jmp 0x5d968f
mov ebp, ebx
lea eax, [ecx - 8]
mov edi, eax
shr edi, 3
inc edi
mov edx, edi
and edx, 3
cmp eax, 0x18
jae 0x5d958f
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
mov eax, dword [esp]
jmp 0x5d9606
and eax, 0xfffffffc
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov ecx, dword [esp + 4]
lea esi, [ecx + edx*4]
add esi, 0x70
mov ecx, ebx
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
movdqu xmm2, xmmword [esi + ebx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + ebx*4 - 0x50]
movdqu xmm3, xmmword [esi + ebx*4 - 0x40]
movdqu xmm4, xmmword [esi + ebx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + ebx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + ebx*4]
por xmm1, xmm2
add ebx, 0x20
add eax, 0xfffffffc
jne 0x5d94aa
mov eax, ecx
and eax, 0xfffffff8
mov edx, dword [esp]
test edx, edx
je 0x5d953a
add ebx, dword [esp + 0xc]
mov esi, dword [esp + 4]
lea esi, [esi + ebx*4]
add esi, 0x10
shl edx, 5
xor ebx, ebx
movdqu xmm2, xmmword [esi + ebx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + ebx]
por xmm1, xmm2
add ebx, 0x20
cmp edx, ebx
jne 0x5d9520
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
cmp ecx, eax
jne 0x5d955e
mov ebx, dword [esp + 0x40]
jmp 0x5d9578
mov edx, dword [esp + 0xc]
add edx, eax
mov eax, edx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x40]
nop
or esi, dword [ecx + eax*4]
inc eax
cmp ebp, eax
jne 0x5d9570
mov eax, esi
not eax
dec esi
and esi, eax
sar esi, 0x1f
not esi
mov eax, dword [esp + 0x20]
or eax, esi
jmp 0x5d968b
and edi, 0xfffffffc
mov eax, dword [esp + 0x18]
mov ebx, edx
mov edx, dword [esp]
lea esi, [edx + eax*4]
add esi, 0x70
mov eax, edx
mov edx, ebx
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
movdqu xmm2, xmmword [esi + ebx*4 - 0x70]
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebx*4 - 0x60]
por xmm0, xmm1
movdqu xmm1, xmmword [esi + ebx*4 - 0x50]
movdqu xmm3, xmmword [esi + ebx*4 - 0x40]
movdqu xmm4, xmmword [esi + ebx*4 - 0x30]
por xmm4, xmm1
por xmm4, xmm2
movdqu xmm2, xmmword [esi + ebx*4 - 0x20]
por xmm2, xmm3
por xmm2, xmm0
movdqu xmm0, xmmword [esi + ebx*4 - 0x10]
por xmm0, xmm4
movdqu xmm1, xmmword [esi + ebx*4]
por xmm1, xmm2
add ebx, 0x20
add edi, 0xfffffffc
jne 0x5d95af
mov edi, ecx
and edi, 0xfffffff8
test edx, edx
je 0x5d9638
add ebx, dword [esp + 0x18]
lea esi, [eax + ebx*4]
add esi, 0x10
shl edx, 5
xor ebx, ebx
movdqu xmm2, xmmword [esi + ebx - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [esi + ebx]
por xmm1, xmm2
add ebx, 0x20
cmp edx, ebx
jne 0x5d961e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd esi, xmm0
cmp ecx, edi
jne 0x5d965e
mov edi, dword [esp + 0x10]
mov ebx, ebp
jmp 0x5d967b
mov eax, dword [esp + 0x18]
add eax, edi
mov edi, dword [esp + 0x10]
mov ebx, ebp
mov ebp, eax
mov edx, dword [esp]
mov eax, dword [esp + 0xc]
or esi, dword [edx + ebp*4]
inc ebp
cmp eax, ebp
jne 0x5d9673
xor edx, edx
xor eax, eax
test esi, esi
cmove edx, dword [esp + 0x20]
setne al
or eax, edx
mov esi, dword [esp + 8]
test eax, eax
js 0x5d96a4
push 0x143
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x73
jmp 0x5d9081
lea eax, [ebx + 0x34]
lea ecx, [ebx + 0x30]
push edi
push dword [esp + 0x28]
push ecx
push eax
call fcn.005b0570
add esp, 0x10
xor ebp, ebp
test eax, eax
je 0x5d908f
mov eax, dword [ebx + 0x34]
push eax
add eax, 0x14
push edi
push eax
push dword [ebx + 8]
push dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
push ebx
call sym.adb.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x5d908f
push ebx
mov ebx, dword [esp + 0x20]
push ebx
push dword [esp + 0x50]
call sym.adb.exe_BN_bn2bin_padded
add esp, 0xc
test eax, eax
je 0x5d970e
mov eax, dword [esp + 0x44]
mov dword [eax], ebx
mov ebp, 1
jmp 0x5d908f
push 0x14f
push str.external_boringssl_src_crypto_fipsmodule_rsa_rsa_impl.c
push 0x44
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
jmp 0x5d908f