joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013d960
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14013d99f
lea rdx, str.Couldnt_set_desired_mode
call fcn.14010f1d0
lea eax, [rdi + 0x11]
jmp 0x14013db0b
cmp edx, 0xc8
je 0x14013d9b6
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14010f330
cmp esi, 0x13
jne 0x14013d9cb
mov rdx, rbp
mov rcx, rbx
call fcn.14013d860
jmp 0x14013db07
cmp esi, 0x14
jne 0x14013dae9
cmp dword [rbx + 0x730], 2
mov rbp, qword [rbx + 0x18]
jne 0x14013da4e
mov rax, qword [rbx + 0x1b8]
mov rdx, qword [rax]
test rdx, rdx
je 0x14013da4e
mov dword [rsp + 0x28], 3
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.1401089e0
test eax, eax
jne 0x14013db07
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14013da43
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14013da4e
mov rcx, qword [rsp + 0x40]
call qword [fcn.1402682cf]
mov rdx, qword [rbx + 0x798]
test rdx, rdx
jne 0x14013da73
cmp byte [rbx + 0xadd], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14027b358]
test rdi, rdi
mov r9, r8
lea rax, [0x14027d09c]
cmovne r9, rdi
lea rcx, [0x140289758]
cmovne r8, rax
call fcn.14010ffc0
mov rcx, rdi
mov rsi, rax
call qword [fcn.1402682cf]
test rsi, rsi
jne 0x14013dab1
lea edi, [rsi + 0x1b]
jmp 0x14013db09
lea rdx, [rbp + 0x6d8]
mov r9, rsi
lea r8, [0x14028e098]
mov rcx, rbx
call fcn.140151870
mov rcx, rsi
mov edi, eax
call qword [fcn.1402682cf]
test edi, edi
jne 0x14013db09
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a8], 0x1f
jmp 0x14013db09
cmp esi, 0x15
jne 0x14013daf4
lea r8d, [rsi - 8]
jmp 0x14013dafd
cmp esi, 0x16
jne 0x14013db09
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.14013d330
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140143db0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xaee], 0
movsxd r10, r9d
je 0x140143ed4
cmp r8d, 0xff
jne 0x140143e11
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140143dfb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x2900d0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14010f330
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14010f330
cmp r8d, 0xfb
jne 0x140143e23
lea r9, str.WILL
jmp 0x140143e61
cmp r8d, 0xfc
jne 0x140143e35
lea r9, str.WONT
jmp 0x140143e61
cmp r8d, 0xfd
jne 0x140143e47
lea r9, [0x140290af4]
jmp 0x140143e61
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x140143ebd
cmp r10d, 0x27
jg 0x140143e94
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x2906f0]
test r8, r8
jne 0x140143ea4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14010f330
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x140143e7b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14010f330
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14010f330
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1f0]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14014427f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14010f1d0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140143db0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140144420
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401445ce
push rbp
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b8]
mov rbp, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rdi + 0x1cb8]
mov qword [rsp + 0x58], r14
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14014446f
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
jmp 0x140144472
mov rax, rsi
cmp rax, rbx
jae 0x14014448b
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14014448b
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r14d, 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 0x1401444c2
mov byte [r9], r14b
inc qword [rbx]
mov r9, qword [rbx]
mov r14, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140144518
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140144518
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140144518
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140144518
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140144518
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.140143ee0
mov rcx, qword [r15 + 0x1f0]
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 0x14014457a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010f1d0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rbp
call fcn.1401442b0
mov rcx, qword [r15 + 0x1f0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401445c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14010f1d0
add rsp, 0x20
pop r15
pop rdi
pop rbp
ret
Function at 0x140145cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x154]
mov rdx, qword [rdi + 0x160]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x148], 0
mov dword [rdi + 0x14c], eax
jne 0x140145d67
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xc8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x148], eax
mov r8d, dword [rdi + 0x14c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x140145dcd
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14010f1d0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140266400
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rax, qword [rdi + 0x160]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rdi + 0xc], edx
sub edx, 3
je 0x140145e7d
sub edx, 1
je 0x140145ef6
sub edx, 1
je 0x140145e37
cmp edx, 1
je 0x140145e1a
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14028e098]
call fcn.14010f1d0
jmp 0x140145ef6
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.140145a00
test eax, eax
je 0x140145ef6
jmp 0x140145d9c
mov rdx, rax
lea rbp, [rax + 4]
lea eax, [r8 - 4]
movsxd rbx, eax
movzx ecx, byte [rdx + 2]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.140146a20
cmp rax, rbx
jae 0x140145ef6
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.14010f330
jmp 0x140145ef6
cmp r8d, 4
jle 0x140145ef6
movzx ecx, byte [rax + 2]
mov rdx, rax
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x15c]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140145ef6
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14010f0e0
mov ebx, eax
test eax, eax
je 0x140145ed5
mov edx, 5
mov rcx, rdi
call fcn.1401469a0
mov eax, ebx
jmp 0x140145d9c
mov eax, dword [rdi + 0x14c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.14012df40
mov rcx, rsi
call fcn.14012e250
test eax, eax
je 0x140145d9a
mov edx, 5
mov rcx, rdi
call fcn.1401469a0
mov eax, 0x2a
jmp 0x140145d9c
Function at 0x140154390
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 0x1401543d2
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 0x140154419
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 0x140154472
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 0x140154430
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401544b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402935c4]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402935c5]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140154480
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 0x140157d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x140157f9d
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rdi, qword [r15 + 8]
mov qword [rsp + 0x68], rdi
lea r12, [r15 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rdi
mov rcx, r12
call fcn.1400a0790
lea rax, [rbx - 1]
mov qword [r15 + 0x30], rax
mov qword [r15 + 0x38], rbx
mov rsi, qword [r15 + 8]
mov rsi, qword [rsi]
cmp rsi, rdi
je 0x140157f88
mov rdi, rsi
movabs rax, 0xcbf29ce484222325
movabs r9, 0x100000001b3
nop dword [rax]
mov rsi, qword [rsi]
mov rbp, qword [rdi + 0x20]
lea r8, [rdi + 0x10]
mov r13, qword [rdi + 0x28]
cmp r13, 0x10
jb 0x140157e19
mov r8, qword [rdi + 0x10]
mov rdx, rax
xor ecx, ecx
test rbp, rbp
je 0x140157e44
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rbp
jb 0x140157e30
mov rcx, qword [r15 + 0x30]
and rcx, rdx
shl rcx, 4
mov r12, qword [r12]
add r12, rcx
mov r15, qword [r12]
cmp r15, qword [rsp + 0x68]
jne 0x140157e6f
mov qword [r12], rdi
mov qword [r12 + 8], rdi
jmp 0x140157f67
mov rbx, qword [r12 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140157e86
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r13, 0x10
jb 0x140157e94
mov rcx, qword [rdi + 0x10]
cmp rbp, rax
jne 0x140157ed8
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140157ed8
mov r8, qword [rbx]
cmp r8, rdi
je 0x140157ece
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r12 + 8], rdi
jmp 0x140157f5d
cmp r15, rbx
je 0x140157f38
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140157ef3
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r13, 0x10
jb 0x140157f01
mov rcx, qword [rdi + 0x10]
cmp rbp, rax
jne 0x140157ed8
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140157ed8
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x140157f5d
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r12], rdi
movabs r9, 0x100000001b3
mov rdi, rsi
cmp rsi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
lea r12, [r15 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x140157e00
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x14015dae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r15, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r12, rdx
mov r10, rcx
cmp r15, 0x10
jb 0x14015db10
mov r8, qword [r8]
xor esi, esi
movabs r9, 0xcbf29ce484222325
mov edx, esi
test rbp, rbp
je 0x14015db44
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
xor r9, rax
imul r9, rcx
cmp rdx, rbp
jb 0x14015db30
mov rcx, qword [r10 + 0x30]
mov rax, qword [r10 + 0x18]
and rcx, r9
mov r13, qword [r10 + 8]
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, r13
je 0x14015dbb2
mov qword [rsp + 0x50], r14
mov r14, qword [rax + rcx*8]
nop dword [rax]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x14015db82
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0x10
jb 0x14015db8e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x14015db9f
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14015dbaa
cmp rbx, r14
je 0x14015dbad
mov rbx, qword [rbx + 8]
jmp 0x14015db70
mov rsi, rbx
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test rsi, rsi
mov rbp, qword [rsp + 0x60]
mov rax, r12
cmove rsi, r13
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140165850
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x240
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x30]
mov rsi, rdx
mov dword [rsp + 0x20], 0x100
xor edx, edx
mov r8d, 0x200
xor ebp, ebp
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov r14d, dword [rsp + 0x20]
xorps xmm0, xmm0
mov rcx, rsi
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
cmp r14, 8
jae 0x1401658e1
lea rbx, [r14 + r14]
mov qword [rsi + 0x10], r14
mov r8, rbx
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], bp
jmp 0x140165933
mov eax, 0xa
mov qword [rsp + 0x260], rdi
mov rbx, r14
or rbx, 7
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.1400873c0
mov qword [rsi + 0x18], rbx
lea rdx, [rsp + 0x30]
lea rbx, [r14 + r14]
mov qword [rsi], rax
mov r8, rbx
mov qword [rsi + 0x10], r14
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], bp
mov rdi, qword [rsp + 0x260]
mov rax, rsi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140266400
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop r14
pop rsi
pop rbp
ret

Function at 0x140165bb0
Capabilities:
Get user security identifier

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11, r8
mov qword [rsp + 0x30], rax
mov rcx, rdx
mov rax, qword [rsp + 0x80]
mov r8, r10
mov qword [rsp + 0x28], rax
mov rdx, r11
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
setne al
add rsp, 0x40
pop rbx
ret
Function at 0x140169220
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rsi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov edi, 7
mov qword [rcx + 0x18], rdi
mov word [rcx], si
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140169380
mov rdx, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401692a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rcx, [rsp + 0x38]
call fcn.1400768b0
mov dword [rsp + 0x20], edi
lea rax, [rsp + 0x38]
cmp rbx, rax
je 0x14016932f
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140169310
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14016930a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140169328
mov rcx, r8
call fcn.140082030
nop
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x38], si
jmp 0x140169334
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, 8
jb 0x140169375
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016936f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016936f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140266400
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401754a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov dword [rsp + 0x58], 4
mov dword [r8], eax
lea r9, [rsp + 0x58]
mov rcx, qword [rcx]
mov rbx, r8
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401754f9
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140175510
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r14, rdx
mov r15, rcx
xor dil, dil
mov dword [r11 + 0x20], 1
mov dword [rsp + 0x70], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], 0
lea r9, [r11 + 0x20]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140175606
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140175606
mov ecx, eax
mov eax, 2
mul rcx
mov rbp, rax
mov rax, 0xffffffffffffffff
cmovo rbp, rax
mov rcx, rbp
call fcn.140266500
mov rbx, rax
test rax, rax
je 0x1401755a9
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x1401755ab
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
test eax, eax
jne 0x1401755ea
mov rdx, rbx
call fcn.1400bc5d0
mov dil, 1
jmp 0x1401755f7
lea rdx, [0x14027b2b0]
call fcn.1400bc5d0
nop
test rbx, rbx
je 0x140175615
mov rcx, rbx
call fcn.140082030
jmp 0x140175615
lea rdx, [0x14027b2b0]
mov rcx, rsi
call fcn.1400bc5d0
movzx eax, dil
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401758f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140175903
lea ecx, [rax + rax]
test eax, eax
mov edx, 2
mov r9d, 1
cmovne edx, ecx
mov rcx, qword [rbx]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14017594e
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x140175960
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x28], 4
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1401759a6
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret