joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a92a0
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140127050]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.1400ce050
test eax, eax
je 0x1400a92f1
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_named_pipe_client.c
mov r8d, 0x16
call fcn.1400c91bc
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.1400b9fa8
test rax, rax
je 0x1400a931d
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_named_pipe_client.c
mov r8d, 0x17
call fcn.1400c91bc
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rsi
cmp rax, 0xffffffffffffffff
jne 0x1400a939f
call r15
cmp eax, 0xe7
jne 0x1400a940a
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x1400a9340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x1400a941e
mov rbx, rax
call fcn.1400466b0
test rax, rax
je 0x1400a942b
mov rsi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov rcx, rbx
mov edx, 6
mov r8d, 1
call qword [0x14012adc0]
test eax, eax
je 0x1400a9478
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x1400a9448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.Unable_to_open_named_pipe__s:__s
mov rdx, rdi
mov r8, rax
call fcn.140041fc0
jmp 0x1400a9450
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.Unable_to_get_user_SID:__s
mov rdx, rax
call fcn.140041fc0
mov qword [r14], rax
mov rbx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400b8300
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400a9497
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a945a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, str.Owner_of_named_pipe__s_is_not_us
mov rdx, rdi
jmp 0x1400a944b
Function at 0x1400a9560
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rdx
mov r15, rcx
mov rax, qword [0x140127050]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ecx, 1
mov edx, 0x60
xor r8d, r8d
call fcn.140042c20
mov rdi, rax
lea rax, [0x1400f8ee8]
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], 0
mov qword [rdi], 0
mov rcx, r15
call fcn.140049ac0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], 0
mov qword [rdi + 0x40], 0
lea rdx, str..pipe_
mov r8d, 9
mov rcx, r15
call fcn.1400ce050
test eax, eax
je 0x1400a9606
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_named_pipe_server.c
mov r8d, 0xd5
call fcn.1400c91bc
lea r14, [rdi + 0x50]
lea rsi, [rdi + 8]
lea rcx, [r15 + 9]
mov edx, 0x5c
call fcn.1400b9fa8
test rax, rax
je 0x1400a963a
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_windows_named_pipe_server.c
mov r8d, 0xd6
call fcn.1400c91bc
mov rbx, rdi
add rbx, 0x58
mov ecx, 0xc0000000
mov rdx, rdi
mov r8, rsi
mov r9, r14
call fcn.140046850
test al, al
je 0x1400a9727
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x18
mov rax, qword [rdi]
mov qword [rsp + 0x48], rax
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40080003
mov r8d, 8
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400a9705
movups xmmword [rdi + 0x30], xmm6
movups xmmword [rdi + 0x20], xmm6
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x38], rax
lea rdx, [0x1400a9750]
mov rcx, rax
mov r8, rdi
call fcn.14002c640
mov qword [rdi + 0x40], rax
mov rcx, rdi
xor edx, edx
call fcn.1400a9760
jmp 0x1400a9727
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047200
lea rcx, str.unable_to_create_named_pipe__s:__s
mov rdx, r15
mov r8, rax
call fcn.140041fc0
mov qword [r14], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b8300
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400a9760
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140127050]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rbx, [rcx + 0x20]
lea r14, [0x1400a9970]
xorps xmm6, xmm6
lea r13, [rsp + 0x40]
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a980d
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0x18
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r8d, 8
mov r9d, 0xff
call r12
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400a9869
test dil, 1
jne 0x1400a9840
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400a9842
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400a9842
mov ebp, eax
cmp eax, 0x217
je 0x1400a9842
jmp 0x1400a98db
xor edi, edi
mov rbp, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rdx, r14
mov r8, rbp
call qword [rax + 0x20]
test eax, eax
je 0x1400a97b0
mov rcx, rbp
call r15
jmp 0x1400a97b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.140047200
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.140041fc0
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.14003e7b0
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov r8, rax
xor r9d, r9d
call qword [rbx]
mov rcx, rdi
call fcn.140042cc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b8300
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp ebp, 0x3e5
jne 0x1400a9871
jmp 0x1400a98b8
Function at 0x1400ac440
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
test r8, r8
je 0x1400ac583
xor r10d, r10d
cmp r8, 8
jb 0x1400ac55a
mov r9, r8
and r9, 0xfffffffffffffff8
lea rax, [r9 - 8]
mov r10, rax
shr r10, 3
add r10, 1
test rax, rax
je 0x1400ac58b
mov r11, r10
and r11, 0xfffffffffffffffe
pxor xmm2, xmm2
xor eax, eax
pxor xmm0, xmm0
pxor xmm1, xmm1
nop dword [rax]
mov esi, dword [rdx + rax]
mov edi, dword [rdx + rax + 4]
xor esi, dword [rcx + rax]
xor edi, dword [rcx + rax + 4]
movd xmm3, esi
movd xmm4, edi
punpcklbw xmm3, xmm2
punpcklwd xmm3, xmm2
por xmm3, xmm0
punpcklbw xmm4, xmm2
punpcklwd xmm4, xmm2
por xmm4, xmm1
mov esi, dword [rdx + rax + 8]
mov edi, dword [rdx + rax + 0xc]
xor esi, dword [rcx + rax + 8]
movd xmm0, esi
xor edi, dword [rcx + rax + 0xc]
movd xmm1, edi
punpcklbw xmm0, xmm2
punpcklwd xmm0, xmm2
por xmm0, xmm3
punpcklbw xmm1, xmm2
punpcklwd xmm1, xmm2
por xmm1, xmm4
add rax, 0x10
add r11, 0xfffffffffffffffe
jne 0x1400ac490
test r10b, 1
je 0x1400ac530
mov edi, dword [rdx + rax]
xor edi, dword [rcx + rax]
mov esi, dword [rdx + rax + 4]
movd xmm2, edi
xor esi, dword [rcx + rax + 4]
movd xmm3, esi
pxor xmm4, xmm4
punpcklbw xmm2, xmm4
punpcklwd xmm2, xmm4
por xmm0, xmm2
punpcklbw xmm3, xmm4
punpcklwd xmm3, xmm4
por xmm1, xmm3
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movd r10d, xmm0
cmp r9, r8
je 0x1400ac576
and r8d, 7
add rdx, r9
add rcx, r9
xor edi, edi
nop dword [rax]
movzx eax, byte [rdx + rdi]
xor al, byte [rcx + rdi]
movzx eax, al
or r10d, eax
add rdi, 1
cmp r8, rdi
jne 0x1400ac560
mov eax, 0x100
sub eax, r10d
shr eax, 8
jmp 0x1400ac588
mov eax, 1
pop rdi
pop rsi
ret
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
test r10b, 1
jne 0x1400ac4fe
jmp 0x1400ac530
Function at 0x1400b5990
Capabilities:
Hash data using sha512

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
cmp ecx, 0x41
jb 0x1400b59b5
lea rcx, str.hashlen___ssh_blake2b.hlen
lea rdx, str._home_simon_mem_.build_workdirs_bob_jmc5owxa_putty_crypto_blake2.c
mov r8d, pe_nt_image_headers64
call fcn.1400c91bc
mov ecx, 1
mov edx, 0x108
xor r8d, r8d
call fcn.140042c20
lea r8, [rax + 0xf8]
lea rdx, str.pZ_v_
mov qword [rax + 0xf8], rdx
mov dword [rax + 0x40], esi
lea rdx, [rax + 0xe0]
lea rcx, [0x1400b5cf0]
mov qword [rax + 0xe0], rcx
mov qword [rax + 0xe8], 0
mov qword [rax + 0xf0], rdx
mov qword [rax + 0x100], rdx
movaps xmm0, xmmword [0x1400f9fc0]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1400f9fd0]
movups xmmword [rax + 0x10], xmm0
movaps xmm0, xmmword [0x1400f9fe0]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x1400f9ff0]
movups xmmword [rax + 0x30], xmm0
mov ecx, esi
movabs rdx, 0x6a09e667f2bdc908
xor rdx, rcx
mov qword [rax], rdx
xorps xmm0, xmm0
movups xmmword [rax + 0xc8], xmm0
mov qword [rax + 0xd8], 0
mov rax, r8
add rsp, 0x20
pop rsi
ret
Function at 0x1400b8190
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rdx]
bswap r8
xor r8, qword [rcx + 0x70]
mov qword [rcx + 0x70], r8
mov r9, qword [rdx + 8]
bswap r9
xor r9, qword [rcx + 0x78]
pxor xmm0, xmm0
xor r10d, r10d
mov edx, r9d
and edx, 1
mov rax, r9
shr rax, 1
mov qword [rcx + 0x78], rax
neg rdx
movdqu xmm1, xmmword [rcx + r10 + 0x90]
movq xmm2, rdx
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and eax, 1
shr r9, 2
mov qword [rcx + 0x78], r9
neg rax
movdqu xmm1, xmmword [rcx + r10 + 0xa0]
movq xmm0, rax
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r10, 0x20
cmp r10, 0x400
jne 0x1400b81b0
xor r9d, r9d
nop dword [rax]
mov eax, r8d
and eax, 1
mov rdx, r8
shr rdx, 1
mov qword [rcx + 0x70], rdx
neg rax
movdqu xmm1, xmmword [rcx + r9 + 0x490]
movq xmm2, rax
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and edx, 1
shr r8, 2
mov qword [rcx + 0x70], r8
neg rdx
movdqu xmm1, xmmword [rcx + r9 + 0x4a0]
movq xmm0, rdx
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r9, 0x20
cmp r9, 0x400
jne 0x1400b8220
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400b8bcc
Capabilities:
Parse pe header

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

Function at 0x1400c5b94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c5ce8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c5d57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c5d57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c5d57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c5d57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c5d57
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c5d57
cmp dword [rcx + 0xf8], 0
je 0x1400c5d57
mov ecx, ebx
call fcn.1400c5c14
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c5e7c
nop
cmp dword [rbp + 0x20], 0
je 0x1400c5da5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c5cb4
int3
Function at 0x1400cdf90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400cdfad
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400ce008
test al, 7
jne 0x1400cdfa0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400cdfc1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ce032
test dh, dh
je 0x1400ce02c
shr rdx, 0x10
test dl, dl
je 0x1400ce026
test dh, dh
je 0x1400ce020
shr rdx, 0x10
test dl, dl
je 0x1400ce01a
test dh, dh
je 0x1400ce014
shr edx, 0x10
test dl, dl
je 0x1400ce00e
test dh, dh
jne 0x1400cdfc1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cf5e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cf608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cf608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400d862c
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 0x1400d865c
xor eax, eax
jmp 0x1400d871f
mov rbp, rbx
cmp word [rax], si
je 0x1400d8681
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d8668
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d8664
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.1400d857c
movsxd r14, eax
test eax, eax
jne 0x1400d86bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d8655
mov rcx, r14
call fcn.1400d2980
mov rdi, rax
test rax, rax
jne 0x1400d86d8
xor ecx, ecx
call fcn.1400d1df4
jmp 0x1400d86b4
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.1400d857c
test eax, eax
jne 0x1400d8709
mov rcx, rdi
call fcn.1400d1df4
jmp 0x1400d8713
xor ecx, ecx
call fcn.1400d1df4
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 0x1400d873c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d87c3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d8782
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d876c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d8768
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d2980
mov rdi, rax
test rax, rax
je 0x1400d87b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b9570
mov rbp, rdi
xor ecx, ecx
call fcn.1400d1df4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dacb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400dace2
call fcn.1400c7f98
mov dword [rax], 0x16
call fcn.1400d1f0c
jmp 0x1400dae01
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400dae01
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400dae01
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400dad11
lock or dword [rcx + 0x14], 0x10
jmp 0x1400dae01
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400dad25
call fcn.1400e05e4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400d3c9c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400db5ec
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400dadef
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400dadba
mov rcx, rsi
call fcn.1400d3c9c
cmp eax, edi
je 0x1400dada5
mov rcx, rsi
call fcn.1400d3c9c
cmp eax, 0xfffffffe
je 0x1400dada5
mov rcx, rsi
call fcn.1400d3c9c
movsxd rbx, eax
lea r14, [0x14012bf70]
mov rcx, rsi
sar rbx, 6
call fcn.1400d3c9c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400dadac
lea rdx, [0x1401272e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400dadba
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400dadde
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400dadde
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400dadde
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400dae04
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400dbe28
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14012bf70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400dbe86
cmp word [rdx], r12w
jne 0x1400dbe86
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400dbe8c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400dbfe7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400dbfc2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400dbec5
mov rcx, r9
jmp 0x1400dbee8
cmp r9, rdx
jae 0x1400dbeff
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400dbea9
jmp 0x1400dbfe7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dbfbc
cmp dword [rsp + 0x80], edi
je 0x1400dbfbc
mov rdx, r14
lea r11, [0x14012bf70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400dbf95
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400dbf68
mov word [rbx], r12w
jmp 0x1400dbfe3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400dbf71
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400dbfe3
cmp word [rsp + 0x70], r12w
jne 0x1400dbfa2
cmp rbx, rsi
je 0x1400dbf62
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e2e5c
cmp word [rsp + 0x70], r12w
je 0x1400dbfe7
mov word [rbx], r13w
jmp 0x1400dbfe3
lea r11, [0x14012bf70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400dbfdf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400dbfe7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e2c20
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.1400c05cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e2caa
cmp byte [rbp - 0x21], r15b
je 0x1400e2ca5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e2ce0
call fcn.1400cfa08
test eax, eax
jne 0x1400e2ccc
cmp byte [rbp - 0x21], r15b
je 0x1400e2cc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e2ce0
cmp byte [rbp - 0x21], r15b
je 0x1400e2cdd
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.1400cdce4
test eax, eax
jne 0x1400e2d80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c05cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e2d1f
cmp byte [rbp - 0x21], r15b
je 0x1400e2d54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e2d54
call fcn.1400cfa08
test eax, eax
jne 0x1400e2d40
cmp byte [rbp - 0x21], r15b
je 0x1400e2d39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e2d54
cmp byte [rbp - 0x21], r15b
je 0x1400e2d51
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.1400cdce4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e2d80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e2d83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e2d91
mov rcx, rdi
call fcn.1400d1df4
cmp byte [rbp + 0x3f], r15b
je 0x1400e2da0
mov rcx, qword [rbp + 0x27]
call fcn.1400d1df4
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