Function at 0x140038a10
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x348]
sub rsp, 0x448
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rbp + 0x330], rax
movsxd rax, ecx
mov rbx, rdx
mov rcx, qword [rbp + 0x3b0]
mov r14, r8
mov qword [rsp + 0x50], rcx
mov r13, rax
mov ecx, dword [rdx + 0x4c]
mov r12d, 1
mov dword [rsp + 0x34], ecx
lea rax, [rax*4]
xor ecx, ecx
mov qword [rsp + 0x40], r8
lea rdx, [0x140000000]
mov dword [rsp + 0x3c], r9d
movsxd rdi, dword [rax + rdx + 0x1905d0]
mov r8d, r12d
mov esi, r9d
mov qword [rsp + 0x48], rax
cmp dword [rdx + rdi*4 + 0x18ffc0], 0x1f4
lea rdx, str.scanhash_groestlcoin
setg cl
add ecx, 0x17
shl r8d, cl
mov ecx, edi
call fcn.14009d710
mov r15d, esi
mov dword [rsp + 0x38], eax
sub r15d, dword [rsp + 0x34]
cmp eax, r15d
cmovb r15d, eax
and r15d, 0xfffffc00
cmp byte [0x140190373], 0
je 0x140038add
mov dword [r14 + 0x1c], reloc.WS2_32.dll_ntohs
mov rax, qword gs:[0x58]
mov edi, 4
mov rsi, qword [rax]
mov eax, 0x2f5
movzx eax, byte [rax + rsi]
test al, al
jne 0x140038d27
lea rax, [0x140000000]
mov ecx, dword [rax + r13*4 + 0x1905d0]
call qword [sym.imp.cudart64_80.dll_cudaSetDevice]
test eax, eax
je 0x140038b59
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x45
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.cudart64_80.dll_cudaDeviceReset]
test eax, eax
je 0x140038ba4
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x46
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, edi
call qword [sym.imp.cudart64_80.dll_cudaSetDeviceFlags]
test eax, eax
je 0x140038bf1
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x47
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.cudart64_80.dll_cudaDeviceSetCacheConfig]
test eax, eax
je 0x140038c41
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x48
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [0x140000000]
lea rcx, [rax + 0x182b80]
lea rcx, [rcx + r13*8]
call qword [sym.imp.cudart64_80.dll_cudaStreamCreate]
test eax, eax
je 0x140038c9e
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x49
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, dword [rsp + 0x38]
mov ecx, r13d
call fcn.14009e870
xor r8d, r8d
mov ecx, 0x2f8
add rcx, rsi
lea edx, [r8 + 8]
call qword [sym.imp.cudart64_80.dll_cudaHostAlloc]
test eax, eax
je 0x140038d04
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
mov ecx, 2
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, Ordinal_79
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea r8, str.scanhash_groestlcoin
lea rdx, str.Cuda_error_in_func__s_at_line__i_:__s._n
call fcn.140027e90
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp r13d, 0x10
jae 0x1400391c7
lea rax, [0x140000000]
mov byte [rax + r13 + 0x18ffa8], 0
mov eax, 0x2f5
mov byte [rax + rsi], r12b
xor edx, edx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140038da0
lea rax, [rbx + 0x7c]
lea rcx, [rbp + 0x1a0]
cmp rcx, rax
ja 0x140038d4e
lea rax, [rbp + 0x21c]
cmp rax, rbx
jae 0x140038da0
lea rdx, [rbp + 0x1b0]
mov rcx, rbx
sub rcx, rdx
lea rax, [rbp + 0x1b0]
mov edx, reloc.WLDAP32.dll_Ordinal_32
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax]
movdqu xmm1, xmmword [rcx + rax + 0x10]
lea rax, [rax + 0x20]
pshufb xmm0, xmmword [0x140170170]
pshufb xmm1, xmmword [0x140170170]
movdqu xmmword [rax - 0x30], xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rdi, r12
jne 0x140038d70
movsxd rdx, edx
cmp rdx, 0x20
jge 0x140038ddd
lea rax, [rbp + 0x1a0]
mov rdi, rbx
sub rdi, rax
nop word [rax + rax]
lea rax, [rdi + rdx*4]
mov ecx, dword [rbp + rax + 0x1a0]
bswap ecx
mov dword [rbp + rdx*4 + 0x1a0], ecx
inc rdx
cmp rdx, 0x20
jl 0x140038dc0
lea rdx, [rbp + 0x1a0]
mov ecx, r13d
mov edi, r13d
call fcn.14009e890
mov eax, 0x2f8
add rsi, rax
nop word [rax + rax]
mov r14d, dword [r14 + 0x1c]
mov edx, r15d
mov r9, qword [rsi]
mov ecx, edi
mov r8d, dword [rbx + 0x4c]
mov dword [rsp + 0x20], r14d
call fcn.14009e980
cmp byte [0x140190370], 0
je 0x140038e47
lea rax, [0x140000000]
mov rcx, qword [rax + r13*8 + 0x182b80]
mov byte [rax + r13 + 0x18ffa8], r12b
call qword [sym.imp.cudart64_80.dll_cudaStreamDestroy]
xor ecx, ecx
call fcn.1400c5de0
mov rax, qword [rsi]
cmp dword [rax], 0xffffffff
jae 0x140038f77
mov ecx, dword [rax]
lea rdi, [rbp - 0x20]
bswap ecx
mov dword [rbp + 0x1ec], ecx
lea rdx, [rbp + 0x1a0]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosq qword [rdi], rax
movabs rax, 0x2000000000000
mov qword [rbp + 0x68], 0
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x60], rax
mov r8d, 0x50
call fcn.14005bb90
lea r9, [rbp + 0x2b0]
lea rcx, [rsp + 0x60]
call fcn.14005e4b0
xor eax, eax
lea rdi, [rbp - 0x20]
mov ecx, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x2b0]
rep stosq qword [rdi], rax
movabs rax, 0x2000000000000
mov qword [rbp + 0x68], 0
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x60], rax
mov r8d, 0x40
call fcn.14005bb90
lea r9, [rbp + 0x230]
lea rcx, [rsp + 0x60]
call fcn.14005e4b0
movaps xmm1, xmmword [rbp + 0x240]
movaps xmm0, xmmword [rbp + 0x230]
movups xmmword [rbp + 0x190], xmm1
psrldq xmm1, 8
movq rax, xmm1
shr rax, 0x20
movups xmmword [rbp + 0x180], xmm0
cmp eax, r14d
ja 0x140038f3d
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x180]
call fcn.1400342d0
test al, al
jne 0x140038fca
cmp dword [rbp + 0x24c], r14d
lea r14, [r13*4]
je 0x140038f72
mov rax, qword [rsi]
lea rdx, str.GPU__d:_result_for__08x_does_not_validate_on_CPU_
mov ecx, r12d
mov r9d, dword [rax]
lea rax, [0x140000000]
mov r8d, dword [r14 + rax + 0x1905d0]
call fcn.140033450
mov edi, r13d
jmp 0x140038f7f
lea r14, [r13*4]
add dword [rbx + 0x4c], r15d
call qword [sym.imp.cudart64_80.dll_cudaGetLastError]
test eax, eax
jne 0x140039195
mov rax, qword [0x140190658]
mov rcx, r13
shl rcx, 7
mov ecx, dword [rcx + rax]
test ecx, ecx
jne 0x140039183
mov eax, dword [rbx + 0x4c]
mov ecx, r15d
add rcx, rax
mov eax, dword [rsp + 0x3c]
cmp rax, rcx
jbe 0x140039183
mov r14, qword [rsp + 0x40]
jmp 0x140038e00
cmp byte [0x140190373], 0
mov r13, qword [rsp + 0x48]
je 0x140038ffe
mov rax, qword [rsi]
lea rdx, str.GPU__d_Found_nounce__08x
mov ecx, 3
mov r9d, dword [rax]
lea rax, [0x140000000]
mov r8d, dword [rax + r13 + 0x1905d0]
call fcn.140033450
mov rcx, qword [rsp + 0x50]
sub r15d, dword [rsp + 0x34]
add r15d, dword [rbx + 0x4c]
mov dword [rcx], r15d
mov rax, qword [rsi]
mov ecx, dword [rax + 4]
cmp ecx, 0xffffffff
je 0x140039155
bswap ecx
mov dword [rbp + 0x1ec], ecx
lea rdi, [rbp + 0xf0]
xor eax, eax
lea rdx, [rbp + 0x1a0]
mov ecx, reloc.WS2_32.dll_recv
movabs r15, 0x2000000000000
rep stosq qword [rdi], rax
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x170], r15
lea r8d, [rax + 0x50]
mov qword [rbp + 0x178], rax
call fcn.14005bb90
lea r9, [rbp + 0x2f0]
lea rcx, [rbp + 0x70]
call fcn.14005e4b0
xor eax, eax
lea rdi, [rbp + 0xf0]
mov ecx, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x2f0]
rep stosq qword [rdi], rax
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x170], r15
lea r8d, [rax + 0x40]
mov qword [rbp + 0x178], rax
call fcn.14005bb90
lea r9, [rbp + 0x270]
lea rcx, [rbp + 0x70]
call fcn.14005e4b0
movaps xmm1, xmmword [rbp + 0x280]
movaps xmm0, xmmword [rbp + 0x270]
movups xmmword [rbp + 0x190], xmm1
psrldq xmm1, 8
movq rax, xmm1
shr rax, 0x20
movups xmmword [rbp + 0x180], xmm0
cmp eax, r14d
ja 0x140039127
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x180]
call fcn.1400342d0
test al, al
je 0x140039127
mov rax, qword [rsi]
mov r12d, 2
mov edx, dword [rax + 4]
mov dword [rbx + 0x54], edx
cmp byte [0x140190373], 0
je 0x140039155
mov rax, qword [rsi]
lea rdx, str.GPU__d_Found_second_nounce__08x
lea ecx, [r12 + 1]
mov r9d, dword [rax + 4]
jmp 0x140039141
cmp dword [rbp + 0x28c], r14d
je 0x140039155
mov rcx, qword [rsi]
lea rdx, str.GPU__d:_result_for__08x_does_not_validate_on_CPU_
mov r9d, dword [rcx + 4]
mov ecx, r12d
lea rax, [0x140000000]
mov r8d, dword [rax + r13 + 0x1905d0]
call fcn.140033450
mov rcx, qword [rsi]
mov eax, r12d
mov edx, dword [rcx]
mov dword [rbx + 0x4c], edx
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140111120
add rsp, 0x448
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rbx + 0x4c]
sub eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
xor eax, eax
jmp 0x140039160
mov ecx, eax
call qword [sym.imp.cudart64_80.dll_cudaGetErrorString]
lea rdx, str.GPU__d:__s
xor ecx, ecx
mov r9, rax
lea rax, [0x140000000]
mov r8d, dword [r14 + rax + 0x1905d0]
call fcn.140033450
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140110efc
int3