Function at 0x140048670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x338], rbx
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x60], r8
mov rsi, rdx
mov qword [rsp + 0x48], rdx
mov rbx, rcx
xor eax, eax
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
lea r8, [rcx + 0x250]
lea r9, [rsp + 0x50]
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14002cf90
nop
xor ecx, ecx
call fcn.140128fb0
movzx eax, word [rsi + 0xe]
mov ecx, 0x405
movabs rdx, 0xffff000000000000
movabs rdi, 0xffffffffffff
lea r14, [r13 - 1]
mov r15d, 0x1000
cmp ax, 3
jne 0x1400487e7
cmp dword [rsi], r13d
je 0x1400487e7
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov word [rbp - 0x6a], cx
mov rax, qword [rbp - 0x70]
and rax, rdx
lea rcx, str.blocktemplate_blob
or rax, rcx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], reloc.WS2_32.dll_select
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140015f90
mov rcx, qword [rsi + 8]
mov rdx, rcx
shr rdx, 0x30
mov eax, dword [rsi]
shl rax, 5
and rcx, rdi
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14004879e
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x14004879e
lea r13, [rcx + 0x10]
test word [r13 + 0xe], r15w
jne 0x14004879e
mov r13, qword [r13 + 8]
and r13, rdi
xor r12d, r12d
mov qword [rsp + 0x50], r12
test r13, r13
je 0x1400487f2
mov r15, r14
nop
inc r15
cmp byte [r15 + r13], r12b
jne 0x1400487b0
mov qword [rsp + 0x58], r15
lea rcx, [r15 + 1]
call fcn.1401295b0
mov r12, rax
mov qword [rsp + 0x50], rax
lea r8, [r15 + 1]
mov rdx, r13
mov rcx, rax
call fcn.140147a90
movzx edx, word [rsi + 0xe]
xor r13d, r13d
jmp 0x1400487fa
movzx edx, ax
mov r12, r13
mov qword [rsp + 0x50], r13
mov r15, r13
mov qword [rsp + 0x58], r13
cmp dx, 3
jne 0x14004889f
cmp dword [rsi], 0
je 0x14004889f
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov eax, 0x405
mov word [rbp - 0x6a], ax
mov rax, qword [rbp - 0x70]
movabs rcx, 0xffff000000000000
and rax, rcx
lea rcx, str.blockhashing_blob
or rax, rcx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], shutdown
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140015f90
mov rax, qword [rsi + 8]
and rax, rdi
mov ecx, dword [rsi]
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14004889f
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x14004889f
lea rdi, [rcx + 0x10]
mov eax, 0x1000
test word [rdi + 0xe], ax
jne 0x1400488a2
mov rdi, qword [rdi + 8]
movabs rax, 0xffffffffffff
and rdi, rax
jmp 0x1400488a2
mov rdi, r13
mov rcx, qword [rbx + 0x418]
call fcn.140128fb0
test rdi, rdi
jne 0x1400488c3
mov qword [rbx + 0x420], r13
mov qword [rbx + 0x418], r13
jmp 0x1400488fa
mov rcx, r14
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400488c6
mov qword [rbx + 0x420], rcx
inc rcx
call fcn.1401295b0
mov qword [rbx + 0x418], rax
mov r8, qword [rbx + 0x420]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140147a90
cmp dword [rbx + 0x3f0], 2
jne 0x140048cb7
cmp word [rsi + 0xe], 3
jne 0x14004898b
cmp dword [rsi], 0
je 0x14004898b
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov eax, 0x405
mov word [rbp - 0x6a], ax
mov rax, qword [rbp - 0x70]
movabs rcx, 0xffff000000000000
and rax, rcx
lea rcx, str.reserved_offset
or rax, rcx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140015f90
mov rax, qword [rsi + 8]
movabs rcx, 0xffffffffffff
and rax, rcx
mov ecx, dword [rsi]
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14004898b
test byte [rcx + 0x1f], 1
je 0x14004898b
mov r13, qword [rcx + 0x10]
mov edx, 8
lea rcx, [rbp - 0x78]
call fcn.1400371c0
xor edi, edi
lea rsi, [0x1401d8e40]
mov r14d, 0x80000000
nop dword [rax + rax]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 0x20
mov dword [rsp + 0x78], 0xffffffff
mov edx, 0x100
lea rcx, [rsp + 0x68]
call fcn.140037230
lea ecx, [rax + r14]
movzx edx, cl
movzx eax, al
cmp ecx, r14d
cmovae edx, eax
mov rax, qword [rbp - 0x78]
mov byte [rdi + rax], dl
inc rdi
cmp rdi, 8
jb 0x1400489b0
mov rax, qword [rbx + 0x418]
lea r10, [rax + r13*2]
mov r9, qword [rbp - 0x78]
movzx r8d, byte [r9]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10], dl
shr edx, 8
mov byte [r10 + 1], dl
movzx r8d, byte [r9 + 1]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 2], dl
shr edx, 8
mov byte [r10 + 3], dl
movzx r8d, byte [r9 + 2]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 4], dl
shr edx, 8
mov byte [r10 + 5], dl
movzx r8d, byte [r9 + 3]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 6], dl
shr edx, 8
mov byte [r10 + 7], dl
movzx r8d, byte [r9 + 4]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 8], dl
shr edx, 8
mov byte [r10 + 9], dl
movzx r8d, byte [r9 + 5]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 0xa], dl
shr edx, 8
mov byte [r10 + 0xb], dl
movzx r8d, byte [r9 + 6]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add r8d, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 0xc], dl
shr edx, 8
mov byte [r10 + 0xd], dl
movzx r8d, byte [r9 + 7]
mov ecx, r8d
and ecx, 0xf
shr r8d, 4
lea eax, [rcx - 0xa]
and eax, 0xffffff00
and eax, 0xffffd900
shl ecx, 8
lea edx, [rcx + 0x5700]
add edx, eax
and edx, 0xff00
lea eax, [r8 - 0xa]
shr eax, 8
and eax, 0xffffffd9
add eax, 0x57
add eax, r8d
movzx ecx, al
or edx, ecx
mov byte [r10 + 0xe], dl
shr edx, 8
mov byte [r10 + 0xf], dl
mov rcx, qword [rbp - 0x78]
test rcx, rcx
mov rsi, qword [rsp + 0x48]
mov r14, 0xffffffffffffffff
je 0x140048cb7
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048cb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400490e7
call fcn.140128fb0
test r12, r12
je 0x140049044
mov r8, qword [rbx + 0x418]
test r8, r8
je 0x140049044
mov r9, r14
inc r9
cmp byte [r8 + r9], 0
jne 0x140048cd3
mov qword [rbp - 0x40], r9
test r9b, 1
jne 0x140049044
mov rax, r9
shr rax, 1
mov qword [rbp - 0x40], rax
add rax, 0xffffffffffffffd5
cmp rax, 0x16c
ja 0x140049044
and r9, 0xfffffffffffffffe
je 0x140049044
mov edx, 0x198
lea rcx, [rbp + 0x28]
call fcn.140036e20
test eax, eax
jne 0x140049044
cmp dword [rbp + 0x4f], eax
je 0x140048d3d
movzx eax, byte [rbp - 0x5c]
mov ecx, eax
mov edx, 1
test al, al
cmove ecx, edx
mov byte [rbp - 0x5c], cl
xor r8d, r8d
lea rdx, str.seed_hash
mov rcx, rsi
call fcn.140014bb0
test rax, rax
je 0x140048d60
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14002d190
movzx ecx, word [rsi + 0xe]
cmp cx, 3
jne 0x140048dfb
cmp dword [rsi], 0
je 0x140048dfb
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov eax, 0x405
mov word [rbp - 0x6a], ax
mov rax, qword [rbp - 0x70]
movabs rcx, 0xffff000000000000
and rax, rcx
lea rcx, str.height
or rax, rcx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 6
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140015f90
mov rcx, qword [rsi + 8]
mov rdx, rcx
shr rdx, 0x30
mov eax, dword [rsi]
shl rax, 5
movabs rdi, 0xffffffffffff
and rcx, rdi
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x140048e08
test byte [rcx + 0x1f], 1
je 0x140048e08
mov rax, qword [rcx + 0x10]
xor r13d, r13d
jmp 0x140048e0e
movzx edx, cx
movabs rdi, 0xffffffffffff
xor r13d, r13d
mov eax, r13d
mov qword [rbp + 0x18], rax
cmp dx, 3
jne 0x140048eaf
cmp dword [rsi], 0
je 0x140048eaf
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov eax, 0x405
mov word [rbp - 0x6a], ax
mov rax, qword [rbp - 0x70]
movabs rcx, 0xffff000000000000
and rax, rcx
lea rcx, str.difficulty
or rax, rcx
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 0xa
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140015f90
mov rax, qword [rsi + 8]
and rax, rdi
mov ecx, dword [rsi]
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x140048e95
test byte [rcx + 0x1f], 1
je 0x140048e95
mov r8, qword [rcx + 0x10]
jmp 0x140048e98
mov r8, r13
mov qword [rbp + 0x10], r8
test r8, r8
je 0x140048eb3
xor edx, edx
mov rax, r14
div r8
mov qword [rbp + 0x20], rax
jmp 0x140048eb7
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
lea rdi, [r12 - 0x20]
mov rcx, qword [rbp - 0x18]
call fcn.140128fb0
add rdi, r15
jne 0x140048ed4
mov qword [rbp - 0x10], r13
mov qword [rbp - 0x18], r13
jmp 0x140048f02
mov rcx, r14
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140048ed7
mov qword [rbp - 0x10], rcx
inc rcx
call fcn.1401295b0
mov qword [rbp - 0x18], rax
mov r8, qword [rbp - 0x10]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140147a90
lea rcx, [rbx + 0x258]
cmp dword [rcx], 0xffffffff
je 0x140048f1a
movzx edx, byte [rbp + 0x28]
call fcn.140013180
mov dword [rbp - 0x60], eax
lea rdx, [rbp - 0x60]
lea rcx, [rbx + 0x28]
call fcn.140025020
mov rcx, qword [rbx + 0x408]
call fcn.140128fb0
mov qword [rbx + 0x408], r12
mov qword [rbx + 0x410], r15
xor r15d, r15d
mov r12d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
xor r8d, r8d
lea rdx, str.prev_hash
mov rcx, rsi
call fcn.140014bb0
mov rdi, rax
mov rcx, qword [rbx + 0x428]
call fcn.140128fb0
test rdi, rdi
jne 0x140048f87
mov qword [rbx + 0x430], r15
mov qword [rbx + 0x428], r15
jmp 0x140048fbc
inc r14
cmp byte [rdi + r14], r12b
jne 0x140048f87
mov qword [rbx + 0x430], r14
lea rcx, [r14 + 1]
call fcn.1401295b0
mov qword [rbx + 0x428], rax
mov r8, qword [rbx + 0x430]
inc r8
mov rdx, rdi
mov rcx, rax
call fcn.140147a90
cmp dword [rbx + 0x3f0], 2
jne 0x140048fda
cmp qword [rbx + 0x430], 0x40
jbe 0x140048fda
mov rax, qword [rbx + 0x428]
mov byte [rax + 0x40], r12b
cmp dword [rbx + 0x348], 2
jne 0x14004902c
mov dword [rbx + 0x348], 3
mov qword [rbx + 0x20], r15
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rax, qword [rbx + 0x2e0]
mov r8d, shutdown
cmp rax, r8
cmova r8, rax
mov rax, qword [rbx + 0x458]
mov r9, r8
lea rdx, [0x140037ca0]
mov rcx, qword [rax + 0x10]
call fcn.1400f3fb0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov r9, rsi
lea r8, [rbx + 0x28]
mov rdx, rbx
call qword [rax + select]
mov bl, 1
jmp 0x140049051
mov rax, qword [rsp + 0x60]
mov dword [rax], 4
xor bl, bl
mov rcx, r12
call fcn.140128fb0
nop
mov rcx, qword [rbp - 8]
call fcn.140128fb0
mov rcx, qword [rbp - 0x18]
call fcn.140128fb0
mov rcx, qword [rbp - 0x28]
call fcn.140128fb0
mov rcx, qword [rbp - 0x38]
call fcn.140128fb0
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400490b4
mov rdx, qword [rbp - 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400490af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400490e1
call fcn.140128fb0
movzx eax, bl
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140128f50
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14014f3e4
nop
call fcn.14014f3e4
nop
int3