Function at 0x1003b4f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.100b1990
mov eax, dword [esp + 0x94]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, 0x200
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 2
jge 0x1003b523
mov eax, 0x200
add eax, 0x3f
mov ecx, 0x14
cdq
and edx, 0x3f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0xac]
sar ebx, 6
shl ebx, 6
cmp eax, ecx
jge 0x1003b54f
xor esi, esi
mov dword [esp + 0xa8], esi
jmp 0x1003b556
mov esi, dword [esp + 0xa8]
cmp eax, ecx
jle 0x1003b561
mov dword [esp + 0xac], ecx
cmp esi, edi
je 0x1003b579
cmp dword [esp + 0xac], ecx
jne 0x1003b579
mov ecx, 5
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
call sym.LIBEAY32_smt.dll_BN_CTX_new
mov ebp, eax
test ebp, ebp
je 0x1003bb33
call sym.LIBEAY32_smt.dll_BN_MONT_CTX_new
test eax, eax
mov dword [esp + 0x20], eax
je 0x1003bb13
push ebp
call sym.LIBEAY32_smt.dll_BN_CTX_start
push ebp
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x40], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x4c], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x38], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x34], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x78], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x60], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
push ebp
mov dword [esp + 0x7c], eax
call sym.LIBEAY32_smt.dll_BN_CTX_get
add esp, 0x24
dec ebx
mov esi, eax
mov dword [esp + 0x30], ebx
push ebx
mov dword [esp + 0x14], esi
call sym.LIBEAY32_smt.dll_BN_value_one
push eax
push esi
call sym.LIBEAY32_smt.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1003bb13
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov eax, ecx
inc ecx
push eax
mov eax, dword [esp + 0xbc]
push ebx
push eax
mov dword [esp + 0x34], ecx
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
cmp dword [esp + 0xac], ebx
jne 0x1003b657
lea ecx, [esp + 0x74]
push 0x14
push ecx
call sym.LIBEAY32_smt.dll_RAND_pseudo_bytes
add esp, 8
mov ebx, 1
jmp 0x1003b65e
mov dword [esp + 0xac], ebx
mov ecx, 5
lea esi, [esp + 0x74]
lea edi, [esp + 0x60]
mov eax, 0x13
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0x74]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + eax + 0x60]
inc cl
mov byte [esp + eax + 0x60], cl
jne 0x1003b693
dec eax
jns 0x1003b684
push 0
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x84]
push 0x14
push eax
call sym.LIBEAY32_smt.dll_EVP_Digest
add esp, 0x18
push 0
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
lea ecx, [esp + 0x90]
push 0
push ecx
lea edx, [esp + 0x70]
push 0x14
push edx
call sym.LIBEAY32_smt.dll_EVP_Digest
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x88]
mov dl, byte [esp + eax + 0x44]
xor dl, cl
mov byte [esp + eax + 0x44], dl
inc eax
cmp eax, 0x14
jl 0x1003b6d7
mov dl, byte [esp + 0x57]
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x44]
or dl, 1
mov byte [esp + 0x57], dl
push edi
lea edx, [esp + 0x48]
or al, 0x80
push 0x14
push edx
mov byte [esp + 0x50], al
call sym.LIBEAY32_smt.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1003bb13
mov esi, dword [esp + 0xb8]
push esi
push ebx
push ebp
push 0x32
push edi
call sym.LIBEAY32_smt.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x1003b743
jne 0x1003bb13
jmp 0x1003b611
push 0
push 2
push esi
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
push 0
push 3
push esi
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
mov eax, 0x66666667
xor ecx, ecx
imul dword [esp + 0x30]
sar edx, 6
mov eax, edx
mov dword [esp + 0x18], ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x38], edx
jmp 0x1003b797
mov esi, dword [esp + 0xb8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1003b7af
push ecx
push 0
push esi
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
mov edi, dword [esp + 0x24]
push 0
push edi
call sym.LIBEAY32_smt.dll_BN_set_word
mov eax, dword [esp + 0x40]
add esp, 8
xor esi, esi
test eax, eax
jl 0x1003b85a
xor edi, edi
mov eax, 0x13
mov cl, byte [esp + eax + 0x60]
inc cl
mov byte [esp + eax + 0x60], cl
jne 0x1003b7e2
dec eax
jns 0x1003b7d3
push 0
call sym.LIBEAY32_smt.dll_EVP_sha1
push eax
lea ecx, [esp + 0x4c]
push 0
push ecx
lea edx, [esp + 0x70]
push 0x14
push edx
call sym.LIBEAY32_smt.dll_EVP_Digest
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x5c]
push ebx
push 0x14
push eax
call sym.LIBEAY32_smt.dll_BN_bin2bn
add esp, 0x24
test eax, eax
je 0x1003bb13
push edi
push ebx
push ebx
call sym.LIBEAY32_smt.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1003bb13
mov eax, dword [esp + 0x24]
push ebx
push eax
push eax
call sym.LIBEAY32_smt.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003bb13
mov eax, dword [esp + 0x38]
inc esi
add edi, 0xa0
cmp esi, eax
jle 0x1003b7ce
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push ecx
push edi
call sym.LIBEAY32_smt.dll_BN_mask_bits
add esp, 8
test eax, eax
je 0x1003bb13
mov esi, dword [esp + 0x5c]
push edi
push esi
call sym.LIBEAY32_smt.dll_BN_copy
add esp, 8
test eax, eax
je 0x1003bb13
mov edx, dword [esp + 0x10]
push edx
push esi
push esi
call sym.LIBEAY32_smt.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003bb13
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
push eax
push edi
call sym.LIBEAY32_smt.dll_BN_lshift1
add esp, 8
test eax, eax
je 0x1003bb13
mov ebx, dword [esp + 0x40]
push ebp
push edi
push esi
push ebx
push 0
call sym.LIBEAY32_smt.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1003bb13
call sym.LIBEAY32_smt.dll_BN_value_one
push eax
push ebx
push edi
call sym.LIBEAY32_smt.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003bb13
mov ebx, dword [esp + 0x58]
push edi
push esi
push ebx
call sym.LIBEAY32_smt.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003bb13
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call sym.LIBEAY32_smt.dll_BN_cmp
add esp, 8
test eax, eax
jl 0x1003b932
mov esi, dword [esp + 0xb8]
push esi
push 1
push ebp
push 0x32
push ebx
call sym.LIBEAY32_smt.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x1003b94b
jne 0x1003bb13
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x1000
mov dword [esp + 0x18], eax
jl 0x1003b78c
jmp 0x1003b611
push 1
push 2
push esi
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
call sym.LIBEAY32_smt.dll_BN_value_one
mov esi, dword [esp + 0x10]
push eax
push ebx
push esi
call sym.LIBEAY32_smt.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003bb13
mov edx, dword [esp + 0x1c]
push ebp
push edx
push esi
push 0
push edi
call sym.LIBEAY32_smt.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1003bb13
push 2
push esi
call sym.LIBEAY32_smt.dll_BN_set_word
add esp, 8
test eax, eax
je 0x1003bb13
mov eax, dword [esp + 0x20]
push ebp
push ebx
push eax
call sym.LIBEAY32_smt.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x1003bb13
mov ecx, dword [esp + 0x20]
push ecx
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x50]
push esi
call sym.LIBEAY32_smt.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1003bb13
cmp dword [esi + 4], 1
jne 0x1003ba37
mov edx, dword [esi]
cmp dword [edx], 1
jne 0x1003ba37
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1003ba37
call sym.LIBEAY32_smt.dll_BN_value_one
push eax
mov eax, dword [esp + 0x14]
push eax
push eax
call sym.LIBEAY32_smt.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003bb13
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push eax
push ebp
push ebx
push edi
inc edx
push ecx
push esi
mov dword [esp + 0x44], edx
call sym.LIBEAY32_smt.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1003bb13
jmp 0x1003b9de
mov edx, dword [esp + 0xb8]
push 1
push 3
push edx
call sym.LIBEAY32_smt.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003bb13
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1003ba72
push eax
call sym.LIBEAY32_smt.dll_BN_free
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1003ba82
push eax
call sym.LIBEAY32_smt.dll_BN_free
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1003ba92
push eax
call sym.LIBEAY32_smt.dll_BN_free
add esp, 4
push ebx
call sym.LIBEAY32_smt.dll_BN_dup
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
push eax
call sym.LIBEAY32_smt.dll_BN_dup
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x10], eax
push ecx
call sym.LIBEAY32_smt.dll_BN_dup
mov ecx, dword [esi + 0xc]
add esp, 0xc
test ecx, ecx
mov dword [esi + 0x14], eax
je 0x1003baca
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1003baca
test eax, eax
jne 0x1003bad4
mov dword [esp + 0x14], 0
jmp 0x1003bb13
cmp dword [esp + 0x28], 1
jle 0x1003baf1
mov edi, dword [esp + 0xa8]
test edi, edi
je 0x1003baf1
mov ecx, 5
lea esi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x1003bb02
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x1003bb13
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
push ebp
call sym.LIBEAY32_smt.dll_BN_CTX_end
push ebp
call sym.LIBEAY32_smt.dll_BN_CTX_free
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x1003bb33
push eax
call sym.LIBEAY32_smt.dll_BN_MONT_CTX_free
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret