joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14029e8dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403a8a70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14029e933
cmp word [rdx], r13w
jne 0x14029e933
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14029e938
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14029ea5d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14029ea7e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14029e971
mov rdx, r9
mov word [rbx], cx
jmp 0x14029e998
cmp r9, r8
jae 0x14029e9a8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14029e952
jmp 0x14029ea5d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14029ea52
cmp dword [rsp + 0x80], esi
je 0x14029ea52
lea r8, [0x1403a8a70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14029ea2a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14029e9fa
mov word [rbx], r13w
jmp 0x14029ea5a
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14029ea07
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14029ea5a
cmp word [rsp + 0x70], r13w
jne 0x14029ea37
cmp rbx, r14
je 0x14029e9f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140291c98
cmp word [rsp + 0x70], r13w
je 0x14029ea5d
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403a8a70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14029ea57
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14029ea5d
Function at 0x1402a5318
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1402a532e
mov al, 1
jmp 0x1402a538e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402a533f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402a538c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402ac004
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402a538c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402a538c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402a538c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402a538e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1402a9a3c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402a9a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14028d470
or eax, 0xffffffff
jmp 0x1402a9a5e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1402b1be0
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 0x1402b1c10
xor eax, eax
jmp 0x1402b1cd3
mov rbp, rbx
cmp word [rax], si
je 0x1402b1c35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402b1c1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402b1c18
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.1402aa3f0
movsxd r14, eax
test eax, eax
jne 0x1402b1c73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402b1c09
mov rcx, r14
call fcn.1402a6058
mov rdi, rax
test rax, rax
jne 0x1402b1c8c
xor ecx, ecx
call fcn.1402a2ea8
jmp 0x1402b1c68
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.1402aa3f0
test eax, eax
jne 0x1402b1cbd
mov rcx, rdi
call fcn.1402a2ea8
jmp 0x1402b1cc7
xor ecx, ecx
call fcn.1402a2ea8
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 0x1402b1cf0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402b1d77
mov rsi, rbx
cmp word [rax], bp
je 0x1402b1d36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402b1d20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402b1d1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402a6058
mov rdi, rax
test rax, rax
je 0x1402b1d64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402c3760
mov rbp, rdi
xor ecx, ecx
call fcn.1402a2ea8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402b58d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1402a2340
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1402b5975
cmp ebx, dword [rsp + 0x30]
je 0x1402b596e
test esi, esi
je 0x1402b596e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1402b5949
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1402b5956
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402b5933
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1402b595a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1402b5977
mov eax, 1
jmp 0x1402b5977
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402b6c54
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140291c98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140291c98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402b6da4
cmp rax, 0xffffffffffffffff
je 0x1402b6da4
xor edi, edi
test rbp, rbp
jle 0x1402b6d4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402a2e28
mov rbx, rax
test rax, rax
jne 0x1402b6cdc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1402b6d45
mov edx, 0x8000
mov ecx, r14d
call fcn.14029c2a4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14029ff3c
cmp eax, 0xffffffff
je 0x1402b6d25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402b6cec
mov edx, r15d
mov ecx, r14d
call fcn.14029c2a4
jmp 0x1402b6d45
cmp byte [rsi + 0x38], dil
je 0x1402b6d3c
cmp dword [rsi + 0x34], 5
jne 0x1402b6d3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1402b6d45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402a2ea8
jmp 0x1402b6db8
jns 0x1402b6db8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140291c98
cmp rax, 0xffffffffffffffff
jne 0x1402b6d70
cmp byte [rsi + 0x30], dil
je 0x1402b6db8
mov edi, dword [rsi + 0x2c]
jmp 0x1402b6db8
mov ecx, r14d
call fcn.1402ac004
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402b6db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402b6db8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402b6db1
mov eax, dword [rsi + 0x2c]
jmp 0x1402b6db6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140291c98
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1402bb078
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14034e740]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402bb0c2
call fcn.14028d4dc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14028d4fc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1402870c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14023b7f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402bb0cd
lea eax, [rbx + 1]
jmp 0x1402bb0af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402bb0ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402bb0af
Function at 0x1402bbcbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14024d840
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402bbd46
cmp byte [rbp - 0x21], r15b
je 0x1402bbd41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402bbd7c
call fcn.1402a3bdc
test eax, eax
jne 0x1402bbd68
cmp byte [rbp - 0x21], r15b
je 0x1402bbd60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402bbd7c
cmp byte [rbp - 0x21], r15b
je 0x1402bbd79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14028a640
test eax, eax
jne 0x1402bbe1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14024d840
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402bbdbb
cmp byte [rbp - 0x21], r15b
je 0x1402bbdf0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402bbdf0
call fcn.1402a3bdc
test eax, eax
jne 0x1402bbddc
cmp byte [rbp - 0x21], r15b
je 0x1402bbdd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402bbdf0
cmp byte [rbp - 0x21], r15b
je 0x1402bbded
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14028a640
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402bbe1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402bbe1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402bbe2d
mov rcx, rdi
call fcn.1402a2ea8
cmp byte [rbp + 0x3f], r15b
je 0x1402bbe3c
mov rcx, qword [rbp + 0x27]
call fcn.1402a2ea8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1402be090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402be0b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402be0b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x13906d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x13906dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x13906ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x13906d5
lea eax, [rcx + 1]
jmp 0x13906fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x139070e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x13906f4
sub eax, 3
jb 0x139072e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x139077d
sar eax, 1
movsxd rbp, eax
jb 0x1390764
jmp 0x139073c
add ebx, ebx
jne 0x139073a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1390764
inc ecx
add ebx, ebx
jne 0x139074a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1390764
call r11
adc ecx, ecx
add ebx, ebx
jne 0x139075d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x139074c
add ecx, 2
jmp 0x1390769
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01390692
jmp 0x13906dd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf7a000]
mov eax, dword [rdi]
or eax, eax
je 0x13907d9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf90000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1390789
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x13907d3
mov qword [rbx], rax
add rbx, 8
jmp 0x13907a9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x139081d
cmp al, 0xef
ja 0x1390805
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x13907e5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x13907f4
mov eax, dword [rdi]
add rdi, 4
jmp 0x13907f4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1390871
sub rsp, 0xffffffffffffff80
jmp 0x45d0a0
Function at 0x140011032
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
jmp 0x140012160
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e240]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x140024169]
call fcn.1400113f2
nop
mov dword [rbp + 0x10], 0x40
mov qword [rbp + 0x68], 0
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1400121c2
xor eax, eax
jmp 0x1400122e1
xor edx, edx
mov rax, qword [rbp + 0x18]
mov ecx, 0x100000
div rcx
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0xd8], rax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x124]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xf8]
imul rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x108]
imul rax, rcx
mov ecx, dword [rbp + 0x10c]
imul rax, rcx
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x68], 0x800
jbe 0x1400122d8
cmp dword [rbp + 0xa8], 2
jb 0x1400122d8
cmp qword [rbp + 0x148], 0x64
jge 0x1400122dc
xor eax, eax
jmp 0x1400122e1
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001b160]
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret

Function at 0x14001117c
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400120b0
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x140024169]
call fcn.1400113f2
nop
mov qword [rbp + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x3e8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140012129
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011235
Capabilities:
Terminate process

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

Function at 0x14001123f
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400118c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14001e240]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1400240a4]
call fcn.1400113f2
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x50], 0x238
xor edx, edx
mov ecx, 0xf
call fcn.1400111cc
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140011957
lea rcx, str._x__Failed_to_take_snapshot.
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x140011a59
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.14001127b
test eax, eax
jne 0x140011988
lea rcx, str._x__Process32First___Failed_
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x140011a59
lea rdx, [rbp + 0x7c]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140011a11
lea rcx, str.___Found_Process__Attempting_to_open_handle.
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov r8d, dword [rbp + 0x58]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400119d7
lea rcx, str._x__Failed_to_get_handle_to_process_:_
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x140011a11
lea rcx, str.___Got_process_handle__:_
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov rax, qword [rbp + 0x440]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0x450]
mov ecx, dword [rbp + 0x58]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x140011a59
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.1400113a2
test eax, eax
jne 0x140011988
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x28], 0
je 0x140011a43
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x448]
lea rcx, str._x__Failed_to_find_process__ls_n
call fcn.1400111c2
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.14001137a
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014dd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014df0
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e03
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e2d
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e41
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e53
xor al, al
jmp 0x140014e71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e6f
xor al, al
jmp 0x140014e71
mov al, 1
add rsp, 0x38
ret
Function at 0x140012cc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001141a
movzx eax, al
test eax, eax
jne 0x140012ce0
mov ecx, 7
call fcn.140011384
nop
mov byte [rsp + 0x20], 0
call fcn.140011398
mov byte [rsp + 0x21], al
cmp dword [0x14001eaa8], 1
jne 0x140012d04
mov ecx, 7
call fcn.140011384
nop
jmp 0x140012d5c
cmp dword [0x14001eaa8], 0
jne 0x140012d57
mov dword [0x14001eaa8], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111c7
test eax, eax
je 0x140012d38
mov eax, 0xff
jmp 0x140012e61
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001138e
mov dword [0x14001eaa8], 2
jmp 0x140012d5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011370
call fcn.1400112fd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012db9
mov rcx, qword [rsp + 0x30]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012db9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011334
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012ded
mov rcx, qword [rsp + 0x38]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x140012ded
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113d4
nop
call fcn.140012f10
mov dword [rsp + 0x28], eax
call fcn.1400112d5
movzx eax, al
test eax, eax
jne 0x140012e0c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012e1b
call fcn.1400113e3
nop
xor edx, edx
mov cl, 1
call fcn.140011159
mov eax, dword [rsp + 0x28]
jmp 0x140012e61
add rsp, 0x68
ret