Function at 0x473790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ecx + 4]
test eax, eax
cmove eax, esi
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
test edx, edx
je 0x47384f
mov eax, dword [esi + 4]
mov esi, dword [ecx]
xor edi, edi
cmp edx, 8
mov dword [esp + 0x38], eax
mov eax, 0
jb 0x473827
mov edi, edx
lea eax, [esi + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and edi, 0xfffffff8
mov ebx, edi
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm2, xmmword [eax - 0x10]
movdqu xmm3, xmmword [eax]
add eax, 0x20
add ebx, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4737f0
por xmm1, xmm0
cmp edx, edi
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd eax, xmm1
je 0x473838
mov ebx, edx
sub ebx, edi
lea edi, [esi + edi*4]
nop
or eax, dword [edi]
add edi, 4
dec ebx
jne 0x473830
test eax, eax
je 0x47384f
mov ebx, dword [ebp + 0xc]
nop
test edx, edx
jle 0x473860
mov eax, dword [esi + edx*4 - 4]
dec edx
test eax, eax
je 0x473840
jmp 0x47386a
push 0x256
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x78
jmp 0x47395b
je 0x473933
mov eax, dword [esi + edx*4 - 4]
xor edx, edx
test eax, eax
mov esi, eax
setne dl
shr esi, 0x10
mov edi, esi
xor esi, eax
neg edi
sar edi, 0x1f
and esi, edi
and edi, 0x10
xor esi, eax
or edi, edx
mov eax, esi
shr eax, 8
mov edx, eax
xor eax, esi
neg edx
sar edx, 0x1f
and eax, edx
and edx, 8
xor eax, esi
or edx, edi
mov esi, eax
shr esi, 4
mov edi, esi
xor esi, eax
neg edi
sar edi, 0x1f
and esi, edi
and edi, 4
xor esi, eax
or edi, edx
mov eax, esi
shr eax, 2
mov edx, eax
xor eax, esi
neg edx
sar edx, 0x1f
and eax, edx
and edx, 2
xor eax, esi
or edx, edi
shr eax, 1
neg eax
shr eax, 0x1f
lea eax, [eax + edx - 1]
and eax, 7
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0x38]
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4738f4
push edx
call eax
jmp 0x4738fa
push ecx
call sym.adb.exe_BN_num_bytes
add esp, 4
cmp dword [esp + 0x34], 0
mov edi, ebx
jne 0x47390b
mov byte [edi], 0
inc edi
dec eax
lea ecx, [esi + 2]
cmp eax, ecx
jae 0x473919
push 0x263
jmp 0x473954
mov ecx, dword [ebp + 0x1c]
mov edx, esi
cmp ecx, 0xffffffff
je 0x473944
cmp ecx, 0xfffffffe
jne 0x47393a
mov edx, 0xfffffffe
sub edx, esi
add edx, eax
jmp 0x473944
mov eax, 7
jmp 0x4738db
test ecx, ecx
mov edx, ecx
js 0x473aec
mov ebx, eax
sub ebx, esi
lea ecx, [ebx - 2]
cmp ecx, edx
jae 0x47397e
push 0x278
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x72
push 0
push 4
call sym.adb.exe_ERR_put_error
add esp, 0x14
xor esi, esi
xor ebx, ebx
push ebx
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test edx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
je 0x4739b5
push edx
call sym.adb.exe_OPENSSL_malloc
add esp, 4
mov ebx, eax
test eax, eax
je 0x473b00
push 0x57c0a7
push dword [esp + 0xc]
push ebx
call fcn.0045abe0
add esp, 0xc
jmp 0x4739b7
xor ebx, ebx
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov edx, eax
test eax, eax
je 0x4739fa
push dword [edx + 0x1c]
call sym.adb.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x473b11
push 0
mov dword [esp + 0x14], eax
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], edi
lea ecx, [edi + eax - 1]
dec eax
lea edi, [esp + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
push edi
call dword [edx + 0xc]
add esp, 4
mov eax, dword [esp + 0x20]
push 8
push 0x57c136
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push esi
push dword [ebp + 0x10]
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 8]
push ebx
push edi
call dword [eax + 0x10]
add esp, 0xc
mov eax, dword [esp + 0x20]
push dword [esp + 0x10]
push edi
call dword [eax + 0x14]
add esp, 8
mov eax, dword [esp + 0x20]
push dword [eax + 0x1c]
push dword [esp + 0x28]
call sym.adb.exe_OPENSSL_cleanse
add esp, 8
push dword [esp + 0x24]
call sym.adb.exe_OPENSSL_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x473a8a
push dword [esp + 0x28]
call dword [eax]
add esp, 4
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov ecx, edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x18]
call fcn.00472e10
add esp, 0xc
test eax, eax
je 0x473b3d
mov eax, esi
mov esi, 0xfffffffe
sub esi, eax
mov eax, dword [esp + 8]
add esi, dword [esp + 0x14]
sub esi, eax
xor byte [edi + esi], 1
test eax, eax
je 0x473bed
add esi, dword [esp + 0xc]
xor ecx, ecx
cmp eax, 0x20
mov edx, eax
jae 0x473b44
xor eax, eax
mov edi, edx
jmp 0x473bd0
push 0x271
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x8a
jmp 0x47395b
push 0x27f
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x41
jmp 0x47395b
push 0xb4
push str.external_boringssl_src_crypto_fipsmodule_digest_digest.c
push 0x41
push 0
push 0x1d
call sym.adb.exe_ERR_put_error
add esp, 0x14
push 0
call sym.adb.exe_OPENSSL_free
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
xor esi, esi
jmp 0x47396b
mov eax, dword [esp + 0x14]
lea edi, [eax - 1]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edi
sub edi, edx
lea edx, [ebx + edx]
sub edi, eax
add edi, dword [esp + 0xc]
cmp edi, edx
mov edi, dword [esp + 0xc]
jae 0x473b7a
mov edx, dword [esp + 0x1c]
sub edx, eax
add edx, edi
cmp ebx, edx
jae 0x473b7a
mov edi, dword [esp + 8]
xor eax, eax
jmp 0x473bd0
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea edi, [edi + 0xf]
and edx, 0xffffffe0
sub edi, dword [esp + 8]
add esi, edx
sub edi, eax
mov eax, edx
xor edx, edx
add edi, dword [esp + 0xc]
movdqu xmm0, xmmword [ebx + edx]
movdqu xmm2, xmmword [edi + edx - 0x10]
movdqu xmm1, xmmword [ebx + edx + 0x10]
movdqu xmm3, xmmword [edi + edx]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi + edx - 0x10], xmm2
movdqu xmmword [edi + edx], xmm3
add edx, 0x20
cmp eax, edx
jne 0x473b98
mov edi, dword [esp + 8]
cmp edi, eax
je 0x473bed
lea edx, [ebx + eax]
sub edi, eax
nop word cs:[eax + eax]
nop
movzx eax, byte [edx + ecx]
xor byte [esi + ecx + 1], al
inc ecx
cmp edi, ecx
jne 0x473be0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x473c09
mov ecx, 8
sub ecx, eax
mov eax, 0xff
shr eax, cl
and byte [edx], al
mov eax, dword [esp + 0x14]
mov esi, 1
mov byte [edx + eax - 1], 0xbc
jmp 0x47396b