joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8f80
Capabilities:
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r12d, r12d
mov rbx, rcx
mov r13, rdx
mov edi, r8d
mov esi, r9d
mov dword [rsp + 0x38], 0
test byte [rcx + 0x59], 0x20
jne 0x1400c8ff9
mov ebp, r9d
and ebp, 1
je 0x1400c8fbf
cmp word [rdx], 0x17
mov r12d, 0x57
jne 0x1400c8ff9
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400c9090
and esi, 4
jne 0x1400c9010
cmp word [r13], 0x17
je 0x1400c904b
mov r8d, edi
mov rdx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400c90d0
or dword [rbx + 0x58], 0x2000
xor r12d, r12d
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], 1
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400c90d0
cmp word [r13], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x1400c8fda
or dword [rbx + 0x58], 0x400000
cmp word [r13], 0x17
jne 0x1400c8fda
test ebp, ebp
jne 0x1400c8fda
lea r9, [rsp + 0x38]
mov r8d, 0x1b
mov edx, 0x29
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
jmp 0x1400c8fda
movzx ecx, word [r13]
xor r8d, r8d
mov edx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400c90d0
mov rcx, qword [rbx + 8]
movzx r9d, word [r13]
mov r8, rax
mov rdx, rbx
call fcn.1400c8dd0
mov r12d, eax
test eax, eax
jne 0x1400c90e0
mov rcx, qword [rbx + 0x70]
jmp 0x1400c8fcd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x1400c8ff9
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400c8ff9
Function at 0x1400c9310
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
xor eax, eax
mov ebp, dword [rsp + 0x1c0]
lea r13, [rsp + 0x50]
mov r12, rcx
mov ecx, 0x21
mov rsi, rdx
mov rdi, r13
mov r10, r8
mov rbx, r9
rep stosq qword [rdi], rax
test r8, r8
je 0x1400c9364
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, r10
call fcn.1400a8970
test eax, eax
jne 0x1400c93d4
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov rax, qword [rsi + 0x10]
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rbx]
mov qword [rsp + 0x68], rax
mov eax, dword [rsi + 0x18]
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x70], eax
mov rax, qword [rbx + 0x10]
movups xmmword [rsp + 0xd8], xmm1
mov qword [rsp + 0xe8], rax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0xf0], eax
cmp ebp, 1
je 0x1400c9400
test ebp, ebp
jne 0x1400c9408
mov r8d, 0x2e
mov dword [rsp + 0x20], 0x108
mov rcx, qword [r12 + 0x70]
mov r9, r13
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, eax
xor eax, eax
cmp r8d, 0xffffffff
je 0x1400c93e8
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ab4e0
jmp 0x1400c93d4
mov r8d, 0x2d
jmp 0x1400c93ae
mov eax, 0xfffff019
jmp 0x1400c93d4
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x58]
mov edi, dword [rsp + 0x70]
and eax, 0x402000
mov r12, rcx
mov r13, rdx
mov rbx, r8
mov rsi, r9
cmp eax, 0x2000
je 0x1400c9fd8
mov rdx, qword [0x1402af420]
mov r9d, 4
mov r8d, 0x1c
call fcn.1400c8f80
test eax, eax
jne 0x1400c9fc0
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x70], edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp 0x1400c9310
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400ab4e0
mov eax, 0xfffff019
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x1400c9e30
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
mov eax, dword [rcx + 0x58]
and eax, 0x402000
mov rbx, rcx
mov rdi, rdx
mov r13, r8
mov esi, r9d
cmp eax, 0x2000
je 0x1400c9f00
mov rdx, qword [0x1402af420]
mov r9d, 4
mov r8d, 0x1c
call fcn.1400c8f80
mov r12d, eax
test eax, eax
jne 0x1400c9f20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
test r13, r13
je 0x1400c9eb7
xor edx, edx
lea r8, [rsp + 0x50]
mov rcx, r13
call fcn.1400a8970
test eax, eax
jne 0x1400c9f00
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
movdqu xmm0, xmmword [rdi + 8]
movups xmmword [rsp + 0x30], xmm0
test esi, esi
je 0x1400c9f18
mov r8d, 0xc
cmp esi, 1
jne 0x1400c9f00
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x30]
mov edx, 0x29
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400c9f38
mov eax, r12d
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov r12d, 0xfffff019
mov eax, r12d
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov r8d, 0xd
jmp 0x1400c9ed0
mov ecx, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400ab4e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ab4e0
mov r12d, eax
jmp 0x1400c9ef1
Function at 0x1400c9f50
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
xor eax, eax
mov ebp, dword [rsp + 0x1c0]
lea r13, [rsp + 0x50]
mov r12, rcx
mov ecx, 0x21
mov rsi, rdx
mov rdi, r13
mov r10, r8
mov rbx, r9
rep stosq qword [rdi], rax
test r8, r8
je 0x1400c9364
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, r10
call fcn.1400a8970
test eax, eax
jne 0x1400c93d4
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov rax, qword [rsi + 0x10]
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rbx]
mov qword [rsp + 0x68], rax
mov eax, dword [rsi + 0x18]
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x70], eax
mov rax, qword [rbx + 0x10]
movups xmmword [rsp + 0xd8], xmm1
mov qword [rsp + 0xe8], rax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0xf0], eax
cmp ebp, 1
je 0x1400c9400
test ebp, ebp
jne 0x1400c9408
mov r8d, 0x2e
mov dword [rsp + 0x20], 0x108
mov rcx, qword [r12 + 0x70]
mov r9, r13
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, eax
xor eax, eax
cmp r8d, 0xffffffff
je 0x1400c93e8
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ab4e0
jmp 0x1400c93d4
mov r8d, 0x2d
jmp 0x1400c93ae
mov eax, 0xfffff019
jmp 0x1400c93d4
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x58]
mov edi, dword [rsp + 0x70]
and eax, 0x402000
mov r12, rcx
mov r13, rdx
mov rbx, r8
mov rsi, r9
cmp eax, 0x2000
je 0x1400c9fd8
mov rdx, qword [0x1402af420]
mov r9d, 4
mov r8d, 0x1c
call fcn.1400c8f80
test eax, eax
jne 0x1400c9fc0
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x70], edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp 0x1400c9310
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400ab4e0
mov eax, 0xfffff019
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x1400cabc0
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov esi, dword [rsp + 0x140]
mov rbx, rcx
mov r13, rdx
mov edi, r8d
mov r12, r9
test r8d, r8d
je 0x1400cacc0
test r12, r12
je 0x1400cac0b
lea rbp, [rsp + 0x60]
mov rcx, r12
mov rdx, rbp
call fcn.1400ce3e0
test eax, eax
jne 0x1400cac8b
mov r12, rbp
cmp qword [rbx + 0x68], 0
jne 0x1400cacf3
test byte [rbx + 0x59], 0x20
jne 0x1400cac47
cmp esi, 0x10
je 0x1400cace0
cmp esi, 0x1c
jne 0x1400cacec
mov rdx, qword [0x1402af420]
xor r9d, r9d
mov r8d, esi
mov rcx, rbx
call fcn.1400c8f80
test eax, eax
jne 0x1400caca6
mov r8d, edi
mov dword [rsp + 0x30], esi
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x40], 0
mov rdx, r13
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov r8d, eax
mov eax, dword [rsp + 0x5c]
test r8d, r8d
jne 0x1400caca0
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400ab4e0
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0x477
lea rdx, str.src_win_udp.c
lea rcx, str.nbufs___0
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400cabeb
mov rdx, qword [0x1402af410]
jmp 0x1400cac35
mov eax, 0xfffff019
jmp 0x1400cac8b
mov eax, 0xfffff008
jmp 0x1400cac8b
Function at 0x1400cafb0
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x1400cb120
test rdx, rdx
je 0x1400cb120
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edx, edx
xor ecx, ecx
call rdi
mov r13d, eax
test eax, eax
je 0x1400cb0e8
mov ecx, eax
add rcx, rcx
call fcn.1400a6950
mov r12, rax
test rax, rax
je 0x1400cb127
mov rdx, rax
mov ecx, r13d
call rdi
test eax, eax
je 0x1400cb0e0
mov edx, eax
xor ecx, ecx
mov word [r12 + rdx*2], cx
lea edx, [rax - 1]
lea rdx, [r12 + rdx*2]
cmp word [rdx], 0x5c
je 0x1400cb100
xor edx, edx
mov r9d, 0xffffffff
mov r8, r12
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rdi, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
test eax, eax
je 0x1400cb0e0
mov rdx, qword [rbx]
mov ecx, edx
cmp edx, eax
jl 0x1400cb12e
cmp rdx, 0x7fffffff
mov eax, 0x7fffffff
mov r8, r12
mov qword [rsp + 0x20], rsi
cmova ecx, eax
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
call rdi
mov rcx, r12
mov esi, eax
call fcn.1400a6970
test esi, esi
je 0x1400cb0e8
sub esi, 1
xor eax, eax
movsxd rsi, esi
mov qword [rbx], rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r12
call fcn.1400a6970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400ab4e0
cmp eax, 3
je 0x1400cb110
xor eax, eax
mov word [rdx], ax
jmp 0x1400cb02b
cmp word [r12 + 2], 0x3a
jne 0x1400cb105
jmp 0x1400cb02b
mov eax, 0xfffff019
jmp 0x1400cb0cd
mov eax, 0xfffff027
jmp 0x1400cb0cd
mov rcx, r12
mov dword [rsp + 0x4c], eax
call fcn.1400a6970
movsxd rax, dword [rsp + 0x4c]
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x1400cb0cd
Function at 0x1400cb150
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
test rcx, rcx
je 0x1400cb2f8
mov r8, rcx
mov rsi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
call rsi
movsxd rdi, eax
test rdi, rdi
je 0x1400cb238
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.1400a6950
mov r12, rax
test rax, rax
je 0x1400cb302
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
call rsi
mov rcx, r12
test eax, eax
je 0x1400cb233
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1400cb230
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, r12
mov ecx, edi
call rsi
mov ebx, eax
cmp rdi, rbx
jb 0x1400cb258
cmp word [r12 + rbp - 2], 0x5c
je 0x1400cb280
cmp rdi, 1
jbe 0x1400cb217
cmp word [r12 + 2], 0x3a
je 0x1400cb2b0
mov rcx, r12
call fcn.1400a6970
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, r12
call fcn.1400a6970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400ab4e0
mov rcx, r12
call fcn.1400a6970
lea rcx, [rbx + rbx]
call fcn.1400a6950
mov r12, rax
xor eax, eax
test r12, r12
je 0x1400cb221
mov rdx, r12
mov ecx, ebx
call rsi
jmp 0x1400cb1f7
cmp rdi, 3
je 0x1400cb2a0
sub rdi, 1
xor ecx, ecx
mov word [r12 + rdi*2], cx
jmp 0x1400cb204
cmp word [r12 + 2], 0x3a
jne 0x1400cb286
nop dword [rax]
movzx eax, word [r12]
lea edx, [rax - 0x41]
cmp dx, 0x19
jbe 0x1400cb2ce
lea edx, [rax - 0x61]
cmp dx, 0x19
ja 0x1400cb217
sub eax, 0x20
mov edx, 0x3d
mov word [rsp + 0x3a], ax
lea rcx, [rsp + 0x38]
mov word [rsp + 0x38], dx
mov rdx, r12
mov dword [rsp + 0x3c], 0x3a
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1400cb217
mov eax, 0xfffff019
jmp 0x1400cb221
mov eax, 0xfffff027
jmp 0x1400cb221

Function at 0x1400cb330
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
mov rax, 0xffffffffffffffff
cmovne rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x1400cb360
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
mov rax, 0xffffffffffffffff
cmovne rax, qword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x1400cb3b0
Capabilities:
Enumerate processes

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x158
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 2
mov ebx, eax
mov dword [rsp + 0x20], 0x130
lea rsi, [rsp + 0x20]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rsi
mov rcx, rax
mov r12, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1400cb407
jmp 0x1400cb430
mov rdx, rsi
mov rcx, r12
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400cb430
cmp dword [rsp + 0x28], ebx
jne 0x1400cb3f8
mov r13d, dword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
add rsp, 0x158
pop rbx
pop rsi
pop r12
pop r13
ret
mov r13d, 0xffffffff
jmp 0x1400cb412

Function at 0x1400cbf40
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rdi, rcx
mov rsi, rdx
test rcx, rcx
je 0x1400cc0b0
test rdx, rdx
je 0x1400cc0b0
cmp qword [rdx], 0
je 0x1400cc0b0
mov rbp, qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edx, edx
xor ecx, ecx
call rbp
mov ebx, eax
mov eax, eax
test rax, rax
je 0x1400cc068
lea rcx, [rax + rax + 2]
call fcn.1400a6950
mov r12, rax
test rax, rax
je 0x1400cc0b7
lea ecx, [rbx + 1]
mov rdx, rax
call rbp
mov eax, eax
test rax, rax
je 0x1400cc060
cmp word [r12 + rax*2 - 2], 0x5c
je 0x1400cc080
xor edx, edx
mov r9d, 0xffffffff
mov r8, r12
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbx, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbx
test eax, eax
je 0x1400cc060
mov rdx, qword [rsi]
mov eax, eax
cmp rax, rdx
ja 0x1400cc0be
mov dword [rsp + 0x28], edx
mov ecx, 0xfde9
xor edx, edx
mov r8, r12
mov qword [rsp + 0x38], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdi
call rbx
mov rcx, r12
mov ebx, eax
call fcn.1400a6970
test ebx, ebx
je 0x1400cc068
lea eax, [rbx - 1]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call fcn.1400a6970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400ab4e0
cmp rax, 3
je 0x1400cc098
xor edx, edx
mov word [r12 + rax*2 - 2], dx
jmp 0x1400cbfbc
cmp word [r12 + 2], 0x3a
jne 0x1400cc086
jmp 0x1400cbfbc
mov eax, 0xfffff019
jmp 0x1400cc04d
mov eax, 0xfffff027
jmp 0x1400cc04d
mov rcx, r12
mov qword [rsp + 0x48], rax
call fcn.1400a6970
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
mov eax, 0xfffff024
jmp 0x1400cc04d
Function at 0x1400cc7c0
Capabilities:
Get common file path
Get session user name

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rbx, rcx
test rcx, rcx
je 0x1400cc98e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400cc8d8
lea r13, [rsp + 0x34]
xor edx, edx
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x38]
mov rdi, qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov r8, r13
call rdi
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
cmp eax, 0x7a
jne 0x1400cc8a8
mov ecx, dword [rsp + 0x34]
add rcx, rcx
call fcn.1400a6950
mov r12, rax
test rax, rax
je 0x1400cc9a2
mov rcx, qword [rsp + 0x38]
mov r8, r13
mov rdx, rax
call rdi
test eax, eax
je 0x1400cc950
lea r14, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0x101
mov rdx, r13
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400cc8f0
call rsi
mov rcx, r12
mov r13d, eax
call fcn.1400a6970
cmp r13d, 0x7a
je 0x1400cc998
mov ecx, r13d
call fcn.1400ab4e0
jmp 0x1400cc8c0
call rsi
mov rcx, qword [rsp + 0x38]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r12d
call fcn.1400ab4e0
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ab4e0
jmp 0x1400cc8c0
mov qword [rbx + 0x18], 0
lea r8, [rbx + 0x18]
mov edx, 0xffffffff
mov rcx, r12
call fcn.1400cc120
mov rcx, r12
mov dword [rsp + 0x2c], eax
call fcn.1400a6970
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400cc8c0
mov qword [rbx], 0
mov r8, rbx
mov edx, 0xffffffff
mov rcx, r14
call fcn.1400cc120
test eax, eax
jne 0x1400cc978
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx + 0x10], 0
jmp 0x1400cc8c0
call rsi
mov rcx, qword [rsp + 0x38]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1400a6970
mov ecx, r13d
call fcn.1400ab4e0
jmp 0x1400cc8c0
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x2c], eax
call fcn.1400a6970
mov eax, dword [rsp + 0x2c]
jmp 0x1400cc8c0
mov eax, 0xfffff019
jmp 0x1400cc8c0
mov eax, 0xfffff027
jmp 0x1400cc8c0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x1400cc8c0
Function at 0x1400ccb80
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x458
test rdx, rdx
mov qword [rsp + 0x4a8], rdx
sete al
test r8, r8
mov qword [rsp + 0x4b0], r8
sete dl
or al, dl
jne 0x1400ccd80
test rcx, rcx
je 0x1400ccd80
cmp qword [r8], 0
je 0x1400ccd80
lea r8, [rsp + 0x48]
mov edx, 0xffffffff
call fcn.1400cc6e0
mov r13d, eax
test eax, eax
jne 0x1400ccccc
lea rsi, [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 0x200
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r15, rsi
jmp 0x1400ccc38
cmp r15, rsi
je 0x1400ccc1d
mov rcx, r15
call fcn.1400a6970
lea ecx, [r14 + 1]
mov rbx, rcx
add rcx, rcx
call fcn.1400a6950
mov r15, rax
test rax, rax
je 0x1400ccce8
xor ecx, ecx
call rbp
mov r8d, ebx
mov rdx, r15
mov rcx, r12
call rdi
mov r14d, eax
cmp eax, ebx
jae 0x1400ccc10
mov rcx, r12
call fcn.1400a6970
mov qword [rsp + 0x48], 0
test r14d, r14d
je 0x1400ccd08
xor edx, edx
mov r9d, 0xffffffff
mov r8, r15
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbx, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbx
test eax, eax
je 0x1400ccd78
mov rdi, qword [rsp + 0x4b0]
mov eax, eax
mov rdx, qword [rdi]
cmp rax, rdx
jbe 0x1400ccd28
mov qword [rdi], rax
mov r13d, 0xfffff024
cmp r15, rsi
jne 0x1400cccfb
mov eax, r13d
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r12, r12
je 0x1400cccf5
mov rcx, r12
call fcn.1400a6970
mov r13d, 0xfffff027
mov rcx, r15
call fcn.1400a6970
jmp 0x1400ccccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400ccc68
mov ecx, eax
call fcn.1400ab4e0
mov r13d, eax
jmp 0x1400cccc7
mov rax, qword [rsp + 0x4a8]
mov dword [rsp + 0x28], edx
xor edx, edx
mov r9d, 0xffffffff
mov qword [rsp + 0x38], 0
mov r8, r15
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
je 0x1400ccd78
mov rdi, qword [rsp + 0x4b0]
sub eax, 1
mov qword [rdi], rax
jmp 0x1400cccc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ccd16
mov r13d, 0xfffff019
jmp 0x1400ccccc

Function at 0x1400cd6e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400cd6f0
xor eax, eax
add rsp, 0x28
ret
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400cd6e9
mov eax, 0xfffff01a
jmp 0x1400cd6eb
Function at 0x1400cd710
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x14029f4d0]
call rsi
mov r12, rax
test rax, rax
je 0x1400cd8e4
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14029f4eb]
mov rcx, rax
call rbx
lea rdx, str.RtlNtStatusToDosError
mov rcx, r12
mov qword [0x1405847e0], rax
call rbx
mov qword [0x1405847d8], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtDeviceIoControlFile
mov rcx, r12
call rbx
mov qword [0x1405847d0], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtQueryInformationFile
mov rcx, r12
call rbx
mov qword [0x1405847c8], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtSetInformationFile
mov rcx, r12
call rbx
mov qword [0x1405847c0], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtQueryVolumeInformationFile
mov rcx, r12
call rbx
mov qword [0x1405847b8], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtQueryDirectoryFile
mov rcx, r12
call rbx
cmp qword [0x1405847b8], 0
mov qword [0x1405847b0], rax
je 0x1400cd8d0
lea rdx, str.NtQuerySystemInformation
mov rcx, r12
call rbx
mov qword [0x1405847a8], rax
test rax, rax
je 0x1400cd8d0
lea rdx, str.NtQueryInformationProcess
mov rcx, r12
call rbx
mov qword [0x1405847a0], rax
test rax, rax
je 0x1400cd8d0
lea rcx, [0x14029f5c5]
call rsi
mov rcx, rax
test rax, rax
je 0x1400cd8e4
lea rdx, str.GetQueuedCompletionStatusEx
call rbx
lea rcx, str.powrprof.dll
mov r8d, 0x800
xor edx, edx
mov qword [0x140584798], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rcx, rax
test rax, rax
je 0x1400cd885
lea rdx, str.PowerRegisterSuspendResumeNotification
call rbx
mov qword [0x140584790], rax
lea rcx, str.user32.dll
call rsi
mov rcx, rax
test rax, rax
je 0x1400cd8a6
lea rdx, str.SetWinEventHook
call rbx
mov qword [0x140584788], rax
lea rcx, str.ws2_32.dll
call rsi
mov rcx, rax
test rax, rax
je 0x1400cd8c7
lea rdx, str.GetHostNameW
call rbx
mov qword [0x140584780], rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetProcAddress
mov ecx, eax
call fcn.1400ab420
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetModuleHandleA
mov ecx, eax
call fcn.1400ab420
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400cda00
Capabilities:
Initialize winsock library

Disassembly:
push r12
push rbx
sub rsp, 0x468
xor edx, edx
lea r8, [0x140584810]
lea rcx, str.0.0.0.0
call fcn.1400a8920
test eax, eax
jne 0x140269260
xor edx, edx
lea r8, [0x1405847f0]
lea rcx, [0x14029f668]
call fcn.1400a8970
test eax, eax
jne 0x140269260
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x1400cdabb
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400cdb84
mov rbx, qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
mov edx, 1
mov dword [0x140584824], 1
mov ecx, 2
call rbx
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cdb30
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
mov dword [0x140584820], 1
call rbx
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cdad0
add rsp, 0x468
pop rbx
pop r12
ret
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400cdb16
test byte [rsp + 0x1e2], 2
je 0x1400cdb16
mov dword [0x140584820], 0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
add rsp, 0x468
pop rbx
pop r12
ret
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400cdb76
test byte [rsp + 0x1e2], 2
je 0x1400cdb76
mov dword [0x140584824], 0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400cda99
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.1400ab420
nop
nop word cs:[rax + rax]
nop