joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180059508
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005951e
mov al, 1
jmp 0x18005957e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005952f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005957c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005e4d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005957c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005957c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005957c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005957e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005d1a0
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 0x18005d1d0
xor eax, eax
jmp 0x18005d293
mov rbp, rbx
cmp word [rax], si
je 0x18005d1f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005d1dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005d1d8
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.18005d0c0
movsxd r14, eax
test eax, eax
jne 0x18005d233
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005d1c9
mov rcx, r14
call fcn.180059ea4
mov rdi, rax
test rax, rax
jne 0x18005d24c
xor ecx, ecx
call fcn.180057b9c
jmp 0x18005d228
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.18005d0c0
test eax, eax
jne 0x18005d27d
mov rcx, rdi
call fcn.180057b9c
jmp 0x18005d287
xor ecx, ecx
call fcn.180057b9c
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 0x180061ce8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180056e14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180056e14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180061e38
cmp rax, 0xffffffffffffffff
je 0x180061e38
xor edi, edi
test rbp, rbp
jle 0x180061de3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180057b24
mov rbx, rax
test rax, rax
jne 0x180061d70
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180061dd9
mov edx, 0x8000
mov ecx, r14d
call fcn.180061b6c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180058d04
cmp eax, 0xffffffff
je 0x180061db9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180061d80
mov edx, r15d
mov ecx, r14d
call fcn.180061b6c
jmp 0x180061dd9
cmp byte [rsi + 0x38], dil
je 0x180061dd0
cmp dword [rsi + 0x34], 5
jne 0x180061dd0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180061dd9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180057b9c
jmp 0x180061e4c
jns 0x180061e4c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180056e14
cmp rax, 0xffffffffffffffff
jne 0x180061e04
cmp byte [rsi + 0x30], dil
je 0x180061e4c
mov edi, dword [rsi + 0x2c]
jmp 0x180061e4c
mov ecx, r14d
call fcn.18005e4d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180061e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180061e4c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180061e45
mov eax, dword [rsi + 0x2c]
jmp 0x180061e4a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180056e14
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180063430
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180063458
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180063458
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002910
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp qword [rdx + 0x18], 0x10
mov r8, rdx
mov r9, qword [rdx + 0x10]
jb 0x140002921
mov r8, qword [rdx]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x140002954
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r10
cmp rdx, r9
jb 0x140002940
mov rax, rcx
ret

Function at 0x1400057a0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
mov eax, 0x1080
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1098], rbx
mov qword [rsp + 0x10a0], rsi
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
add rcx, 0x30
mov rax, qword [rcx]
call qword [rax]
or edx, 0xffffffff
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
je 0x140005825
cmp eax, 0x102
je 0x140005825
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, ebx
lea rdx, str.Error_waiting_for_event_to_signal__result:__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x30], r9d
movzx r8d, al
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs rdx, 0x100000001b3
imul r8, rdx
movzx ecx, byte [rsp + 0x31]
xor r8, rcx
imul r8, rdx
movzx eax, byte [rsp + 0x32]
xor r8, rax
imul r8, rdx
movzx eax, byte [rsp + 0x33]
xor r8, rax
imul r8, rdx
mov rdx, qword [rdi + 0xa0]
and rdx, r8
mov r8, qword [rdi + 0x88]
mov rax, rdx
add rax, rax
mov rax, qword [r8 + rax*8]
mov rcx, qword [rdi + 0x78]
add rdx, rdx
mov r10, qword [r8 + rdx*8]
lea r11, [r8 + rdx*8]
cmp r10, rcx
jne 0x1400058aa
mov rdx, rcx
jmp 0x1400058b1
mov rdx, qword [r11 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x1400058c7
cmp r9d, dword [rax + 0x10]
je 0x1400058c1
mov rax, qword [rax]
jmp 0x1400058a0
cmovne rax, rcx
jmp 0x1400058ca
mov rax, rcx
cmp rax, rcx
jne 0x140005953
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140006710
mov rdx, rax
mov rax, qword [rdi + 0x80]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rax
cmp rcx, 1
jae 0x140005920
lea rcx, str.list_T__too_long
call fcn.140059760
int3
inc rax
mov qword [rdi + 0x80], rax
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov r9, qword [rdi + 0x78]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x70]
call fcn.140006310
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsi]
mov byte [rax + 0x14], cl
lea rcx, [rsp + 0x48]
call fcn.140005b90
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005980
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call fcn.1400114b0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x20], r9d
movzx edx, al
movabs rsi, 0xcbf29ce484222325
xor rdx, rsi
movabs rdi, 0x100000001b3
imul rdx, rdi
movzx ecx, byte [rsp + 0x21]
xor rdx, rcx
imul rdx, rdi
movzx eax, byte [rsp + 0x22]
xor rdx, rax
imul rdx, rdi
movzx eax, byte [rsp + 0x23]
xor rdx, rax
imul rdx, rdi
mov rcx, qword [rbx + 0xa0]
and rcx, rdx
mov rdx, qword [rbx + 0x88]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8]
mov r8, qword [rbx + 0x78]
add rcx, rcx
mov r10, qword [rdx + rcx*8]
lea r11, [rdx + rcx*8]
cmp r10, r8
jne 0x140005a2b
mov rcx, r8
jmp 0x140005a32
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140005a48
cmp r9d, dword [rax + 0x10]
je 0x140005a42
mov rax, qword [rax]
jmp 0x140005a21
cmovne rax, r8
jmp 0x140005a4b
mov rax, r8
cmp rax, r8
je 0x140005a5e
lea rbx, [rax + 0x14]
lea rcx, [rsp + 0x28]
jmp 0x140005b35
lea rcx, [rsp + 0x28]
call fcn.140005bb0
lea rdx, [rbx + 0xb0]
mov rcx, rbx
call fcn.1400057a0
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1400114b0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x20], r9d
movzx r8d, al
xor r8, rsi
imul r8, rdi
movzx ecx, byte [rsp + 0x21]
xor r8, rcx
imul r8, rdi
movzx eax, byte [rsp + 0x22]
xor r8, rax
imul r8, rdi
movzx eax, byte [rsp + 0x23]
xor r8, rax
imul r8, rdi
mov rdx, qword [rbx + 0xa0]
and rdx, r8
mov r8, qword [rbx + 0x88]
mov rax, rdx
add rax, rax
mov rax, qword [r8 + rax*8]
mov rcx, qword [rbx + 0x78]
add rdx, rdx
mov r10, qword [r8 + rdx*8]
lea r11, [r8 + rdx*8]
nop dword [rax]
cmp r10, rcx
jne 0x140005afa
mov rdx, rcx
jmp 0x140005b01
mov rdx, qword [r11 + 8]
mov rdx, qword [rdx]
cmp rax, rdx
je 0x140005b17
cmp r9d, dword [rax + 0x10]
je 0x140005b11
mov rax, qword [rax]
jmp 0x140005af0
cmovne rax, rcx
jmp 0x140005b1a
mov rax, rcx
cmp rax, rcx
jne 0x140005b2c
lea rcx, str.invalid_unordered_map_K__T__key
call fcn.140059784
int3
lea rbx, [rax + 0x14]
lea rcx, [rsp + 0x30]
call fcn.140005bb0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006610
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r10, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r9, r8
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
mov r8, qword [r10 + 0x30]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x1400066b8
cmp qword [rcx], r9
jne 0x1400066ae
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x1400066c3
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x1400066c3
cmp qword [rcx], r9
jne 0x1400066c8
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov rdx, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rdx], rbx
mov r8, qword [r9]
mov rdx, qword [r9 + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.14005ed1c
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400067c0
Capabilities:
Get session information

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1088], eax
mov qword [rsp + 0x1080], rax
lea rax, [rsp + 0x1088]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1080]
mov r8d, 0x18
mov edx, dword [rcx]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x14000686a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rdi]
lea rdx, str.Could_not_get_domain_for_session_ID__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
int3
lea rdx, [rsp + 0x1080]
lea rcx, [rsp + 0x48]
call fcn.140006ef0
nop
mov rdx, qword [rsp + 0x1080]
add rdx, 0x60
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140006890
mov rcx, rbx
call fcn.1400028c0
nop
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
call fcn.140006e50
mov rax, rbx
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x10a0
pop rdi
ret
Function at 0x140006d30
Capabilities:
Get session information

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x1088], eax
mov qword [rsp + 0x1080], rax
lea rax, [rsp + 0x1088]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1080]
mov r8d, 0x18
mov edx, dword [rcx]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x140006dda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [rdi]
lea rdx, str.Could_not_get_username_for_session_ID__i___i_.
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
int3
lea rdx, [rsp + 0x1080]
lea rcx, [rsp + 0x48]
call fcn.140006ef0
nop
mov rdx, qword [rsp + 0x1080]
add rdx, 0x82
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140006e00
mov rcx, rbx
call fcn.1400028c0
nop
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
call fcn.140006e50
mov rax, rbx
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.14005f0d0
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x10a0
pop rdi
ret

Function at 0x14000bde0
Capabilities:
Delete file

Disassembly:
push rdi
mov eax, 0x1070
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x14000be1b
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete dil
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000be47
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140003f50
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test dil, dil
je 0x14000beaa
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140002960
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000be7b
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_delete_file_at___s____i_.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret

Function at 0x14000bee0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x14000bf07
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14000bf2f
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003f50
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp ebx, 0xffffffff
je 0x14000bf50
test bl, 0x10
jne 0x14000bf50
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14000c830
Capabilities:
Create directory

Disassembly:
jmp 0x14000c850
push rdi
mov eax, 0x1070
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x14000c88b
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete dil
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000c8b9
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140003f50
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test dil, dil
je 0x14000c91c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140002960
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000c8ed
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_create_directory_at__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret

Function at 0x14000c850
Capabilities:
Create directory

Disassembly:
jmp 0x14000c850
push rdi
mov eax, 0x1070
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x14000c88b
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete dil
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000c8b9
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140003f50
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test dil, dil
je 0x14000c91c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140002960
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000c8ed
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.Could_not_create_directory_at__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret

Function at 0x14000c930
Capabilities:
Get file attributes

Disassembly:
jmp 0x14000c930
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x14000c957
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x14000c97f
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140003f50
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp ebx, 0xffffffff
je 0x14000c9a0
test bl, 0x10
je 0x14000c9a0
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140010df0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 0x10]
xor r8d, r8d
cmp qword [rdx + 0x18], 0x10
mov dword [rsp + 0x68], r8d
jb 0x140010e1c
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140010e4c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_send_message_to_named_pipe___i_.
lea rcx, [rsp + 0x30]
call fcn.140010b90
lea rdx, [0x1401353a0]
lea rcx, [rsp + 0x30]
call fcn.140060304
int3

Function at 0x140011190
Capabilities:
Read file on windows

Disassembly:
push rbx
mov eax, 0x1060
call fcn.14005f060
sub rsp, rax
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1058], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x1050]
mov ebx, edx
mov rax, r8
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x1050], edx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400111ff
mov eax, dword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1058]
xor rcx, rsp
call fcn.14005f0d0
add rsp, 0x1060
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.Could_not_read__i_bytes_from_file_stream___i_.
mov r9d, eax
lea rcx, [rsp + 0x30]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x30]
call fcn.140060304
int3

Function at 0x140011af0
Capabilities:
Delete registry key

Disassembly:
push rdi
mov eax, 0x1070
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1080], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x140011b2b
mov rax, qword [rax]
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140011b56
inc r8
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140003f50
mov qword [rsp + 0x38], 7
xor eax, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], ax
test ebx, ebx
je 0x140011bb0
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140002960
nop
cmp qword [rax + 0x18], 0x10
jb 0x140011b87
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_delete_specified_registry_subkey__s___i_.
lea rcx, [rsp + 0x50]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x50]
call fcn.140060304
nop
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1070
pop rdi
ret
Function at 0x140012180
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x10a0
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov qword [rsp + 0x10c8], rsi
mov rax, qword [0x1401385c0]
xor rax, rsp
mov qword [rsp + 0x1098], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x1090], esi
mov dword [rsp + 0x1094], 4
lea rcx, [rsp + 0x40]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x1400121e9
mov rax, qword [rax]
lea rcx, [rsp + 0x1094]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x1090]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rsi
mov r9d, 0x10
mov r8, rax
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001223b
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140003f50
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
test ebx, ebx
je 0x140012293
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140002960
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001226a
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_get_registry_value_as_32_bit_unsigned_int_with_name__s___i_.
lea rcx, [rsp + 0x70]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x70]
call fcn.140060304
nop
mov eax, dword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1098]
xor rcx, rsp
call fcn.14005f0d0
lea r11, [rsp + 0x10a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140012410
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.14005f060
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1090], rbx
mov qword [rsp + 0x1098], rsi
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400029b0
nop
cmp qword [rax + 0x18], 8
jb 0x140012453
mov rax, qword [rax]
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140012490
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140003f50
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp ebx, 2
jne 0x1400124ac
xor al, al
jmp 0x1400124f3
test ebx, ebx
je 0x1400124f1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002960
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400124c8
mov rax, qword [rax]
mov r9d, ebx
mov r8, rax
lea rdx, str.Could_not_check_if_registry_value_exists_with_name__s___i_.
lea rcx, [rsp + 0x60]
call fcn.140005290
lea rdx, [0x140135110]
lea rcx, [rsp + 0x60]
call fcn.140060304
nop
mov al, 1
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret