Function at 0x473c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov esi, dword [esp + 0x114]
mov ebx, dword [esp + 0x110]
mov edi, dword [esp + 0x11c]
cmp esi, 0x7ff
jbe 0x473ee0
call sym.adb.exe_EVP_sha256
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sym.adb.exe_EVP_MD_size
mov ebp, eax
add esi, 0x3f
and esi, 0xffffffc0
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x473c66
xor eax, eax
cmp edi, ebp
jb 0x473ed0
cmp ebp, edi
cmovbe edi, ebp
test edi, edi
jne 0x473f28
call sym.adb.exe_BN_CTX_new
test eax, eax
mov edi, eax
mov dword [esp + 0x40], eax
je 0x473eb0
mov dword [esp], eax
call sym.adb.exe_BN_CTX_start
call sym.adb.exe_BN_MONT_CTX_new
test eax, eax
mov dword [esp + 0x48], eax
je 0x473eb0
mov dword [esp], edi
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x2c], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x28], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x4c], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x20], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x64], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x6c], eax
call sym.adb.exe_BN_CTX_get
mov dword [esp], edi
mov dword [esp + 0x24], eax
call sym.adb.exe_BN_CTX_get
test eax, eax
mov edi, eax
mov dword [esp + 0x5c], eax
je 0x473eb8
lea eax, [esi - 1]
mov esi, eax
mov dword [esp + 0x68], eax
call sym.adb.exe_BN_value_one
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.adb.exe_BN_lshift
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x68]
mov edx, 0xcccccccd
mov dword [esp + 0x60], 0
lea esi, [esp + 0xb0]
lea edi, [esp + 0xd0]
mov dword [esp + 0x110], ebx
mul edx
lea eax, [ebp*8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
shr dword [esp + 0x50], 7
mov eax, dword [esp + 0x60]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x128]
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
je 0x473eb8
mov edx, dword [esp + 0x118]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 0x34], eax
je 0x4742ad
mov dword [esp + 0x118], 0
lea edx, [esp + 0x70]
test ebp, ebp
mov dword [esp + 0x44], 0xffffffff
jne 0x474238
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x90]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
mov dword [esp], edx
call sym.adb.exe_EVP_Digest
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_EVP_Digest
test eax, eax
je 0x473eb8
xor eax, eax
test ebp, ebp
je 0x473e3e
lea esi, [esi]
movzx edx, byte [edi + eax]
xor byte [ebx + eax], dl
add eax, 1
cmp eax, ebp
jne 0x473e30
mov eax, dword [esp + 0x44]
or byte [esp + 0x90], 0x80
or byte [esp + eax + 0x90], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym.adb.exe_BN_bin2bn
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x128]
mov dword [esp + 4], 0x32
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.adb.exe_BN_is_prime_fasttest_ex
cmp eax, 0
jg 0x473f5b
jne 0x473eb8
add dword [esp + 0x60], 1
jmp 0x473d5e
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x473f10
xor ebx, ebx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym.adb.exe_BN_MONT_CTX_free
mov eax, ebx
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
call sym.adb.exe_EVP_sha1
mov dword [esp], eax
mov dword [esp + 0x30], eax
call sym.adb.exe_EVP_MD_size
cmp esi, 0x1ff
mov ebp, eax
ja 0x473c3e
mov esi, 0x200
jmp 0x473c44
xor ebx, ebx
mov edi, dword [esp + 0x40]
mov dword [esp], edi
call sym.adb.exe_BN_CTX_end
mov dword [esp], edi
call sym.adb.exe_BN_CTX_free
jmp 0x473ec2
mov dword [esp + 8], edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_memcpy
call sym.adb.exe_BN_CTX_new
test eax, eax
mov edi, eax
mov dword [esp + 0x40], eax
jne 0x473c79
jmp 0x473eb0
mov eax, dword [esp + 0x128]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x128]
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
je 0x473eb8
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.adb.exe_BN_zero
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea esi, [esi]
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
jae 0x47400b
movzx eax, byte [esp + ecx + 0xb0]
mov byte [esp + 0x3f], al
add eax, 1
test al, al
mov byte [esp + ecx + 0xb0], al
jne 0x47400b
mov eax, ecx
jmp 0x474004
movzx ecx, byte [esi + eax]
lea edx, [ecx + 1]
test dl, dl
mov byte [esi + eax], dl
jne 0x47400b
sub eax, 1
cmp eax, ebp
jb 0x473ff6
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym.adb.exe_EVP_Digest
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym.adb.exe_BN_bin2bn
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym.adb.exe_BN_lshift
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp], eax
call sym.adb.exe_BN_add
test eax, eax
je 0x473eb8
add dword [esp + 0x38], 1
mov eax, dword [esp + 0x54]
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x50], eax
jge 0x473fd0
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.adb.exe_BN_mask_bits
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call sym.adb.exe_BN_copy
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.adb.exe_BN_add
test eax, eax
je 0x473eb8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.adb.exe_BN_lshift1
test eax, eax
je 0x473eb8
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov dword [esp], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.adb.exe_BN_div
test eax, eax
je 0x473eb8
call sym.adb.exe_BN_value_one
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
call sym.adb.exe_BN_sub
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym.adb.exe_BN_sub
test eax, eax
je 0x473eb8
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.adb.exe_BN_cmp
test eax, eax
js 0x4741f9
mov eax, dword [esp + 0x128]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x32
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.adb.exe_BN_is_prime_fasttest_ex
cmp eax, 0
jg 0x4742d2
jne 0x473eb8
add dword [esp + 0x58], 1
cmp dword [esp + 0x58], 0x1000
je 0x473ea4
mov eax, dword [esp + 0x58]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x128]
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
jne 0x473fb1
jmp 0x473eb8
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp], esi
mov dword [esp + 0x38], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 1]
mov edx, dword [esp + 0x38]
cmp eax, ebp
mov ecx, eax
mov dword [esp + 0x44], eax
jae 0x473dbc
movzx eax, byte [esp + ebp + 0xaf]
mov byte [esp + 0x38], al
add eax, 1
test al, al
mov byte [esp + ecx + 0xb0], al
jne 0x473dbc
mov eax, ecx
jmp 0x4742a1
add byte [esi + eax], 1
jne 0x473dbc
sub eax, 1
cmp eax, ebp
jb 0x474297
jmp 0x473dbc
lea edx, [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 0x38], edx
call sym.adb.exe_RAND_bytes
mov edx, dword [esp + 0x38]
test eax, eax
jne 0x473dac
jmp 0x473eb8
mov eax, dword [esp + 0x128]
mov dword [esp + 8], 1
mov ebx, dword [esp + 0x110]
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
je 0x473eb8
call sym.adb.exe_BN_value_one
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.adb.exe_BN_sub
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.adb.exe_BN_div
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.adb.exe_BN_set_word
test eax, eax
je 0x473eb8
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym.adb.exe_BN_MONT_CTX_set
test eax, eax
je 0x473eb8
mov ebp, dword [esp + 0x28]
mov esi, 2
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call sym.adb.exe_BN_mod_exp_mont
test eax, eax
je 0x473eb8
mov dword [esp], ebp
call sym.adb.exe_BN_is_one
test eax, eax
je 0x474408
call sym.adb.exe_BN_value_one
mov dword [esp + 4], edi
mov dword [esp], edi
mov dword [esp + 8], eax
call sym.adb.exe_BN_add
test eax, eax
je 0x473eb8
add esi, 1
jmp 0x4743a6
mov eax, dword [esp + 0x128]
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov dword [esp], eax
call sym.adb.exe_BN_GENCB_call
test eax, eax
je 0x473f10
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.adb.exe_BN_free
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym.adb.exe_BN_free
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym.adb.exe_BN_free
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.adb.exe_BN_dup
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.adb.exe_BN_dup
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.adb.exe_BN_dup
mov edi, dword [ebx + 4]
test edi, edi
mov dword [ebx + 0xc], eax
je 0x473f10
mov ebx, dword [ebx + 8]
test ebx, ebx
mov ebx, 0
je 0x473f12
test eax, eax
je 0x473f12
mov ecx, dword [esp + 0x120]
test ecx, ecx
je 0x4744b8
mov eax, dword [esp + 0x120]
mov edi, dword [esp + 0x58]
mov dword [eax], edi
mov edx, dword [esp + 0x124]
test edx, edx
je 0x4744d6
mov eax, dword [esp + 0x124]
mov ebx, 1
mov dword [eax], esi
jmp 0x473f12
mov ebx, 1
jmp 0x473f12