Function at 0x140069310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5e8], rbx
mov rax, qword [0x140526598]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea r8, [rcx + 0x290]
lea r9, [rsp + 0x40]
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14003c760
nop
xor ecx, ecx
call fcn.140343460
xor r8d, r8d
lea rdx, str.blocktemplate_blob
mov rcx, rdi
call fcn.140021150
mov r13, rax
mov r12d, esi
mov qword [rsp + 0x40], rsi
lea r14, [rsi - 1]
test rax, rax
jne 0x1400693b5
mov qword [rsp + 0x48], rsi
jmp 0x1400693ef
mov rsi, r14
nop dword [rax + rax]
inc rsi
cmp byte [rsi + rax], r12b
jne 0x1400693c0
mov qword [rsp + 0x48], rsi
lea rcx, [rsi + 1]
call fcn.140343a90
mov r12, rax
mov qword [rsp + 0x40], rax
lea r8, [rsi + 1]
mov rdx, r13
mov rcx, rax
call fcn.140361cf0
nop
test r12, r12
jne 0x140069421
cmp byte [rbx + 8], r12b
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Empty_block_template_received_from_daemon.
jmp 0x14006991b
lea r9, [rbx + 0x5b8]
lea rcx, [rbx + 0x470]
mov r8, rsi
mov rdx, r12
call fcn.140046870
test al, al
jne 0x14006946a
cmp byte [rbx + 8], al
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Invalid_block_template_received_from_daemon.
jmp 0x14006991b
xor r8d, r8d
lea rdx, str.blockhashing_blob
mov r13, qword [rsp + 0x50]
mov rcx, r13
call fcn.140021150
mov rdi, rax
mov rcx, qword [rbx + 0x5d0]
call fcn.140343460
test rdi, rdi
jne 0x1400694a7
xor eax, eax
mov qword [rbx + 0x5d8], rax
mov qword [rbx + 0x5d0], rax
jmp 0x1400694e4
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400694b0
mov qword [rbx + 0x5d8], rcx
inc rcx
call fcn.140343a90
mov qword [rbx + 0x5d0], rax
mov r8, qword [rbx + 0x5d8]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140361cf0
cmp qword [rbx + 0x4d0], 0
je 0x1400699f4
mov rax, qword [rbx + 0x328]
test rax, rax
jne 0x14006952a
cmp byte [rbx + 8], al
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Secret_spend_key_is_not_set.
jmp 0x14006991b
cmp rax, 0x40
je 0x14006955d
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Secret_spend_key_has_invalid_length._It_must_be_64_hex_characters.
jmp 0x14006991b
mov r8, qword [rbx + 0x320]
test r8, r8
je 0x140069ac5
mov edx, 0x20
lea r9d, [rdx + 0x20]
lea rcx, [rbp + 0x418]
call fcn.140050df0
test eax, eax
sete al
test al, al
je 0x140069ac5
lea rcx, [rbp + 0x418]
call fcn.14004f420
test eax, eax
jne 0x140069a98
lea rdx, [rbp + 0x418]
lea rcx, [rbp - 0x80]
call fcn.14004a030
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140047420
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x3f0]
call fcn.140047780
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x438]
call fcn.140047780
lea rdx, [rbp + 0x438]
lea rcx, [rbp + 0x460]
call fcn.140048cf0
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0x438]
call fcn.140048cf0
movzx eax, byte [rbp + 0x438]
shl al, 7
xor byte [rbp + 0x47f], al
mov r9d, 0x20
lea r8, [rbp + 0x3f0]
mov edx, r9d
lea rcx, [rbp + 0x418]
call fcn.140016230
lea rcx, [rbp + 0x3f0]
call fcn.14004c5a0
lea rcx, [rbp + 0x3f0]
call fcn.14004f420
test eax, eax
jne 0x140069a6b
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp - 0x80]
call fcn.14004a030
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call fcn.140047420
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x150]
call fcn.140047780
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x28]
call fcn.140047780
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x438]
call fcn.140048cf0
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x58]
call fcn.140048cf0
movzx eax, byte [rsp + 0x58]
shl al, 7
xor byte [rbp + 0x457], al
mov edx, dword [rbx + 0x4a0]
add rdx, qword [rbx + 0x470]
lea rcx, [rbp - 0x80]
call fcn.1400491c0
test eax, eax
jne 0x140069a3e
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0xd0]
call fcn.14004ac00
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x80]
call fcn.140049910
lea r8, [rbp - 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.140047780
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x78]
call fcn.140047780
lea r8, [rbp - 8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0xa0]
call fcn.140047780
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140049910
lea r8, [rbp - 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.140047780
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x78]
call fcn.140047780
lea r8, [rbp - 8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0xa0]
call fcn.140047780
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140049910
lea r8, [rbp - 8]
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xd0]
call fcn.140047780
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xf8]
call fcn.140047780
lea r8, [rbp - 8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x120]
call fcn.140047780
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x58]
call fcn.140047420
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x28]
call fcn.140047780
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0x150]
call fcn.140047780
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x3f0]
call fcn.140048cf0
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140048cf0
movzx eax, byte [rsp + 0x58]
shl al, 7
xor byte [rbp + 0x40f], al
lea r8, [rbx + 0x310]
mov rdx, qword [r8]
test rdx, rdx
jne 0x140069862
lea r8, [0x140527520]
mov rdx, qword [0x140527520]
lea rcx, [rbx + 0x658]
mov r8, qword [r8 + 8]
call fcn.14004f750
test al, al
jne 0x14006989f
cmp byte [rbx + 8], al
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Invalid_wallet_address.
jmp 0x14006991b
lea rcx, [rbx + 0x674]
mov r8d, 0x20
lea rdx, [rbp + 0x460]
call fcn.140361bf0
test eax, eax
je 0x1400698de
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Wallet_address_and_spend_key_dont_match.
jmp 0x14006991b
lea rcx, [rbx + 0x694]
mov r8d, 0x20
lea rdx, [rbp + 0x438]
call fcn.140361bf0
test eax, eax
je 0x14006993d
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Wallet_address_and_view_key_dont_match.
mov r8, rax
lea rdx, str._s_e_0_31mjob_error:_e_0me_1_31m__s_e_0m
mov ecx, 3
call fcn.140028150
mov dword [r15], 1
xor bl, bl
jmp 0x140069df0
movups xmm0, xmmword [rbp + 0x3f0]
movups xmmword [rbp + 0x150], xmm0
movups xmm1, xmmword [rbp + 0x400]
movups xmmword [rbp + 0x160], xmm1
mov byte [rbp + 0x170], 0
lea rdx, [rbp + 0x171]
lea rcx, [rbp + 0x150]
sub edx, ecx
mov r9d, 0x20
lea r8, [rbp + 0x438]
lea rcx, [rbp + 0x150]
call fcn.140016230
lea rcx, [rbp + 0x438]
call fcn.14004c5a0
lea r8, [rbp + 0x438]
lea rdx, [rbp + 0x418]
lea rcx, [rbp + 0x460]
call fcn.14004cd70
mov eax, dword [rbx + 0x498]
add rax, qword [rbx + 0x470]
mov byte [rbp + 0x3e1], 1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x3a1], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3b1], xmm1
movups xmm0, xmmword [rbp + 0x460]
movups xmmword [rbp + 0x3c1], xmm0
movups xmm1, xmmword [rbp + 0x470]
movups xmmword [rbp + 0x3d1], xmm1
mov eax, dword [rbx + 0x5b8]
test eax, eax
je 0x140069a15
lea rcx, [rax + rax*2]
add rcx, rcx
lea rax, [0x140527300]
mov eax, dword [rax + rcx*8]
mov dword [rbp + 0x180], eax
mov rdx, qword [rbx + 0x5d0]
lea rcx, [rbp + 0x180]
call fcn.14003c940
test al, al
jne 0x140069af2
mov dword [r15], 3
xor bl, bl
jmp 0x140069df0
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Failed_to_generate_key_derivation_for_miner_signature.
jmp 0x14006991b
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Secret_view_key_is_invalid.
jmp 0x14006991b
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Secret_spend_key_is_invalid.
jmp 0x14006991b
cmp byte [rbx + 8], 0
jne 0x14006992f
movsxd rax, dword [rbx + 0x1c]
cmp qword [rbx + 0x20], rax
jge 0x14006992f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea r9, str.Secret_spend_key_is_not_a_valid_hex_data.
jmp 0x14006991b
xor r8d, r8d
lea rdx, str.seed_hash
mov rcx, r13
call fcn.140021150
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.14003ca70
xor r8d, r8d
lea rdx, str.height
mov rcx, r13
call fcn.140021420
mov qword [rbp + 0x1f8], rax
xor r8d, r8d
lea rdx, str.difficulty
mov rcx, r13
call fcn.140021420
mov rcx, rax
mov qword [rbp + 0x1f0], rax
test rax, rax
je 0x140069b61
xor edx, edx
mov rax, r14
div rcx
mov qword [rbp + 0x200], rax
xor r15d, r15d
jmp 0x140069b6b
xor r15d, r15d
mov qword [rbp + 0x200], r15
mov edx, 4
lea rcx, [rbp + 0x3f0]
call fcn.140038630
mov rdi, r15
lea r13, [0x140539710]
mov r15d, 0x80000000
nop dword [rax]
mov qword [rbp + 0x418], r13
mov qword [rbp + 0x420], 0x20
mov dword [rbp + 0x428], 0xffffffff
mov edx, 0x100
lea rcx, [rbp + 0x418]
call fcn.140051200
lea ecx, [rax + r15]
movzx edx, cl
movzx eax, al
cmp ecx, r15d
cmovae edx, eax
mov rax, qword [rbp + 0x3f0]
mov byte [rdi + rax], dl
inc rdi
cmp rdi, 4
jb 0x140069b90
mov r8, qword [rbp + 0x3f8]
mov rdx, qword [rbp + 0x3f0]
sub r8, rdx
lea rcx, [rbp + 0x418]
call fcn.1400510c0
lea rdx, [rbp + 0x418]
lea rcx, [rbx + 0x600]
call fcn.1400295f0
mov rcx, qword [rbp + 0x418]
call fcn.140343460
nop
mov rcx, qword [rbp + 0x3f0]
test rcx, rcx
mov r13, qword [rsp + 0x50]
mov r15d, 0
je 0x140069c68
mov rdx, qword [rbp + 0x400]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140069c63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140069e62
call fcn.140343460
mov rdi, qword [rbx + 0x600]
mov rcx, qword [rbp + 0x1c8]
call fcn.140343460
test rdi, rdi
jne 0x140069c90
mov qword [rbp + 0x1d0], r15
mov qword [rbp + 0x1c8], r15
jmp 0x140069cc7
mov rcx, r14
inc rcx
cmp byte [rdi + rcx], r15b
jne 0x140069c93
mov qword [rbp + 0x1d0], rcx
inc rcx
call fcn.140343a90
mov qword [rbp + 0x1c8], rax
mov r8, qword [rbp + 0x1d0]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140361cf0
lea rdx, [rbp + 0x180]
lea rcx, [rbx + 0x28]
call fcn.140033330
mov rcx, qword [rbx + 0x5f0]
call fcn.140343460
mov qword [rbx + 0x5f0], r12
mov qword [rbx + 0x5f8], rsi
xor esi, esi
mov r12d, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
xor r8d, r8d
lea rdx, str.prev_hash
mov rcx, r13
call fcn.140021150
mov rdi, rax
mov rcx, qword [rbx + 0x610]
call fcn.140343460
test rdi, rdi
jne 0x140069d36
mov qword [rbx + 0x618], rsi
mov qword [rbx + 0x610], rsi
jmp 0x140069d6b
inc r14
cmp byte [rdi + r14], sil
jne 0x140069d36
mov qword [rbx + 0x618], r14
lea rcx, [r14 + 1]
call fcn.140343a90
mov qword [rbx + 0x610], rax
mov r8, qword [rbx + 0x618]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140361cf0
call fcn.140031ec0
mov qword [rbx + 0x620], rax
cmp dword [rbx + 0x3b8], 2
jne 0x140069dda
mov dword [rbx + 0x3b8], 3
mov qword [rbx + 0x20], rsi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
lea rdx, [0x140051bf0]
cmp dword [rbx + 0x3a0], esi
jge 0x140069dc0
mov rax, qword [rbx + 0x330]
mov r8d, socket
cmp rax, r8
cmova r8, rax
jmp 0x140069dc7
mov r8, qword [rbx + 0x338]
mov rax, qword [rbx + 0x648]
mov r9, r8
mov rcx, qword [rax + 0x10]
call fcn.140199b20
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov r9, r13
lea r8, [rbx + 0x28]
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov bl, 1
mov rcx, r12
call fcn.140343460
nop
mov rcx, qword [rbp + 0x1d8]
call fcn.140343460
mov rcx, qword [rbp + 0x1c8]
call fcn.140343460
mov rcx, qword [rbp + 0x1b8]
call fcn.140343460
mov rcx, qword [rbp + 0x1a8]
call fcn.140343460
lea rcx, [rbp + 0x188]
call fcn.14001df30
movzx eax, bl
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140343400
mov rbx, qword [rsp + 0x5e8]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14036500c
nop
int3