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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2d8
cmp qword [rdx + 0x70], 0xffffffffffffffff
mov rbp, rcx
mov rsi, rdx
mov rbx, r8
mov edi, r9d
mov dword [rsp + 0x48], 1
jne 0x140163290
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1401631d8
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1401631c0
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1401631c0
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x4c], 0x274
mov qword [rsp + 0x20], rax
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1401631c0
cmp dword [rsp + 0x78], 1
je 0x140163230
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x70], rbx
cmp edi, 0x17
je 0x140163218
xor eax, eax
and edx, 0x400000
jne 0x1401631f0
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x3c], eax
mov r8d, 0x79
lea rdx, str.src_win_udp.c
lea rcx, str.__handle__flags__UV_HANDLE_IPV6_
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x3c]
jmp 0x1401631b4
or edx, 0x400000
xor eax, eax
mov dword [rsi + 0x58], edx
add rsp, 0x2d8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x140163270
mov rax, qword [0x1404c90e0]
mov edx, dword [rsi + 0x58]
mov qword [rsi + 0x198], rax
mov rax, qword [0x1404c90f0]
or edx, 0x20000
mov dword [rsi + 0x58], edx
mov qword [rsi + 0x1a0], rax
jmp 0x1401631a1
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
je 0x14016319e
call rbp
jmp 0x1401631b4
mov eax, 0xfffff00e
jmp 0x1401631b4
Function at 0x1401632a0
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 0x140163319
mov ebp, r9d
and ebp, 1
je 0x1401632df
cmp word [rdx], 0x17
mov r12d, 0x57
jne 0x140163319
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1401633a0
and esi, 4
jne 0x140163330
cmp word [r13], 0x17
je 0x14016336b
mov r8d, edi
mov rdx, r13
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1401633e0
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 0x1401633e0
cmp word [r13], 0x17
mov rcx, qword [rbx + 0x70]
jne 0x1401632fa
or dword [rbx + 0x58], 0x400000
test ebp, ebp
jne 0x1401632fa
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 0x1401632fa
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 0x1401633e0
mov rcx, qword [rbx + 8]
movzx r9d, word [r13]
mov r8, rax
mov rdx, rbx
call fcn.1401630f0
mov r12d, eax
test eax, eax
jne 0x1401633f0
mov rcx, qword [rbx + 0x70]
jmp 0x1401632ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r12d, eax
jmp 0x140163319
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140163319
Function at 0x140163620
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 0x140163674
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, r10
call fcn.140143b50
test eax, eax
jne 0x1401636e4
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 0x140163710
test ebp, ebp
jne 0x140163718
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 0x1401636f8
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.140146240
jmp 0x1401636e4
mov r8d, 0x2d
jmp 0x1401636be
mov eax, 0xfffff019
jmp 0x1401636e4
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 0x140164328
mov rdx, qword [0x1404c90b0]
mov r9d, 4
mov r8d, 0x1c
call fcn.1401632a0
test eax, eax
jne 0x140164310
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 0x140163620
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140146240
mov eax, 0xfffff019
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x140164180
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 0x140164250
mov rdx, qword [0x1404c90b0]
mov r9d, 4
mov r8d, 0x1c
call fcn.1401632a0
mov r12d, eax
test eax, eax
jne 0x140164270
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
test r13, r13
je 0x140164207
xor edx, edx
lea r8, [rsp + 0x50]
mov rcx, r13
call fcn.140143b50
test eax, eax
jne 0x140164250
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
movdqu xmm0, xmmword [rdi + 8]
movaps xmmword [rsp + 0x30], xmm0
test esi, esi
je 0x140164268
mov r8d, 0xc
cmp esi, 1
jne 0x140164250
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 0x140164288
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 0x140164220
mov ecx, eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140146240
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140146240
mov r12d, eax
jmp 0x140164241
Function at 0x1401642a0
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 0x140163674
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, r10
call fcn.140143b50
test eax, eax
jne 0x1401636e4
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 0x140163710
test ebp, ebp
jne 0x140163718
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 0x1401636f8
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.140146240
jmp 0x1401636e4
mov r8d, 0x2d
jmp 0x1401636be
mov eax, 0xfffff019
jmp 0x1401636e4
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 0x140164328
mov rdx, qword [0x1404c90b0]
mov r9d, 4
mov r8d, 0x1c
call fcn.1401632a0
test eax, eax
jne 0x140164310
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 0x140163620
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140146240
mov eax, 0xfffff019
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x140164c50
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r14, qword [rsp + 0xe0]
mov ebp, dword [rsp + 0xe8]
mov r15, qword [rsp + 0xf0]
mov rsi, rcx
mov rbx, rdx
mov r12, r8
mov r13d, r9d
test byte [rdx + 0x59], 0x20
jne 0x140164cb8
cmp ebp, 0x10
je 0x140164ec0
cmp ebp, 0x1c
jne 0x140164ee0
mov rdx, qword [0x1404c90b0]
xor r9d, r9d
mov r8d, ebp
mov rcx, rbx
call fcn.1401632a0
test eax, eax
jne 0x140164e26
lea rax, [rsi + 0x40]
mov rdi, qword [rbx + 8]
mov dword [rsp + 0x30], ebp
mov r8d, r13d
mov qword [rsi + 0x40], 0
lea r9, [rsp + 0x6c]
mov rdx, r12
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x58], 0
mov rcx, qword [rbx + 0x70]
mov dword [rsi + 8], 5
mov qword [rsi + 0x70], rbx
mov qword [rsi + 0x78], r15
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x140164d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140164e18
mov edx, r13d
mov rcx, r12
call fcn.1401441d0
mov qword [rsi + 0x60], rax
add qword [rbx + 0x60], rax
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], edx
test eax, eax
jne 0x140164e40
mov eax, dword [rbx + 0x58]
test al, 4
je 0x140164e70
add dword [rdi + 0x20], 1
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [rbx + 0x58]
test edx, 0x20000
je 0x140164d38
mov ecx, dword [rbx + 0x7c]
mov qword [rsi + 0x60], 0
add dword [rbx + 0x78], 1
lea r8d, [rcx + 1]
add qword [rbx + 0x68], 1
mov dword [rbx + 0x7c], r8d
test ecx, ecx
je 0x140164e90
test r8d, r8d
jg 0x140164de6
mov dword [rsp + 0x5c], eax
mov r8d, 0x1ae
lea rdx, str.src_win_udp.c
lea rcx, str.__handle____activecnt___0
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rsp + 0x5c]
mov rdx, qword [rdi + 0x48]
add dword [rdi + 0x20], 1
mov qword [rsi + 0x68], 0
test rdx, rdx
je 0x140164ed0
mov rcx, qword [rdx + 0x68]
mov qword [rsi + 0x68], rcx
mov qword [rdx + 0x68], rsi
mov qword [rdi + 0x48], rsi
jmp 0x140164d76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140164d76
mov ecx, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140146240
test edx, edx
jg 0x140164d70
mov r8d, 0x1b6
lea rdx, str.src_win_udp.c
lea rcx, str.__handle____activecnt___0
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x140164d70
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x140164d70
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
jmp 0x140164d70
test dl, 4
jne 0x140164de6
mov ecx, edx
or ecx, 4
and edx, 8
mov dword [rbx + 0x58], ecx
je 0x140164de6
mov rdx, qword [rbx + 8]
add dword [rdx + 8], 1
jmp 0x140164de6
mov rdx, qword [0x1404c90a0]
jmp 0x140164ca2
mov qword [rsi + 0x68], rsi
mov qword [rdi + 0x48], rsi
jmp 0x140164d76
mov eax, 0xfffff019
jmp 0x140164d76
Function at 0x140164ef0
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov edi, dword [rsp + 0x130]
mov rbx, rcx
mov r13, rdx
mov esi, r8d
mov r12, r9
test r8d, r8d
je 0x140164ff0
test r12, r12
je 0x140164f34
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1401688f0
test eax, eax
jne 0x140164fb9
cmp qword [rbx + 0x68], 0
jne 0x140165023
test byte [rbx + 0x59], 0x20
jne 0x140164f70
cmp edi, 0x10
je 0x140165010
cmp edi, 0x1c
jne 0x14016501c
mov rdx, qword [0x1404c90b0]
xor r9d, r9d
mov r8d, edi
mov rcx, rbx
call fcn.1401632a0
test eax, eax
jne 0x140164fd6
lea rax, [rsp + 0x60]
mov r8d, esi
mov dword [rsp + 0x30], edi
mov rcx, qword [rbx + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x5c]
mov rdx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
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 0x140164fd0
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140146240
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov r8d, 0x471
lea rdx, str.src_win_udp.c
lea rcx, str.nbufs___0
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x140164f1a
mov rdx, qword [0x1404c90a0]
jmp 0x140164f5e
mov eax, 0xfffff019
jmp 0x140164fb9
mov eax, 0xfffff008
jmp 0x140164fb9
Function at 0x1401652e0
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 0x140165450
test rdx, rdx
je 0x140165450
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edx, edx
xor ecx, ecx
call rdi
mov r13d, eax
test eax, eax
je 0x140165418
mov ecx, eax
add rcx, rcx
call fcn.1401419c0
mov r12, rax
test rax, rax
je 0x140165457
mov rdx, rax
mov ecx, r13d
call rdi
test eax, eax
je 0x140165410
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 0x140165430
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 0x140165410
mov rdx, qword [rbx]
mov ecx, edx
cmp edx, eax
jl 0x14016545e
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.1401419e0
test esi, esi
je 0x140165418
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.1401419e0
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.140146240
cmp eax, 3
je 0x140165440
xor eax, eax
mov word [rdx], ax
jmp 0x14016535b
cmp word [r12 + 2], 0x3a
jne 0x140165435
jmp 0x14016535b
mov eax, 0xfffff019
jmp 0x1401653fd
mov eax, 0xfffff027
jmp 0x1401653fd
mov rcx, r12
mov dword [rsp + 0x4c], eax
call fcn.1401419e0
movsxd rax, dword [rsp + 0x4c]
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x1401653fd
Function at 0x140165480
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 0x140165628
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 0x140165568
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.1401419c0
mov r12, rax
test rax, rax
je 0x140165632
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 0x140165563
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140165560
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, r12
mov ecx, edi
call rsi
mov ebx, eax
cmp rdi, rbx
jb 0x140165588
cmp word [r12 + rbp - 2], 0x5c
je 0x1401655b0
cmp rdi, 1
jbe 0x140165547
cmp word [r12 + 2], 0x3a
je 0x1401655e0
mov rcx, r12
call fcn.1401419e0
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, r12
call fcn.1401419e0
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.140146240
mov rcx, r12
call fcn.1401419e0
lea rcx, [rbx + rbx]
call fcn.1401419c0
mov r12, rax
xor eax, eax
test r12, r12
je 0x140165551
mov rdx, r12
mov ecx, ebx
call rsi
jmp 0x140165527
cmp rdi, 3
je 0x1401655d0
sub rdi, 1
xor ecx, ecx
mov word [r12 + rdi*2], cx
jmp 0x140165534
cmp word [r12 + 2], 0x3a
jne 0x1401655b6
nop dword [rax]
movzx eax, word [r12]
lea edx, [rax - 0x41]
cmp dx, 0x19
jbe 0x1401655fe
lea edx, [rax - 0x61]
sub eax, 0x20
cmp dx, 0x19
ja 0x140165547
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 0x140165547
mov eax, 0xfffff019
jmp 0x140165551
mov eax, 0xfffff027
jmp 0x140165551

Function at 0x140165660
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 0x140165690
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 0x1401656e0
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 0x140165737
jmp 0x140165760
mov rdx, rsi
mov rcx, r12
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140165760
cmp dword [rsp + 0x28], ebx
jne 0x140165728
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 0x140165742
Function at 0x140166460
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 0x1401665d0
test rdx, rdx
je 0x1401665d0
cmp qword [rdx], 0
je 0x1401665d0
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 0x140166588
lea rcx, [rax + rax + 2]
call fcn.1401419c0
mov r12, rax
test rax, rax
je 0x1401665d7
lea ecx, [rbx + 1]
mov rdx, rax
call rbp
mov eax, eax
test rax, rax
je 0x140166580
cmp word [r12 + rax*2 - 2], 0x5c
je 0x1401665a0
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 0x140166580
mov rdx, qword [rsi]
mov eax, eax
cmp rax, rdx
ja 0x1401665de
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.1401419e0
test ebx, ebx
je 0x140166588
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.1401419e0
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.140146240
cmp rax, 3
je 0x1401665b8
xor edx, edx
mov word [r12 + rax*2 - 2], dx
jmp 0x1401664dc
cmp word [r12 + 2], 0x3a
jne 0x1401665a6
jmp 0x1401664dc
mov eax, 0xfffff019
jmp 0x14016656d
mov eax, 0xfffff027
jmp 0x14016656d
mov rcx, r12
mov qword [rsp + 0x48], rax
call fcn.1401419e0
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
mov eax, 0xfffff024
jmp 0x14016656d
Function at 0x140166ce0
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 0x140166eae
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 0x140166df8
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 0x140166dc8
mov ecx, dword [rsp + 0x34]
add rcx, rcx
call fcn.1401419c0
mov r12, rax
test rax, rax
je 0x140166ec2
mov rcx, qword [rsp + 0x38]
mov r8, r13
mov rdx, rax
call rdi
test eax, eax
je 0x140166e70
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 0x140166e10
call rsi
mov rcx, r12
mov r13d, eax
call fcn.1401419e0
cmp r13d, 0x7a
je 0x140166eb8
mov ecx, r13d
call fcn.140146240
jmp 0x140166de0
call rsi
mov rcx, qword [rsp + 0x38]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r12d
call fcn.140146240
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.140146240
jmp 0x140166de0
mov qword [rbx + 0x18], 0
lea r8, [rbx + 0x18]
mov edx, 0xffffffff
mov rcx, r12
call fcn.140166640
mov rcx, r12
mov dword [rsp + 0x2c], eax
call fcn.1401419e0
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140166de0
mov qword [rbx], 0
mov r8, rbx
mov edx, 0xffffffff
mov rcx, r14
call fcn.140166640
test eax, eax
jne 0x140166e98
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx + 0x10], 0
jmp 0x140166de0
call rsi
mov rcx, qword [rsp + 0x38]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1401419e0
mov ecx, r13d
call fcn.140146240
jmp 0x140166de0
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x2c], eax
call fcn.1401419e0
mov eax, dword [rsp + 0x2c]
jmp 0x140166de0
mov eax, 0xfffff019
jmp 0x140166de0
mov eax, 0xfffff027
jmp 0x140166de0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff027
jmp 0x140166de0