Function at 0x1002acf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.10086e00
mov eax, dword [esp + 0xa0]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 0x200
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 2
mov dword [esp + 0x38], ebx
jge 0x1002ad2f
mov eax, 0x200
add eax, 0x3f
cdq
and edx, 0x3f
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0xb8]
sar ebp, 6
shl ebp, 6
cmp eax, 0x14
jge 0x1002ad57
xor esi, esi
mov dword [esp + 0xb4], esi
jmp 0x1002ad5e
mov esi, dword [esp + 0xb4]
cmp eax, 0x14
jle 0x1002ad6f
mov eax, 0x14
mov dword [esp + 0xb8], eax
cmp esi, ebx
je 0x1002ad86
cmp eax, 0x14
jne 0x1002ad86
mov ecx, 5
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
call sym.LIBEAY32.dll_BN_CTX_new
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x1002b402
call sym.LIBEAY32.dll_BN_CTX_new
test eax, eax
mov dword [esp + 0x4c], eax
je 0x1002b3bc
call sym.LIBEAY32.dll_BN_CTX_new
test eax, eax
mov dword [esp + 0x30], eax
je 0x1002b3bc
call sym.LIBEAY32.dll_DSA_new
test eax, eax
mov dword [esp + 0x38], eax
je 0x1002b3bc
call sym.LIBEAY32.dll_BN_MONT_CTX_new
test eax, eax
mov dword [esp + 0x20], eax
je 0x1002b36a
mov esi, dword [esp + 0x4c]
push esi
call sym.LIBEAY32.dll_BN_CTX_start
push esi
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x1c], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x4c], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x48], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x3c], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x44], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x70], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x3c], eax
call sym.LIBEAY32.dll_BN_CTX_get
mov esi, eax
add esp, 0x24
test esi, esi
mov dword [esp + 0x14], esi
je 0x1002b36a
dec ebp
push ebp
mov dword [esp + 0x58], ebp
call sym.LIBEAY32.dll_BN_value_one
push eax
push esi
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1002b36a
mov ebx, dword [esp + 0xc4]
xor ebp, ebp
cmp ebx, ebp
je 0x1002ae86
mov ecx, dword [esp + 0x44]
mov eax, ecx
inc ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xc8]
push ecx
push eax
push ebp
call ebx
add esp, 0xc
cmp dword [esp + 0xb8], ebp
jne 0x1002aea8
lea edx, [esp + 0x84]
push 0x14
push edx
call sym.LIBEAY32.dll_RAND_pseudo_bytes
add esp, 8
mov ebp, 1
jmp 0x1002aeaf
mov dword [esp + 0xb8], ebp
mov ecx, 5
lea esi, [esp + 0x84]
lea edi, [esp + 0x70]
mov eax, 0x13
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0x84]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + eax + 0x70]
inc cl
mov byte [esp + eax + 0x70], cl
jne 0x1002aeea
dec eax
jns 0x1002aedb
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
lea eax, [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x94]
push 0x14
push ecx
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
lea edx, [esp + 0xa0]
push 0
push edx
lea eax, [esp + 0x80]
push 0x14
push eax
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x98]
mov dl, byte [esp + eax + 0x58]
xor dl, cl
mov byte [esp + eax + 0x58], dl
inc eax
cmp eax, 0x14
jl 0x1002af31
mov dl, byte [esp + 0x58]
mov cl, byte [esp + 0x6b]
or dl, 0x80
lea eax, [esp + 0x58]
mov byte [esp + 0x58], dl
mov edx, dword [esp + 0x24]
push edx
or cl, 1
push 0x14
push eax
mov byte [esp + 0x77], cl
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1002b36a
mov esi, dword [esp + 0xc8]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push ebp
push esi
push ecx
push ebx
push 0x32
push edx
call sym.LIBEAY32.dll_BN_is_prime_fasttest
add esp, 0x18
test eax, eax
jg 0x1002afb4
je 0x1002ae66
mov ecx, dword [esp + 0x38]
push ecx
call sym.LIBEAY32.dll_DSA_free
add esp, 4
jmp 0x1002b3bc
test ebx, ebx
je 0x1002afc9
push esi
push 0
push 2
call ebx
push esi
push 0
push 3
call ebx
add esp, 0x18
mov eax, 0x66666667
mov dword [esp + 0x2c], 0
imul dword [esp + 0x54]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x2c]
mov ebp, edx
mov dword [esp + 0x6c], ebp
jmp 0x1002affb
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0x6c]
test ebx, ebx
je 0x1002b00c
test eax, eax
je 0x1002b00c
push esi
push eax
push 0
call ebx
add esp, 0xc
mov ecx, dword [esp + 0x34]
push 0
push ecx
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
test eax, eax
je 0x1002b36a
xor esi, esi
test ebp, ebp
jl 0x1002b0be
xor edi, edi
mov eax, 0x13
mov cl, byte [esp + eax + 0x70]
inc cl
mov byte [esp + eax + 0x70], cl
jne 0x1002b043
dec eax
jns 0x1002b034
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
lea edx, [esp + 0x60]
push 0
push edx
lea eax, [esp + 0x80]
push 0x14
push eax
call sym.LIBEAY32.dll_EVP_Digest
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x70]
push ecx
push 0x14
push edx
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0x24
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x10]
push edi
push eax
push eax
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1002b36a
inc esi
add edi, 0xa0
cmp esi, ebp
jle 0x1002b02f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
push ecx
push edx
call sym.LIBEAY32.dll_BN_mask_bits
add esp, 8
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call sym.LIBEAY32.dll_BN_copy
add esp, 8
test eax, eax
je 0x1002b36a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push edx
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call sym.LIBEAY32.dll_BN_lshift1
add esp, 8
test eax, eax
je 0x1002b36a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
push 0
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1002b36a
call sym.LIBEAY32.dll_BN_value_one
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1002b36a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1002b36a
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push ebp
push esi
call sym.LIBEAY32.dll_BN_cmp
add esp, 8
test eax, eax
jl 0x1002b1c7
mov edi, dword [esp + 0xc8]
mov edx, dword [esp + 0x30]
push 1
push edi
push edx
push ebx
push 0x32
push esi
call sym.LIBEAY32.dll_BN_is_prime_fasttest
add esp, 0x18
test eax, eax
jg 0x1002b1e0
jne 0x1002b36a
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 0x1000
mov dword [esp + 0x2c], eax
jl 0x1002aff0
jmp 0x1002ae66
test ebx, ebx
je 0x1002b1ee
push edi
push 1
push 2
call ebx
add esp, 0xc
call sym.LIBEAY32.dll_BN_value_one
push eax
push esi
push ebp
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push eax
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1002b36a
mov ecx, dword [esp + 0x14]
push 2
push ecx
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
test eax, eax
je 0x1002b36a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call sym.LIBEAY32.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x1002b36a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
call sym.LIBEAY32.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1002b36a
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 4]
mov ebp, 1
cmp eax, ebp
jne 0x1002b30e
mov edx, dword [edi]
cmp dword [edx], ebp
jne 0x1002b30e
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1002b30e
call sym.LIBEAY32.dll_BN_value_one
push eax
push esi
push esi
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1002b36a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc eax
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push esi
push edi
call sym.LIBEAY32.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
jne 0x1002b298
mov ecx, dword [esp + 0x38]
push ecx
call sym.LIBEAY32.dll_DSA_free
add esp, 4
jmp 0x1002b3bc
test ebx, ebx
je 0x1002b322
mov ecx, dword [esp + 0xc8]
push ecx
push ebp
push 3
call ebx
add esp, 0xc
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], ebp
push edx
call sym.LIBEAY32.dll_BN_dup
mov esi, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
push eax
call sym.LIBEAY32.dll_BN_dup
push edi
mov dword [esi + 0x10], eax
call sym.LIBEAY32.dll_BN_dup
mov ecx, dword [esi + 0xc]
add esp, 0xc
test ecx, ecx
mov dword [esi + 0x14], eax
je 0x1002b362
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1002b362
test eax, eax
jne 0x1002b379
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x38]
push ecx
call sym.LIBEAY32.dll_DSA_free
add esp, 4
jmp 0x1002b3bc
cmp dword [esp + 0x44], ebp
jle 0x1002b39a
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x1002b39a
mov ecx, 5
lea esi, [esp + 0x84]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x1002b3ab
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x1002b3bc
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
push edx
call sym.LIBEAY32.dll_BN_CTX_free
mov esi, dword [esp + 0x50]
add esp, 4
test esi, esi
je 0x1002b3e0
push esi
call sym.LIBEAY32.dll_BN_CTX_end
push esi
call sym.LIBEAY32.dll_BN_CTX_free
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1002b3f1
push eax
call sym.LIBEAY32.dll_BN_CTX_free
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1002b402
push eax
call sym.LIBEAY32.dll_BN_MONT_CTX_free
add esp, 4
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x9c
ret