Function at 0x10080d70
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10080d70
mov eax, 0xd8
call fcn.101aa6d0
mov eax, dword [0x102745f0]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0xf0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xfc]
push esi
mov esi, dword [esp + 0xf0]
push edi
mov edi, dword [esp + 0xf0]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10c]
shr edi, 3
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], 2
cmp edi, 0x14
je 0x10080e11
cmp edi, 0x1c
je 0x10080e11
cmp edi, 0x20
jne 0x10080e90
test esi, esi
jne 0x10080e46
cmp edi, 0x14
jne 0x10080e27
call sym.libcrypto_1_1.dll_EVP_sha1
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x10080e51
cmp edi, 0x1c
jne 0x10080e39
call sym.libcrypto_1_1.dll_EVP_sha224
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x10080e51
call sym.libcrypto_1_1.dll_EVP_sha256
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x10080e51
push esi
call sym.libcrypto_1_1.dll_EVP_MD_size
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0xec]
mov eax, 0x200
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 0x3f]
and eax, 0xffffffc0
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x10080ebf
mov eax, dword [esp + 0xfc]
cmp eax, edi
jae 0x10080eaa
push 0x55
push 0x101f6408
push 0x6e
push 0x7d
push 0xa
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.101aa6fb
add esp, 0xd8
ret
cmova eax, edi
push eax
lea eax, [esp + 0xa4]
push ebx
push eax
call fcn.101aa710
add esp, 0xc
call sym.libcrypto_1_1.dll_BN_MONT_CTX_new
mov dword [esp + 0x28], eax
test eax, eax
je 0x1008144d
call sym.libcrypto_1_1.dll_BN_CTX_new
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1008144d
push ebp
push ebx
call sym.libcrypto_1_1.dll_BN_CTX_start
push ebx
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov ebp, eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x38], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x58], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x38], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x6c], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x6c], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
push ebx
mov dword [esp + 0x38], eax
call sym.libcrypto_1_1.dll_BN_CTX_get
mov ebx, eax
add esp, 0x24
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1008144c
mov eax, dword [esp + 0x38]
dec eax
push eax
call sym.libcrypto_1_1.dll_BN_value_one
push eax
push ebx
call sym.libcrypto_1_1.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x34]
xor ebx, ebx
cmp dword [esp + 0x4c], ebx
push 0
push dword [esp + 0x24]
sete bl
call sym.libcrypto_1_1.dll_BN_GENCB_call
inc dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x1008144c
test ebx, ebx
je 0x10080fa8
lea eax, [esp + 0xa4]
push edi
push eax
call sym.libcrypto_1_1.dll_RAND_bytes
add esp, 8
test eax, eax
jle 0x1008144c
jmp 0x10080fb0
mov dword [esp + 0x48], 0
push edi
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.101aa710
push edi
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.101aa710
lea eax, [edi - 1]
add esp, 0x18
test eax, eax
js 0x10080ff2
inc byte [esp + eax + 0x84]
jne 0x10080ff2
dec eax
jns 0x10080fe6
push 0
push esi
push 0
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xb4]
push edi
push eax
call sym.libcrypto_1_1.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1008144c
push 0
push esi
push 0
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x94]
push edi
push eax
call sym.libcrypto_1_1.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1008144c
xor ecx, ecx
test edi, edi
jle 0x10081051
mov al, byte [esp + ecx + 0xc4]
xor byte [esp + ecx + 0x64], al
inc ecx
cmp ecx, edi
jl 0x10081041
push dword [esp + 0x20]
or byte [esp + 0x68], 0x80
or byte [esp + edi + 0x67], 1
lea eax, [esp + 0x68]
push edi
push eax
call sym.libcrypto_1_1.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x20]
push 0x40
push dword [esp + 0x30]
call sym.libcrypto_1_1.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x1008109b
je 0x10080f62
jmp 0x1008144c
mov ebx, dword [esp + 0x1c]
push 0
push 2
push ebx
call sym.libcrypto_1_1.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1008144c
push 0
push 3
push ebx
call sym.libcrypto_1_1.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1008144c
mov ecx, dword [esp + 0x38]
mov eax, 0xcccccccd
lea ecx, [ecx - 1]
mul ecx
xor esi, esi
mov ebx, edx
mov dword [esp + 0x40], esi
shr ebx, 7
test esi, esi
je 0x100810fd
push esi
push 0
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1008144c
push 0
push dword [esp + 0x48]
call sym.libcrypto_1_1.dll_BN_set_word
add esp, 8
xor esi, esi
test ebx, ebx
js 0x100811a6
lea eax, [edi - 1]
test eax, eax
js 0x1008112c
lea esp, [esp]
inc byte [esp + eax + 0x84]
jne 0x1008112c
dec eax
jns 0x10081120
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x6c]
push 0
push eax
lea eax, [esp + 0x94]
push edi
push eax
call sym.libcrypto_1_1.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1008144c
push ebp
lea eax, [esp + 0x68]
push edi
push eax
call sym.libcrypto_1_1.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1008144c
lea eax, [edi*8]
imul eax, esi
push eax
push ebp
push ebp
call sym.libcrypto_1_1.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1008144c
mov eax, dword [esp + 0x44]
push ebp
push eax
push eax
call sym.libcrypto_1_1.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1008144c
inc esi
cmp esi, ebx
jle 0x10081115
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
dec eax
push eax
push esi
call sym.libcrypto_1_1.dll_BN_mask_bits
add esp, 8
test eax, eax
je 0x1008144c
push esi
mov esi, dword [esp + 0x54]
push esi
call sym.libcrypto_1_1.dll_BN_copy
add esp, 8
test eax, eax
je 0x1008144c
push dword [esp + 0x10]
push esi
push esi
call sym.libcrypto_1_1.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x20]
push ebp
call sym.libcrypto_1_1.dll_BN_lshift1
add esp, 8
test eax, eax
je 0x1008144c
push dword [esp + 0x18]
push ebp
push esi
push dword [esp + 0x58]
push 0
call sym.libcrypto_1_1.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1008144c
call sym.libcrypto_1_1.dll_BN_value_one
push eax
push dword [esp + 0x50]
push ebp
call sym.libcrypto_1_1.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1008144c
push ebp
push esi
mov esi, dword [esp + 0x1c]
push esi
call sym.libcrypto_1_1.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x10]
push esi
call sym.libcrypto_1_1.dll_BN_cmp
add esp, 8
test eax, eax
js 0x10081284
mov esi, dword [esp + 0x1c]
push esi
push 1
push dword [esp + 0x20]
push 0x40
push dword [esp + 0x24]
call sym.libcrypto_1_1.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x100812a2
jne 0x1008144c
mov esi, dword [esp + 0x40]
inc esi
mov dword [esp + 0x40], esi
cmp esi, 0x1000
jl 0x100810e2
mov esi, dword [esp + 0x24]
jmp 0x10080f62
push 1
push 2
push esi
call sym.libcrypto_1_1.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1008144c
call sym.libcrypto_1_1.dll_BN_value_one
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call sym.libcrypto_1_1.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1008144c
mov ebx, dword [esp + 0x18]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x18]
push 0
push ebp
call sym.libcrypto_1_1.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1008144c
push 2
push dword [esp + 0x14]
call sym.libcrypto_1_1.dll_BN_set_word
add esp, 8
test eax, eax
je 0x1008144c
push ebx
push dword [esp + 0x18]
push dword [esp + 0x34]
call sym.libcrypto_1_1.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x3c]
call sym.libcrypto_1_1.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1008144c
push dword [esp + 0x28]
call sym.libcrypto_1_1.dll_BN_is_one
add esp, 4
test eax, eax
je 0x10081399
call sym.libcrypto_1_1.dll_BN_value_one
push eax
mov eax, dword [esp + 0x14]
push eax
push eax
call sym.libcrypto_1_1.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1008144c
push dword [esp + 0x2c]
inc dword [esp + 0x34]
push ebx
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x20]
push dword [esp + 0x3c]
call sym.libcrypto_1_1.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
jne 0x10081346
jmp 0x1008144c
push 1
push 3
push esi
call sym.libcrypto_1_1.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1008144c
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x3c], 1
push dword [ebx + 8]
lea ecx, [ecx]
call sym.libcrypto_1_1.dll_BN_free
push dword [ebx + 0xc]
call sym.libcrypto_1_1.dll_BN_free
push dword [ebx + 0x10]
call sym.libcrypto_1_1.dll_BN_free
push dword [esp + 0x20]
call sym.libcrypto_1_1.dll_BN_dup
push dword [esp + 0x30]
mov dword [ebx + 8], eax
call sym.libcrypto_1_1.dll_BN_dup
push dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
call sym.libcrypto_1_1.dll_BN_dup
add esp, 0x18
cmp dword [ebx + 8], 0
mov dword [ebx + 0x10], eax
je 0x10081444
cmp dword [ebx + 0xc], 0
je 0x10081444
test eax, eax
je 0x10081444
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1008141a
mov eax, dword [esp + 0x40]
mov dword [ecx], eax
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x10081428
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x1008144c
push edi
lea ecx, [esp + 0xa8]
push ecx
push eax
call fcn.101aa710
add esp, 0xc
jmp 0x1008144c
mov dword [esp + 0x3c], 0
pop ebp
mov esi, dword [esp + 0x14]
push esi
call sym.libcrypto_1_1.dll_BN_CTX_end
push esi
call sym.libcrypto_1_1.dll_BN_CTX_free
push dword [esp + 0x30]
call sym.libcrypto_1_1.dll_BN_MONT_CTX_free
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x44]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101aa6fb
add esp, 0xd8
ret