joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c7b0
Capabilities:
Enumerate files on windows
Get hostname

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x3d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140043700
nop
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x2b0]
call fcn.140065dd0
mov dword [rsp + 0x20], 0x104
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rcx, rsi
lea rbx, [rsp + 0x1a0]
sub rbx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004c840
lea rcx, [rsp + 0x1a0]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14004c860
mov eax, dword [0x1401038d0]
mov dword [rcx], eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004c947
cmp dword [rsp + 0x60], 0x10
je 0x14004c915
mov rcx, rsi
nop
movzx eax, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004c8a0
lea rax, [rsp + 0x1a0]
dec rax
nop dword [rax]
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x14004c8c0
lea r8, [rsp + 0x8c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14004c8e0
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x2b0]
call fcn.140046b50
xor edx, edx
mov r8d, 0x140
lea rcx, [rsp + 0x60]
call fcn.140065dd0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004c891
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x38]
call fcn.140043750
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14004cde0
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
push rbx
sub rsp, 0x480
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
mov byte [rsp + 0x250], 0
call fcn.140046b30
mov edx, 0x104
lea rcx, [rsp + 0x250]
test eax, eax
je 0x14004ce2d
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x14004ce33
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov rax, qword [rsp + 0x30]
test al, al
cmove rax, qword [0x1400b8e50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x140], 0
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rax, qword [rsp + 0x140]
movabs rcx, 0x746c7561666544
test al, al
cmove rax, rcx
mov qword [rsp + 0x140], rax
mov rcx, rbx
call fcn.1400457f0
lea r8, [rsp + 0x250]
lea rdx, str._systemroot_
mov rcx, rbx
call fcn.140045810
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x360]
call fcn.140065dd0
mov r8d, 0x104
lea rdx, [rsp + 0x360]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rdx, [rsp + 0x360]
mov rcx, rbx
call fcn.140044800
nop
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x480
pop rbx
ret
Function at 0x140050350
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor eax, eax
mov dword [rsp + 0x20], eax
test rdx, rdx
je 0x14005040c
test r8, r8
je 0x14005040c
mov qword [rsp + 0x28], rax
lea rcx, str.secur32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400503d6
lea rdx, str.GetUserNameExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400503d6
lea r8, [rsp + 0x60]
mov rdx, rsi
mov ecx, 2
call rax
movzx edi, al
mov dword [rsp + 0x20], edi
test al, al
jne 0x1400503ea
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x1400503f5
test rbx, rbx
je 0x140050404
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x14005040a
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14005a820
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x80]
jmp 0x14005c830
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x14005c880
xor r9d, r9d
lea r8d, [r9 + 0x36]
lea rdx, str.d:gitviewpoco_foundation_srcPipeImpl_WIN32.cpp
lea rcx, str._readHandle___INVALID_HANDLE_VALUE
call fcn.14005a9a0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005c908
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14005c908
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
mov r8d, 0xe
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x40]
call fcn.140003430
nop
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005b380
lea rdx, [0x14012dba0]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret

Function at 0x14005a990
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 0x80]
jmp 0x14005c930
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
jne 0x14005c980
xor r9d, r9d
lea r8d, [r9 + 0x2b]
lea rdx, str.d:gitviewpoco_foundation_srcPipeImpl_WIN32.cpp
lea rcx, str._writeHandle___INVALID_HANDLE_VALUE
call fcn.14005a9a0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005c9fa
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], al
lea r8d, [rax + 0xe]
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x40]
call fcn.140003430
nop
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005b4a0
lea rdx, [0x14012db20]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005c670
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
call fcn.14005ae00
nop
lea rax, vtable.Poco::PipeImpl.0
mov qword [rbx], rax
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
lea rdx, [rbx + 0x18]
lea rcx, [rbx + 0x10]
xor r9d, r9d
lea r8, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14005c72f
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], al
lea r8d, [rax + 0xe]
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x48]
call fcn.140003430
nop
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14005af30
lea rdx, [0x14012daa0]
lea rcx, [rsp + 0x70]
call fcn.140066028
nop
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0xd0
pop rbx
ret

Function at 0x14005c830
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x80]
jmp 0x14005c830
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x14005c880
xor r9d, r9d
lea r8d, [r9 + 0x36]
lea rdx, str.d:gitviewpoco_foundation_srcPipeImpl_WIN32.cpp
lea rcx, str._readHandle___INVALID_HANDLE_VALUE
call fcn.14005a9a0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005c908
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14005c908
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
mov r8d, 0xe
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x40]
call fcn.140003430
nop
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005b380
lea rdx, [0x14012dba0]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005c930
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 0x80]
jmp 0x14005c930
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
jne 0x14005c980
xor r9d, r9d
lea r8d, [r9 + 0x2b]
lea rdx, str.d:gitviewpoco_foundation_srcPipeImpl_WIN32.cpp
lea rcx, str._writeHandle___INVALID_HANDLE_VALUE
call fcn.14005a9a0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005c9fa
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], al
lea r8d, [rax + 0xe]
lea rdx, str.anonymous_pipe
lea rcx, [rsp + 0x40]
call fcn.140003430
nop
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005b4a0
lea rdx, [0x14012db20]
lea rcx, [rsp + 0x60]
call fcn.140066028
nop
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14007da90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400641b0
sub rsp, rax
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.140087e54
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x14007dae4
mov rax, r14
jmp 0x14007dbfe
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x136d00]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.14008d590
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x136d00]
cmp r13, qword [rbx + rcx + 0x30]
je 0x14007db4b
or rax, 0xffffffffffffffff
jmp 0x14007dbfe
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x136d00]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007db42
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.14008d590
test rax, rax
js 0x14007db42
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14007db42
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x14007dbf2
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007dbf2
cmp byte [rcx], 0xd
jne 0x14007dbd8
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007dbe7
cmp byte [rcx + 1], 0xa
jne 0x14007dbe7
inc rcx
jmp 0x14007dbe7
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x132740]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x14007dbba
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140084408
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140084293
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140084293
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140084293
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140084293
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140084293
cmp dword [rcx + 0x84], 0xe
jbe 0x140084293
cmp dword [rcx + 0xf8], 0
je 0x140084293
mov ecx, ebx
call fcn.140084334
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140084110
cmp dword [rbp + 0x20], 0
je 0x1400842e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400842e8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14008422c
Function at 0x14008c5a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x140136d00]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x14008c60d
cmp byte [r14], 0xa
jne 0x14008c60d
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14008c62e
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14008c788
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14008c748
cmp al, 0xd
je 0x14008c662
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14008c73d
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x14008c688
cmp byte [rax], 0xa
jne 0x14008c67a
mov byte [rbx], 0xa
mov eax, 2
jmp 0x14008c680
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x14008c73a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008c730
cmp dword [rsp + 0x78], 0
je 0x14008c730
mov rcx, rdi
lea r10, [0x140136d00]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14008c700
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x14008c70c
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14008c73a
cmp byte [rsp + 0x70], 0xa
jne 0x14008c711
cmp rbx, r14
jne 0x14008c711
mov byte [rbx], 0xa
jmp 0x14008c73a
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.14008d598
cmp byte [rsp + 0x70], 0xa
lea r10, [0x140136d00]
je 0x14008c73d
jmp 0x14008c737
lea r10, [0x140136d00]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x14008c647
jmp 0x14008c788
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14008c781
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14008c788
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008c7a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x140136d00]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x14008c814
cmp word [r14], r10w
jne 0x14008c814
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14008c835
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14008ca0e
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14008c9cc
cmp ax, cx
je 0x14008c871
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14008c965
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x14008c899
cmp word [rax], r10w
jne 0x14008c88b
mov word [rbx], r10w
mov eax, 4
jmp 0x14008c891
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14008c9af
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008c9b4
cmp dword [rsp + 0x80], 0
je 0x14008c9b4
mov rcx, rdi
lea r11, [0x140136d00]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14008c973
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14008c90b
mov word [rbx], r10w
jmp 0x14008c95d
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14008c92c
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x14008c851
jmp 0x14008ca0e
cmp word [rsp + 0x70], r10w
jne 0x14008c980
cmp rbx, r14
je 0x14008c905
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008d598
mov r10d, 0xa
lea r11, [0x140136d00]
cmp word [rsp + 0x70], r10w
je 0x14008c960
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14008c965
mov ecx, 0xd
lea r11, [0x140136d00]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14008c965
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14008ca05
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14008ca0e
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008d860
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008d880
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007f370
or eax, 0xffffffff
jmp 0x14008d882
xor eax, eax
add rsp, 0x28
ret
Function at 0x14009b550
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15d, r8d
mov rdi, rdx
mov r13, rcx
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
test rax, 0xfffffffffffffffc
je 0x14009b6f1
cmp r8d, 0xffffffff
jne 0x14009b5b9
call fcn.14009bc70
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14009b5b9
xor al, al
jmp 0x14009b6f3
xor r12d, r12d
mov ebp, r12d
mov qword [rsp + 0x30], r12
lea rdx, [r13 + 0xb0]
cmp qword [rdx + 0x18], 0x10
jb 0x14009b5d5
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [r13 + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rsi, qword [rsp + 0x30]
test eax, eax
je 0x14009b618
test rsi, rsi
je 0x14009b6f1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
mov qword [rsp + 0x30], r12
test rsi, rsi
je 0x14009b6f1
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x14009b6d9
mov edx, dword [rbx]
lea rcx, [rsp + 0x40]
call fcn.1400a4a70
nop
cmp qword [rax + 0x18], 0x10
jb 0x14009b648
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
sete r14b
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14009b69a
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, 0x1000
jb 0x14009b695
test cl, 0x1f
jne 0x14009b6d3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14009b6cd
sub rcx, rax
cmp rcx, 8
jb 0x14009b6c7
cmp rcx, 0x27
ja 0x14009b6c1
mov rcx, rax
call fcn.1400369b0
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], 0
lea eax, [rbp + 1]
test r14b, r14b
cmove eax, ebp
mov ebp, eax
add rbx, 4
jmp 0x14009b628
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jle 0x14009b6f1
mov edx, r15d
mov rcx, r13
call fcn.14009db80
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret