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

Disassembly:
mov eax, 0x88
call fcn.100a1060
mov eax, dword [esp + 0x90]
push ebx
push esi
push edi
xor edi, edi
cmp eax, 0x200
mov dword [esp + 0x14], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x28], 2
jge 0x10035c52
mov eax, 0x200
add eax, 0x3f
cdq
and edx, 0x3f
add eax, edx
mov esi, eax
mov eax, dword [esp + 0xa4]
sar esi, 6
shl esi, 6
cmp eax, edi
je 0x10035c7a
cmp eax, 0x14
jge 0x10035c7a
mov dword [esp + 0xa0], edi
mov ecx, 0x14
cmp eax, ecx
jle 0x10035c8a
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0xa0]
cmp eax, edi
je 0x10035cc7
cmp dword [esp + 0xa4], ecx
jne 0x10035cc7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0xa0], edi
call sym.LIBEAY32.dll_BN_CTX_new
mov ebx, eax
cmp ebx, edi
je 0x10036317
call sym.LIBEAY32.dll_BN_MONT_CTX_new
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x100362e9
push ebx
call sym.LIBEAY32.dll_BN_CTX_start
push ebx
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0x28], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0xa0], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0x38], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0x30], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0xa4], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0x7c], eax
call sym.LIBEAY32.dll_BN_CTX_get
push ebx
mov dword [esp + 0xb0], eax
call sym.LIBEAY32.dll_BN_CTX_get
add esp, 0x24
dec esi
mov edi, eax
push esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x5c], esi
call sym.LIBEAY32.dll_BN_value_one
push eax
push edi
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x100362e9
push ebp
lea esp, [esp]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0xb4]
push esi
xor ebp, ebp
push ebp
push ecx
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
inc esi
test eax, eax
mov dword [esp + 0x58], esi
je 0x100362e8
cmp dword [esp + 0xa8], ebp
jne 0x10035db4
lea edx, [esp + 0x44]
push 0x14
push edx
call sym.LIBEAY32.dll_RAND_pseudo_bytes
add esp, 8
mov ebp, 1
jmp 0x10035dbb
mov dword [esp + 0xa8], ebp
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov eax, 0x13
inc byte [esp + eax + 0x64]
jne 0x10035e0e
dec eax
jns 0x10035e05
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x54]
push 0x14
push ecx
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
push 0
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x74]
push 0x14
push eax
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
xor eax, eax
nop
mov cl, byte [esp + eax + 0x78]
mov dl, byte [esp + eax + 0x30]
xor dl, cl
mov cl, byte [esp + eax + 0x31]
mov byte [esp + eax + 0x30], dl
mov dl, byte [esp + eax + 0x79]
xor cl, dl
mov dl, byte [esp + eax + 0x32]
mov byte [esp + eax + 0x31], cl
mov cl, byte [esp + eax + 0x7a]
xor dl, cl
mov cl, byte [esp + eax + 0x33]
mov byte [esp + eax + 0x32], dl
mov dl, byte [esp + eax + 0x7b]
xor cl, dl
mov dl, byte [esp + eax + 0x34]
mov byte [esp + eax + 0x33], cl
mov cl, byte [esp + eax + 0x7c]
xor dl, cl
mov byte [esp + eax + 0x34], dl
add eax, 5
cmp eax, 0x14
jl 0x10035e50
mov dl, byte [esp + 0x43]
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x30]
or dl, 1
push edi
mov byte [esp + 0x47], dl
lea edx, [esp + 0x34]
or al, 0x80
push 0x14
push edx
mov byte [esp + 0x3c], al
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x100362e8
mov esi, dword [esp + 0xb4]
push esi
push ebp
push ebx
push 0x32
push edi
call sym.LIBEAY32.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x10035ef3
je 0x10035d70
jmp 0x100362e8
push 0
push 2
push esi
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x100362e8
push 0
push 3
push esi
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x100362e8
mov eax, 0x66666667
imul dword [esp + 0x5c]
sar edx, 6
mov ebp, edx
xor ecx, ecx
shr ebp, 0x1f
mov dword [esp + 0x24], ecx
add ebp, edx
jmp 0x10035f43
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0xb4]
test ecx, ecx
je 0x10035f5b
push ecx
push 0
push esi
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x100362e8
mov edi, dword [esp + 0x28]
push 0
push edi
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
xor esi, esi
test ebp, ebp
jl 0x1003600a
xor edi, edi
jmp 0x10035f80
mov eax, 0x13
inc byte [esp + eax + 0x64]
jne 0x10035f8e
dec eax
jns 0x10035f85
push 0
call sym.LIBEAY32.dll_EVP_sha1
push eax
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x74]
push 0x14
push ecx
call sym.LIBEAY32.dll_EVP_Digest
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push 0x14
push eax
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0x24
test eax, eax
je 0x100362e8
mov eax, dword [esp + 0x20]
push edi
push eax
push eax
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x100362e8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x100362e8
inc esi
add edi, 0xa0
cmp esi, ebp
jle 0x10035f80
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
push edx
push edi
call sym.LIBEAY32.dll_BN_mask_bits
add esp, 8
test eax, eax
je 0x100362e8
mov esi, dword [esp + 0x8c]
push edi
push esi
call sym.LIBEAY32.dll_BN_copy
add esp, 8
test eax, eax
je 0x100362e8
mov eax, dword [esp + 0x10]
push eax
push esi
push esi
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x100362e8
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push ecx
push edi
call sym.LIBEAY32.dll_BN_lshift1
add esp, 8
test eax, eax
je 0x100362e8
mov edx, dword [esp + 0x60]
push ebx
push edi
push esi
push edx
push 0
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x100362e8
call sym.LIBEAY32.dll_BN_value_one
push eax
mov eax, dword [esp + 0x64]
push eax
push edi
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x100362e8
push edi
push esi
mov esi, dword [esp + 0x98]
push esi
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x100362e8
mov ecx, dword [esp + 0x10]
push ecx
push esi
call sym.LIBEAY32.dll_BN_cmp
add esp, 8
test eax, eax
jl 0x100360ec
mov edx, dword [esp + 0xb4]
push edx
push 1
push ebx
push 0x32
push esi
call sym.LIBEAY32.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x10036105
jne 0x100362e8
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x1000
mov dword [esp + 0x24], eax
jl 0x10035f38
jmp 0x10035d70
mov eax, dword [esp + 0xb4]
push 1
push 2
push eax
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x100362e8
call sym.LIBEAY32.dll_BN_value_one
mov ebp, dword [esp + 0x10]
push eax
push esi
push ebp
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x100362e8
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push ebp
push 0
push edi
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x100362e8
push 2
push ebp
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
test eax, eax
je 0x100362e8
mov edx, dword [esp + 0x14]
push ebx
push esi
push edx
call sym.LIBEAY32.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x100362e8
mov eax, dword [esp + 0x14]
push eax
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0xa8]
push ebp
call sym.LIBEAY32.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x100362e8
cmp dword [ebp + 4], 1
jne 0x100361fb
mov ecx, dword [ebp]
cmp dword [ecx], 1
jne 0x100361fb
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100361fb
call sym.LIBEAY32.dll_BN_value_one
push eax
mov eax, dword [esp + 0x14]
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x100362e8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push edx
push ebx
push esi
push edi
push eax
inc ecx
push ebp
mov dword [esp + 0x44], ecx
call sym.LIBEAY32.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
jne 0x100361a2
jmp 0x100362e8
mov ecx, dword [esp + 0xb4]
push 1
push 3
push ecx
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x100362e8
mov edi, dword [esp + 0x9c]
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [esp + 0x18], 1
jmp 0x10036230
je 0x1003623b
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1003624b
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1003625b
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
push esi
call sym.LIBEAY32.dll_BN_dup
mov edx, dword [esp + 0x20]
push edx
mov dword [edi + 0xc], eax
call sym.LIBEAY32.dll_BN_dup
push ebp
mov dword [edi + 0x10], eax
call sym.LIBEAY32.dll_BN_dup
mov ecx, dword [edi + 0xc]
add esp, 0xc
test ecx, ecx
mov dword [edi + 0x14], eax
je 0x1003628f
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1003628f
test eax, eax
jne 0x10036299
mov dword [esp + 0x18], 0
jmp 0x100362e8
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x100362c6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0xac]
test eax, eax
je 0x100362d7
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x100362e8
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
pop ebp
push ebx
call sym.LIBEAY32.dll_BN_CTX_end
push ebx
call sym.LIBEAY32.dll_BN_CTX_free
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x10036309
push eax
call sym.LIBEAY32.dll_BN_MONT_CTX_free
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x88
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x88
ret
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10036344
mov dword [esp + 4], ecx
jmp eax
mov dword [esp + 4], ecx
jmp 0x10035c20