Function at 0x1002b520
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x98
call fcn.100781a0
mov eax, dword [esp + 0x9c]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, 0x200
push edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], 2
mov dword [esp + 0x1c], ebp
jge 0x1002b55f
mov eax, 0x200
add eax, 0x3f
cdq
and edx, 0x3f
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0xb4]
sar ebx, 6
shl ebx, 6
cmp eax, 0x14
jge 0x1002b587
xor esi, esi
mov dword [esp + 0xb0], esi
jmp 0x1002b58e
mov esi, dword [esp + 0xb0]
cmp eax, 0x14
jle 0x1002b5a5
mov dword [esp + 0xb4], 0x14
mov eax, dword [esp + 0xb4]
cmp esi, ebp
je 0x1002b5bc
cmp eax, 0x14
jne 0x1002b5bc
mov ecx, 5
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
call sym.LIBEAY32.dll_BN_CTX_new
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x1002bab1
call sym.LIBEAY32.dll_BN_CTX_new
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x30], esi
je 0x1002ba6f
call sym.LIBEAY32.dll_BN_CTX_new
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x1002ba6f
call sym.LIBEAY32.dll_DSA_new
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x1002ba6f
call sym.LIBEAY32.dll_BN_MONT_CTX_new
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x1002bad0
push esi
call sym.LIBEAY32.dll_BN_CTX_start
push esi
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov ebp, eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x54], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x74], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x38], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x64], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x60], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x8c], eax
call sym.LIBEAY32.dll_BN_CTX_get
add esp, 0x24
dec ebx
mov esi, eax
mov dword [esp + 0x34], ebx
push ebx
mov dword [esp + 0x68], esi
call sym.LIBEAY32.dll_BN_value_one
push eax
push esi
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
mov ebx, dword [esp + 0xc0]
xor esi, esi
cmp ebx, esi
je 0x1002b6ab
mov ecx, dword [esp + 0x28]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xc4]
push ecx
push eax
push esi
call ebx
add esp, 0xc
cmp dword [esp + 0xb4], esi
jne 0x1002b6d0
lea edx, [esp + 0x80]
push 0x14
push edx
call sym.LIBEAY32.dll_RAND_pseudo_bytes
add esp, 8
mov dword [esp + 0x10], 1
jmp 0x1002b6db
mov dword [esp + 0x10], esi
mov dword [esp + 0xb4], esi
mov ecx, 5
lea esi, [esp + 0x80]
lea edi, [esp + 0x6c]
mov eax, 0x13
rep movsd dword es:[edi], dword [esi]
mov ecx, 5
lea esi, [esp + 0x80]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + eax + 0x6c]
inc cl
mov byte [esp + eax + 0x6c], cl
jne 0x1002b716
dec eax
jns 0x1002b707
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x80]
push eax
push 0x14
push ecx
call sym.LIBEAY32.dll_SHA1
lea edx, [esp + 0xa0]
lea eax, [esp + 0x78]
push edx
push 0x14
push eax
call sym.LIBEAY32.dll_SHA1
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x94]
mov dl, byte [esp + eax + 0x4c]
xor dl, cl
mov byte [esp + eax + 0x4c], dl
inc eax
cmp eax, 0x14
jl 0x1002b743
mov dl, byte [esp + 0x5f]
mov esi, dword [esp + 0x20]
mov al, byte [esp + 0x4c]
or dl, 1
mov byte [esp + 0x5f], dl
push esi
lea edx, [esp + 0x50]
or al, 0x80
push 0x14
push edx
mov byte [esp + 0x58], al
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1002baca
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc4]
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
push ebx
push 0x32
push esi
call sym.LIBEAY32.dll_BN_is_prime_fasttest
add esp, 0x18
test eax, eax
jg 0x1002b7b8
jne 0x1002baca
jmp 0x1002b684
test ebx, ebx
je 0x1002b7cd
push edi
push 0
push 2
call ebx
push edi
push 0
push 3
call ebx
add esp, 0x18
mov eax, 0x66666667
xor ecx, ecx
imul dword [esp + 0x34]
sar edx, 6
mov eax, edx
mov dword [esp + 0x10], ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x38], edx
jmp 0x1002b7fe
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
test ebx, ebx
je 0x1002b80f
test ecx, ecx
je 0x1002b80f
push edi
push ecx
push 0
call ebx
add esp, 0xc
mov ebx, dword [esp + 0x60]
push 0
push ebx
call sym.LIBEAY32.dll_BN_set_word
mov eax, dword [esp + 0x40]
add esp, 8
xor esi, esi
test eax, eax
jl 0x1002b889
xor edi, edi
mov eax, 0x13
mov cl, byte [esp + eax + 0x6c]
inc cl
mov byte [esp + eax + 0x6c], cl
jne 0x1002b83e
dec eax
jns 0x1002b82f
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x6c]
push ecx
push 0x14
push edx
call sym.LIBEAY32.dll_SHA1
push ebp
lea eax, [esp + 0x5c]
push 0x14
push eax
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0x18
test eax, eax
je 0x1002baca
push edi
push ebp
push ebp
call sym.LIBEAY32.dll_BN_lshift
push ebp
push ebx
push ebx
call sym.LIBEAY32.dll_BN_add
mov eax, dword [esp + 0x50]
add esp, 0x18
inc esi
add edi, 0xa0
cmp esi, eax
jle 0x1002b82a
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call sym.LIBEAY32.dll_BN_mask_bits
mov esi, dword [esp + 0x50]
push ebx
push esi
call sym.LIBEAY32.dll_BN_copy
mov edi, dword [esp + 0x74]
push edi
push esi
push esi
call sym.LIBEAY32.dll_BN_add
mov edx, dword [esp + 0x3c]
push edx
push ebp
call sym.LIBEAY32.dll_BN_lshift1
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x64]
push eax
push ebp
push esi
push ebx
call sym.LIBEAY32.dll_BN_mod
call sym.LIBEAY32.dll_BN_value_one
push eax
push ebx
push ebp
call sym.LIBEAY32.dll_BN_sub
add esp, 0x40
push ebp
push esi
mov esi, dword [esp + 0x70]
push esi
call sym.LIBEAY32.dll_BN_sub
push edi
push esi
call sym.LIBEAY32.dll_BN_cmp
add esp, 0x14
test eax, eax
jl 0x1002b91d
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc0]
push 1
push ecx
push edx
push ebx
push 0x32
push esi
call sym.LIBEAY32.dll_BN_is_prime_fasttest
add esp, 0x18
test eax, eax
jg 0x1002b936
jne 0x1002baca
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x1000
mov dword [esp + 0x10], eax
jl 0x1002b7ec
jmp 0x1002b684
test ebx, ebx
je 0x1002b94b
mov eax, dword [esp + 0xc4]
push eax
push 1
push 2
call ebx
add esp, 0xc
call sym.LIBEAY32.dll_BN_value_one
push eax
push esi
push edi
call sym.LIBEAY32.dll_BN_sub
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push edi
push 0
push ebp
call sym.LIBEAY32.dll_BN_div
push 2
push edi
call sym.LIBEAY32.dll_BN_set_word
mov edx, dword [esp + 0x3c]
push ebx
push esi
push edx
call sym.LIBEAY32.dll_BN_MONT_CTX_set
mov eax, dword [esp + 0x48]
push eax
push ebx
mov ebx, dword [esp + 0x80]
push esi
push ebp
push edi
push ebx
call sym.LIBEAY32.dll_BN_mod_exp_mont
mov eax, dword [ebx + 4]
add esp, 0x4c
cmp eax, 1
jne 0x1002b9db
mov ecx, dword [ebx]
cmp dword [ecx], 1
jne 0x1002b9db
call sym.LIBEAY32.dll_BN_value_one
push eax
push edi
push edi
call sym.LIBEAY32.dll_BN_add
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
push edx
push eax
push esi
push ebp
inc ecx
push edi
push ebx
mov dword [esp + 0x50], ecx
call sym.LIBEAY32.dll_BN_mod_exp_mont
mov eax, dword [ebx + 4]
add esp, 0x24
cmp eax, 1
je 0x1002b9a0
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x1002b9f7
mov ecx, dword [esp + 0xc4]
push ecx
push 1
push 3
call eax
add esp, 0xc
push esi
mov dword [esp + 0x40], 1
call sym.LIBEAY32.dll_BN_dup
mov esi, dword [esp + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
push eax
call sym.LIBEAY32.dll_BN_dup
push ebx
mov dword [esi + 0x10], eax
call sym.LIBEAY32.dll_BN_dup
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, 1
jle 0x1002ba47
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x1002ba47
mov ecx, 5
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x1002ba58
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x1002ba69
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0x30]
xor ebp, ebp
mov eax, dword [esp + 0x24]
push eax
call sym.LIBEAY32.dll_BN_CTX_free
add esp, 4
cmp esi, ebp
je 0x1002ba8f
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 + 0x18]
cmp eax, ebp
je 0x1002baa0
push eax
call sym.LIBEAY32.dll_BN_CTX_free
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1002bab1
push eax
call sym.LIBEAY32.dll_BN_MONT_CTX_free
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x98
ret
mov esi, dword [esp + 0x30]
xor ebp, ebp
mov edx, dword [esp + 0x1c]
push edx
call sym.LIBEAY32.dll_DSA_free
add esp, 4
jmp 0x1002ba6f