joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140157e80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140148f80
mov qword [rsi], 0
test rax, rax
je 0x140157ed3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140157f07
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140157ecb
mov qword [rsi], rbx
call fcn.1401552f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140155bc0
lea rcx, [rsi + 0x20]
call fcn.140161c80
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1401552f0
mov rcx, qword [rsi]
call fcn.140145540
mov qword [rsi], 0
jmp 0x140157eb9
Function at 0x14015fcc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140286d20]
mov ecx, dword [0x140283248]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015fd20
mov rsi, qword [0x140286d18]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14018d030
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140286d20]
call fcn.14018bc90
cmp dword [0x140286d20], 0xffffffff
jne 0x14015fcfc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14018f180
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14018bb3c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140286d68]
mov ecx, dword [0x140283248]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015fde0
lea r8, [0x140286d38]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400ef300
mov qword [0x140286d18], rsi
lea rcx, [0x140286d20]
call fcn.14018bd28
jmp 0x14015fcfc
lea rcx, [0x140286d68]
call fcn.14018bc90
cmp dword [0x140286d68], 0xffffffff
jne 0x14015fdb1
xorps xmm0, xmm0
movups xmmword [0x140286d58], xmm0
movups xmmword [0x140286d48], xmm0
movups xmmword [0x140286d38], xmm0
lea rcx, [0x140286d38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140286d68]
call fcn.14018bd28
jmp 0x14015fdb1

Function at 0x140167ca0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140276e94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140167cd4
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140167cd4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140167cce

Function at 0x14016c7f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x14016c82c
je 0x14016c82b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x140258840]
nop word [rax + rax]
movzx r10d, byte [rdx + r8]
movzx r11d, al
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14016c810
ret
int3
Function at 0x140176420
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 0
mov eax, dword [0x140283248]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1a8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1a8]
mov qword [rax + 0x1a8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
mov rax, qword [0x14024e4c0]
movzx eax, byte [rax + 0x7f]
test al, al
setne byte [rsi + 0x30]
jne 0x1401764bd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14018d030
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsi + 0x20]
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x20]
mov rcx, rdx
mov rdx, rdi
call qword [0x1402655f0]
mov rax, qword [rdi]
mov qword [rbx], rax
jmp 0x1401764a5

Function at 0x140176cc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14010b8e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14028b708]
lea rdx, [0x14010b780]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140176d54
cmp dword [0x14028b710], 0
jne 0x140176d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14028b714]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140176d50
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14018d030
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140176d38
call fcn.1401a4f50
int3
Function at 0x140188630
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test edx, edx
jne 0x140188711
movabs rax, 0xfffffffc00000000
and rax, rsi
cmp rax, qword [0x140276788]
jne 0x140188673
mov rcx, rsi
call fcn.1401599c0
mov ecx, 0x30
call fcn.14018bb3c
mov rdi, rax
lea rdx, [0x14020e5e0]
lea r8, [0x140167330]
mov rcx, rax
call fcn.140155a70
lea rax, [fcn.140188630]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rsi
mov qword [rsp + 0x28], rdi
mov rax, qword [rsi + 0x98]
mov edi, dword [rax + 0x40]
mov r14, qword [rax + 0x30]
cmp byte [rax + 0x48], 0
je 0x140188802
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rsi + 8]
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
je 0x140188790
lea rcx, [rsi + 0xc8]
mov r9, qword [r14 + 0x10]
mov edx, 0x4a
mov r8d, edi
call fcn.14015cba0
movsxd rcx, edi
call fcn.140188490
lea rcx, [rsp + 0x28]
call fcn.140155b20
mov rax, qword [rsi + 0x98]
mov rcx, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rcx, rcx
je 0x140188733
lock dec dword [rcx + 8]
je 0x140188829
mov rax, qword [rsi + 0x98]
mov dword [rax + 0x40], 0
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x140188826
lea rbx, [rsp + 0x30]
mov qword [rbx], rcx
mov qword [rsi + 0xa0], 0
mov rax, qword [rcx + 8]
mov edx, edi
call qword [0x1402655f0]
mov rcx, rbx
call fcn.140155b20
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14018d030
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, eax
cmp eax, 0x2733
jne 0x14018883f
mov byte [rsi + 0x91], 1
lea rcx, [rsi + 0xa8]
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.140155ab0
mov rsi, qword [rsi + 0x98]
lea rbx, [rsi + 0x78]
lea rdx, str.WatchForRead
lea r8, str....._net_socket_tcp_socket_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xcf
call fcn.1401552d0
mov rdx, qword [rsi + 8]
add rsi, 0x58
mov rcx, rbx
mov r8, rsi
mov r9, r14
call fcn.140145630
mov rcx, rdi
jmp 0x140188773
mov rdx, qword [rax + 8]
mov rcx, qword [rsi + 8]
mov r8d, 0x21
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rax, qword [rsi + 0x98]
mov byte [rax + 0x48], 1
jmp 0x1401886c2
int3
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1402655f0]
jmp 0x140188733
mov ecx, ebx
call fcn.14011ffc0
mov edi, eax
lea rcx, [rsi + 0xc8]
mov edx, 0x4c
mov r8d, eax
mov r9d, ebx
call fcn.14021aaf0
lea rcx, [rsp + 0x28]
call fcn.140155b20
cmp edi, 0xffffffff
jne 0x140188711
jmp 0x140188778

Function at 0x14018c3a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14018c3ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14018c3ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14018c3ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14018c3ea
cmp dword [rcx + 0x84], 0xe
jbe 0x14018c3ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14018c3ec
xor al, al
add rsp, 0x28
ret
Function at 0x14018c850
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14018c8c8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14018c8c8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14018c8c8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14018c8bc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14018c8da
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14018c8aa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14018c8ca

Function at 0x14019f638
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14019f66f
call fcn.1401a26bc
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401a4ff8
xor eax, eax
jmp 0x14019f6fd
mov rdx, r9
mov rcx, r8
call fcn.14019f720
mov rbx, rax
test rax, rax
je 0x14019f6fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14019f790]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14019f6e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401a26fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14019f6ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14019f6dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14015a120
jmp 0x14019f6fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14019f6f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401a2a20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140233578]
mov rbp, rcx
call fcn.1401b79f4
xor edi, edi
test rax, rax
je 0x1401a2b06
mov ebx, edi
call fcn.1401a26bc
mov r14d, dword [rax]
call fcn.1401a26bc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401a89d0
mov rsi, rax
test rax, rax
je 0x1401a2a97
call fcn.1401a26bc
mov dword [rax], r14d
jmp 0x1401a2ac1
call fcn.1401a26bc
cmp dword [rax], 0x22
jne 0x1401a2afe
call fcn.1401a26bc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401a89d0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401a2afe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401a2ac5
cmp rax, 3
je 0x1401a2ae0
mov rcx, rsi
call fcn.1401a297c
test al, al
je 0x1401a2af1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401a2af1
mov dil, 1
mov rcx, rbx
call fcn.14015a120
mov al, dil
jmp 0x1401a2b08
mov rcx, rbx
call fcn.14015a120
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14018d030
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401af510
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401af538
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401af538
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1401b91b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401b30b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401b9259
cmp ebx, dword [rsp + 0x30]
je 0x1401b9252
test esi, esi
je 0x1401b9252
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b922d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b923a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b9217
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b923e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b925b
mov eax, 1
jmp 0x1401b925b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ba5c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401ba5f8
xor eax, eax
jmp 0x1401ba6bb
mov rbp, rbx
cmp word [rax], si
je 0x1401ba61d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ba604
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ba600
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401ba4e8
movsxd r14, eax
test eax, eax
jne 0x1401ba65b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ba5f1
mov rcx, r14
call fcn.1400e7fd0
mov rdi, rax
test rax, rax
jne 0x1401ba674
xor ecx, ecx
call fcn.14015a120
jmp 0x1401ba650
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401ba4e8
test eax, eax
jne 0x1401ba6a5
mov rcx, rdi
call fcn.14015a120
jmp 0x1401ba6af
xor ecx, ecx
call fcn.14015a120
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401ba6d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401ba75f
mov rsi, rbx
cmp word [rax], bp
je 0x1401ba71e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401ba708
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401ba704
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e7fd0
mov rdi, rax
test rax, rax
je 0x1401ba74c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14018ead0
mov rbp, rdi
xor ecx, ecx
call fcn.14015a120
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401bcd14
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140199ea4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401bcd9e
cmp byte [rbp - 0x21], r15b
je 0x1401bcd99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401bcdd4
call fcn.1401b3884
test eax, eax
jne 0x1401bcdc0
cmp byte [rbp - 0x21], r15b
je 0x1401bcdb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401bcdd4
cmp byte [rbp - 0x21], r15b
je 0x1401bcdd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14019f4bc
test eax, eax
jne 0x1401bce74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140199ea4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401bce13
cmp byte [rbp - 0x21], r15b
je 0x1401bce48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401bce48
call fcn.1401b3884
test eax, eax
jne 0x1401bce34
cmp byte [rbp - 0x21], r15b
je 0x1401bce2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401bce48
cmp byte [rbp - 0x21], r15b
je 0x1401bce45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14019f4bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401bce74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401bce77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401bce85
mov rcx, rdi
call fcn.14015a120
cmp byte [rbp + 0x3f], r15b
je 0x1401bce94
mov rcx, qword [rbp + 0x27]
call fcn.14015a120
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1401bcf9c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401bcfe6
call fcn.1401a26dc
mov dword [rax], recvfrom
call fcn.1401a26bc
mov dword [rax], recvfrom
call fcn.1401a4ff8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14018d030
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401bcff1
lea eax, [rbx + 1]
jmp 0x1401bcfd3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401bcfd1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401bcfd3
Function at 0x1401be8c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401be8d6
mov al, 1
jmp 0x1401be936
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401be8e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401be934
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401a35cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401be934
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401be934
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401be934
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401be936
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401e16f0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401e1761
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401e176b
mov dil, 1
test bl, bl
je 0x1401e174a
cmp byte [rsi + 8], 0
je 0x1401e1766
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14018d030
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1401e171d
mov rcx, qword [rsi]
jmp 0x1401e173f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1401e1793
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401e1798
xor edi, edi
jmp 0x1401e174a
mov rcx, qword [rsi]
jmp 0x1401e1780
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1401e17bf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1401e174a
mov rcx, qword [rsi]
jmp 0x1401e17af
Function at 0x1401e1800
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x14024e4c0]
mov al, byte [rax + 0xa]
test al, al
jne 0x1401e1aad
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x14023d7d0]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.1400e11d0
cmp byte [r15 + 0x17], 0
js 0x1401e1931
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.140155d50
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1401e7890
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1401e1953
lea rax, [rsp + 0x110]
jmp 0x1401e195b
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.1401443f0
jmp 0x1401e18b2
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1401e1975
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1401e1a0b
test bl, bl
je 0x1401e1a03
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.1401552d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14014be60
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.14014bee0
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.1400ce310
cmp byte [rsp + 0x107], 0
jns 0x1401e1a2d
mov rcx, qword [rsp + 0xf0]
call fcn.14018bb78
cmp byte [rsp + 0x127], 0
jns 0x1401e1a44
mov rcx, qword [rsp + 0x110]
call fcn.14018bb78
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x14024e4c0]
mov al, byte [rax + 0xa]
test al, al
jne 0x1401e1a89
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.14018d030
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.14013f610
jmp 0x1401e1a5b
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.14013ea20
jmp 0x1401e1853