joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fab30
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rbx, rcx
test rcx, rcx
je 0x1400fad87
cmp word [rcx], 0
je 0x1400fad87
lea r12, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x29], r12
lea r14, vtable.CVolObject.0
mov qword [rbp - 0x29], r14
xor esi, esi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
lea r13, vtable.CWString.0
mov qword [rbp - 0x29], r13
lea rcx, [rbp - 9]
call fcn.1400fcc20
nop
mov qword [rbp - 0x11], rsi
mov qword [rbp + 0x27], 0xfe
cmp word [rbx], si
je 0x1400fabf8
cmp word [rbx + 2], si
je 0x1400fabf8
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400fabc0
cmp word [rbx + r8*2 - 2], 0x5c
jne 0x1400fabf8
cmp word [rbx + r8*2 - 4], 0x3a
je 0x1400fabf8
dec r8
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140101590
lea rcx, [rbp - 0x29]
call fcn.140100bf0
mov rbx, rax
movzx ecx, word [rbx]
lea r15, vtable.CVolMem.0
test cx, cx
je 0x1400fad5f
cmp cx, 0x5c
jne 0x1400fac1c
cmp word [rbx + 2], 0
je 0x1400fad5f
cmp word [rbx + 2], 0x3a
jne 0x1400fac41
movzx eax, word [rbx + 4]
test ax, ax
je 0x1400fad5f
cmp ax, 0x5c
jne 0x1400fac41
cmp word [rbx + 6], 0
je 0x1400fad5f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400fad5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400fad5f
cmp eax, 3
jne 0x1400fad64
lea edx, [rax + 0x59]
mov rcx, rbx
call fcn.14010cb44
mov rdi, rax
test rax, rax
je 0x1400fad64
cmp word [rax + 2], 0
jne 0x1400facb4
sub rdi, 2
cmp rdi, rbx
jb 0x1400fad64
nop dword [rax]
cmp word [rdi], 0x5c
je 0x1400facb4
sub rdi, 2
cmp rdi, rbx
jae 0x1400faca0
jmp 0x1400fad64
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rsi
mov qword [rbp - 0x79], rsi
mov qword [rsp + 0x20], r13
lea rcx, [rbp - 0x69]
call fcn.1400fcc20
nop
mov qword [rbp - 0x71], rsi
mov qword [rbp - 0x39], 0xfe
sub rdi, rbx
sar rdi, 1
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140101590
lea rcx, [rsp + 0x20]
call fcn.140100bf0
mov rcx, rax
call fcn.1400fab30
test rax, rax
je 0x1400fad3e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movsxd rsi, eax
lea rax, [rbp - 0x69]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x69], r15
lea rcx, [rbp - 0x69]
call fcn.1400fd160
nop
mov qword [rbp - 0x69], r14
mov qword [rsp + 0x20], r14
jmp 0x1400fad64
lea rax, [rbp - 0x69]
mov qword [rbp + 0x67], rax
mov qword [rbp - 0x69], r15
lea rcx, [rbp - 0x69]
call fcn.1400fd160
nop
mov qword [rbp - 0x69], r14
mov qword [rsp + 0x20], r14
jmp 0x1400fad64
mov esi, 1
lea rax, [rbp - 9]
mov qword [rbp + 0x67], rax
mov qword [rbp - 9], r15
lea rcx, [rbp - 9]
call fcn.1400fd160
nop
mov qword [rbp - 9], r14
mov qword [rbp - 0x29], r14
mov rax, rsi
jmp 0x1400fad89
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400fb1d0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
lea rax, [rax*2 + 2]
test rbx, rbx
jle 0x1400fb1fc
cmp rax, rbx
cmovg rax, rbx
add rsp, 0x50
pop rbx
ret

Function at 0x1400fb470
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
lea rcx, [0x1400fc830]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x1400fb4b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
mov rbx, rcx
test rcx, rcx
je 0x1400fb5ad
cmp word [rcx], 0
je 0x1400fb5ad
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [r11 - 0x68], rax
lea rsi, vtable.CVolObject.0
mov qword [r11 - 0x68], rsi
xor edi, edi
mov qword [r11 - 0x60], rdi
mov qword [r11 - 0x58], rdi
lea rax, vtable.CWString.0
mov qword [r11 - 0x68], rax
lea rcx, [r11 - 0x48]
call fcn.1400fcc20
nop
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x70], 0xfe
cmp word [rbx], di
je 0x1400fb56a
cmp word [rbx + 2], di
je 0x1400fb56a
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400fb530
cmp word [rbx + r8*2 - 2], 0x5c
jne 0x1400fb56a
cmp word [rbx + r8*2 - 4], 0x3a
je 0x1400fb56a
dec r8
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140101590
lea rcx, [rsp + 0x20]
call fcn.140100bf0
mov rbx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne dil
lea rax, [rsp + 0x40]
mov qword [rsp + 0x90], rax
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400fd160
nop
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
mov rax, rdi
jmp 0x1400fb5af
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400fb810
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
test rcx, rcx
je 0x1400fb99c
cmp word [rcx], 0
je 0x1400fb99c
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x20], rax
lea rsi, vtable.CVolObject.0
mov qword [rsp + 0x20], rsi
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
lea rax, vtable.CWString.0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
call fcn.1400fcc20
nop
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x70], 0xfe
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
call fcn.1400fd160
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400fb8be
test ax, ax
je 0x1400fb8f8
cmp word [rbx + 2], 0x3a
jne 0x1400fb8f8
cmp word [rbx + 4], 0x5c
jne 0x1400fb8f8
mov edx, 0x5c
mov rcx, rbx
call fcn.14010cb44
test rax, rax
je 0x1400fb8f8
cmp rax, rbx
jbe 0x1400fb8e1
lea rcx, [rax - 2]
cmp word [rcx], 0x3a
cmovne rax, rcx
sub rax, rbx
lea r8, [rax + 2]
sar r8, 1
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140101590
lea rcx, [rsp + 0x20]
call fcn.140100bf0
mov rdi, rax
test rax, rax
je 0x1400fb95d
cmp word [rax], 0
je 0x1400fb95d
lea rdx, [rsp + 0x90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400fb95d
cmp word [rdi], 0
je 0x1400fb936
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp word [rsp + 0x90], 0
je 0x1400fb969
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x1400fb969
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.1400fd160
nop
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rsi
mov rax, rbx
jmp 0x1400fb99e
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14010a630
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400fc350
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400fc477
cmp word [rcx], 0
je 0x1400fc477
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x60], 0x68
test r8, r8
js 0x1400fc3b5
or dword [rbp - 0x24], 1
mov word [rbp - 0x20], r8w
lea rcx, [rsp + 0x68]
call fcn.1400fcc20
nop
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400fce20
mov rdx, qword [rbp - 0x80]
xor ebx, ebx
cmp qword [rbp - 0x70], rbx
cmove rdx, rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400fc44f
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x1400fc429
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400fc434
mov edx, 0x1f4
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.1400fd160
nop
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x68], rax
mov rax, rbx
jmp 0x1400fc479
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400fd900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov rax, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400fda60
cmp word [rdx], 0
je 0x1400fda60
mov qword [rsp + 0x38], rsi
lea rdx, [0x140153484]
mov rcx, rax
mov qword [rsp + 0x30], rbx
mov r14, 0xffffffffffffffff
call fcn.140114a00
mov rsi, rax
test rax, rax
je 0x1400fda30
cmp rbp, r14
jne 0x1400fd983
xor edx, edx
lea r8d, [r14 + 3]
mov rcx, rax
call fcn.1401176cc
mov rcx, rsi
call fcn.140119a00
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rsi
call fcn.1401176cc
test rbp, rbp
jle 0x1400fda25
cmp qword [rdi + 0x18], 0
mov rcx, rdi
je 0x1400fd9a0
mov rdx, rbp
call fcn.1400fda80
jmp 0x1400fd9d2
mov rbx, qword [rdi + 0x30]
mov eax, 0x40
test rbx, rbx
cmovle rbx, rax
mov rax, rbp
cqo
idiv rbx
mov rax, qword [rdi]
sub rbx, rdx
add rbx, rbp
mov rdx, rbx
call qword [rax]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbp
mov r9, rsi
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.140117394
mov rcx, rsi
mov rbx, rax
call fcn.1401194b4
test eax, eax
jne 0x1400fda28
mov rdx, rbx
mov rcx, rdi
call fcn.1400fda80
mov rcx, rsi
call fcn.14011709c
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor r14d, r14d
mov rcx, rsi
call fcn.14011709c
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x1400fda43
mov r8, qword [rdi]
mov rcx, rdi
call qword [r8 + 0x18]
mov qword [rdi + 0x18], 0
mov rax, r14
mov qword [rdi + 0x28], 0
mov qword [rdi + 0x20], 0
jmp 0x1400fda0a
mov rbp, qword [rsp + 0x40]
mov rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400ff180
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400ff1ea
test r8d, r8d
js 0x1400ff1ea
je 0x1400ff1e3
mov edx, r9d
call fcn.1400ff2a0
test eax, eax
je 0x1400ff1ea
xor ebx, ebx
test edi, edi
jle 0x1400ff1e3
nop dword [rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400ff1ea
add ebx, eax
cmp ebx, edi
jl 0x1400ff1c0
mov eax, 1
jmp 0x1400ff1ec
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ff2a0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x2068
call fcn.14010a6d0
sub rsp, rax
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x2050], rax
test edx, edx
jns 0x1400ff2e0
mov eax, 1
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14010a630
add rsp, 0x2068
ret
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x2060], rbx
xor r9d, r9d
xor ebx, ebx
mov dword [rsp + 0x40], 1
xor edx, edx
mov dword [rsp + 0x34], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x2060]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.14010a630
add rsp, 0x2068
ret

Function at 0x140102100
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, r8d
mov ebx, edx
mov rbp, rcx
xor eax, eax
xor r14d, r14d
mov dword [rsp + 0x38], eax
xor edx, edx
mov qword [rsp + 0x20], r14
mov r8d, 0xe0
lea rcx, [rsp + 0x50]
mov rsi, r9
call fcn.14010c660
movzx eax, word [0x1401a5da0]
lea r8d, [r14 + 0x24]
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x30]
mov eax, 6
mov dword [rsp + 0x34], ebx
xor r9d, r9d
mov word [rsp + 0x32], ax
mov rcx, rbp
mov qword [rsp + 0x3c], r14
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], 0x1000
mov dword [rsp + 0x4c], 0x40
call sub.WS2_32.dll_send
test eax, eax
jg 0x1401021b2
test rsi, rsi
je 0x1401021a5
mov dword [rsi], r14d
mov rcx, rbp
call sub.WS2_32.dll_closesocket
mov rax, r14
jmp 0x1401021f4
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbp
lea r8d, [r9 + 8]
call sub.WS2_32.dll_recv
movsxd rcx, eax
cmp rcx, 8
jae 0x1401021e4
test rsi, rsi
je 0x1401021d7
mov dword [rsi], r14d
mov rcx, rbp
call sub.WS2_32.dll_closesocket
mov rax, r14
jmp 0x1401021f4
test rsi, rsi
je 0x1401021ef
mov dword [rsi], 1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010a630
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140102220
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp word [0x1403b7b40], 0
je 0x1401022a8
mov ecx, dword [0x1401a5da4]
mov ebx, 2
mov word [rsp + 0x20], bx
mov qword [rsp + 0x28], 0
call sub.WS2_32.dll_htonl
movzx ecx, word [0x1403b7b40]
mov dword [rsp + 0x24], eax
call sub.WS2_32.dll_htons
xor r8d, r8d
mov word [rsp + 0x22], ax
lea edx, [rbx - 1]
mov ecx, ebx
call sub.WS2_32.dll_socket
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401022a8
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1401022c2
mov rcx, rbx
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010a630
add rsp, 0x40
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010a630
add rsp, 0x40
pop rbx
ret

Function at 0x1401022f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, r8
mov ebx, edx
mov rbp, rcx
xor eax, eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov r8d, 0xe4
lea rcx, [rsp + 0x4c]
mov rsi, r9
call fcn.14010c660
movzx eax, word [0x1401a5da0]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x30], ax
xor r9d, r9d
mov eax, 7
mov dword [rsp + 0x34], ebx
xor ebx, ebx
mov word [rsp + 0x32], ax
mov rcx, rbp
mov qword [rsp + 0x3c], rdi
mov dword [rsp + 0x44], ebx
lea r8d, [rax + 0x15]
mov dword [rsp + 0x48], 0x8000
call sub.WS2_32.dll_send
test eax, eax
jg 0x14010238c
test rsi, rsi
je 0x140102380
mov dword [rsi], ebx
mov rcx, rbp
call sub.WS2_32.dll_closesocket
mov eax, ebx
jmp 0x1401023cc
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbp
lea r8d, [r9 + 4]
call sub.WS2_32.dll_recv
movsxd rcx, eax
cmp rcx, 4
jae 0x1401023bc
test rsi, rsi
je 0x1401023b0
mov dword [rsi], ebx
mov rcx, rbp
call sub.WS2_32.dll_closesocket
mov eax, ebx
jmp 0x1401023cc
test rsi, rsi
je 0x1401023c7
mov dword [rsi], 1
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010a630
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401023f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140153bd8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140102426
xor eax, eax
add rsp, 0x38
ret
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x140153bf8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov dword [rsp + 0x40], ecx
xor r8d, r8d
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140102487
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x140153bf8]
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1401024a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_WSAStartup
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14010a630
add rsp, 0x1d8
ret

Function at 0x1401024e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, qword [rsp + 0x190]
mov r15d, r9d
mov r14, r8
mov r12d, edx
mov rsi, rcx
test r8, r8
je 0x1401025f0
mov rbp, qword [rsp + 0x180]
test rbp, rbp
je 0x1401025f0
xor eax, eax
mov dword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], eax
mov r8d, 0xd8
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.14010c660
movzx eax, word [0x1401a5da0]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x30], ax
xor r9d, r9d
mov eax, 3
mov dword [rsp + 0x44], r12d
mov word [rsp + 0x32], ax
mov rcx, rsi
mov eax, dword [rsp + 0x188]
lea r8d, [r9 + 0x2c]
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x4c], r14
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x3c], rbp
call sub.WS2_32.dll_send
test eax, eax
jle 0x1401025ca
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rsi
lea r8d, [r9 + 4]
call sub.WS2_32.dll_recv
movsxd rdx, eax
cmp rdx, 4
jae 0x1401025df
test rbx, rbx
je 0x1401025d5
mov dword [rbx], 0
mov rcx, rsi
call sub.WS2_32.dll_closesocket
jmp 0x1401025fb
test rbx, rbx
je 0x1401025ea
mov dword [rbx], 1
mov eax, dword [rsp + 0x20]
jmp 0x1401025fd
test rbx, rbx
je 0x1401025fb
mov dword [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010a630
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140102630
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x1403a6cc8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, qword [rsp + 0x188]
mov rdi, r8
mov ebx, edx
mov dword [rsp + 0x20], 0
mov rbp, rcx
xor eax, eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov r8d, 0xe4
lea rcx, [rsp + 0x4c]
mov esi, r9d
call fcn.14010c660
movzx eax, word [0x1401a5da0]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x30], ax
xor r9d, r9d
mov eax, 8
mov dword [rsp + 0x34], ebx
mov word [rsp + 0x32], ax
mov rcx, rbp
mov eax, dword [rsp + 0x180]
lea r8d, [r9 + 0x1c]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x3c], rdi
mov dword [rsp + 0x44], esi
call sub.WS2_32.dll_send
test eax, eax
jle 0x1401026ed
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rcx, rbp
lea r8d, [r9 + 4]
call sub.WS2_32.dll_recv
movsxd rdx, eax
cmp rdx, 4
jae 0x140102705
test r14, r14
je 0x1401026f9
mov dword [r14], 0
mov rcx, rbp
call sub.WS2_32.dll_closesocket
xor eax, eax
jmp 0x140102715
test r14, r14
je 0x140102711
mov dword [r14], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010a630
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401035e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rbp, r8d
mov rbx, r9
mov r14, rdx
mov rdi, rcx
cmp dword [rsp + 0x50], ebp
jge 0x14010360e
xor al, al
jmp 0x1401037bd
mov qword [rsp + 0x30], rsi
lea r9, [rcx + 0x11c]
xor esi, esi
mov r8d, esi
nop
mov byte [r9 - 0x100], r8b
lea r9, [r9 + 1]
mov eax, r8d
inc r8d
cdq
idiv dword [rdi + 8]
mov rax, qword [rdi]
movsxd rcx, edx
movzx ecx, byte [rcx + rax]
mov byte [r9 - 1], cl
cmp r8d, 0x100
jl 0x140103620
mov rcx, rdi
call sym.N7V3.exe_private:_void___cdecl_CRC4::RangeState_void____ptr64
mov edx, ebp
mov rcx, rdi
call sym.N7V3.exe_private:_void___cdecl_CRC4::KeyStream_int____ptr64
test ebp, ebp
jle 0x140103783
cmp ebp, 8
jb 0x140103783
lea rcx, [rbp - 1]
lea rax, [rcx + r14]
lea r8, [rdi + 0x10]
lea rdx, [rcx + rbx]
cmp rbx, rax
ja 0x14010368d
cmp rdx, r14
jae 0x140103783
mov r10, qword [r8]
lea rax, [r10 + rcx]
cmp rbx, rax
ja 0x1401036a2
cmp rdx, r10
jae 0x140103783
cmp rbx, r8
ja 0x1401036b0
cmp rdx, r8
jae 0x140103783
mov rdx, r14
sub rdx, rbx
cmp ebp, 0x40
jb 0x140103752
mov eax, ebp
and eax, 0xffffffc0
mov r9, 0xfffffffffffffff0
movsxd r11, eax
sub r9, rbx
lea rcx, [rbx + 0x10]
nop word [rax + rax]
movdqu xmm1, xmmword [rdx + rcx - 0x10]
lea rax, [r9 + rcx]
add esi, 0x40
movdqu xmm0, xmmword [rax + r10]
movdqu xmm2, xmmword [rcx + rdx]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax + r10 + 0x10]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm1, xmmword [rdx + rcx - 0x30]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax + r10 + 0x20]
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm2, xmmword [rdx + rcx - 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax + r10 + 0x30]
lea rax, [r9 + rcx]
movdqu xmmword [rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r11
jl 0x1401036e0
mov eax, ebp
and al, 0x3f
cmp al, 8
jb 0x140103783
mov r8, qword [r8]
mov eax, ebp
and eax, 0xfffffff8
movsxd rcx, esi
movsxd r9, eax
movq xmm0, qword [r8 + rcx]
lea rax, [rcx + rbx]
movq xmm1, qword [rax + rdx]
add esi, 8
add rcx, 8
pxor xmm1, xmm0
movq qword [rax], xmm1
cmp rcx, r9
jl 0x140103760
movsxd rax, esi
mov rsi, qword [rsp + 0x30]
cmp rax, rbp
jge 0x1401037bb
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
lea r8, [rax + rbx]
movzx edx, byte [r14 + r8]
xor dl, byte [rcx + rax]
inc rax
mov byte [r8], dl
cmp rax, rbp
jl 0x1401037a0
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret