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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd0
mov esi, dword [esp + 0xe8]
mov ebx, dword [esp + 0xec]
cmp esi, 0x800
jb 0x4b6337
call sym.adb.exe_EVP_sha256
jmp 0x4b633c
call sym.adb.exe_EVP_sha1
mov dword [esp + 0x2c], eax
push eax
call sym.adb.exe_EVP_MD_size
add esp, 4
cmp esi, 0x200
mov ebp, 0x200
mov edi, eax
cmova ebp, esi
test ebx, ebx
je 0x4b6387
mov edx, dword [esp + 0xf0]
xor eax, eax
cmp edi, edx
ja 0x4b698b
cmovb edx, edi
test edx, edx
je 0x4b6387
lea ecx, [esp + 0xb0]
push edx
push ebx
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
call sym.adb.exe_BN_CTX_new
mov esi, eax
test eax, eax
je 0x4b6486
push esi
call sym.adb.exe_BN_CTX_start
add esp, 4
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0xc], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x20], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x14], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x1c], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x24], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x40], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x18], eax
push esi
call sym.adb.exe_BN_CTX_get
add esp, 4
test eax, eax
je 0x4b6478
add ebp, 0x3f
mov dword [esp + 4], ebx
mov ebx, eax
and ebp, 0xffffffc0
call sym.adb.exe_BN_value_one
dec ebp
push ebp
push eax
mov dword [esp + 0x18], ebx
push ebx
call sym.adb.exe_BN_lshift
add esp, 0xc
test eax, eax
je 0x4b6478
lea eax, [edi - 1]
mov ecx, 0xcccccccd
mov ebx, dword [esp + 0xfc]
mov dword [esp + 0x34], ebp
mov dword [esp], 0
mov dword [esp + 0x4c], eax
mov eax, ebp
mov ebp, dword [esp + 0x2c]
mul ecx
mov eax, edi
and eax, 0xffffffe0
shr edx, 7
mov dword [esp + 0x38], eax
lea eax, [edi*8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea eax, [edi - 2]
mov dword [esp + 0x3c], eax
xor eax, eax
jmp 0x4b64a0
mov dword [esp], 0
xor ebx, ebx
jmp 0x4b696d
mov dword [esp], 0
xor ebx, ebx
jmp 0x4b697f
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp + 0x28], eax
push eax
push 0
push ebx
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x4b6831
cmp dword [esp + 4], 0
lea ebx, [esp + 0xb0]
sete byte [esp + 4]
jne 0x4b64dd
push edi
push ebx
call sym.adb.exe_RAND_bytes
add esp, 8
test eax, eax
je 0x4b6960
test edi, edi
je 0x4b6520
push edi
push ebx
lea eax, [esp + 0x98]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push ebx
lea eax, [esp + 0x78]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x3c]
nop word cs:[eax + eax]
inc byte [esp + eax + 0x91]
jne 0x4b6520
cmp eax, edi
lea eax, [eax - 1]
jb 0x4b6510
push 0
push ebp
push 0
lea eax, [esp + 0x5c]
push eax
push edi
push ebx
call sym.adb.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x4b6960
push 0
push ebp
push 0
lea eax, [esp + 0x7c]
push eax
push edi
lea eax, [esp + 0xa4]
push eax
call sym.adb.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x4b6960
test edi, edi
je 0x4b65be
xor eax, eax
cmp edi, 0x20
jb 0x4b65b0
mov ecx, dword [esp + 0x38]
xor eax, eax
movups xmm0, xmmword [esp + eax + 0x70]
movups xmm2, xmmword [esp + eax + 0x50]
movups xmm1, xmmword [esp + eax + 0x80]
movups xmm3, xmmword [esp + eax + 0x60]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esp + eax + 0x50], xmm2
movups xmmword [esp + eax + 0x60], xmm3
add eax, 0x20
cmp ecx, eax
jne 0x4b6570
cmp edi, ecx
mov eax, ecx
je 0x4b65be
nop word cs:[eax + eax]
nop
movzx ecx, byte [esp + eax + 0x70]
xor byte [esp + eax + 0x50], cl
inc eax
cmp edi, eax
jne 0x4b65b0
mov ebx, dword [esp + 0x1c]
or byte [esp + 0x50], 0x80
or byte [esp + edi + 0x4f], 1
push ebx
push edi
lea eax, [esp + 0x58]
push eax
call sym.adb.exe_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x4b6960
mov cl, byte [esp + 4]
mov ebp, dword [esp + 0xfc]
inc dword [esp + 0x28]
xor eax, eax
mov al, cl
push ebp
push eax
push esi
push 0x32
push ebx
call sym.adb.exe_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jle 0x4b6810
push 0
push 2
push ebp
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x4b6960
mov ebx, ebp
push 0
push 3
push ebp
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x4b6960
mov ebp, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 8], esi
test eax, eax
je 0x4b665e
push eax
push 0
push ebx
mov ebx, eax
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
mov eax, ebx
je 0x4b6960
mov dword [esp + 0x30], eax
push dword [esp + 0x14]
call sym.adb.exe_BN_zero
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x4c]
nop word cs:[eax + eax]
nop
cmp eax, edi
jae 0x4b6690
inc byte [esp + eax + 0x90]
lea eax, [eax - 1]
je 0x4b6680
push 0
push ebp
push 0
lea esi, [esp + 0x5c]
push esi
push edi
lea eax, [esp + 0xa4]
push eax
call sym.adb.exe_EVP_Digest
add esp, 0x18
test eax, eax
je 0x4b6840
mov eax, esi
mov esi, dword [esp + 0xc]
push esi
push edi
push eax
call sym.adb.exe_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x4b6840
mov eax, dword [esp + 0x48]
imul eax, ebx
push eax
push esi
push esi
call sym.adb.exe_BN_lshift
add esp, 0xc
test eax, eax
je 0x4b6840
push esi
mov esi, dword [esp + 0x18]
push esi
push esi
call sym.adb.exe_BN_add
add esp, 0xc
test eax, eax
je 0x4b6840
cmp ebx, dword [esp + 0x44]
lea ebx, [ebx + 1]
jb 0x4b6670
push dword [esp + 0x34]
push esi
call sym.adb.exe_BN_mask_bits
add esp, 8
test eax, eax
je 0x4b6840
push esi
mov ebx, dword [esp + 0x28]
push ebx
call sym.adb.exe_BN_copy
add esp, 8
mov esi, dword [esp + 8]
test eax, eax
je 0x4b6960
push dword [esp + 0x10]
push ebx
push ebx
call sym.adb.exe_BN_add
add esp, 0xc
test eax, eax
je 0x4b6960
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x10]
call sym.adb.exe_BN_lshift1
add esp, 8
test eax, eax
je 0x4b6960
push esi
push dword [esp + 0x10]
push dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
push ebx
push 0
call sym.adb.exe_BN_div
add esp, 0x14
test eax, eax
je 0x4b6960
call sym.adb.exe_BN_value_one
push eax
push ebx
push dword [esp + 0x14]
call sym.adb.exe_BN_sub
add esp, 0xc
test eax, eax
je 0x4b6960
push dword [esp + 0xc]
push dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
push ebx
call sym.adb.exe_BN_sub
add esp, 0xc
test eax, eax
je 0x4b6960
push dword [esp + 0x10]
push ebx
call sym.adb.exe_BN_cmp
add esp, 8
test eax, eax
js 0x4b67f2
push dword [esp + 0xfc]
push 1
push esi
push 0x32
push ebx
call sym.adb.exe_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x4b685a
test eax, eax
jne 0x4b6960
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0xfc]
cmp eax, 0xffe
lea eax, [eax + 1]
jbe 0x4b6642
jmp 0x4b6494
test eax, eax
mov ebx, ebp
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
je 0x4b64a0
mov dword [esp], 0
xor ebx, ebx
test esi, esi
jne 0x4b696d
jmp 0x4b697f
mov esi, dword [esp + 8]
xor ebx, ebx
mov dword [esp], 0
test esi, esi
jne 0x4b696d
jmp 0x4b697f
push 1
push 2
push dword [esp + 0x104]
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x4b6960
call sym.adb.exe_BN_value_one
push eax
push ebx
mov edi, dword [esp + 0x18]
push edi
call sym.adb.exe_BN_sub
add esp, 0xc
test eax, eax
je 0x4b6960
push esi
push dword [esp + 0x20]
push edi
push 0
push dword [esp + 0x1c]
call sym.adb.exe_BN_div
add esp, 0x14
test eax, eax
je 0x4b6960
push esi
push ebx
call sym.adb.exe_BN_MONT_CTX_new_for_modulus
add esp, 8
test eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
je 0x4b6831
push 2
push dword [esp + 0x14]
call sym.adb.exe_BN_set_word
add esp, 8
test eax, eax
je 0x4b6a57
push dword [esp + 4]
push esi
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x34]
call sym.adb.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x4b6a53
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov dword [esp + 0x14], 2
mov edi, ebp
push ebp
call sym.adb.exe_BN_is_one
add esp, 4
test eax, eax
je 0x4b6996
call sym.adb.exe_BN_value_one
push eax
mov ebp, dword [esp + 0x14]
push ebp
push ebp
call sym.adb.exe_BN_add
add esp, 0xc
test eax, eax
je 0x4b6969
inc dword [esp + 0x14]
push ebx
push esi
push dword [esp + 0x20]
push dword [esp + 0x18]
push ebp
mov ebp, edi
push edi
call sym.adb.exe_BN_mod_exp_mont
add esp, 0x18
test eax, eax
jne 0x4b6919
jmp 0x4b6969
xor ebx, ebx
mov dword [esp], 0
test esi, esi
je 0x4b697f
push esi
call sym.adb.exe_BN_CTX_end
add esp, 4
push esi
call sym.adb.exe_BN_CTX_free
add esp, 4
push ebx
call sym.adb.exe_BN_MONT_CTX_free
add esp, 4
mov eax, dword [esp]
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 3
push dword [esp + 0x104]
call sym.adb.exe_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x4b6a53
mov esi, dword [esp + 0xe4]
push dword [esi + 4]
call sym.adb.exe_BN_free
add esp, 4
push dword [esi + 8]
call sym.adb.exe_BN_free
add esp, 4
push dword [esi + 0xc]
call sym.adb.exe_BN_free
add esp, 4
push dword [esp + 0x18]
call sym.adb.exe_BN_dup
add esp, 4
mov dword [esi + 4], eax
push dword [esp + 0x1c]
call sym.adb.exe_BN_dup
add esp, 4
mov dword [esi + 8], eax
push dword [esp + 0x20]
call sym.adb.exe_BN_dup
add esp, 4
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
je 0x4b6a53
test eax, eax
je 0x4b6a53
mov eax, dword [esp + 0xe4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4b6a53
cmp dword [esp + 0xf4], 0
je 0x4b6a35
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
cmp dword [esp + 0xf8], 0
mov dword [esp], 1
je 0x4b6a53
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov esi, dword [esp + 8]
mov ebx, dword [esp + 4]
test esi, esi
jne 0x4b696d
jmp 0x4b697f