joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011958
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, rdx
mov rbp, rcx
xor ebx, ebx
lea rdx, [rsp + 0x50]
and qword [rsp + 0x40], rbx
mov ecx, 0x104
mov r14, r9
mov r15, r8
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400119c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011a93
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x140011a60
mov qword [rsp + 0x28], r12
lea r8, [rsp + 0x50]
mov r9, rbp
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x40]
call fcn.1400107bc
mov ebx, eax
test eax, eax
js 0x140011a93
and qword [rsp + 0x30], 0
lea eax, [rdi + 2]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140011a4e
xor ebx, ebx
jmp 0x140011a52
test ebx, ebx
js 0x140011a93
inc esi
cmp esi, 0x3e8
jl 0x1400119c4
test r14, r14
je 0x140011a68
mov qword [r14], rdi
test r15, r15
je 0x140011a7b
mov rax, qword [rsp + 0x40]
and qword [rsp + 0x40], 0
mov qword [r15], rax
test ebx, ebx
js 0x140011a84
test r14, r14
jne 0x140011a93
cmp rdi, 0xffffffffffffffff
je 0x140011a93
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011aa2
call fcn.140010d48
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400148c0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140011ac8
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140011b4d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011b01
mov ebx, 0x80070005
jmp 0x140011b5b
test al, 0x10
je 0x140011b0c
mov ebx, 0x8000ffff
jmp 0x140011b5b
test al, 7
je 0x140011b5b
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140011b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011b5b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140011ca0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rbp, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x140011cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011d8f
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140011d12
mov ebx, 0x8007000e
jmp 0x140011d8f
mov edx, dword [rsp + 0x68]
mov r9, rax
mov r8d, esi
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140011d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011d86
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140029d28]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140011d75
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011d86
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140012164
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov r13, r9
mov rcx, rdx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea r9, [0x140037b50]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rdi, r12
cmp dword [0x140037f50], ebx
jne 0x1400121f0
mov dword [0x140037f50], 1
mov ecx, ebx
mov r8, r9
mov eax, ecx
mov edx, 8
test al, 1
je 0x1400121d7
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400121d9
shr eax, 1
dec edx
test edx, edx
jg 0x1400121ca
mov dword [r8], eax
inc ecx
add r8, 4
cmp ecx, 0xff
jle 0x1400121c3
test r11d, r11d
je 0x14001221a
mov edx, r11d
movzx ecx, byte [rdi]
mov eax, r10d
xor rcx, rax
inc rdi
movzx eax, cl
mov ecx, r10d
shr ecx, 8
mov r10d, dword [r9 + rax*4]
xor r10d, ecx
sub rdx, 1
jne 0x1400121f8
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r15 + 0x18]
mov edi, edx
cmp dword [r15 + 0x18], ebx
jbe 0x140012265
mov rbp, qword [r15 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x140012289
test rcx, rcx
je 0x140012258
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400122b2
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x14001229b
cmp dword [rbp + rsi*8], ebx
jne 0x14001229b
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x1400122b2
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400122b2
inc edi
cmp edi, dword [r15 + 0x18]
jb 0x1400122a7
sub edi, dword [r15 + 0x18]
inc r14d
cmp r14d, dword [r15 + 0x18]
jb 0x140012231
jmp 0x140012265
mov dword [r13], edi
jmp 0x14001226a

Function at 0x1400130ec
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x30], 0x10
and qword [r11 - 0x30], rax
lea r9, [r11 - 0x20]
mov qword [r11 - 0x20], rax
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rax, [r11 - 0x28]
mov edx, 0x4000000b
mov qword [r11 - 0x38], rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140013158
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001317e
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001317e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400148c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140013198
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x50], 4
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x10], rbx
lea r9, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov edx, 0x20000005
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400131eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400131f2
mov ecx, dword [rsp + 0x58]
mov qword [rdi], rcx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140013868
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x10], rbx
mov r8d, edx
and dword [rsp + 0x40], ebx
mov ebp, r9d
mov qword [r11 - 0x28], rax
mov rdx, rcx
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x10]
xor r9d, r9d
mov qword [r11 - 0x38], rax
mov ecx, 0x900
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x1400138d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013967
test esi, esi
je 0x140013926
mov rcx, qword [0x1400370b0]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001391e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013967
add edi, dword [rsp + 0x40]
cmp edi, esi
jb 0x1400138dd
test ebp, ebp
je 0x140013967
mov rdx, qword [0x1400370c0]
lea r9, [rsp + 0x40]
mov rcx, qword [0x1400370b0]
mov r8d, 2
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013967
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013977
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140013990
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov ebp, r8d
mov r8, rdx
xor edi, edi
and dword [rax + 0x20], edi
mov rdx, rcx
lea rcx, [rax - 0x18]
call fcn.140010b44
mov ebx, eax
test eax, eax
js 0x140013a65
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test eax, eax
je 0x140013a24
mov rcx, qword [0x1400370b0]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013a1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013a65
add edi, dword [rsp + 0x68]
cmp edi, esi
jb 0x1400139db
test ebp, ebp
je 0x140013a65
mov rdx, qword [0x1400370c0]
lea r9, [rsp + 0x68]
mov rcx, qword [0x1400370b0]
mov r8d, 2
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140013a74
call fcn.140010d48
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140013b2c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x1400370b0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
je 0x140013cac
cmp qword [0x140037f58], rbx
je 0x140013cac
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140013bb1
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140015700
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
call fcn.140011ca0
test eax, eax
jns 0x140013bd1
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140013bfb
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140015700
xor ecx, ecx
call fcn.140014434
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140013e80
mov edx, dword [rsp + 0x40]
lea r8, [rbp + 0x160]
mov r9d, dword [rsp + 0x44]
movzx ecx, dx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
mov ecx, 1
shr edx, 0x10
mov dword [rsp + 0x28], edx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140013e80
mov ecx, dword [0x1400370b8]
test ecx, ecx
je 0x140013c8f
sub ecx, 1
je 0x140013c86
sub ecx, 1
je 0x140013c7d
cmp ecx, 1
jne 0x140013c96
lea rdi, str.debug
jmp 0x140013c96
lea rdi, str.verbose
jmp 0x140013c96
lea rdi, str.standard
jmp 0x140013c96
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140013e80
jmp 0x140013cb1
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400148c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140013ea4
Capabilities:
Write file on windows

Disassembly:
mov r9, r8
mov r10, rdx
cmp ecx, 4
je 0x140013eb7
cmp dword [0x1400370b8], ecx
jl 0x140013edc
cmp qword [0x1400370b0], 0xffffffffffffffff
je 0x140013edc
cmp qword [0x140037f58], 0
je 0x140013edc
mov r8d, 1
mov rdx, r9
mov rcx, r10
jmp fcn.140013990
mov eax, 1
ret
Function at 0x140013f44
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov r8, rdx
mov edx, 0x104
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
call fcn.140018a60
cmp eax, 0x50
jne 0x140013f88
mov eax, 0x8007007a
jmp 0x140013fc9
xor edi, edi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test eax, eax
jne 0x140013fea
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.1400163ac
test rax, rax
je 0x140013fbb
mov word [rax], di
cmp di, word [rax + 2]
je 0x140013f9e
cmp word [rsp + 0x20], di
je 0x140013fc7
test rax, rax
jne 0x140013f8a
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400148c0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140014001
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140014003
mov eax, edi
cmp eax, 1
jne 0x140013fc9
jmp 0x140013f8a

Function at 0x14001400c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140014111
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014124
mov rcx, qword [rsp + 0x40]
call fcn.14001400c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014124
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014124
jmp 0x140014119
cmp ebx, 0x80070103
je 0x140014122
test ebx, ebx
jne 0x140014124
jmp 0x140014040
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014134
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400148c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001415c
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140014198
lea ebx, [rax - 1]
jmp 0x1400141e5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400141e5
mov rcx, qword [rsp + 0x50]
call fcn.14001400c
mov ebx, eax
test eax, eax
js 0x1400141e5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400141f5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140014208
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014280
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140014261
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
test eax, eax
je 0x140014280
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140014b64
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140014bf5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140014bf5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014bf5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140014bd9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140014bd3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140014bdb
add rdx, 0x28
jmp 0x140014bb8
xor edx, edx
test rdx, rdx
jne 0x140014be4
xor al, al
jmp 0x140014bfb
test dword [rdx + 0x24], 0x80000000
je 0x140014bf1
xor al, al
jmp 0x140014bfb
mov al, 1
jmp 0x140014bfb
xor al, al
jmp 0x140014bfb
add rsp, 0x18
ret

Function at 0x14001509c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14001d990
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001d77c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d77c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d77c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d77c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d77c
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d77c
cmp dword [rcx + 0xf8], esi
je 0x14001d77c
mov ecx, r14d
call fcn.14001d8ac
mov ecx, 2
call fcn.1400214b4
nop
cmp byte [0x1400387d8], 0
jne 0x14001d846
mov r15d, 1
mov eax, r15d
xchg dword [0x1400387cc], eax
test ebx, ebx
jne 0x14001d7ef
mov rdi, qword [0x1400370c8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400387d0]
cmp rcx, rax
je 0x14001d7e6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140014d8c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400387f0]
jmp 0x14001d7fb
cmp ebx, r15d
jne 0x14001d801
lea rcx, [0x140038808]
call fcn.14001dbd0
nop
test ebx, ebx
jne 0x14001d818
lea rdx, [0x1400295c8]
lea rcx, [0x1400295a8]
call fcn.14001d63c
lea rdx, [0x1400295d8]
lea rcx, [0x1400295d0]
call fcn.14001d63c
movzx eax, byte [0x1400387d8]
test esi, esi
cmove eax, r15d
mov byte [0x1400387d8], al
jmp 0x14001d846
mov ecx, 2
call fcn.140021508
test esi, esi
jne 0x14001d85d
mov ecx, r14d
call fcn.14001d878
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001d70c
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14000c030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x3c], 0
mov rax, qword [str.EtwEventWrite]
mov qword [rsp + 0x4a], rax
mov eax, dword [0x140008168]
mov dword [rsp + 0x52], eax
mov ax, word [0x14000816c]
mov word [rsp + 0x56], ax
mov eax, dword [str.ntdll]
mov dword [rsp + 0x44], eax
mov ax, word [0x140008172]
mov word [rsp + 0x48], ax
mov eax, dword [0x140008174]
mov dword [rsp + 0x40], eax
lea rsi, [rsp + 0x4a]
lea rcx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
lea r9, [rsp + 0x3c]
mov edx, 0x1000
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov r8d, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
lea r9, [rsp + 0x3c]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006710
xor eax, eax
add rsp, 0x60
pop rsi
ret