joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac110
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400ac234
cmp r8d, 0xff
jne 0x1400ac171
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400ac15b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xd0c20]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140088a70
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140088a70
cmp r8d, 0xfb
jne 0x1400ac183
lea r9, str.WILL
jmp 0x1400ac1c1
cmp r8d, 0xfc
jne 0x1400ac195
lea r9, str.WONT
jmp 0x1400ac1c1
cmp r8d, 0xfd
jne 0x1400ac1a7
lea r9, [0x1400d1644]
jmp 0x1400ac1c1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400ac21d
cmp r10d, 0x27
jg 0x1400ac1f4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xd1240]
test r8, r8
jne 0x1400ac204
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140088a70
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400ac1db
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140088a70
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140088a70
add rsp, 0x38
ret

Function at 0x1400ac580
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400ac5df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400888f0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400ac110
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ac790
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400ac938
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400ac7f5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400ac7f5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400ac7f5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400ac82c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400ac882
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ac882
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ac882
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ac882
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ac882
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400ac240
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400ac8e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400888f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400ac610
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400ac930
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400888f0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400ae0a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401290c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400ae135
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400ae196
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400888f0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c11b0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400ae251
sub ecx, 1
je 0x1400ae2c4
sub ecx, 1
je 0x1400ae200
cmp ecx, 1
je 0x1400ae1e3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400d5a28]
call fcn.1400888f0
jmp 0x1400ae2c4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400addd0
test eax, eax
je 0x1400ae2c4
jmp 0x1400ae16a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400ae2c4
sub rax, rsi
cmp rax, rbp
jae 0x1400ae2c4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140088a70
jmp 0x1400ae2c4
cmp r8d, 4
jle 0x1400ae2c4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400ae2c4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140088810
mov esi, eax
test eax, eax
je 0x1400ae2a3
mov edx, 5
mov rcx, rbx
call fcn.1400aed90
mov eax, esi
jmp 0x1400ae16a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400971c0
mov rcx, r14
call fcn.1400974a0
test eax, eax
je 0x1400ae168
mov edx, 5
mov rcx, rbx
call fcn.1400aed90
mov eax, Ordinal_46
jmp 0x1400ae16a
Function at 0x1400c1060
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c10a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c10e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c1142
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c1100
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c1183
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d4802]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d4803]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c1150
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c1fb8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400c2282
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c2287
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400c22d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c22d0
dec r8
sub rdx, 1
jne 0x1400c22b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001930
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x250
lea rsi, fcn.1401370c0
movq xmm0, rsi
mov r9, qword [r8 + 8]
mov r8, qword [r8]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x28], r9
mov rax, rcx
lea rcx, [rsp + 0x30]
movq xmm1, rbx
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x20]
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x30], xmm0
movdqu xmm0, xmmword [0x140284ad0]
movups xmmword [rsp + 0x40], xmm0
call rax
mov rdi, qword [fcn.140124330]
mov ecx, 2
call rdi
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rsi
cmp rcx, rbx
je 0x1400019d5
call fcn.140279780
nop
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
Function at 0x140003f40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x698
lea rbp, fcn.1401370c0
xor r9d, r9d
movq xmm0, rbp
mov r10, qword [rdx]
mov r11, qword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
lea rdi, [rsp + 0x80]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x38], rdx
mov rbx, rcx
movq xmm1, rdi
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r13
punpcklqdq xmm0, xmm1
mov qword [rsp + 0x40], r10
movups xmmword [rsp + 0x60], xmm0
movdqu xmm0, xmmword [0x140284ad0]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x70], xmm0
call fcn.1401366e0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov esi, eax
mov ecx, eax
call qword [sym.imp.msvcrt.dll__isatty]
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
test eax, eax
jne 0x140004020
mov r9, rbx
mov r8, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, r12
jb 0x140004142
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rbp
cmp rcx, rdi
je 0x14000400c
call fcn.140279780
nop
add rsp, 0x698
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rsp + 0x40], rcx
mov rdx, r13
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x48], r12
call fcn.140001a90
mov rax, qword [rsp + 0x290]
mov dword [rsp + 0x5c], 0
mov ecx, esi
mov r12, qword [rsp + 0x288]
lea rbx, [rax - 1]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
lea r9, [rsp + 0x5c]
mov r8d, ebx
mov rdx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x1400040b1
lea rax, fcn.140137220
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x140003ff7
call fcn.140279780
jmp 0x140003ff7
mov ecx, 0x10
call fcn.1402798b0
lea rdx, str.failed_to_write_to_console
mov rcx, rax
mov rsi, rax
call fcn.14022a3a0
lea rax, [0x1402b7240]
lea r8, [0x140001650]
mov rcx, rsi
mov qword [rsi], rax
lea rdx, [0x1402b2380]
call fcn.140279f20
mov rbx, rax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rbp
cmp rcx, rdi
je 0x140004104
call fcn.140279780
mov rcx, rbx
call fcn.1401157b0
mov rcx, rsi
mov rbx, rax
call fcn.140279bc0
lea rax, fcn.140137220
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x1400040f0
call fcn.140279780
jmp 0x1400040f0
mov ecx, 0x18
call fcn.1402798b0
mov rsi, rax
call qword [sym.imp.msvcrt.dll__errno]
mov edx, dword [rax]
lea rbx, str.cannot_write_to_file
mov r8, r13
mov rcx, rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0x14
call fcn.140137030
lea r8, [0x140001690]
lea rdx, [0x1402b23a0]
mov rcx, rsi
call fcn.140279f20
mov rbx, rax
jmp 0x140004117
Function at 0x140008040
Capabilities:
Get hostname

Disassembly:
push rsi
push rbx
sub rsp, 0x128
mov edx, 0x100
lea rsi, [rsp + 0x20]
mov rbx, rcx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
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
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1400081e0
mov rax, rbx
mov qword [rbx], 0
mov qword [rbx + 8], 0
add rsp, 0x128
pop rbx
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call fcn.1400487c0
mov rax, rbx
add rsp, 0x128
pop rbx
pop rsi
ret
Function at 0x1400089a0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1402f9168], 0
mov rbp, rcx
mov rsi, rdx
mov r12, r8
je 0x140008b10
mov rbx, qword [0x1402f9150]
test rbx, rbx
je 0x140008a60
lea r13, [0x1402f9148]
mov rdi, r13
nop dword [rax]
cmp qword [rbx + 0x28], 0
je 0x140008a00
cmp qword [rsi + 8], 0
je 0x140008a00
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x20]
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x140008a38
nop
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400089e0
cmp rdi, r13
je 0x140008a60
cmp qword [rsi + 8], 0
jne 0x140008a40
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.1400488b0
mov rax, rbp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbx, qword [rbx + 0x18]
jmp 0x140008a07
cmp qword [rdi + 0x28], 0
je 0x140008a18
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsi]
call sub.msvcrt.dll_strcmp
test eax, eax
jns 0x140008a18
nop word [rax + rax]
cmp qword [r12 + 0x28], 0
je 0x140008b20
mov rbx, qword [r12 + 0x10]
lea r13, [r12 + 8]
mov rdi, r13
test rbx, rbx
je 0x140008b20
nop word [rax + rax]
cmp qword [rbx + 0x28], 0
je 0x140008ab0
cmp qword [rsi + 8], 0
je 0x140008ab0
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x20]
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x140008b00
nop word cs:[rax + rax]
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140008a88
cmp r13, rdi
je 0x140008b20
cmp qword [rsi + 8], 0
je 0x140008a18
cmp qword [rdi + 0x28], 0
je 0x140008a18
mov rcx, qword [rsi]
mov rdx, qword [rdi + 0x20]
mov qword [rsp + 0x28], rcx
call sub.msvcrt.dll_strcmp
mov rcx, qword [rsp + 0x28]
test eax, eax
jns 0x140008a18
jmp 0x140008b23
mov rbx, qword [rbx + 0x18]
jmp 0x140008ab7
call fcn.140008270
jmp 0x1400089c3
mov rcx, qword [rsi]
call sub.msvcrt.dll_getenv
mov rcx, rbp
mov rdx, rax
call fcn.1400487c0
mov rax, rbp
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140010550
Capabilities:
Set console window title

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rax, [0x1402b7450]
mov qword [rcx], rax
mov rbx, rcx
mov rdi, rdx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 1
call fcn.1400ae800
cmp eax, 0xe
je 0x1400105a0
cmp eax, 7
je 0x1400105a0
mov rax, qword [0x1402af6f0]
mov byte [rax], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 0x158
call fcn.1402797d0
mov qword [rbx + 8], rax
mov rsi, rax
call fcn.1400a23a0
xor r9d, r9d
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call fcn.1400bf1e0
test eax, eax
js 0x14001058b
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.1400c1190
mov rax, qword [rbx + 8]
mov ecx, 0xfffffff6
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001060f
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x140010648
cmp byte [rdi], 0
je 0x140010595
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14001ac90
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140010595
call fcn.140279770
jmp 0x140010595
mov edx, dword [rsp + 0x20]
mov rcx, rbx
and edx, 0xffffffbf
mov dword [rsp + 0x20], edx
or dl, 0x80
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x14001060f
Function at 0x1400486c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
lea r10, [0x1402f9640]
mov r8, rcx
lea r9, [rcx + rdx]
test rdx, rdx
jne 0x140048728
jmp 0x140048750
lea rdx, [rax + 1]
mov eax, dword [r10 + rax*4]
add r8, 1
mov qword [0x1402fa000], rdx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
shr rax, 0x18
mov byte [r8 - 1], al
cmp r9, r8
je 0x140048750
mov rax, qword [0x1402fa000]
cmp rax, 0x26f
jbe 0x1400486e0
mov rcx, r10
call fcn.140237e00
mov rax, qword [0x1402fa000]
jmp 0x1400486e0
add rsp, 0x28
ret

Function at 0x14006daf0
Capabilities:
Get system firmware table

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rbp, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rdi, rcx
mov ecx, 0x52534d42
call rbp
mov r12, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
call r12
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14006dbf1
xor edx, edx
mov r9d, esi
mov r8, rax
mov ecx, 0x52534d42
call rbp
cmp esi, eax
jne 0x14006dbe0
movzx eax, byte [rbx + 1]
movzx edx, byte [rbx + 2]
lea rsi, [0x14006da70]
mov rcx, rdi
movq xmm0, rsi
lea rsi, [rsp + 0x20]
shl edx, 8
shl eax, 0x10
mov r8, rsi
add eax, edx
movzx edx, byte [rbx + 3]
add eax, edx
lea rdx, [rbx + 8]
mov dword [rdi + 0x5c], eax
mov eax, dword [rbx + 4]
mov qword [rsp + 0x28], 0
mov dword [rdi + 0x58], eax
lea rax, [0x14006dac0]
movq xmm1, rax
mov qword [rsp + 0x20], rbx
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.14006d980
mov ebx, eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14006dbcf
mov r8d, 3
mov rdx, rsi
mov rcx, rsi
call rax
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14006edd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test dl, dl
jne 0x14006ee08
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov rax, rsi
mov r8d, 0x3000
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rax, [rcx - 1]
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r9d, 0x40
and rax, 0xffffffffffe00000
mov r8d, 0x20003000
lea rdx, [rax + 0x200000]
call rsi
test rax, rax
je 0x14006ede4
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14006eee0
Capabilities:
Manipulate user privileges

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x14006eef8
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call fcn.14006eca0
mov edx, eax
mov eax, 1
test edx, edx
je 0x14006ef20
mov byte [0x1402faa50], al
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14006ef48
xor eax, eax
jmp 0x14006ef08
lea rsi, [rsp + 0x50]
mov edx, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x14006efa8
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0x20], rsi
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14006ef08
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov edx, 1
mov rbx, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14006ef3d
pxor xmm0, xmm0
xor ecx, ecx
lea r9, [rsp + 0x38]
mov rdx, rsi
mov r8d, 0xf0fff
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x14006f020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x14006ef08
lea rsi, str.SeLockMemoryPrivilege
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea edx, [rax + 1]
movzx ecx, ax
mov eax, edx
mov rdx, qword [rbx]
shl eax, 0x10
or eax, ecx
mov rcx, qword [rsp + 0x38]
movd xmm0, eax
psllw xmm0, 1
movd dword [rsp + 0x40], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
je 0x14006f078
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
jmp 0x14006f00f
lea rdx, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
mov ecx, 5
call fcn.140011290
mov rcx, qword [rsp + 0x38]
call sub.ADVAPI32.dll_LsaClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.14006eca0
test eax, eax
setne al
jmp 0x14006ef08