joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097e0b
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140097e6d
mov ebx, eax
mov r12d, eax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp eax, 0xb
jae 0x140097e81
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
mov r13, rsi
mov rbp, rsi
jmp 0x140097eae
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x140097f4b
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14018360c
mov rbp, rax
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
bts rdi, 0x3f
mov qword [rsi + 0x10], rdi
mov qword [rsi + 8], r12
mov r13, rsi
lea r8, [r12 + r12]
mov rcx, rbp
xor edx, edx
call fcn.1401867a0
mov word [rbp + r12*2], 0
cmp byte [r13 + 0x17], 0
jns 0x140097ed0
mov rsi, qword [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140097f2a
mov edx, eax
movzx eax, byte [r13 + 0x17]
mov rcx, rax
test al, al
jns 0x140097ef6
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x140097f2e
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.140065c34
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
xorps xmm0, xmm0
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140097f4b
mov al, byte [r13 + 0x17]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x140097f4b
mov rcx, qword [rsp + 0x20]
call fcn.140183668
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140183a80
mov rax, r14
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140097f6c
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp byte [rdx + 0x17], al
jns 0x140097f7a
mov rdx, qword [rdx]
cmp byte [rcx + 0x17], al
jns 0x140097f82
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140097f92
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x140097f9f
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140097fb4
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, str.Chrome
mov rcx, r14
call fcn.1400662b4
lea rdx, str.0.0.0.0_devel
mov rcx, r15
call fcn.1400662b4
cmp byte [rsi + 0x17], 0
js 0x14009800c
mov word [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x14009801c
mov rax, qword [rsi]
mov word [rax], 0
mov qword [rsi + 8], 0
mov dword [rsp + 0x64], 0
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140098030
mov rcx, qword [rdi]
mov r12, qword [rsp + 0xd0]
lea rdx, [rsp + 0x64]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1400981b7
mov ebp, eax
mov ecx, eax
call fcn.14018369c
mov rbx, rax
mov edx, dword [rsp + 0x64]
cmp byte [rdi + 0x17], 0
jns 0x140098063
mov rdi, qword [rdi]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400981af
lea rdx, [0x1401cb7ee]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400036d8
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call fcn.140098235
cmp byte [rdi + 0x17], 0
jns 0x1400980ab
mov rcx, qword [rsp + 0x40]
call fcn.140183668
xorps xmm0, xmm0
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
lea rdx, [0x1401cb80c]
lea rbp, [rsp + 0x28]
mov rcx, rbp
call fcn.1400036d8
mov rcx, rbx
mov rdx, rbp
mov r8, rdi
call fcn.140098235
cmp byte [rbp + 0x17], 0
jns 0x1400980f0
mov rcx, qword [rsp + 0x28]
call fcn.140183668
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400980fe
mov rax, qword [rsp + 0x48]
cmp rax, 1
jne 0x14009812b
mov qword [rsp + 0x20], 1
lea r9, [0x1401baefe]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, 0xffffffffffffffff
call fcn.140066864
test eax, eax
je 0x14009813a
lea rdx, str._devel
mov rcx, r15
call fcn.1400660ea
lea rdx, [0x1401cb838]
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1400036d8
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.140098235
cmp byte [rdi + 0x17], 0
jns 0x14009816c
mov rcx, qword [rsp + 0x28]
call fcn.140183668
lea rdx, str.SpecialBuild
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1400036d8
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.140098235
cmp byte [rdi + 0x17], 0
jns 0x14009819e
mov rcx, qword [rsp + 0x28]
call fcn.140183668
cmp byte [rsp + 0x57], 0
jns 0x1400981af
mov rcx, qword [rsp + 0x40]
call fcn.140183668
mov rcx, rbx
call fcn.1401836a4
lea rcx, [rsp + 0x40]
call fcn.1400983ea
cmp byte [r12 + 0x17], 0
js 0x1400981d8
mov word [r12], 0
mov byte [r12 + 0x17], 0
jmp 0x140098204
mov rax, qword [r12]
mov word [rax], 0
mov qword [r12 + 8], 0
cmp byte [r12 + 0x17], 0
jns 0x140098204
mov rcx, qword [r12]
call fcn.140183668
mov qword [r12 + 0x10], 0
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x10], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r12], xmm0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140098235
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp byte [r8 + 0x17], 0
js 0x140098275
mov word [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x140098285
mov rax, qword [rsi]
mov word [rax], 0
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1400983c5
lea r8, [rsp + 0x50]
mov qword [r8], 0
lea r9, [rsp + 0x260]
mov dword [r9], 0
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400983c5
mov qword [rsp + 0x38], rsi
lea rsi, [rsp + 0x50]
mov rax, qword [rsi]
movzx r14d, word [rax]
movzx ebp, word [rax + 2]
mov word [rsp + 0x260], r14w
mov word [rsp + 0x262], bp
mov r15, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r15
mov word [rsp + 0x264], ax
mov word [rsp + 0x266], bp
mov word [rsp + 0x268], r14w
mov bp, 0x4e4
mov word [rsp + 0x26a], bp
call r15
mov word [rsp + 0x26c], ax
mov word [rsp + 0x26e], bp
xor ebp, ebp
lea r15, str.StringFileInfo_04hx_04hx_ls
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x44]
movzx eax, word [rsp + rbp*2 + 0x262]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14009834f
mov rcx, qword [rdi]
movzx edx, r14w
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
mov r9, r15
call fcn.140098cfb
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
mov rcx, rbx
mov rdx, rsi
mov r8, r12
mov r9, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400983a6
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x1400983bb
cmp rbp, 5
ja 0x1400983c5
movzx r14d, word [rsp + rbp*2 + 0x264]
add rbp, 2
jmp 0x14009833b
mov rcx, qword [rsp + 0x38]
call fcn.1400662b4
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140098ab3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140098adb
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140098b0a
test al, 0x10
jne 0x140098b60
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140098c82
xor edi, edi
jmp 0x140098c68
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x140098b2d
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
test rax, rax
je 0x140098bc6
lea r9, [rcx + rax*2]
add r9, 0xfffffffffffffffe
add rax, rax
neg rax
movzx edx, word [r9]
cmp dx, 0x5c
je 0x140098b7e
cmp dx, 0x2f
je 0x140098b7e
add r9, 0xfffffffffffffffe
add rax, 2
jne 0x140098b44
jmp 0x140098bc6
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140098c82
mov dil, 1
jmp 0x140098c68
sub r9, rcx
cmp r9, 0xfffffffffffffffe
je 0x140098bc6
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140065a88
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140098ab3
test al, al
je 0x140098c49
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140098c57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140098c35
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
call fcn.1400036d8
xor r14d, r14d
cmp byte [rbp + 0x17], r14b
jns 0x140098c05
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], r14b
jns 0x140098c30
mov rcx, qword [rsp + 0x28]
call fcn.140183668
test bpl, bpl
jne 0x140098c57
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140098c82
jmp 0x140098c55
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140098c82
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140098c68
mov rcx, qword [rsp + 0x40]
call fcn.140183668
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140183a80
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140098c82
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14000800c
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1403447a0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140187ea8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140099906
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140099975
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140099893
test al, al
jne 0x140099983
add rbx, 8
cmp rbx, 0x18
jne 0x140099943
xor esi, esi
jmp 0x140099986
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140099fde
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov r13, rdx
mov r14, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x140344fa0]
test rdx, rdx
jne 0x14009a0f0
mov ecx, 0x18
call fcn.14018360c
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [0x140344fa0], rax
mov ecx, 0x18
call fcn.14018360c
mov rdi, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rsi
mov qword [0x140344fa8], rax
call fcn.1400e1b5a
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rdx, str.user_data_dir
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.1400036d8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rax
call fcn.1400036d8
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, rsi
mov r8, r12
call fcn.140097c0f
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, rdi
call fcn.140099b64
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x14009a0c3
mov rcx, qword [rsp + 0x50]
call fcn.140183668
cmp byte [rsp + 0x37], 0
jns 0x14009a0d4
mov rcx, qword [rsp + 0x20]
call fcn.140183668
cmp byte [rsp + 0x4f], 0
jns 0x14009a0e5
mov rcx, qword [rsp + 0x38]
call fcn.140183668
test bl, bl
je 0x14009a111
mov rdx, qword [0x140344fa0]
mov rcx, r14
call fcn.140065b6e
mov dil, 1
test r13, r13
je 0x14009a113
mov rdx, qword [0x140344fa8]
mov rcx, r13
call fcn.140065b6e
jmp 0x14009a113
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140183a80
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14009a180
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea r9, [0x14009a1b0]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
add rsp, 0x38
ret

Function at 0x14009a290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14009a2b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov rcx, qword [0x140344fb0]
test rcx, rcx
je 0x14009a2dc
call fcn.1400e40de
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add rsp, 0x28
ret
Function at 0x14009b2d0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rsi
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rcx, r9
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.1400e4aa8
test al, al
jne 0x14009b393
call fcn.14002c38c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test al, al
je 0x14009b393
xorps xmm6, xmm6
lea rsi, [rsp + 0x70]
movaps xmmword [rsi], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
xor eax, eax
mov qword [rsi + 0x60], rax
mov dword [rsi], 0x68
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14009b393
mov rcx, qword [rsp + 0x58]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x60]
call rsi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140183a80
mov al, 1
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rsi
ret
Function at 0x14009bc1d
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x130
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x128], rax
test r9, r9
mov rax, qword [rcx]
cmove rdi, rax
test rdx, rdx
jne 0x14009bc61
cmp rdi, rax
je 0x14009bd92
mov eax, dword [rdi + 0x28]
cmp rax, r14
jae 0x14009bcb5
lea r15, [rsi + 8]
mov rcx, r15
mov rdx, rdi
call fcn.14009b9a4
test eax, eax
je 0x14009bdac
mov rax, qword [rsi + 8]
mov rcx, r15
mov rdx, rbx
mov r8, r14
call qword [rax + 0x18]
mov rax, qword [rsi + 8]
lea rdx, [rsp + 0x20]
mov rcx, r15
call qword [rax + 0x20]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov r14d, dword [rax + 4]
mov edx, dword [rax + 0x2c]
call fcn.14009c6fe
jmp 0x14009bcca
test r14, r14
je 0x14009bcca
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8, r14
call fcn.140186330
cmp r14d, 0x80
je 0x14009bcf0
mov eax, r14d
mov r8d, 0x80
sub r8, rax
je 0x14009bcf0
lea rcx, [rsp + rax]
add rcx, 0x20
xor edx, edx
call fcn.1401867a0
xor eax, eax
movaps xmm0, xmmword [0x1401cbec0]
movaps xmm1, xmmword [rsp + rax + 0x20]
xorps xmm1, xmm0
movaps xmmword [rsp + rax + 0xa0], xmm1
add rax, 0x10
cmp rax, 0x80
jne 0x14009bcf9
lea rbx, [rsi + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.14009b9a4
test eax, eax
je 0x14009bdac
mov r8d, dword [rdi + 0x28]
mov rax, qword [rbx]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [rax + 0x18]
xor eax, eax
movaps xmm0, xmmword [0x1401cbed0]
movaps xmm1, xmmword [rsp + rax + 0x20]
xorps xmm1, xmm0
movaps xmmword [rsp + rax + 0xa0], xmm1
add rax, 0x10
cmp rax, 0x80
jne 0x14009bd4a
lea rbx, [rsi + 0x48]
mov rcx, rbx
mov rdx, rdi
call fcn.14009b9a4
test eax, eax
je 0x14009bdac
mov r8d, dword [rdi + 0x28]
mov rax, qword [rsi + 0x48]
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [rax + 0x18]
mov qword [rsi], rdi
lea rdx, [rsi + 0x28]
add rsi, 8
mov rcx, rsi
call fcn.14009b874
xor esi, esi
test eax, eax
setne sil
jmp 0x14009bdae
xor esi, esi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x130
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400b6583
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x60]
call fcn.1400b66d3
mov rsi, 0xffffffffffffffff
test al, al
je 0x1400b66a5
movabs rdi, 0x7fffffffffffffef
lea rcx, [rsp + 0x60]
call fcn.1401a6660
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
cmp rax, rdi
ja 0x1400b66c3
mov rsi, rax
cmp rax, 0xb
jae 0x1400b65ff
lea rax, [rsp + 0x40]
mov byte [rax + 0x17], sil
test rsi, rsi
jne 0x1400b662c
jmp 0x1400b6642
lea rbx, [rsi + 8]
and rbx, 0xfffffffffffffff8
js 0x1400b66cd
lea rcx, [rbx + rbx]
call fcn.14018360c
mov qword [rsp + 0x40], rax
add rdi, 0x11
or rdi, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rsi
xor ecx, ecx
movsx edx, byte [rsp + rcx + 0x60]
mov word [rax], dx
add rax, 2
inc rcx
cmp rsi, rcx
jne 0x1400b662e
mov word [rax], 0
xor edi, edi
cmp byte [rsp + 0x57], dil
jns 0x1400b6657
mov rcx, qword [rsp + 0x40]
jmp 0x1400b665c
lea rcx, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x80003
mov r8d, 1
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp byte [rsp + 0x57], dil
jns 0x1400b66a5
mov rcx, qword [rsp + 0x40]
call fcn.140183668
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140183a80
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
call fcn.140064d6c
call fcn.140199d54
int3
Function at 0x1400b6da0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov r12d, 0xffffffff
mov r13d, 0xffffffff
lea r15, [rsp + 0x2c]
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x1400b6e28
mov r8, rdi
sub r8, rsi
cmp r8, r12
cmovae r8d, r13d
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov r9, r15
call rbp
test eax, eax
mov ecx, dword [rsp + 0x2c]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x1400b6de2
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400b6e48
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov r12d, 0xffffffff
mov r13d, 0xffffffff
lea r15, [rsp + 0x2c]
mov rbp, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x1400b6ed0
mov r8, rdi
sub r8, rsi
cmp r8, r12
cmovae r8d, r13d
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov r9, r15
call rbp
test eax, eax
mov ecx, dword [rsp + 0x2c]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x1400b6e8a
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b7270
Capabilities:
Connect pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
call fcn.140115fec
test eax, eax
je 0x1400b72f6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x3c]
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov r15d, 0xffffffff
test eax, eax
je 0x1400b73e4
test byte [rsp + 0x3c], 1
jne 0x1400b730c
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call fcn.1400b7408
mov r15d, eax
jmp 0x1400b73e4
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, 0xffffffff
jmp 0x1400b73e4
mov r12, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea r14, [rsp + 0x38]
mov rcx, rbx
xor edx, edx
call r12
test eax, eax
jne 0x1400b7318
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400b7362
cmp eax, 0x218
jne 0x1400b73e4
mov dword [rsp + 0x38], 0
test sil, 1
jne 0x1400b73e4
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
jmp 0x1400b7318
mov dword [rsp + 0x38], 0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
mov r13, qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call r13
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9b, 1
call fcn.1400b7408
mov ebp, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsp + 0x38], 1
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp ebp, 0xffffffff
jne 0x1400b73e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400b73e1
test sil, 1
je 0x1400b7318
mov ecx, 0x218
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140183a80
mov eax, r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400b9d34
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.140198294
test eax, eax
je 0x1400b9d51
call fcn.140195058
mov ecx, dword [rax]
call fcn.1400b7b00
neg eax
jmp 0x1400b9d53
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400b9d7c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.140191c60
test eax, eax
je 0x1400b9d99
call fcn.140195058
mov ecx, dword [rax]
call fcn.1400b7b00
neg eax
jmp 0x1400b9d9b
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400b9e60
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call fcn.1401a4d0c
test eax, eax
je 0x1400b9e7d
call fcn.140195058
mov ecx, dword [rax]
call fcn.1400b7b00
neg eax
jmp 0x1400b9e7f
xor eax, eax
add rsp, 0x28
ret