joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140146f80
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rdx - 1]
mov rdi, rdx
mov rbx, rcx
cmp rax, 0x3f
ja 0x14014705a
xor eax, eax
mov byte [rsp + 0x20], dil
xor edx, edx
mov qword [rsp + 0x32], rax
mov r8d, 0xf0
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov word [rsp + 0x21], 0x100
mov byte [rsp + 0x23], 1
mov dword [rsp + 0x24], 0
mov word [rsp + 0x30], 0
call fcn.140330340
movaps xmm0, xmmword [0x140405ba0]
mov rax, qword [rsp + 0x20]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x140405bb0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x140405bc0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x140405bd0]
movups xmmword [rbx + 0x30], xmm1
xor qword [rbx], rax
mov rax, qword [rsp + 0x30]
xor qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x38]
xor qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x40]
xor qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x48]
xor qword [rbx + 0x28], rax
xor qword [rbx + 8], 0
movzx eax, dil
mov dword [rbx + 0xe4], eax
xor eax, eax
jmp 0x140147078
cmp byte [rcx + 0xe8], 0
je 0x14014706b
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [rcx + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403115a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14014b5c0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0xab0]
mov ecx, dword [0x1404a3f58]
movdqa xmm4, xmmword [0x14044f1e0]
add rcx, rax
movdqa xmm5, xmmword [0x14044f070]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm3, xmmword [rdx + 0x30]
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm6, xmmword [0x14044f0c0]
movaps xmmword [rsp], xmm7
movdqa xmm7, xmmword [0x14044f0e0]
cmp rax, rcx
jae 0x14014b650
nop word [rax + rax]
aesdec xmm0, xmm4
movdqu xmmword [rax], xmm0
aesenc xmm1, xmm5
movdqu xmmword [rax + 0x10], xmm1
aesdec xmm2, xmm6
movdqu xmmword [rax + 0x20], xmm2
aesenc xmm3, xmm7
movdqu xmmword [rax + 0x30], xmm3
add rax, 0x40
cmp rax, rcx
jb 0x14014b620
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp]
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
add rsp, 0x28
ret
Function at 0x1401555d0
Capabilities:
Delete service
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1401555f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
jne 0x140155616
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x68], rbx
mov bl, 1
mov qword [rsp + 0x70], rsi
xor esi, esi
cmp byte [rdi], sil
jne 0x14015564e
lea r8, [rsp + 0x20]
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rdi + 0x18]
test eax, eax
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
movzx ebx, bl
cmove ebx, esi
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov qword [rdi + 0x18], rsi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x50
pop rdi
ret
Function at 0x14015ee10
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x14015ee5b
test cl, 1
jne 0x14015ee5b
test cl, 4
je 0x14015ee5b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14015ee5b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x14015f006
bt eax, 0x19
jae 0x14015eec3
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, reloc.WS2_32.dll_recv
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14015f006
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14015f008
bt eax, 0x15
jb 0x14015f006
mov rcx, qword [0x1404a4b98]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14015f02e
mov eax, 2
xchg dword [0x1404a49a8], eax
cmp eax, 1
je 0x14015ef19
mov rcx, qword [0x1404a4b98]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x14015f02e
jmp 0x14015efff
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14015ef7c
lea rdx, [0x1404a4b80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14015ef7c
lock or dword [0x1404a49ac], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x14015efe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14015efef
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14015efff
mov eax, edi
jmp 0x14015f008
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x90
pop rbx
ret
call fcn.140339b18
int3
Function at 0x14015f090
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14015f0ce
mov eax, 0xffffffff
jmp 0x14015f1f7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14015f103
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x140496ba8]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x140496bb8], r11d
mov dword [0x140496bac], r8d
cmp eax, 0xffffffff
jne 0x14015f140
mov eax, r9d
jmp 0x14015f14d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x14015f162
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x140496ba8], eax
test r15b, r15b
jne 0x14015f17a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x14015f182
mov ecx, eax
jmp 0x14015f18f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14015f18f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14015f19b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x14015f1a4
mov edx, r12d
jmp 0x14015f1ad
cmp edx, r11d
jl 0x14015f1ad
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x14015f1eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x14015f0e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x14015f1ed
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401615f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
test dword [rcx + 0x58], 0x8000
mov rbx, rdx
jne 0x14016160d
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1401616ab
cmp eax, 0xc
je 0x14016165b
cmp eax, 0xe
je 0x14016162e
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1401616ab
lea r9, [rsp + 0x50]
call fcn.14015fad0
test eax, eax
je 0x140161653
mov ecx, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
jmp fcn.14016e340
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1401616ab
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1401616a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.14016e340
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret
Function at 0x1401626a0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x140162702
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.14016e340
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x14016271c
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x1401628ca
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x14016272d
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jl 0x140162750
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x14016277f
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop word [rax + rax]
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x140162770
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x140162739
lea rbx, [r15 + rcx]
mov r8d, dword [0x14072cba0]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1401627f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x1401628ca
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x14016287d
cmp r14, r15
jae 0x14016287d
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x50]
mov r8, rsi
mov rcx, qword [rcx + 8]
call fcn.14032fed0
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1401627f6
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1401627dd
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1401628b0
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.140161830
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x1401628d9
call fcn.140337980
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.14016e340
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401628f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x140162930
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.140161720
test eax, eax
je 0x140162958
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1401626a0
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call fcn.140333874
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1401629a3
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.14016e340
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x140162ab9
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1401629f5
xor eax, eax
lea r8, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401629f8
mov r13d, 1
jmp 0x1401629f8
mov r12, rbx
mov esi, ebx
nop word [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x140162a17
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x140162a5a
cmp ebx, dword [rdi + 0x170]
jb 0x140162a00
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x140162a7e
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x140162ab0
test esi, esi
jne 0x140162ab0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140162ab0
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.14016e340
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x140162ab9
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401637a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1401637e3
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1401638e6
mov ecx, 0x290
call qword [str.p3_]
mov rsi, rax
test rax, rax
je 0x1401638d9
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140163801
test rbx, rbx
jne 0x140163819
lea r14, [0x14044e638]
jmp 0x140163838
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x140163831
lea r14, str._s
cmp ax, 0x2f
jne 0x140163838
lea r14, [0x14044e6f0]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1401638d9
call qword [str.p3_]
mov r15, rax
test rax, rax
je 0x1401638d9
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.1401616c0
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.1403379a0
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1401638bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401638bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.14016e340
cdqe
jmp 0x1401638e6
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x14016392c
mov r8d, recv
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.1403379a0
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], ebx
call fcn.1403379a0
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.1403379d4]
call fcn.1403379a0
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401662d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x14016630c
xor esi, esi
test rdx, rdx
je 0x1401662f7
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140166320
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x140166349
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x140166349
cmp ax, 0x2f
jne 0x140166330
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x1401663a4
test r15, r15
je 0x140166396
mov ecx, 0x20a
call qword [str.p3_]
mov qword [r15], rax
test rax, rax
je 0x140166443
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140166396
mov rcx, qword [r15]
call fcn.14015ca10
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x140166424
mov rcx, r14
call fcn.140346adc
mov qword [r12], rax
jmp 0x140166422
xor esi, esi
test r15, r15
je 0x1401663e2
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x1401663c0
call qword [str.p3_]
jmp 0x1401663c3
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x140166443
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.1403434cc
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x1401663f9
mov rcx, rbp
call qword [str.p3_]
jmp 0x1401663fc
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x140166443
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.1403434cc
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, recv
call fcn.14016e290
int3
Function at 0x140166f10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140166f44
mov eax, 0xfffff019
jmp 0x140167013
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x140166f6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
jmp 0x140167013
cmp edx, 0x104
jbe 0x140166f7e
mov eax, 0xfffff01a
jmp 0x140167013
mov rax, rdx
mov qword [rsp + 0x280], rsi
add rax, rax
cmp rax, 0x208
jae 0x140167089
xor esi, esi
lea ecx, [rdx - 1]
add rcx, rcx
mov word [rsp + rax + 0x40], si
cmp word [rsp + rcx + 0x40], 0x5c
jne 0x140166fcc
cmp edx, 3
jne 0x140166fba
cmp word [rsp + 0x42], 0x3a
je 0x140166fcc
cmp rcx, 0x208
jae 0x140167089
mov word [rsp + rcx + 0x40], si
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14016706e
mov ecx, dword [rbx]
cmp eax, ecx
jle 0x140167034
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1403115a0
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov eax, 0x7fffffff
mov qword [rsp + 0x38], rsi
cmp qword [rbx], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
cmova ecx, eax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14016707d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
jmp 0x14016700b
dec eax
movsxd rcx, eax
xor eax, eax
mov qword [rbx], rcx
jmp 0x14016700b
call fcn.140311d40
int3

Function at 0x140167090
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x78
ret
Function at 0x1401679e0
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140167a2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016e340
jmp 0x140167b30
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x240]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140167a75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x140167aab
mov ecx, ebx
call fcn.14016e340
jmp 0x140167b30
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140167ab2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140167a21
mov eax, 0xfffff027
jmp 0x140167b30
lea r8, [rbx + 0x18]
mov qword [rsp + 0x480], rdi
mov edx, 0xffffffff
mov qword [rbx + 0x18], 0
lea rcx, [rsp + 0x240]
call fcn.140167810
test eax, eax
jne 0x140167b28
mov r8, rbx
mov qword [rsp + 0x478], rsi
lea edx, [rax - 1]
mov qword [rbx], 0
lea rcx, [rsp + 0x30]
call fcn.140167810
mov esi, eax
test eax, eax
je 0x140167b0e
mov rcx, qword [rbx + 0x18]
call fcn.14015ca10
mov eax, esi
jmp 0x140167b20
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1403115a0
add rsp, 0x460
pop rbx
ret