Function at 0x14009de60
Capabilities:
Hash data using sha512

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1401858e0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
cmp byte [0x1401965db], 0
mov r15d, r9d
mov rax, qword [rbp + 0x120]
mov r14, rdx
mov qword [rsp + 0x48], rax
mov r13d, 1
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], r9d
mov qword [rsp + 0x40], r8
movsxd r12, ecx
je 0x14009dec5
mov dword [r8 + 0x1c], r13d
mov ecx, dword [0x140196070]
lea rdi, [0x140000000]
mov rax, qword gs:[0x58]
mov qword [rsp + 0x1b8], rsi
mov rbx, qword [rax + rcx*8]
mov eax, Ordinal_79
mov ecx, 0x48
movzx eax, byte [rax + rbx]
test al, al
jne 0x14009e19e
mov ecx, dword [rdi + r12*4 + 0x196820]
call sub.cudart64_91.dll_cudaSetDevice
test eax, eax
je 0x14009df5c
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x140119000]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xdf
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x140119010]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
call sub.cudart64_91.dll_cudaDeviceReset
test eax, eax
je 0x14009dfb3
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x140119048]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xe0
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x140119058]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
mov ecx, 4
call sub.cudart64_91.dll_cudaSetDeviceFlags
test eax, eax
je 0x14009e00f
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x140119090]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xe1
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x1401190a0]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
mov ecx, 2
call sub.cudart64_91.dll_cudaDeviceSetCacheConfig
test eax, eax
je 0x14009e06b
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x1401190d8]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xe2
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x1401190e8]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
lea rcx, [r12*8 + 0x188d10]
add rcx, rdi
call sub.cudart64_91.dll_cudaStreamCreate
test eax, eax
je 0x14009e0cd
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x140119120]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xe4
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x140119130]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
xor r8d, r8d
mov ecx, 0x40
add rcx, rbx
lea edx, [r8 + 0x20]
call sub.cudart64_91.dll_cudaHostAlloc
test eax, eax
je 0x14009e133
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov qword [rsp + 0x28], rdi
lea r9, [0x140119168]
lea rdi, [0x140000000]
mov dword [rsp + 0x20], 0xe5
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x140119178]
mov rcx, rax
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
mov ecx, r12d
call fcn.1400bc760
mov ecx, dword [rdi + r12*4 + 0x196820]
lea rdx, [0x1401191b0]
mov r8d, 0x10000000
call fcn.14009f460
mov ecx, 0x48
mov dword [rcx + rbx], eax
cmp eax, 0x10000000
jne 0x14009e17d
mov r8d, dword [rdi + r12*4 + 0x196820]
lea rdx, str.GPU__d:_using_default_intensity_28
mov ecx, 3
call fcn.140033bd0
cmp r12d, 0x10
jae 0x14009e61d
mov eax, Ordinal_79
mov byte [r12 + rdi + 0x196168], 0
mov ecx, 0x48
mov byte [rax + rbx], r13b
mov rdx, qword [rdi + r12*8 + 0x188d10]
mov esi, r15d
sub esi, dword [rsp + 0x30]
mov r8, r14
mov eax, ecx
mov r15, r12
mov ecx, r12d
cmp dword [rax + rbx], esi
cmovb esi, dword [rax + rbx]
and esi, 0xfffffe00
call fcn.1400bc8d0
lea rax, [rbp + 0x52]
mov r8, r14
sub r8, rax
lea rdx, [rbp + 0x52]
mov edi, reloc.WS2_32.dll_sendto
nop dword [rax]
mov ecx, dword [r8 + rdx]
mov eax, ecx
shr eax, 8
mov byte [rdx - 1], al
mov eax, ecx
mov byte [rdx - 2], cl
lea rdx, [rdx + 4]
shr eax, 0x10
shr ecx, 0x18
mov byte [rdx - 4], al
mov byte [rdx - 3], cl
sub rdi, r13
jne 0x14009e1e0
mov r12d, 0x40
add r12, rbx
lea rbx, [0x140000000]
nop word [rax + rax]
mov rax, qword [r14 + 0x20]
mov r8d, esi
mov rdi, qword [rsp + 0x40]
mov edx, r15d
mov r9, qword [r12]
mov rcx, qword [rbx + r15*8 + 0x188d10]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call fcn.1400bcbd0
cmp byte [0x140196522], 0
je 0x14009e27d
call sub.cudart64_91.dll_cudaDeviceSynchronize
mov rcx, qword [rbx + r15*8 + 0x188d10]
call sub.cudart64_91.dll_cudaStreamDestroy
call sub.cudart64_91.dll_cudaProfilerStop
xor ecx, ecx
mov byte [r15 + rbx + 0x196168], r13b
call fcn.1400c9e50
mov rax, qword [r12]
mov ecx, dword [rax]
test ecx, ecx
je 0x14009e450
mov rbx, qword [rdi + 0x18]
xor eax, eax
xor edx, edx
mov qword [rbp + 0x38], rax
cmp byte [reloc.WS2_32.dll_accept], al
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
je 0x14009e40a
movaps xmm2, xmmword [0x1401192d0]
lea rdi, [rsp + 0x50]
movaps xmm0, xmmword [0x1401192e0]
mov eax, ecx
movaps xmm1, xmmword [0x1401192f0]
shr eax, 8
mov byte [rbp + 0x71], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp + 0x70], cl
shr ecx, 0x18
mov byte [rbp + 0x72], al
movq rax, xmm2
mov byte [rbp + 0x73], cl
xor rax, 0x1010020
movaps xmmword [rbp - 0x30], xmm2
mov ecx, 0x80
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x30], rax
xor eax, eax
movaps xmm0, xmmword [0x140119300]
mov qword [rbp + 0x20], rdx
movups xmmword [rbp - 0x10], xmm1
mov qword [rbp + 0x10], rdx
movups xmmword [rbp], xmm0
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x28], reloc.WLDAP32.dll_Ordinal_32
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x20]
mov edi, edx
nop dword [rax + rax]
cmp rcx, 0x80
jne 0x14009e360
mov rax, qword [rbp + 0x10]
sub rax, 0xffffffffffffff80
mov qword [rbp + 0x10], rax
cmp rax, rcx
jae 0x14009e34e
inc qword [rbp + 0x18]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14009e6e0
xor ecx, ecx
mov qword [rbp + 0x20], rcx
movzx eax, byte [rbp + rdi + 0x50]
inc rdi
mov byte [rsp + rcx + 0x50], al
mov rcx, qword [rbp + 0x20]
inc rcx
mov qword [rbp + 0x20], rcx
cmp rdi, 0x50
jb 0x14009e330
mov rax, qword [rbp + 0x10]
add rax, rcx
mov qword [rbp + 0x10], rax
cmp rax, rcx
jae 0x14009e391
inc qword [rbp + 0x18]
cmp rcx, 0x80
jae 0x14009e3b9
nop word [rax + rax]
mov byte [rsp + rcx + 0x50], 0
mov rcx, qword [rbp + 0x20]
inc rcx
mov qword [rbp + 0x20], rcx
cmp rcx, 0x80
jb 0x14009e3a0
mov edx, r13d
lea rcx, [rsp + 0x50]
call fcn.14009e6e0
mov r8, qword [rbp + 0x28]
xor eax, eax
test r8, r8
je 0x14009e405
nop dword [rax]
nop word [rax + rax]
mov rdi, rax
movzx ecx, al
shr rdi, 3
and cl, 7
shl cl, 3
mov rdi, qword [rbp + rdi*8 - 0x30]
shr rdi, cl
mov byte [rbp + rax + 0x30], dil
inc rax
cmp rax, r8
jb 0x14009e3e0
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp + 0x30]
bswap rax
cmp rax, rbx
ja 0x14009e42a
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140034d70
test al, al
jne 0x14009e50a
cmp qword [rbp + 0x30], rbx
lea rbx, [0x140000000]
je 0x14009e450
mov r8d, dword [rbx + r15*4 + 0x196820]
lea rdx, [0x140119258]
mov ecx, 3
call fcn.140033bd0
add dword [r14 + 0x20], esi
call sub.cudart64_91.dll_cudaGetLastError
test eax, eax
je 0x14009e4a4
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov ecx, 2
mov rdi, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, dword [rbx + r15*4 + 0x196820]
lea r9, str.scanhash_sia
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rdx, [0x140119298]
mov dword [rsp + 0x20], 0x130
call fcn.140027ea0
mov ecx, r13d
call fcn.1400293d0
mov rax, qword [0x1401968b0]
mov rcx, r15
shl rcx, 7
mov ecx, dword [rcx + rax]
test ecx, ecx
jne 0x14009e4cf
mov eax, dword [r14 + 0x20]
mov ecx, esi
add rcx, rax
mov eax, dword [rsp + 0x38]
cmp rax, rcx
ja 0x14009e220
mov eax, dword [r14 + 0x20]
sub eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
xor eax, eax
mov rsi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1401150e0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
sub esi, dword [rsp + 0x30]
add esi, dword [r14 + 0x20]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], esi
cmp byte [0x1401965db], 0
jne 0x14009e52b
cmp byte [0x1401965da], 0
je 0x14009e554
mov rax, qword [r12]
lea rsi, [0x140000000]
mov r8d, dword [rsi + r15*4 + 0x196820]
lea rdx, [0x1401191e8]
mov ecx, 3
mov r9d, dword [rax]
call fcn.140033bd0
jmp 0x14009e55b
lea rsi, [0x140000000]
mov rax, qword [r12]
mov ecx, dword [rax + 4]
test ecx, ecx
je 0x14009e60b
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14009e59e
mov eax, ecx
mov byte [rbp + 0x70], cl
shr eax, 8
lea r8, [rbp + 0x50]
mov byte [rbp + 0x71], al
mov edx, 0x50
mov eax, ecx
shr ecx, 0x18
mov byte [rbp + 0x73], cl
lea rcx, [rbp + 0x30]
shr eax, 0x10
mov byte [rbp + 0x72], al
call fcn.14009f050
mov rcx, qword [rbp + 0x30]
mov rax, rcx
bswap rax
cmp rax, rbx
ja 0x14009e5ed
mov rdx, rdi
lea rcx, [rbp + 0x30]
call fcn.140034d70
test al, al
je 0x14009e5e9
mov rax, qword [r12]
mov r13d, 2
mov edx, dword [rax + 4]
mov dword [r14 + 0x50], edx
cmp byte [0x1401965db], 0
jne 0x14009e5e0
cmp byte [0x1401965da], 0
je 0x14009e60b
lea rdx, str.GPU__d:_Found_second_nonce
jmp 0x14009e5f9
mov rcx, qword [rbp + 0x30]
cmp rcx, rbx
je 0x14009e60b
lea rdx, [0x140119228]
mov r8d, dword [rsi + r15*4 + 0x196820]
mov ecx, 3
call fcn.140033bd0
mov rcx, qword [r12]
mov eax, r13d
mov edx, dword [rcx]
mov dword [r14 + 0x20], edx
jmp 0x14009e4e0
call fcn.140114ebc
int3