joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009078
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140036150]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, qword [rbp + 0x40]
mov r14, r9
mov rdi, rdx
test rsi, rsi
jne 0x1400090c2
lea r8, str.pdwValue
mov edx, 0x21b
lea rcx, str.onecore_basecbsutilcbsreg.cpp
call fcn.140007e20
xor ebx, ebx
mov rcx, 0xffffffff80000002
and qword [rbp - 0x20], rbx
and dword [rbp - 0x14], ebx
and dword [rbp - 0x18], ebx
and dword [rbp - 0x10], ebx
test rdi, rdi
je 0x140009152
lea rax, [rbp - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x140009116
movzx ebx, cx
or ebx, 0x80070000
jmp 0x1400091f4
test ecx, ecx
je 0x14000914c
jg 0x140009120
mov ebx, ecx
jmp 0x140009129
movzx ebx, cx
or ebx, 0x80070000
lea r9, str.Failed_to_open_the_registry_root:_n_a__key:__S.
mov qword [rsp + 0x20], rdi
mov r8d, 1
mov edx, ebx
mov ecx, 0x4000000
call fcn.1400066ac
jmp 0x1400091f4
mov rcx, qword [rbp - 0x20]
jmp 0x140009156
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x18]
mov dword [rbp - 0x18], 4
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x10]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 2
jne 0x140009191
mov ebx, 0x80070002
jmp 0x1400091ef
test eax, eax
je 0x1400091c4
jg 0x14000919b
mov ebx, eax
jmp 0x1400091a4
movzx ebx, ax
or ebx, 0x80070000
lea r9, str.Failed_to_query_registry_value:__S
mov qword [rsp + 0x20], r14
mov r8d, 1
mov edx, ebx
mov ecx, 0x4000000
call fcn.1400066ac
jmp 0x1400091ef
cmp dword [rbp - 0x14], 4
je 0x1400091ea
mov ebx, 0x8007000d
lea r9, str.Registry_value_is_not_a_DWORD_type.
mov edx, ebx
mov r8d, 1
mov ecx, 0x4000000
call fcn.1400066ac
jmp 0x1400091ef
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
test rdi, rdi
je 0x140009209
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140009209
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001450
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140009544
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140036150]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
and qword [r11 - 0x18], rbx
lea rax, [r11 - 0x18]
xor r8d, r8d
lea rdi, str.SOFTWAREMicrosoftWindowsCurrentVersionSideBySide
mov qword [r11 - 0x28], rax
mov rdx, rdi
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400095a9
movzx ebx, cx
or ebx, 0x80070000
jmp 0x140009635
test ecx, ecx
je 0x1400095c5
jg 0x1400095b3
mov ebx, ecx
jmp 0x1400095bc
movzx ebx, cx
or ebx, 0x80070000
lea r9, str.Failed_to_open_key:__S
jmp 0x14000961e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
mov r9d, 4
lea rdi, str.MaintenanceFlags
mov dword [rsp + 0x28], r9d
mov rdx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
cmp eax, 2
jne 0x140009604
mov ebx, 0x80070002
jmp 0x140009635
test eax, eax
je 0x140009635
jg 0x14000960e
mov ebx, eax
jmp 0x140009617
movzx ebx, ax
or ebx, 0x80070000
lea r9, str.Failed_to_set_registry_value:__S
mov r8d, 1
mov qword [rsp + 0x20], rdi
mov edx, ebx
mov ecx, 0x4000000
call fcn.1400066ac
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000964b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001450
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140009ab0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140036150]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rdi, rcx
test rcx, rcx
jne 0x140009af6
lea r8, str.szPath
mov edx, 0x1bf
lea rcx, str.onecore_basecbsutilcbsfile.cpp
call fcn.140007e20
xor edx, edx
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140009c7d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140009c7d
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140009b6c
mov ebx, 0x80070003
mov qword [rsp + 0x20], rdi
lea r9, str.Cannot_find_parent_for_path:__S.
mov edx, ebx
mov ecx, 0x4000000
mov r8d, 1
call fcn.1400066ac
jmp 0x140009c7d
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400021a2
sub rbx, rdi
sar rbx, 1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140009b88
cmp rbx, rax
ja 0x140009c1a
cmp rbx, 0x7ffffffe
jbe 0x140009bac
mov ebx, 0x80070057
mov edx, ebx
jmp 0x140009c09
lea rax, [rsp + 0x30]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x30]
mov r8d, 0x104
lea rax, [rbx - 0x104]
add rax, r8
je 0x140009be4
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140009be4
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x140009bc2
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
mov rax, r8
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov edx, ebx
test r8, r8
jne 0x140009c1a
mov qword [rsp + 0x20], rdi
lea r9, str.Failed_to_copy_parent_of_path:__S
jmp 0x140009b57
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140009ab0
mov ebx, eax
test eax, eax
jns 0x140009c42
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, str.Failed_to_create_path:__S
jmp 0x140009b55
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140009c7b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
je 0x140009c7b
test eax, eax
jle 0x140009c7d
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140009c7d
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001450
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017004
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
and qword [rsp + 0x40], rdi
mov rcx, rdx
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400170ab
test al, 0x10
jne 0x1400170ab
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x40]
lea rdx, str._ssshim.dll
call fcn.140016e84
mov rbx, qword [rsp + 0x40]
test eax, eax
js 0x140017086
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x140017086
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rbx, rbx
je 0x1400170ab
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140030e80]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140030e90]
mov dword [rax], 1
mov rax, qword [0x140030ea0]
mov dword [rax], 1
mov rax, qword [0x140030e20]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140030e70]
mov dword [0x14003800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140030f80]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140030f60]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140030be0]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
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
lea rcx, [sym._matherr]
call sym.__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 0x140001570
Capabilities:
Log keystrokes via application hook

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [sym.HookProc_int__unsigned_long_long__long_long_]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbp, qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, rax
mov rsi, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop dword [rax]
xor r9d, r9d
mov r8, rbx
mov rdx, r12
mov ecx, 0xd
call rbp
mov ecx, 0x19
mov qword [0x140038310], rax
call rdi
mov rcx, qword [0x140038310]
call rsi
jmp 0x1400015a8

Function at 0x1400016d0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov r8d, 5
lea rbx, [rbp - 5]
mov rsi, rcx
mov rdi, rdx
mov rdx, rbx
call qword [sym.imp.USER32.dll_GetClassNameA]
mov rcx, rbx
mov r12, qword [sym.imp.msvcrt.dll__stricmp]
lea rdx, str.Afx:
call r12
test eax, eax
mov ebx, eax
je 0x140001730
mov ebx, 1
mov eax, ebx
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rsi
mov r14, rsp
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd r13, eax
lea eax, [r13 + 2]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.140015680
lea r8d, [r13 + 1]
sub rsp, rax
mov rcx, rsi
lea r15, [rsp + 0x20]
mov rdx, r15
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rdx, qword [0x14002c010]
mov rcx, r15
call r12
test eax, eax
jne 0x140001788
mov qword [rdi], rsi
mov rsp, r14
jmp 0x14000171d
mov rdx, qword [0x14002c018]
mov rcx, rdx
mov qword [rbp - 0x18], rdx
call sym.strlen
mov rdx, qword [rbp - 0x18]
sub r13, rax
lea rcx, [r15 + r13]
call r12
test eax, eax
je 0x14000177b
mov rsp, r14
jmp 0x140001718
Function at 0x1400017c0
Capabilities:
Get graphical window text

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
cmp ecx, 5
mov ebx, ecx
mov rsi, rdx
mov r9, r8
je 0x140001800
mov r8, rsi
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CallNextHookEx]
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret
lea rdi, [rbp - 7]
mov qword [rbp + 0x50], r8
mov rcx, rsi
mov r8d, 7
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetClassNameA]
lea rcx, str.32770
mov rdx, rdi
mov rdi, qword [sym.imp.msvcrt.dll__stricmp]
call rdi
mov r9, qword [rbp + 0x50]
test eax, eax
jne 0x1400017de
mov rcx, rsi
mov r12, rsp
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov r8d, eax
lea eax, [rax + 2]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.140015680
sub rsp, rax
add r8d, 1
mov rcx, rsi
lea r13, [rsp + 0x20]
mov rdx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, [0x14002d00c]
mov rcx, r13
call rdi
mov r9, qword [rbp + 0x50]
test eax, eax
je 0x1400018d8
mov qword [rbp + 0x50], r9
lea rdx, str.USB_Setting
mov rcx, r13
call rdi
mov r9, qword [rbp + 0x50]
test eax, eax
jne 0x140001940
mov rdi, qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea r8, [0x14002d034]
mov edx, 6
mov rcx, rsi
call rdi
lea r8, [0x14002d03b]
mov edx, 7
mov rcx, rsi
call rdi
mov r9, qword [rbp + 0x50]
mov rsp, r12
jmp 0x1400017de
mov rdi, qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea r8, [0x14002d015]
mov edx, 6
mov rcx, rsi
call rdi
lea r8, [0x14002d01a]
mov edx, 7
mov rcx, rsi
call rdi
lea r8, [0x14002d023]
mov edx, 2
mov rcx, rsi
call rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov r8d, 1
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov r9, qword [rbp + 0x50]
jmp 0x1400018cb
mov qword [rbp + 0x50], r9
lea rdx, [0x14002d042]
mov rcx, r13
call rdi
mov r9, qword [rbp + 0x50]
test eax, eax
jne 0x1400018cb
mov rdi, qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea r8, [0x14002d04f]
mov edx, 6
mov rcx, rsi
call rdi
lea r8, [0x14002d058]
mov edx, 7
mov rcx, rsi
call rdi
lea r8, [0x14002d061]
mov edx, 2
mov rcx, rsi
call rdi
mov r9, qword [rbp + 0x50]
jmp 0x1400018cb
Function at 0x1400019a0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x420
xor edx, edx
mov r8d, 0x3f8
mov qword [rsp + 0x20], 0
lea rbx, [rsp + 0x20]
mov rsi, rcx
lea rcx, [rsp + 0x28]
call sym.memset
mov rax, qword [rsi]
lea rdx, [0x14002d066]
mov rcx, rbx
lea r9, [0x14002d06b]
test byte [rax + 4], 1
mov r8d, dword [rax]
cmovne r9, rdx
lea rdx, [0x14002d078]
call sym.sprintf_char__char_const__::_
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov ecx, 5
lea rdx, [sym.CBTProc_int__unsigned_long_long__long_long_]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdx, rbx
xor ecx, ecx
mov r9d, 0x213
lea r8, [0x14002d042]
mov rdi, rax
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp ebx, 6
je 0x140001a70
xor eax, eax
cmp ebx, 7
je 0x140001a5b
mov rdx, qword [rsi]
mov eax, 0xffffffff
test byte [rdx + 4], 1
je 0x140001a5b
mov eax, 1
add rsp, 0x420
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, 5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
jmp 0x140001a5b

Function at 0x140001c00
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea rdi, [rsp + 0x20]
mov rsi, rcx
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sym.Process32First
test eax, eax
je 0x140001c78
mov rbp, qword [sym.imp.msvcrt.dll__stricmp]
lea r12, [rsp + 0x4c]
jmp 0x140001c5f
mov rdx, rdi
mov rcx, rbx
call sym.Process32Next
test eax, eax
je 0x140001c78
mov rdx, rsi
mov rcx, r12
call rbp
test eax, eax
jne 0x140001c50
mov esi, dword [rsp + 0x28]
jmp 0x140001c7a
xor esi, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001ca0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xa70
xor edx, edx
mov r8d, 0xa20
mov qword [rsp + 0x40], 0
mov rdi, rcx
lea rcx, [rsp + 0x48]
call sym.memset
lea rax, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x34], 0xa28
mov qword [rsp + 0x20], rax
mov r9d, 0x201
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWARETopDomaine_Learning_ClassStudent
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001d10
xor eax, eax
add rsp, 0xa70
pop rbx
pop rsi
pop rdi
ret
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.knock1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140001cfb
mov ecx, dword [rsp + 0x34]
test ecx, ecx
jle 0x140001e40
sub ecx, 1
mov r9d, ecx
shr r9d, 2
cmp ecx, 0xb
lea r8d, [r9 + 1]
jbe 0x140001e50
mov edx, r8d
movdqa xmm1, xmmword [0x14002e110]
mov rax, rbx
shr edx, 2
shl rdx, 4
add rdx, rbx
nop dword [rax + rax]
movdqa xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movaps xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x140001d90
test r8b, 3
je 0x140001e0e
mov edx, r8d
and edx, 0xfffffffc
lea eax, [rdx*4]
sub r8d, edx
cmp r9d, edx
je 0x140001de6
lea rdx, [rbx + rdx*4]
test r8b, 1
movq xmm1, qword [0x14002e110]
movq xmm0, qword [rdx]
pxor xmm0, xmm1
movq qword [rdx], xmm0
je 0x140001e0e
and r8d, 0xfffffffe
lea eax, [rax + r8*4]
movsxd rdx, eax
xor byte [rsp + rdx + 0x40], 0x15
lea edx, [rax + 1]
movsxd rdx, edx
xor byte [rsp + rdx + 0x40], 0xf
lea edx, [rax + 2]
add eax, 3
movsxd rdx, edx
cdqe
xor byte [rsp + rdx + 0x40], 0xf
xor byte [rsp + rax + 0x40], 0x15
mov rax, rbx
lea rcx, [rsp + rcx + 0x41]
nop word cs:[rax + rax]
cmp byte [rax + 1], 0
jne 0x140001e37
movzx edx, byte [rax]
movsxd r8, esi
add esi, 1
test dl, dl
mov byte [rdi + r8], dl
je 0x140001e40
add rax, 1
cmp rax, rcx
jne 0x140001e20
mov eax, 1
add rsp, 0xa70
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
xor edx, edx
jmp 0x140001db8
Function at 0x140001e60
Capabilities:
Enumerate threads
Terminate process
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp edx, 1
mov ebx, ecx
je 0x140001e98
cmp edx, 2
je 0x140001f40
xor esi, esi
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, ecx
mov ecx, 4
call sym.CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140001e80
lea rbp, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x24], 0
mov esi, 1
mov rdx, rbp
mov dword [rsp + 0x20], 0x1c
mov qword [rsp + 0x2c], 0
mov qword [rsp + 0x34], 0
call sym.Thread32First
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140001f78
mov r15, qword [sym.imp.KERNEL32.dll_OpenThread]
xor r13d, r13d
jmp 0x140001f0f
mov rdx, rbp
mov rcx, rdi
call sym.Thread32Next
test eax, eax
je 0x140001f78
cmp dword [rsp + 0x2c], ebx
jne 0x140001f00
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 1
call r15
xor edx, edx
mov r14, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, r14
test eax, eax
cmove esi, r13d
call r12
jmp 0x140001f00
mov r8d, ecx
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne sil
jmp 0x140001e82
mov rcx, rdi
call r12
jmp 0x140001e82

Function at 0x140001f90
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x28
mov rcx, rax
lea r8, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001fc0
xor eax, eax
add rsp, 0x58
ret
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140002038
mov rax, qword [rsp + 0x38]
xor edx, edx
mov dword [rsp + 0x40], 1
mov r9d, 0x10
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x44], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140002038
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001fb3
Function at 0x1400147f0
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140014860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140038394]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400149f0
mov rax, qword [0x140038398]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400148ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140014935
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140014890
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x140014a42
mov rax, qword [0x140038398]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140038398]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014a25
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001492e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400149a0
add dword [0x140038394], 1
cmp ebx, 8
jae 0x140014961
test bl, 4
jne 0x140014a00
test ebx, ebx
je 0x140014956
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140014a14
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140014956
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001497a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140038398]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001492e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x1400148b7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140014956
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140014956
mov rax, qword [0x140038398]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]