joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006830
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r10, [0x180046360]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dl
movzx r8d, bl
shr ebx, 8
xor r8, rax
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r10 + r8*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r10 + rcx*4]
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x1800068bb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180019db0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180009ff0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x180067240]
mov r14d, edx
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x3ed8]
cmp qword [rbx + 0x1a8], 0
movss xmm3, dword [rbx + 0x250]
movss xmm5, dword [rbx + 0x254]
jne 0x18000a042
cmp qword [rdi + 0x4b38], 0
je 0x18000a04a
movss xmm3, dword [rbx + 0x220]
cvttss2si eax, dword [r8]
xor r15d, r15d
subss xmm3, dword [rbx + 0x100]
subss xmm5, dword [rbx + 0x104]
xorps xmm4, xmm4
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm4
cvtdq2ps xmm0, xmm0
jp 0x18000a084
lea eax, [r15 + 1]
je 0x18000a087
mov eax, r15d
ucomiss xmm0, xmm4
jp 0x18000a094
jne 0x18000a094
mov r15d, 2
movss xmm2, dword [0x1800604b4]
or r15d, eax
comiss xmm4, xmm1
jb 0x18000a0b0
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x18000a0b0
movaps xmm1, xmm2
comiss xmm4, xmm0
jb 0x18000a0c1
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x18000a0c1
movaps xmm0, xmm2
or dword [rdi + 0x47b8], 2
xor edx, edx
movss dword [rdi + 0x47d8], xmm1
movss dword [rdi + 0x47dc], xmm0
mov dword [rdi + 0x47c0], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x18000a10a
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.1800032e0
jmp 0x18000a120
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.1800032e0
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x37f8]
mov r8d, 0x1000107
call fcn.18000cd50
mov rsi, qword [rdi + 0x3ed8]
movzx ebp, al
movss dword [rdi + 0x37f8], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
mov byte [rsi + 0xd2], r15b
jne 0x18000a171
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x180042cf9]
not r9d
lea r10, [0x180046360]
mov ebx, r9d
mov r8b, 0x23
nop dword [rax + rax]
cmp r8b, 0x23
jne 0x18000a1a3
cmp byte [rdx], r8b
jne 0x18000a1a3
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x18000a190
not ebx
cmp dword [rdi + 0x3f38], ebx
jne 0x18000a1d3
xor edx, edx
xor ecx, ecx
call fcn.180006970
cmp dword [rdi + 0x48d0], r14d
jne 0x18000a219
cmp word [rsi + 0x15c], 0
jne 0x18000a1ef
cmp byte [rsi + 0x162], 0
je 0x18000a219
xor edx, edx
mov rcx, rsi
call fcn.18000f0e0
xor edx, edx
mov rcx, rsi
call fcn.180014f80
mov rdx, rsi
mov ecx, ebx
call fcn.180006970
mov eax, dword [rdi + 0x48f4]
mov dword [rdi + 0x3f60], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180013120
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x180067240]
mov edi, ecx
cmp byte [rbx + 0x4a81], 0
jne 0x180013172
cmp byte [rbx + 0x4a82], 0
jne 0x180013172
movsx r9d, word [rbx + 0x5bb2]
lea r8, [0x180043908]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1800031d0
test dil, 2
je 0x18001329f
jmp 0x1800131fb
movss xmm1, dword [rbx + 0x3894]
lea r8, [0x180043908]
movsx r9d, word [rbx + 0x5bb2]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1800604d8]
mulss xmm1, dword [0x1800604d0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47d0], rax
mov dword [rbx + 0x47bc], 1
movss dword [rbx + 0x47c8], xmm0
movss dword [rbx + 0x47cc], xmm1
movss xmm0, dword [rbx + 0x38f0]
mulss xmm0, dword [0x180060434]
or dword [rbx + 0x47b8], 0x41
movss dword [rbx + 0x4818], xmm0
call fcn.1800031d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180013250
lea r11, [0x180046360]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180013233
cmp byte [r8], r9b
jne 0x180013233
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180013220
not ecx
call fcn.18000a540
test rax, rax
je 0x18001329f
cmp byte [rax + 0xb6], 0
je 0x18001329f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bb2]
movsx r9d, word [rbx + 0x5bb2]
call fcn.1800031d0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18000cd50
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180018650
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800186f7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800186aa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001a990
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180003a90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180067250]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800186ff
mov rcx, rbx
call fcn.180003a90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180018ba0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180067240]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180018c03
mov qword [rsp], rbx
lea rbx, [0x180046360]
nop dword [rax]
cmp r9b, 0x23
jne 0x180018be3
cmp byte [r8], r9b
jne 0x180018be3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180018bd0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c10]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180018c37
mov r10, qword [r10 + 0x5c18]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180018c3e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180018c24
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18002c790
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x180067240]
mov edx, 0x210
call fcn.18000fa50
cmp byte [rax], 0
je 0x18002c806
xor edx, edx
mov ecx, 0x210
call fcn.180011ef0
test al, al
je 0x18002c806
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002c806
mov rbx, qword [0x180067240]
cmp byte [rbx + 0x37b1], 0
je 0x18002c7f2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180002c80
mov dword [rbx + 0x378], 0x210
mov dword [rbx + 0x938], 0xa0
mov rcx, qword [0x180067240]
mov edx, 0x214
call fcn.18000fa50
cmp byte [rax], 0
je 0x18002c876
xor edx, edx
mov ecx, 0x214
call fcn.180011ef0
test al, al
je 0x18002c876
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002c876
mov rbx, qword [0x180067240]
cmp byte [rbx + 0x37b1], 0
je 0x18002c862
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180002c80
mov dword [rbx + 0x37c], 0x214
mov dword [rbx + 0x948], 0xa1
mov rcx, qword [0x180067240]
mov edx, 0x212
call fcn.18000fa50
cmp byte [rax], 0
je 0x18002c8e6
xor edx, edx
mov ecx, 0x212
call fcn.180011ef0
test al, al
je 0x18002c8e6
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002c8e6
mov rbx, qword [0x180067240]
cmp byte [rbx + 0x37b1], 0
je 0x18002c8d2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180002c80
mov dword [rbx + 0x264], 0x212
mov dword [rbx + 0x940], 0x5b
mov rcx, qword [0x180067240]
mov edx, 0x216
call fcn.18000fa50
cmp byte [rax], 0
je 0x18002c956
xor edx, edx
mov ecx, 0x216
call fcn.180011ef0
test al, al
je 0x18002c956
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002c956
mov rbx, qword [0x180067240]
cmp byte [rbx + 0x37b1], 0
je 0x18002c942
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180002c80
mov dword [rbx + 0x268], 0x216
mov dword [rbx + 0x950], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1400011ec
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
lea r9, [rax + 0x18]
and dword [rax + 0x18], ebp
mov r14, rdx
mov r15, rcx
lea rdx, [rax + 0x18]
xor r8d, r8d
lea ebx, [rbp + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400012a8
mov edx, eax
xor ecx, ecx
mov r8d, 0x564d4f4e
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400012a8
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rdx, rax
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140001295
xor esi, esi
cmp qword [rdi], rsi
jbe 0x140001295
mov rbx, rdi
lea rcx, [rbx + 0x30]
mov rdx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001286
inc rsi
add rbx, 0x128
cmp rsi, qword [rdi]
jb 0x140001264
jmp 0x140001295
mov rbp, qword [rbx + 0x18]
test r14, r14
je 0x140001295
mov ecx, dword [rbx + 0x20]
mov dword [r14], ecx
mov edx, 0x564d4f4e
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
jmp 0x1400012aa
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000132c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
movsxd rbx, dword [rcx + 0x3c]
xor eax, eax
add rbx, rcx
mov dword [rbp + 0x40], 0xc0000001
mov r15, rcx
movzx r13d, word [rbx + 6]
lea r14, [rbx + 0x108]
and qword [rbp + 0x48], 0
test r13d, r13d
je 0x140001389
mov rcx, r14
movabs rdx, 0x4742444b54494e49
cmp qword [rcx], rdx
je 0x1400013a3
inc eax
add rcx, 0x28
cmp eax, r13d
jb 0x14000136f
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rax + rax*4]
xor r12d, r12d
mov esi, dword [rbx + rcx*8 + 0x118]
mov eax, dword [rbx + rcx*8 + 0x110]
mov edi, dword [rbx + rcx*8 + 0x114]
add rdi, r15
cmp esi, eax
cmovbe esi, eax
sub esi, 2
je 0x140001389
mov eax, 0x9c48
cmp word [rdi], ax
jne 0x1400013fd
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, rdi
call sub.ntoskrnl.exe_RtlLookupFunctionEntry
test rax, rax
je 0x1400013fd
mov r8d, dword [rax]
mov rax, rdi
add r8, qword [rbp + 0x48]
sub rax, r8
cmp rax, 0x20
jbe 0x14000140a
inc r12d
inc rdi
cmp r12d, esi
jae 0x140001389
jmp 0x1400013cc
mov edi, dword [r8]
lea rdx, [0x140002830]
mov esi, dword [r8 + 4]
lea rcx, [0x140002850]
mov r12d, dword [r8 + 8]
call sub.ntoskrnl.exe_DbgPrint
test edi, edi
je 0x140001389
xor eax, eax
cmp dword [r14], 0x7865742e
je 0x14000144b
inc eax
add r14, 0x28
cmp eax, r13d
jb 0x140001432
jmp 0x140001561
lea rcx, [rax + rax*4]
xor r8d, r8d
mov edx, dword [rbx + rcx*8 + 0x118]
mov eax, dword [rbx + rcx*8 + 0x110]
mov r9d, dword [rbx + rcx*8 + 0x114]
add r9, r15
cmp edx, eax
cmovbe edx, eax
sub edx, 0xa
je 0x140001561
mov rcx, r9
mov eax, dword [rcx]
and eax, 0xffffff
cmp eax, 0x1d8b4c
jne 0x140001499
mov eax, dword [rcx + 6]
and eax, 0xffffff00
cmp eax, 0xc0854800
je 0x1400014aa
inc r8d
inc rcx
cmp r8d, edx
jae 0x140001561
jmp 0x14000147c
movsxd rbx, r8d
lea rdx, [0x140002830]
add rbx, r9
lea rcx, [0x140002870]
mov r8, rbx
call sub.ntoskrnl.exe_DbgPrint
and dword [rbp + 0x40], 0
mov dword [rbp - 0x30], 0x482e3881
mov dword [rbp - 0x2c], 0x22741131
mov dword [rbp - 0x28], 0x31483881
mov dword [rbp - 0x24], 0x1a744851
mov word [rbp - 0x20], 0x3881
mov dword [rbp - 0x1a], 0x78811375
mov byte [rbp - 0x16], 4
mov dword [rbp - 0x11], 0x78810a75
mov byte [rbp - 0xd], 8
mov dword [rbp - 8], 0xffc30175
mov dword [rbp - 0x1e], edi
mov dword [rbp - 0x15], esi
mov dword [rbp - 0xc], r12d
mov rdx, cr8
mov rax, cr8
mov eax, 2
mov cr8, rax
mov rax, cr0
btr rax, 0x10
mov cr0, rax
movups xmm0, xmmword [rbp - 0x30]
mov ecx, dword [rbp - 8]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rbx + 0x10], xmm1
movsd qword [rbx + 0x20], xmm0
mov dword [rbx + 0x28], ecx
mov byte [rbx + 0x2c], 0xe0
mov rcx, cr0
bts rcx, 0x10
mov cr0, rcx
mov cr8, rdx
mov eax, dword [rbp + 0x40]
jmp 0x14000138b
Function at 0x14000156c
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x70], 0
lea rax, [0x140001190]
mov qword [rcx + 0x70], rax
lea rdx, [0x140002930]
lea rax, [0x140001190]
mov rbx, rcx
mov qword [rcx + 0x80], rax
xorps xmm0, xmm0
lea rax, section..text
xorps xmm1, xmm1
mov qword [rcx + 0xe0], rax
lea rax, [0x1400011b0]
mov qword [rcx + 0x68], rax
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x140001632
lea rdx, [0x140002900]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140001632
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x14000193c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.1400018a4
movsxd rbx, eax
cmp ebx, 0xffffffff
jne 0x140001971
lea edx, [rbx + 2]
lea rcx, [0x140002a00]
call sub.ntoskrnl.exe_DbgPrint
xor al, al
jmp 0x1400019b8
mov rdx, rdi
mov rcx, rsi
call fcn.1400017f4
mov r8, rax
mov rcx, rbx
shl rcx, 5
lea rax, [0x140004260]
mov rdx, rdi
mov qword [rcx + rax], rdi
mov qword [rcx + rax + 0x18], r8
movups xmm0, xmmword [r8]
movdqu xmmword [rcx + rax + 8], xmm0
mov rax, qword [0x140006268]
mov rcx, rsi
call qword [0x140003118]
test al, al
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001a68
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rax + 0x10], 0
lea rdx, [rax + 0x10]
mov rdi, rcx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001ab1
mov edx, 1
lea rcx, [0x1400029e0]
call sub.ntoskrnl.exe_DbgPrint
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword gs:[0x188]
mov sil, byte [rbx + 0x232]
mov byte [rbx + 0x232], 0
mov eax, dword [0x140004250]
add rax, qword [rsp + 0x38]
mov rdx, qword [rax]
cmp qword [rdx + 8], rax
jne 0x140001b72
mov rcx, qword [rax + 8]
cmp qword [rcx], rax
jne 0x140001b72
mov qword [rcx], rdx
mov qword [rdx + 8], rcx
mov eax, dword [0x140004250]
add rax, qword [rsp + 0x38]
mov qword [rax + 8], rax
mov qword [rax], rax
mov eax, dword [0x140004254]
add rax, qword [rsp + 0x38]
mov rdx, qword [rax]
cmp qword [rdx + 8], rax
jne 0x140001b72
mov rcx, qword [rax + 8]
cmp qword [rcx], rax
jne 0x140001b72
mov qword [rcx], rdx
mov qword [rdx + 8], rcx
mov eax, dword [0x140004254]
add rax, qword [rsp + 0x38]
mov qword [rax + 8], rax
mov qword [rax], rax
call fcn.140002234
mov rcx, rax
call fcn.1400022d8
mov rcx, qword [rsp + 0x38]
mov edx, eax
call fcn.1400019e4
mov rcx, qword [0x140006260]
mov rdx, rdi
call fcn.14000193c
mov al, 1
mov byte [rbx + 0x232], sil
jmp 0x140001aa1
mov ecx, 3
int 0x29
int3
Function at 0x14000501c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005056
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000505b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400050a4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400073b0]
cmp byte [rcx + rax], 0
je 0x1400050a4
dec r8
sub rdx, 1
jne 0x14000508a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005acc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0048dcc0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0048dcd0]
mov dword [rax], 1
mov rax, qword [0x0048dce0]
mov dword [rax], 1
mov rax, qword [0x0048dcb0]
mov dword [rax], 1
mov rax, qword [0x0048db30]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0048dca0]
mov dword [0x004a9008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x0048dbe0]
mov qword [rdx], rax
mov rdx, qword [0x0048dbd0]
mov qword [rdx], rax
mov rax, qword [0x0048dc60]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0048d220]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x40e3f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004a9064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40e50a
mov rax, qword [0x004a9068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40e43e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40e4f0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40e422
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40e542
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004a9068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004a9068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40e525
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40e4e9
sub eax, 0x40
and eax, 0xffffffbf
je 0x40e4e9
mov r9, rbp
add r9, qword [0x004a9068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e511
add dword [0x004a9064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40e44b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x004a9068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x40f120
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x40f130
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x40f140
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40f181
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40f178
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40f183
add rax, 0x28
cmp rax, r9
jne 0x40f164
xor eax, eax
repz ret

Function at 0x40f230
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048db30]
cmp word [rbx], 0x5a4d
je 0x40f250
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40f244
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection