joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065ff0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140066038
lea ebx, [rsi + 0xd]
jmp 0x1400660a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x1400660a3
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003ffcc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140066095
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400660a3
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140003cac
mov ebx, esi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400660e6
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400660e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400660e1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400667e4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140066460
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
adc byte [rbx + rcx*4 + 0x11], cl

Function at 0x140066b50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400be0c0], eax
call fcn.140066fd4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400be0c0], 0
jne case.default.0x140066ba6
mov ecx, 1
call fcn.140066fd4
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]
invalid
Function at 0x140006510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r8d, 2
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0xe]
add rsp, 0x48
ret

Function at 0x140006600
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x94
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x94
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140006669
cmp dword [rsp + 0x34], 5
jae 0x14000665f
cmp dword [rsp + 0x34], 4
jne 0x140006669
cmp dword [rsp + 0x38], 0x5a
jb 0x140006669
mov dword [rsp + 0x20], 0
jmp 0x140006671
mov dword [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140022d70
add rsp, 0xe0
pop rdi
ret
Function at 0x14000f790
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x30], 0x94
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x90
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14000f7eb
cmp dword [rsp + 0x34], 6
jb 0x14000f7eb
mov dword [rsp + 0x20], 1
jmp 0x14000f7f3
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140022d70
add rsp, 0xe0
pop rdi
ret
Function at 0x140014290
Capabilities:
Capture webcam image

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
cmp qword [rax], rcx
je 0x1400142cf
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov eax, 1
jmp 0x140014371
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx + 8]
je 0x1400142f4
mov rcx, qword [rsp + 0x30]
call fcn.14001c0a0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor r9d, r9d
mov r8d, eax
mov edx, 0x419
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xf0]
and al, 0xef
mov rcx, qword [rsp + 0x50]
mov byte [rcx + 0xf0], al
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xf0]
and al, 0xdf
mov rcx, qword [rsp + 0x50]
mov byte [rcx + 0xf0], al
mov r8b, 1
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140009fc0
xor eax, eax
add rsp, 0x48
ret
Function at 0x140014510
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x12
je 0x140014575
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x79
jne 0x140014563
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
je 0x140014575
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
jne 0x140014679
cmp qword [rsp + 0x50], 0xf100
jne 0x140014679
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rsp + 0x40]
cmp rax, qword [rcx + 8]
jne 0x1400145cc
mov rcx, qword [rsp + 0x20]
call fcn.14000f050
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov edx, 0x448
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_PostMessageA]
jmp 0x140014679
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
je 0x140014660
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf0]
shr al, 6
and al, 1
movzx eax, al
test eax, eax
jne 0x140014660
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 1
and al, 1
movzx eax, al
test eax, eax
je 0x140014649
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 2
and al, 1
movzx eax, al
test eax, eax
jne 0x140014649
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf1]
shr al, 3
and al, 1
movzx eax, al
test eax, eax
je 0x140014649
mov dl, 1
mov rcx, qword [rsp + 0x40]
call fcn.14001b9b0
mov rcx, qword [rsp + 0x20]
call fcn.14001c0a0
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
jmp 0x140014679
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0x20
je 0x140014679
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0xf0]
and al, 0xbf
mov rcx, qword [rsp + 0x40]
mov byte [rcx + 0xf0], al
xor eax, eax
add rsp, 0x38
ret
Function at 0x140017820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x1a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x1a8]
mov rax, qword [rsp + 0x1a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.140014b50
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400178b3
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x50]
call fcn.140003300
mov eax, dword [rsp + 0x68]
jmp 0x1400179dd
mov dword [rsp + 0x44], 0x100
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140017943
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140017820
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140017936
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x50]
call fcn.140003300
mov eax, dword [rsp + 0x6c]
jmp 0x1400179dd
mov dword [rsp + 0x44], 0x100
jmp 0x1400178bb
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0x50], 0
je 0x14001796b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140017973
mov rax, qword [rsp + 0x1a0]
cmp qword [rax + 0x10], 0
je 0x1400179b2
mov r8, qword [rsp + 0x1a8]
mov rax, qword [rsp + 0x1a0]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax + 0x10]
call fcn.140017b70
mov dword [rsp + 0x48], eax
jmp 0x1400179cf
mov rdx, qword [rsp + 0x1a8]
mov rax, qword [rsp + 0x1a0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x50]
call fcn.140003300
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140022d70
add rsp, 0x198
ret
Function at 0x140017b70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140017bfc
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140017baf
mov eax, 1
jmp 0x140017c1e
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140017bfa
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x140017c1e
jmp 0x140017c19
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140017c19
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140017c1e
mov eax, 1
add rsp, 0x48
ret
Function at 0x14001b8d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x14001b8e3
cmp qword [rsp + 0x70], 0
je 0x14001b8fb
mov dword [rsp + 0x38], 1
jmp 0x14001b903
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14001b91c
mov eax, 0xd
jmp 0x14001b99f
xor eax, eax
test eax, eax
jne 0x14001b8e9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400377b0
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
add rcx, rax
mov rax, rcx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x14001b934
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x58
ret
Function at 0x140023858
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400238a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400238a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400238a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400238a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400238a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400238a4
xor al, al
add rsp, 0x28
ret

Function at 0x14005ae58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005abe0
Function at 0x140068b64
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140068b94
xor eax, eax
jmp 0x140068c57
mov rbp, rbx
cmp word [rax], si
je 0x140068bb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140068ba0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140068b9c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400689e4
movsxd r14, eax
test eax, eax
jne 0x140068bf7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140068b8d
mov rcx, r14
call fcn.14006090c
mov rdi, rax
test rax, rax
jne 0x140068c10
xor ecx, ecx
call fcn.1400608d0
jmp 0x140068bec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400689e4
test eax, eax
jne 0x140068c41
mov rcx, rdi
call fcn.1400608d0
jmp 0x140068c4b
xor ecx, ecx
call fcn.1400608d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14007c9b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007c9d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007c9d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011180]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011190]
mov dword [rax], 1
mov rax, qword [0x1400111a0]
mov dword [rax], 1
mov rax, qword [0x140011170]
mov dword [rax], 1
mov rax, qword [0x140011040]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140011160]
mov dword [0x140016020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140011120]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011100]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140010fc0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015db
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x3c0
lea rdx, [0x140010030]
lea rsi, [rsp + 0x40]
mov r8d, 0x37d
mov rcx, rsi
call sym.memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x1f0fff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov dword [rsp + 0x20], 0x40
mov r8d, 0x37d
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
and qword [rsp + 0x20], 0
mov r9d, 0x37d
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call sub.msvcrt.dll_system
nop
add rsp, 0x3c0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140001b30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400160c4]
mov r12, rcx
test ebx, ebx
jle 0x140001cd0
mov rax, qword [0x1400160c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001bec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001c73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001bd0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001cf2
mov rax, qword [0x1400160c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400160c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c80
add dword [0x1400160c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400160c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c6c
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 ebx, ebx
jmp 0x140001bf7
mov rax, qword [0x1400160c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140016120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140016100]
test rbx, rbx
je 0x140002204
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400021fb
test r12, r12
je 0x1400021fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021e0
lea rcx, [0x140016120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002438
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002440
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002450
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000249c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002493
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000249e
add rax, 0x28
cmp rax, r9
jne 0x140002480
xor eax, eax
ret

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002530
mov rdx, qword [0x140011040]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000251e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000251e
cmp word [rax + 0x18], 0x20b
jne 0x14000251e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002530
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002509
add r12, 0x28
cmp r12, rsi
je 0x140002530
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002500
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140011040]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002560
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400025b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400025ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002560
add rax, 0x28
cmp rax, r9
jne 0x140002598
xor eax, eax
ret

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011040]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002600
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140011040]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002620
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002628
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002620
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002668
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000265f
test rcx, rcx
je 0x140002620
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002650
xor eax, eax
ret