joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002438
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x468
mov rax, qword [0x140022970]
xor rax, rsp
mov qword [rsp + 0x450], rax
call fcn.140005ca4
test eax, eax
je 0x1400024de
mov rcx, qword [0x140028670]
lea r8, [rsp + 0x50]
mov r9d, 0x200
mov edx, 0x6e
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x14000249a
mov rcx, qword [0x140028678]
lea rdx, [rsp + 0x50]
mov r9d, 0x30
xor r8d, r8d
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [0x140022868], 5
jbe 0x140002564
movabs rdx, 0x200000000000
test qword [0x140022878], rdx
je 0x140002564
mov rax, qword [0x140022880]
and rax, rdx
cmp rax, qword [0x140022880]
jne 0x140002564
lea rdx, [0x14001eb7c]
jmp 0x140002540
mov rcx, qword [0x140028678]
lea r8, str.http:__go.microsoft.com_fwlink__LinkID148054
mov dword [rsp + 0x28], 5
lea rdx, str.open
and qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x140022868], 5
jbe 0x140002564
movabs rdx, 0x200000000000
test qword [0x140022878], rdx
je 0x140002564
mov rax, qword [0x140022880]
and rax, rdx
cmp rax, qword [0x140022880]
jne 0x140002564
lea rdx, [0x14001eb9c]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, [0x140022868]
xor r8d, r8d
mov dword [rsp + 0x20], 2
call fcn.140001270
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000bee0
add rsp, 0x468
ret

Function at 0x140005ca4
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rbx + 9]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140005cfd
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 3]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r9d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140005d12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140005f9c
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140022970]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor r8d, r8d
lea rcx, [0x140022868]
xor edx, edx
call fcn.14000109c
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140017054]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
sete cl
cmp dword [0x140022868], 5
mov dword [0x14002866c], ecx
jbe 0x140006054
movabs rcx, 0x200000000000
test qword [0x140022878], rcx
je 0x140006054
mov rax, qword [0x140022880]
and rax, rcx
cmp rax, qword [0x140022880]
jne 0x140006054
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14001e989]
xor r8d, r8d
mov dword [rsp + 0x20], 2
lea rcx, [0x140022868]
call fcn.140001270
mov rcx, rbx
call fcn.140001b18
test eax, eax
je 0x1400060ac
jmp 0x140006095
mov rdx, qword [0x140028660]
lea r8, [rsp + 0x30]
mov rcx, qword [0x140028678]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140006095
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140006062
call fcn.140005e6c
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bee0
add rsp, 0x70
pop rbx
ret
Function at 0x140008e50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [0x140028d00], 0
jne 0x140008f7b
cmp qword [0x140028d08], 0
jne 0x140008f7b
and dword [0x140028d10], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140028d08], rax
test rax, rax
jne 0x140008eb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x140008eb3
xor ecx, ecx
test ecx, ecx
jns 0x140008ebe
mov eax, ecx
jmp 0x140008f80
lea rax, [0x140028d14]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000a280]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140008f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140028d08]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140028d08], 0
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
jmp 0x140008f77
mov rcx, qword [0x140028d08]
or edi, 0xffffffff
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x140008f34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x140028d10]
test edi, edi
js 0x140008f49
mov qword [0x140028d00], rbx
xor ebx, ebx
jmp 0x140008f64
mov rcx, qword [0x140028d08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140028d08], 0
mov edi, dword [0x140028d10]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140008f77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x140008f80
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b16c
Capabilities:
Create thread

Disassembly:
jmp 0x14000b16c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov qword [0x140028d98], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400135e8]
cmp qword [0x140028da8], 0
jne 0x14000b275
and dword [0x140028da0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [0x140028d90], eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140028db0], rax
test rax, rax
jne 0x14000b1df
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000b1e1
xor ecx, ecx
test ecx, ecx
jns 0x14000b1ec
mov eax, ecx
jmp 0x14000b2b7
lea rax, [0x140028db8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000ae70]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000b22f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000b271
mov rcx, qword [0x140028db0]
or edi, 0xffffffff
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x14000b24b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x140028da0]
test edi, edi
js 0x14000b25e
mov qword [0x140028da8], rbx
xor ebx, ebx
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000b271
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14000b2b7
mov rcx, qword [0x140028db0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x140028db8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rcx, qword [0x140028db0]
or edi, 0xffffffff
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x14000b2b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000bc08
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140185000
add rsp, 0x28
jmp 0x14000bc08
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x1400293a0], rbx
je 0x14000bc52
cmp rax, rbx
jne 0x14000bc67
mov edi, 1
mov eax, dword [0x1400293a8]
cmp eax, 1
jne 0x14000bc74
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14000bce1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000bc3b
mov eax, dword [0x1400293a8]
test eax, eax
jne 0x14000bcd7
mov dword [0x1400293a8], 1
lea r14, [0x140013638]
lea rbx, [0x140013620]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14000bcc9
test eax, eax
jne 0x14000bccd
cmp qword [rbx], 0
je 0x14000bcbe
mov rax, qword [rbx]
mov rcx, qword [0x1400135e8]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000bc9f
test eax, eax
je 0x14000bce1
mov eax, 0xff
jmp 0x14000be34
mov dword [0x140028dd0], 1
mov eax, dword [0x1400293a8]
cmp eax, 1
jne 0x14000bd09
lea rdx, [0x140013618]
lea rcx, [0x1400135f0]
call sub.msvcrt.dll__initterm
mov dword [0x1400293a8], 2
test edi, edi
jne 0x14000bd16
xor eax, eax
xchg qword [0x1400293a0], rax
cmp qword [0x1400293c0], 0
je 0x14000bd4a
lea rcx, [0x1400293c0]
call fcn.14000c560
test eax, eax
je 0x14000bd4a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400293c0]
mov r9, qword [0x1400135e8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14000bdd6
test cl, cl
je 0x14000bd6d
test edi, edi
jne 0x14000bdd6
dec cl
cmp cl, 0x1f
ja 0x14000bd80
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14000bd6d
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140005f9c
mov dword [0x140028dcc], eax
cmp dword [0x140028df0], 0
jne 0x14000bdbf
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140028dd0], 0
jne 0x14000bdd4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140028dcc]
jmp 0x14000be34
cmp cl, 0x22
jne 0x14000bde8
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000bdfa
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14000bd5d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x14000c44c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c498
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c490
cmp dword [rcx + 0x3c], edx
jl 0x14000c490
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c490
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c498
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000cb5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
mov rbx, rdx
test rdx, rdx
je 0x14000cb8f
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000cbe1
mov rcx, qword [rsp + 0x38]
jmp 0x14000cb94
mov qword [rsp + 0x38], rcx
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test rbx, rbx
je 0x14000cbce
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x14000cbe1
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
jne 0x14000cbe1
lea eax, [rdi + 1]
jmp 0x14000cbe3
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000cbfc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbx, rdx
test rdx, rdx
je 0x14000cc2f
lea r8, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000cc68
mov rcx, qword [rsp + 0x48]
jmp 0x14000cc34
mov qword [rsp + 0x48], rcx
mov eax, dword [rsp + 0x60]
xor r8d, r8d
mov r9d, dword [rsp + 0x68]
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14000cc64
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14000cc6c
xor eax, eax
jmp 0x14000cc71
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000dfa8
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140022970]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, r8d
mov r14, rcx
test edx, edx
je 0x14000dfeb
mov rcx, qword [rcx + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
test ebx, ebx
je 0x14000e13b
mov rcx, qword [r14 + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [r14 + 0x18]
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x30]
mov rcx, r14
movups xmm0, xmmword [rax + 4]
movdqu xmmword [rbp - 0x30], xmm0
call fcn.14000d35c
mov r9d, dword [rbp - 0x1c]
or rdx, 0xffffffffffffffff
mov r8d, dword [rbp - 0x20]
mov ebx, dword [rbp - 0x14]
mov edi, dword [rbp - 0x18]
sub ebx, r9d
mov rcx, qword [r14 + 8]
sub edi, r8d
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rax, qword [r14 + 0x18]
cmp dword [rax + 0x1c], 0
je 0x14000e107
movups xmm0, xmmword [rax + 0x20]
mov rdx, qword [r14 + 8]
lea r8, [rbp - 0x20]
mov r9d, 2
xor ecx, ecx
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov r9d, dword [rbp - 0x14]
mov r8d, dword [rbp - 0x18]
mov edx, dword [rbp - 0x1c]
mov ecx, dword [rbp - 0x20]
mov r15, qword [r14 + 0x20]
call qword [sym.imp.GDI32.dll_CreateRectRgn]
mov r9d, ebx
mov r8d, edi
xor edx, edx
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateRectRgn]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateRectRgn]
mov r9d, 4
mov r8, rsi
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call qword [sym.imp.GDI32.dll_CombineRgn]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov rdx, rdi
mov qword [r14 + 0x20], rdi
call qword [sym.imp.USER32.dll_SetWindowRgn]
test r15, r15
je 0x14000e12c
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x14000e12c
cmp qword [r14 + 0x20], 0
je 0x14000e12c
mov rcx, qword [r14 + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowRgn]
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.GDI32.dll_DeleteObject]
and qword [r14 + 0x20], 0
mov rcx, qword [r14 + 8]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000bee0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000e3c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
lea rdi, [rcx + 0x208]
cmp qword [rdi], 0
jne 0x14000e40a
mov rdx, rcx
mov qword [rsp + 0x20], rdi
mov rcx, 0xffffffff80000001
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e40a
and qword [rdi], 0
lea rbx, [0x1400229a8]
mov esi, 0x27
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000e46c
mov rdx, qword [rbx - 8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e46c
cmp dword [rbx], 0
mov eax, dword [rsp + 0x40]
je 0x14000e469
cmp eax, dword [rbx + 4]
cmovl eax, dword [rbx + 4]
cmp eax, dword [rbx + 8]
cmovg eax, dword [rbx + 8]
mov dword [rsp + 0x40], eax
mov dword [rbx + 0xc], eax
add rbx, 0x20
sub rsi, 1
jne 0x14000e416
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e550
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
cmp edx, 0x26
ja 0x14000e5a7
mov rcx, qword [rcx + 0x210]
lea rdi, str.Framework
movsxd rbx, edx
mov r9d, 4
shl rbx, 5
xor r8d, r8d
mov dword [r11 - 0x10], r9d
mov eax, dword [rbx + rdi + 0x14]
mov rdx, qword [rbx + rdi]
mov dword [rsp + 0x48], eax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000e5ac
and dword [rbx + rdi + 0x18], eax
jmp 0x14000e5ac
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400117b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and dword [rcx + 0xa0], 0
xor r9d, r9d
mov rdi, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x98], rax
test rax, rax
jne 0x1400117fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x1400117ff
xor ecx, ecx
test ecx, ecx
jns 0x14001180a
mov eax, ecx
jmp 0x1400118c5
lea rax, [rdi + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400120b0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140011864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x98]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0x98], 0
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
jmp 0x1400118c3
mov rcx, qword [rdi + 0x98]
or esi, 0xffffffff
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
jne 0x140011880
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [rdi + 0xa0]
test esi, esi
js 0x140011895
mov qword [rdi + 0x88], rbx
xor ebx, ebx
jmp 0x1400118b0
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0x98], 0
mov esi, dword [rdi + 0xa0]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400118c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140006840]
mov dword [rax], 1
mov rax, qword [0x140006850]
mov dword [rax], 1
mov rax, qword [0x1400067d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140006820]
mov dword [0x140009020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400068f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400068d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140006780]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140002a70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090b4]
mov rbx, rcx
test esi, esi
jle 0x140002c10
mov rax, qword [0x1400090b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002bb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002c32
mov rax, qword [0x1400090b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002bae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002bc0
add dword [0x1400090b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002b38
mov rax, qword [0x1400090b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400031a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009100]
test rbx, rbx
je 0x1400031fc
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 0x1400031f3
test rsi, rsi
je 0x1400031f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400031d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]