joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f144
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 0x14001f174
xor eax, eax
jmp 0x14001f237
mov rbp, rbx
cmp word [rax], si
je 0x14001f199
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001f180
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001f17c
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.14001f064
movsxd r14, eax
test eax, eax
jne 0x14001f1d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001f16d
mov rcx, r14
call fcn.1400191a8
mov rdi, rax
test rax, rax
jne 0x14001f1f0
xor ecx, ecx
call fcn.14001916c
jmp 0x14001f1cc
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.14001f064
test eax, eax
jne 0x14001f221
mov rcx, rdi
call fcn.14001916c
jmp 0x14001f22b
xor ecx, ecx
call fcn.14001916c
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 0x14002202c
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.140018d94
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 0x1400220cd
cmp ebx, dword [rsp + 0x30]
je 0x1400220c6
test esi, esi
je 0x1400220c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400220a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400220ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002208b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400220b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400220cf
mov eax, 1
jmp 0x1400220cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024b14
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.1400173f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140024b9e
cmp byte [rbp - 0x21], r15b
je 0x140024b99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140024bd4
call fcn.14001a324
test eax, eax
jne 0x140024bc0
cmp byte [rbp - 0x21], r15b
je 0x140024bb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140024bd4
cmp byte [rbp - 0x21], r15b
je 0x140024bd1
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.140017ca0
test eax, eax
jne 0x140024c74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400173f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140024c13
cmp byte [rbp - 0x21], r15b
je 0x140024c48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140024c48
call fcn.14001a324
test eax, eax
jne 0x140024c34
cmp byte [rbp - 0x21], r15b
je 0x140024c2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140024c48
cmp byte [rbp - 0x21], r15b
je 0x140024c45
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.140017ca0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140024c74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140024c77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140024c85
mov rcx, rdi
call fcn.14001916c
cmp byte [rbp + 0x3f], r15b
je 0x140024c94
mov rcx, qword [rbp + 0x27]
call fcn.14001916c
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 0x140001b90
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002320
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002320
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400027d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x14001d010]
movzx edx, word [r8]
cmp edx, 0x5a4d
jne 0x14000283d
movsxd rdx, dword [r8 + 0x3c]
cmp dword [r8 + rdx], 0x4550
jne 0x14000283d
add r8, rdx
movzx edx, word [r8 + 0x18]
cmp edx, 0x20b
jne 0x14000283d
movzx edx, word [r8 + 6]
test edx, edx
je 0x14000283d
sub rcx, qword [0x14001d010]
movzx eax, word [r8 + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002829
add rax, 0x28
add edx, 0xffffffff
je 0x14000283d
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002820
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002820
jmp 0x14000283f
xor eax, eax
ret

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14001d010]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002876
movsxd r8, dword [rcx + 0x3c]
cmp dword [rcx + r8], 0x4550
jne 0x140002876
movzx edx, word [rcx + r8 + 0x18]
cmp edx, 0x20b
jne 0x140002876
movzx eax, word [rcx + r8 + 6]
ret

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d010]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000291c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000291c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000291e
xor eax, eax
ret
Function at 0x140009390
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x30], 1
movabs rax, 0x1100000002
mov qword [rsp + 0x38], rax
cmp byte [r8], 0
je 0x14000940f
mov rsi, r8
mov r14, rdx
mov rbx, rcx
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000942e
mov ebp, eax
mov ecx, 2
call qword [fcn.140002320]
mov rdi, rax
cmp ebp, 0xffffff9d
jne 0x14000946c
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
jmp 0x140009473
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Unable_to_parse_empty_port_n
mov rcx, rax
call fcn.1400094d0
jmp 0x1400094b9
mov rdi, qword [rsp + 0x28]
mov eax, dword [rdi + 4]
cmp eax, 0x17
je 0x14000948a
cmp eax, 2
jne 0x140009491
cmp qword [rdi + 0x10], 0x10
jne 0x140009491
mov rax, qword [rdi + 0x20]
add rax, 2
movzx ecx, word [rax]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx], ax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
or byte [r14], 8
mov al, 1
jmp 0x1400094bb
mov ecx, ebp
call fcn.140001480
mov r8, rax
lea rdx, str._s:___s_n
mov rcx, rdi
mov r9, rsi
call fcn.1400094d0
jmp 0x1400094b9
cmp qword [rdi + 0x10], 0x1c
je 0x140009447
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Neither_IPv4_nor_IPv6_address_found:___s_n
mov rcx, rax
mov r8, rsi
call fcn.1400094d0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140009c50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
lea rdx, [0x14001e370]
mov rcx, rax
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140009db1
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0x2c
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x140009cec
mov byte [rsp + 0x4c], 0
nop
mov rcx, rsi
call sub.msvcrt.dll_getc
cmp eax, 0xffffffff
je 0x140009d18
mov ebx, eax
lea eax, [rbx - 9]
mov ecx, eax
shr cl, 5
mov edx, 1
shr edx, cl
mov ecx, eax
shl edx, cl
test edx, 0x80001f
jne 0x140009ca0
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Found_trailing_character_in_key_file:___c_n
mov rcx, rax
mov r8d, ebx
call fcn.1400094d0
jmp 0x140009d6f
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009d83
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Invalid_length_key_in_key_file_n
mov rcx, rax
call fcn.1400094d0
jmp 0x140009d6f
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009d33
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0
jne 0x140009dc1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400146c0
mov bl, 1
test al, al
jne 0x140009d71
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Key_is_not_the_correct_length_or_format:___s_n
lea r8, [rsp + 0x20]
mov rcx, rax
call fcn.1400094d0
xorps xmm0, xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call sub.msvcrt.dll_feof
test eax, eax
je 0x140009cfc
mov rcx, rsi
call sub.msvcrt.dll_ftell
test eax, eax
jne 0x140009cfc
xorps xmm0, xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov bl, 1
jmp 0x140009d71
lea rcx, [0x14001e372]
call sub.msvcrt.dll_perror
xor ebx, ebx
jmp 0x140009d79
lea rcx, [0x14001de8c]
call sub.msvcrt.dll_perror
jmp 0x140009d6f
Function at 0x140014450
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov bl, byte [rdx]
lea r9, [rdx + 3]
xor eax, eax
nop dword [rax]
mov r8, rax
movzx edi, byte [r9 - 2]
movzx r11d, byte [r9 - 1]
movzx eax, bl
shr bl, 2
shl eax, 4
mov esi, edi
shr esi, 4
and eax, 0x30
or eax, esi
mov esi, r11d
shr esi, 6
and edi, 0xf
lea r10d, [rsi + rdi*4]
and r11d, 0x3f
movzx esi, bl
mov edi, 0x19
sub edi, esi
shr edi, 8
and edi, 6
add edi, esi
mov ebx, 0x33
sub ebx, esi
shr ebx, 8
and ebx, 0x4b
sub edi, ebx
mov ebx, 0x3d
sub ebx, esi
shr ebx, 8
and ebx, 0xf
sub edi, ebx
mov ebx, 0x3e
sub ebx, esi
shr ebx, 8
and ebx, 3
add ebx, edi
add bl, 0x41
mov byte [rcx + r8*4], bl
mov esi, 0x19
sub esi, eax
shr esi, 8
and esi, 6
add esi, eax
mov edi, 0x33
sub edi, eax
shr edi, 8
and edi, 0x4b
sub esi, edi
mov edi, 0x3d
sub edi, eax
shr edi, 8
and edi, 0xf
sub esi, edi
mov edi, 0x3e
sub edi, eax
shr edi, 8
and edi, 3
add edi, esi
add dil, 0x41
mov byte [rcx + r8*4 + 1], dil
mov eax, 0x19
sub eax, r10d
shr eax, 8
and eax, 6
add eax, r10d
mov esi, 0x33
sub esi, r10d
shr esi, 8
and esi, 0x4b
sub eax, esi
mov esi, 0x3d
sub esi, r10d
shr esi, 8
and esi, 0xf
sub eax, esi
mov esi, 0x3e
sub esi, r10d
shr esi, 8
and esi, 3
add esi, eax
add sil, 0x41
mov byte [rcx + r8*4 + 2], sil
mov eax, 0x19
sub eax, r11d
shr eax, 8
and eax, 6
add eax, r11d
mov ebx, 0x33
sub ebx, r11d
shr ebx, 8
and ebx, 0x4b
sub eax, ebx
mov ebx, 0x3d
sub ebx, r11d
shr ebx, 8
and ebx, 0xf
sub eax, ebx
mov ebx, 0x3e
sub ebx, r11d
shr ebx, 8
and ebx, 3
add ebx, eax
add bl, 0x41
mov byte [rcx + r8*4 + 3], bl
lea rax, [r8 + 1]
movzx ebx, byte [r9]
add r9, 3
cmp rax, 0xa
jne 0x140014460
movzx eax, bl
movzx r9d, byte [rdx + 0x1f]
mov edi, eax
shr edi, 2
shl eax, 4
mov edx, r9d
shr edx, 4
and eax, 0x30
or eax, edx
shl r9d, 2
and r9d, 0x3c
mov r10d, 0x19
mov ebx, 0x19
sub ebx, edi
shr ebx, 8
and ebx, 6
add ebx, edi
mov r11d, 0x33
mov edx, 0x33
sub edx, edi
shr edx, 8
and edx, 0x4b
sub ebx, edx
mov esi, 0x3d
mov edx, 0x3d
sub edx, edi
shr edx, 8
and edx, 0xf
sub ebx, edx
mov edx, 0x3e
mov ebp, 0x3e
sub ebp, edi
shr ebp, 8
and ebp, 3
add ebp, ebx
add bpl, 0x41
mov byte [rcx + r8*4 + 4], bpl
mov edi, 0x19
sub edi, eax
shr edi, 8
and edi, 6
add edi, eax
mov ebx, 0x33
sub ebx, eax
shr ebx, 8
and ebx, 0x4b
sub edi, ebx
sub esi, eax
shr esi, 8
and esi, 0xf
sub edi, esi
sub edx, eax
shr edx, 8
and edx, 3
add edx, edi
add dl, 0x41
mov byte [rcx + r8*4 + 5], dl
sub r10d, r9d
shr r10d, 8
and r10d, 6
lea eax, [r10 + r9]
add eax, 0x41
sub r11d, r9d
shr r11d, 8
and r11d, 0x4b
sub eax, r11d
mov byte [rcx + r8*4 + 6], al
mov byte [rcx + r8*4 + 7], 0x41
mov word [rcx + 0x2b], 0x3d
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140016b80
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov dl, byte [rdx]
test dl, dl
je 0x140016bbe
lea rbx, [rsi + 1]
mov eax, 0x1505
nop dword [rax]
mov edi, eax
shl edi, 5
add edi, eax
movsx eax, dl
xor eax, edi
movzx edx, byte [rbx]
add rbx, 1
test dl, dl
jne 0x140016ba0
and eax, 0x3ff
jmp 0x140016bc3
mov eax, 0x105
mov rdx, qword [rcx + rax*8]
test rdx, rdx
je 0x140016bf4
mov rdi, rdx
mov rcx, qword [rdx]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140016c37
mov rdx, qword [rdi + 0x10]
test rdx, rdx
jne 0x140016bd0
add rdi, 0x10
mov rbx, rdi
jmp 0x140016bf8
lea rbx, [rcx + rax*8]
mov ecx, 1
mov edx, 0x18
call sub.msvcrt.dll_calloc
mov qword [rbx], rax
test rax, rax
je 0x140016c35
mov rcx, rsi
call sub.msvcrt.dll__strdup
mov rcx, qword [rbx]
mov qword [rcx], rax
mov rdi, qword [rbx]
cmp qword [rdi], 0
jne 0x140016c37
mov rcx, rdi
call sub.msvcrt.dll_free
mov qword [rbx], 0
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400179f0
Capabilities:
Encode data using xor
Enumerate files on windows
Hash data using djb2

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x270
mov rsi, rcx
cmp byte [0x140028676], 1
jne 0x140017a3e
mov cl, byte [rsi]
test cl, cl
je 0x140017aaf
lea rdx, [rsi + 1]
mov eax, 0x1505
nop dword [rax]
mov ebx, eax
shl ebx, 5
add ebx, eax
movsx eax, cl
xor eax, ebx
movzx ecx, byte [rdx]
add rdx, 1
test cl, cl
jne 0x140017a20
and eax, 0x3ff
jmp 0x140017ab4
lea r8, str.ProtectedPrefixAdministratorsWireGuard_s
lea rcx, [rsp + 0x160]
mov r9, rsi
call fcn.140018180
lea rcx, str..pipe
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140017af3
mov rsi, rax
lea r14, [rsp + 0x4c]
lea rbx, [rsp + 0x160]
lea r15, [rsp + 0x20]
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [rax]
mov rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140017af8
mov rcx, rsi
mov rdx, r15
call rdi
test eax, eax
jne 0x140017a90
xor edi, edi
jmp 0x140017afb
mov eax, 0x105
lea rcx, [0x140023470]
mov rdi, qword [rcx + rax*8]
test rdi, rdi
je 0x140017ae8
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140017aea
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140017ad0
xor edi, edi
test rdi, rdi
setne dil
jmp 0x140017b04
mov dil, 1
jmp 0x140017b04
mov dil, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140017b20
Capabilities:
Compare security identifiers

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov dword [rsp + 0x4c], 0xc
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x4c]
mov ecx, 0x16
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140017be1
lea r8, [0x14001e084]
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9, rsi
call fcn.140018180
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140017be1
mov rsi, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x58]
mov rcx, rsi
mov edx, 1
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x140017bf9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xd
xor eax, eax
add rsp, 0x178
pop rdi
pop rsi
ret
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x140017bd8
mov rcx, rsi
mov edx, 2
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp eax, 0xffffffff
je 0x140017c3e
lea rdx, [0x14001e0b9]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fdopen]
jmp 0x140017bef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017bed
Function at 0x14001b750
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
mov eax, 0x1258
call fcn.140002a74
sub rsp, rax
mov rsi, rcx
lea rcx, [0x140027470]
xor edi, edi
mov r8d, 0x1206
xor edx, edx
call sub.msvcrt.dll_memset
movzx eax, word [rsi]
cmp ax, 0x17
mov ecx, 0x1c
cmovne ecx, edi
cmp ax, 2
mov edx, 0x10
cmovne edx, ecx
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 0x1a
mov dword [rsp + 0x28], 0x201
lea r8, [rsp + 0x250]
mov rcx, rsi
mov r9d, 0x1001
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x14001b7ed
mov ecx, eax
call fcn.140001480
lea rcx, [0x140027470]
mov r8d, 0x1205
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov byte [0x140028675], 0
jmp 0x14001b841
cmp word [rsi], 0x17
jne 0x14001b81c
lea rcx, [rsp + 0x250]
mov edx, 0x3a
call sub.msvcrt.dll_strchr
test rax, rax
lea rax, str._s:_s
lea r8, str.__s_:_s
cmove r8, rax
jmp 0x14001b823
lea r8, str._s:_s
mov qword [rsp + 0x20], rdi
lea rcx, [0x140027470]
lea r9, [rsp + 0x250]
mov edx, 0x1206
call fcn.14001bc00
nop
add rsp, 0x1258
pop rdi
pop rsi
ret
Function at 0x14001c040
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
lea rdi, [rsp + 0x68]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov eax, dword [0x1400214b0]
cmp eax, 0xffffffff
je 0x14001c084
test eax, eax
jne 0x14001c0ee
jmp 0x14001c116
lea rcx, str.WG_COLOR_MODE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14001c0be
mov rbx, rax
lea rdx, str.always
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14001c0e4
lea rdx, str.never
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14001c10c
mov ecx, 1
call qword [fcn.140002320]
mov rcx, rax
call sub.msvcrt.dll__fileno
mov ecx, eax
call sub.msvcrt.dll__isatty
mov dword [0x1400214b0], eax
test eax, eax
jne 0x14001c0ee
jmp 0x14001c116
mov dword [0x1400214b0], 1
mov ecx, 1
call qword [fcn.140002320]
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call fcn.1400021f0
jmp 0x14001c237
mov dword [0x1400214b0], 0
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8, rdi
call fcn.1400022a0
movsxd r15, eax
cmp r15d, 2
jb 0x14001c1bc
mov r8, r15
add r8, 0xfffffffffffffffe
je 0x14001c1c7
xor ebx, ebx
jmp 0x14001c15e
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rdx], 0
cmp rbx, r8
je 0x14001c1bc
mov rdx, rbx
mov rsi, qword [rsp + 0x20]
add rbx, 1
cmp byte [rsi + rdx], 0x1b
jne 0x14001c159
cmp byte [rsi + rbx], 0x5b
jne 0x14001c159
mov byte [rsi + rdx + 1], 0
mov rsi, qword [rsp + 0x20]
mov byte [rsi + rdx], 0
add rdx, 2
cmp rdx, r15
jae 0x14001c150
nop dword [rax]
mov rsi, qword [rsp + 0x20]
movsx ecx, byte [rsi + rdx]
or ecx, 0x20
mov edi, 0x60
sub edi, ecx
add ecx, 0xffffff85
test edi, ecx
js 0x14001c150
mov byte [rsi + rdx], 0
add rdx, 1
cmp r15, rdx
jne 0x14001c190
mov rdx, r15
jmp 0x14001c150
mov rsi, qword [rsp + 0x20]
test eax, eax
jne 0x14001c1cc
jmp 0x14001c22f
mov rsi, qword [rsp + 0x20]
xor ebx, ebx
mov r14, qword [fcn.140002320]
jmp 0x14001c1e8
mov rbx, rax
cmp rax, r15
jae 0x14001c22f
add rsi, rbx
mov ecx, 1
call r14
mov rcx, rsi
mov rdx, rax
call sub.msvcrt.dll_fputs
mov rsi, qword [rsp + 0x20]
lea rcx, [rsi + rbx]
call sub.msvcrt.dll_strlen
add rax, rbx
cmp rax, r15
jae 0x14001c1e0
nop dword [rax + rax]
cmp byte [rsi + rax], 0
jne 0x14001c1e0
add rax, 1
cmp rax, r15
jb 0x14001c220
mov rcx, rsi
call sub.msvcrt.dll_free
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400010d0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140051018]
xor rax, rsp
mov qword [rsp + 0x290], rax
xorps xmm0, xmm0
xor edi, edi
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call fcn.1400036c0
lea edx, [rdi + 1]
mov rcx, qword [rax + 0x30]
call fcn.1400097c0
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rsi, rax
call fcn.140009990
test eax, eax
jne 0x140001137
mov ebx, edi
jmp 0x140001144
mov edx, eax
mov rcx, rsi
call fcn.140009270
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rcx, rax
xor edx, edx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call rbx
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
mov rbx, rax
call fcn.14000e900
xor edx, edx
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.14000e900
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x104
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1400011eb
call fcn.1400183e4
mov qword [rsi + 0x80], rdi
mov rcx, rsi
call fcn.1400183e4
lea rcx, [rsp + 0x70]
lea r9, [rsp + 0x180]
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rcx]
movzx edx, byte [rcx + r9]
sub r8d, edx
jne 0x140001225
inc rcx
test edx, edx
jne 0x140001210
test r8d, r8d
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000d570
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400036c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rsi, [0x140032f28]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x1400036e0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14000373e
lea rdi, [rdx + rdx]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x60]
mov r8, rdi
mov rdx, rsi
call fcn.140018728
test eax, eax
je 0x140003750
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x14000373e
test rbx, rbx
jne 0x140003710
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret