joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005196c
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x1800519b0
cmp edx, 1
jne 0x180051a13
lea rax, [rsp + 0x48]
lea r8, [0x1800518b0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180051a13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180051a13
mov rcx, qword [0x18009b808]
test rcx, rcx
je 0x1800519cd
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x18009b800]
mov dword [0x18009b464], 1
test rcx, rcx
je 0x1800519f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x18009b800], 0
mov rcx, qword [0x18009b458]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180051a28
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, rcx
and qword [rax + 0x18], 0
and qword [rax + 0x10], 0
xor edi, edi
cmp qword [rcx], rdi
je 0x180051a68
mov dword [rax - 0x28], 1
lea rdx, [0x180081060]
lea rcx, [rax - 0x28]
call fcn.180054fb0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x18007bf98]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x18007bf88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x180051aa9
mov dword [rsp + 0x34], 2
lea rdx, [0x180081060]
lea rcx, [rsp + 0x34]
call fcn.180054fb0
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x38]
test eax, eax
jns 0x180051ad6
mov dword [rsp + 0x38], 3
lea rdx, [0x180081060]
lea rcx, [rsp + 0x38]
call fcn.180054fb0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x38]
test eax, eax
jns 0x180051b01
mov dword [rsp + 0x3c], 4
lea rdx, [0x180081060]
lea rcx, [rsp + 0x3c]
call fcn.180054fb0
cmp qword [rbx], 0
jne 0x180051b21
mov dword [rsp + 0x40], 1
lea rdx, [0x180081060]
lea rcx, [rsp + 0x40]
call fcn.180054fb0
nop
jmp 0x180051b27
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180051b37
mov rdx, qword [rcx]
call qword [rdx + SQLNumResultCols]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180051b47
mov rdx, qword [rcx]
call qword [rdx + SQLNumResultCols]
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18005639b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800830c8]
jne 0x1800527fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1800527f6
repz ret
ror rcx, 0x10
jmp 0x1800562f4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18009b8f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18009b9e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180056379
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18009b8f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18005639b
mov rax, qword [rsp + 0x88]
mov qword [0x18009b9e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18009b988], rax
mov rax, qword [0x18009b9e8]
mov qword [0x18009b860], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18009b970], rax
mov dword [0x18009b850], 0xc0000409
mov dword [0x18009b854], 1
mov rax, qword [0x1800830c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800830d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18009b8e8], eax
mov ecx, 1
call fcn.18005eda4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18007c2c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18009b8e8], 0
jne 0x180056422
mov ecx, 1
call fcn.18005eda4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18005792c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.18005f2b4
nop
cmp dword [0x18009be60], 1
je 0x1800578d8
mov dword [0x18009be5c], 1
mov byte [0x18009be58], r12b
test ebx, ebx
jne 0x1800578c4
mov rcx, qword [0x18009d910]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800578b1
mov rcx, qword [0x18009d908]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x180057850
call fcn.180057030
cmp qword [rdi], rax
jne 0x180057850
jmp 0x180057836
cmp rdi, rsi
jb 0x1800578b1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.180057030
mov qword [rdi], rax
call rbx
mov rcx, qword [0x18009d910]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x18009d908]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x18005788f
cmp r13, rax
je 0x1800578af
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x180057836
lea rdx, [0x1800665b0]
lea rcx, [0x180066598]
call fcn.180057680
lea rdx, [0x1800665c0]
lea rcx, [0x1800665b8]
call fcn.180057680
nop
test r12d, r12d
je 0x1800578e7
mov ecx, 8
call fcn.18005f1b4
test r12d, r12d
jne 0x180057912
mov dword [0x18009be60], 1
lea ecx, [r12 + 8]
call fcn.18005f1b4
mov ecx, r15d
call fcn.180057614
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800577a0
Function at 0x18005fd04
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180057030
xor ebx, ebx
mov rdi, rax
cmp qword [0x18009c620], rbx
jne 0x18005fe0a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18005fedf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18005fedf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18009c620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18009c628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18009c630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18009c640], rax
test rax, rax
je 0x18005fe01
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18009c638], rax
jmp 0x18005fe11
mov rax, qword [0x18009c638]
jmp 0x18005fe18
mov rax, qword [0x18009c638]
mov r11, qword [0x18009c640]
cmp rax, rdi
je 0x18005fe80
cmp r11, rdi
je 0x18005fe80
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18009c640]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18005fe80
test rax, rax
je 0x18005fe80
call rsi
test rax, rax
je 0x18005fe7a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18005fe7a
test byte [rsp + 0x38], 1
jne 0x18005fe80
bts ebp, 0x15
jmp 0x18005febe
mov rcx, qword [0x18009c628]
cmp rcx, rdi
je 0x18005febe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18005febe
call rax
mov rbx, rax
test rax, rax
je 0x18005febe
mov rcx, qword [0x18009c630]
cmp rcx, rdi
je 0x18005febe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18005febe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18009c620]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18005fedf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18005fee1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007a60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007a60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140001ea0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001da0
mov rcx, rbx
call fcn.1400027c0
test rax, rax
mov rdi, rax
je 0x140001ec2
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002900
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e50
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d00
nop dword [rax]
xor esi, esi
jmp 0x140001dc8
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001d00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002430
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000248c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002483
test rsi, rsi
je 0x140002483
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002468
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400027c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a7b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000283d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002834
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400027e0
add rax, 0x28
cmp rax, r9
jne 0x140002820
xor eax, eax
ret

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000285f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002868
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000285f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000291f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002928
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001124e
Capabilities:
Terminate process

Disassembly:
jmp 0x140014c30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015f80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015fa0
xor al, al
jmp 0x140016021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015fb3
xor al, al
jmp 0x140016021
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015fdd
xor al, al
jmp 0x140016021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015ff1
xor al, al
jmp 0x140016021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016003
xor al, al
jmp 0x140016021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001601f
xor al, al
jmp 0x140016021
mov al, 1
add rsp, 0x38
ret
Function at 0x140003790
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xfa8]
mov eax, 0x1080
call fcn.1400143c0
sub rsp, rax
mov rbx, rcx
lea rdi, [rsp + 0x30]
xor esi, esi
lea rdx, [rsp + 0x50]
xor eax, eax
mov dword [rbp + 0xfc0], esi
mov dword [rbp + 0xfb8], esi
mov r15d, 0x1000
lea ecx, [rsi + 0x10]
rep stosb byte [rdi], al
mov eax, dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x3c], eax
lea ecx, [rsi + 0x38]
xor eax, eax
mov dword [rsp + 0x30], 0x30b0005
rep stosb byte [rdi], al
lea r14d, [rsi + 1]
mov dword [rsp + 0x34], InitCommonControls
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x38], 0x48
lea r12d, [rsi + 5]
mov qword [rsp + 0x40], 0x10001000
mov byte [rsp + 0x48], r14b
mov dword [rsp + 0x4c], 0x10000
mov dword [rsp + 0x74], 2
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x14000393f
lea rdx, [rsp + 0x64]
mov dword [rsp + 0x60], 2
lea rcx, str.8a885d04_1ceb_11c9_9fe8_08002b104860
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x14000393f
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000393f
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x38]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000393f
add dword [rbx + 8], r14d
lea rdi, [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x20], rsi
mov ecx, r15d
lea r9, [rbp + 0xfb8]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000393f
cmp word [rbp - 0x80], r12w
jne 0x14000393f
cmp byte [rbp - 0x7e], 0xc
jne 0x14000393f
cmp byte [rbp - 0x7d], 3
jne 0x14000393f
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x14000393f
mov eax, pe_nt_image_headers64
cmp word [rbp - 0x68], ax
ja 0x14000393f
movzx edx, word [rbp - 0x68]
lea rcx, [rdx + 5]
and rcx, 0xfffffffffffffffc
sub rcx, rdx
sub rcx, 2
mov ecx, ecx
add rcx, rdx
cmp dword [rbp + rcx - 0x66], r14d
jne 0x14000393f
cmp word [rbp + rcx - 0x62], si
jne 0x14000393f
mov eax, r14d
jmp 0x140003941
xor eax, eax
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003960
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.1400143c0
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov dword [rbp + 0xf70], esi
mov dword [rbp + 0xf80], esi
cmp dword [rcx + 0x10], esi
je 0x140003afb
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140003afb
xor eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x10]
mov ecx, r8d
lea rdi, [rsp + 0x30]
rep stosb byte [rdi], al
movzx eax, word [rbx + 0x814]
lea rdi, [rbp + 0xf88]
add ax, 0x18
mov dword [rsp + 0x30], 0x3000005
mov word [rsp + 0x38], ax
lea ecx, [rsi + 8]
mov eax, dword [rbx + 8]
lea r9, [rbp + 0xf70]
mov dword [rsp + 0x3c], eax
lea r14d, [rsi + 5]
xor eax, eax
mov dword [rsp + 0x34], r8d
rep stosb byte [rdi], al
mov rcx, qword [rbx]
mov word [rbp + 0xf8e], dx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x3a], si
mov dword [rbp + 0xf88], esi
mov word [rbp + 0xf8c], si
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003afb
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
lea r8d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xf88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003afb
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003afb
inc dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov edx, 0x1000
mov qword [rsp + 0x20], rsi
mov ecx, edx
lea r9, [rbp + 0xf80]
xor eax, eax
mov r8d, edx
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003afb
cmp word [rsp + 0x40], r14w
jne 0x140003afb
cmp byte [rsp + 0x42], 2
jne 0x140003afb
cmp byte [rsp + 0x43], 3
jne 0x140003afb
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140003afb
cmp word [rsp + 0x54], si
jne 0x140003afb
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140003afb
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.140013ba0
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140003afd
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000d850
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, qword [rsp + 0x90]
mov r14, r9
and dword [rax + 0x20], 0
mov ebp, r8d
and qword [r9], 0
mov r12, rcx
mov rsi, qword [rsp + 0x98]
and dword [r15], 0
test rsi, rsi
jne 0x14000d8a2
mov rax, qword gs:[0x30]
mov r9, qword [rax + 0x60]
mov rsi, qword [r9 + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, r12
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x14000d995
mov r8d, dword [rsp + 0x88]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000d990
mov ecx, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, r12
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000d980
cmp dword [rdi + 4], ebp
jne 0x14000d97b
mov r8d, dword [rdi + 8]
mov edx, 8
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000d974
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140013ba0
mov qword [r14], rbx
xor ebx, ebx
mov eax, dword [rdi + 8]
mov dword [r15], eax
jmp 0x14000d980
mov ebx, 0xc0000017
jmp 0x14000d980
mov ebx, 0xc0000024
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000d995
mov ebx, 0xc0000017
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14000d9b0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x90
mov r10, rcx
lea rdi, [rsp + 0x20]
xor eax, eax
lea r11d, [rax + 0x70]
mov ecx, r11d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], 0x440
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x30], r8
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x88]
add rsp, 0x90
pop rdi
ret

Function at 0x14000da10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call fcn.14000d9b0
mov rdi, rax
test rax, rax
je 0x14000da5a
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000da4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 0x102
cmp eax, edx
jne 0x14000da4c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret