joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f620
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rbp, rdx
lea rdx, [rsp + 0x30]
mov esi, r9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f661
xor al, al
jmp 0x14003f7a7
xor ebx, ebx
lea rdx, [0x140097d54]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14003f6b6
lea rdx, [0x14009aed8]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14003f6b6
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, esi
or edx, dword [rsp + 0x2b0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x14003f6e5
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14003f663
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov sil, byte [rsp + 0x2c0]
cmp sil, bl
jne 0x14003f6f3
mov al, 1
jmp 0x14003f7a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14003f65a
lea rdx, [rsp + 0x30]
lea rcx, [0x14009aed0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003f79a
test byte [rsp + 0x30], 0x10
je 0x14003f784
lea rdx, [0x140097d54]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14003f784
lea rdx, [0x14009aed8]
lea rcx, [rsp + 0x5c]
call fcn.140018cec
cmp eax, ebx
je 0x14003f784
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, dword [rsp + 0x2b8]
mov r8d, dword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
mov rdx, rbp
mov byte [rsp + 0x20], sil
call fcn.14003f620
cmp al, bl
je 0x14003f79c
lea rcx, [0x14009aed8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x14003f712
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003f7c0
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa90
mov dil, r9b
mov rbx, r8
mov rcx, rdx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x880]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor esi, esi
cmp eax, esi
jne 0x14003f800
xor eax, eax
jmp 0x14003f961
lea r8, [rsp + 0x880]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.140018e38
lea rcx, [rsp + 0x50]
call fcn.140018b4c
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14003f84c
lea rcx, [rsp + 0x50]
call fcn.140018b4c
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14003f84c
lea rcx, [rsp + 0x50]
call fcn.140018b4c
mov word [rsp + rax*2 + 0x4e], si
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x14003f860
cmp dil, sil
je 0x14003f7f9
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f8a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003f7f9
xor edx, edx
lea rcx, [rsp + 0x260]
lea r8d, [rdx + 0x14]
call fcn.140018a60
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x260], 0xa0000003
call fcn.140018b4c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x270]
add ax, ax
mov r8d, 0x104
mov word [rsp + 0x26a], ax
add ax, 2
mov word [rsp + 0x26c], ax
call fcn.140018b68
movzx r11d, word [rsp + 0x26a]
add r11w, 0xc
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
lea r8, [rsp + 0x260]
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], esi
mov word [rsp + 0x264], r11w
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
cmp eax, esi
jne 0x14003f956
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003f892
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14003fbb0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x1400982f8]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x230
pop rbx
ret

Function at 0x14003fd70
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test eax, eax
je 0x14003fd8e
cmp eax, r8d
jne 0x14003fdaa
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
call fcn.14001a708
and dword [rbx + 0x48c], 0
movsxd rdx, dword [rbx + 0x48c]
mov rax, qword [rbx + 0x480]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14003fdd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x14003fe03
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.14001a244
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003fe10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x488]
mov rax, qword [rcx + 0x478]
mov rbx, rcx
mov byte [r8 + rax], dl
mov edx, 1
mov r8d, 0x10000
add dword [rcx + 0x488], edx
cmp dword [rcx + 0x488], r8d
jne 0x14003fe5c
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.14001a244
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14003ff30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x14003ff61
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140018630
jmp 0x14003ff6f
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14001a708
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.140019b80
cmp eax, ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140040040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9d, 1
mov dword [0x1400bb2e0], ecx
lea rdx, [0x1400bb2e0]
mov r8d, r9d
mov eax, dword [rdx]
add rdx, 4
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
lea rax, [0x1400bbc9c]
imul ecx, ecx, 0x6c078965
add ecx, r8d
add r8d, r9d
cmp rdx, rax
mov dword [rdx], ecx
jl 0x140040056
mov dword [reloc.WSOCK32.dll_accept], r9d
mov dword [0x1400bbcb4], r9d
ret
Function at 0x140040390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x10030
call fcn.140030eb0
sub rsp, rax
mov eax, 0x1f5
mov r12d, 0xffff
mov rbx, rcx
xchg dword [rcx + 0x60], eax
mov qword [rcx + 0x20], r12
mov rcx, r12
call fcn.140017e24
mov qword [rbx + 0x10], rax
jmp 0x1400404e2
cmp dword [rsp + 0x10040], 0
jbe 0x14004050a
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x10040]
add rcx, rax
cmp qword [rbx + 0x20], rcx
jae 0x1400404ab
mov rcx, qword [rbx + 0x18]
call fcn.140017e24
mov r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
mov rsi, rax
call fcn.140018630
mov rcx, qword [rbx + 0x10]
call fcn.140018614
mov r11d, dword [rsp + 0x10040]
mov rcx, qword [rbx + 0x18]
pxor xmm0, xmm0
add r11, rcx
cvtsi2sd xmm0, r11
jns 0x14004044b
addsd xmm0, qword [0x14009d7f8]
mulsd xmm0, qword [0x14009d7f0]
xor eax, eax
comisd xmm0, xmmword [0x14009d7e8]
jbe 0x14004047e
subsd xmm0, qword [0x14009d7e8]
comisd xmm0, xmmword [0x14009d7e8]
jae 0x14004047e
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov qword [rbx + 0x20], rcx
call fcn.140017e24
mov r8, qword [rbx + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call fcn.140018630
mov rcx, rsi
call fcn.140018614
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x10040]
lea rdx, [rsp + 0x30]
add rcx, qword [rbx + 0x10]
call fcn.140018630
mov r11d, dword [rsp + 0x10040]
mov rax, qword [rbx + 0x18]
add r11, rax
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x18], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x10040]
lea rdx, [rsp + 0x30]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400403d4
lea r11, [rsp + 0x10030]
mov eax, 0x1f6
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov ecx, eax
xchg dword [rbx + 0x60], ecx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret

Function at 0x1400405a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x58], 0
mov rbx, rcx
jne 0x1400405d7
lea rax, [rsp + 0x40]
mov r9, rcx
lea r8, [0x140040530]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x58], rax
add rsp, 0x30
pop rbx
ret
Function at 0x1400417b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x140041833
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x140041828
cmp ecx, 0xf
jae 0x140041826
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140041826
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x14009d800]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x1400417de
jmp 0x14004182e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret

Function at 0x1400419f0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, SafeArrayCreateEx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
cmp eax, edi
jne 0x140041a1f
xor eax, eax
jmp 0x140041a90
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x140041a1b
cmp ebx, 0x20
je 0x140041a82
cmp ebx, 0x40
je 0x140041a87
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140041a90
mov edi, 1
xor edx, edx
mov ecx, edi
call sub.KERNEL32.dll_SetSystemPowerState
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140041aa0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x140041b79
lea rcx, [rsp + 0x20]
mov edx, 0x100
call sub.WSOCK32.dll_gethostname
lea rcx, [rsp + 0x20]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x140041b79
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x140041b09
mov rax, r9
add rax, 8
inc ecx
cmp qword [rax], 0
jne 0x140041afd
cmp ebx, ecx
jle 0x140041b1e
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140018140
jmp 0x140041b72
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140018630
mov ecx, dword [rsp + 0x2e0]
call sub.WSOCK32.dll_inet_ntoa
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400194d0
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140015e80
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140018140
mov rcx, rbx
call fcn.140018614
call sub.WSOCK32.dll_WSACleanup
jmp 0x140041b88
lea rdx, [0x140095618]
mov rcx, rdi
call fcn.140018140
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret
Function at 0x140041c00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140041840
lea rcx, [rsp + 0x20]
call fcn.140018b4c
xor esi, esi
mov ebx, 0x5c
cmp rax, rsi
je 0x140041c47
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x140041c47
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140041ccf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140041c77
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x140041c7c
mov al, 1
jmp 0x140041cd5
cmp eax, 3
jne 0x140041cd3
lea rcx, [rsp + 0x20]
call fcn.140015a50
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.14001ac84
mov rcx, rdi
cmp rax, rsi
jne 0x140041ca2
call fcn.140018614
jmp 0x140041cd3
mov word [rax], si
call fcn.140041c00
mov rcx, rdi
mov bl, al
call fcn.140018614
cmp bl, sil
je 0x140041ccb
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
setne bl
mov al, bl
jmp 0x140041cd5
test al, 0x10
jne 0x140041c73
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140041ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042007
test al, 0x10
je 0x140042007
mov al, 1
jmp 0x140042009
xor al, al
add rsp, 0x28
ret

Function at 0x140042010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004204d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140042040
or eax, 0xffffffff
jmp 0x14004204d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret
Function at 0x140042080
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r12, rdx
lea rdx, [rsp + 0x30]
mov rbp, r8
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor edi, edi
mov ebx, eax
cmp eax, edi
jne 0x1400420b8
xor al, al
jmp 0x14004227d
mov rcx, rbx
call fcn.140017e24
mov r8d, ebx
xor edx, edx
mov r9, rax
mov rcx, rsi
mov r13, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rbp
call fcn.140018b4c
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140017e24
lea r15, [0x140095c9c]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140018140
mov rdx, r15
mov rcx, rbp
call fcn.140018cec
cmp eax, edi
je 0x1400421b4
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.140018114
mov rdx, r15
mov rcx, rbp
call fcn.1400190dc
cmp rax, rdi
jne 0x1400421a9
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x14004218f
mov rax, qword [rsp + 0x40]
lea rdx, [rsi + 0x20]
mov r8d, 4
mov ebx, dword [rax]
mov ecx, ebx
call fcn.140041380
shr ebx, 0x10
lea rdx, [rsi + 0x28]
mov ecx, ebx
mov r8d, 4
call fcn.140041380
jmp 0x14004219e
lea rdx, str.04090000
mov rcx, rsi
call fcn.140018114
mov rdx, r15
mov rcx, rsi
call fcn.140018114
mov rdx, rbp
mov rcx, rsi
call fcn.140018114
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140018080
cmp eax, edi
jne 0x1400421f6
lea rdx, [rsi + 0x20]
mov r8d, 8
mov rcx, r12
call fcn.140018b68
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.140018614
mov rcx, rsi
call fcn.140018614
mov al, 1
jmp 0x14004227d
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x14004226a
mov rdx, r15
mov rcx, rbp
call fcn.140018cec
cmp eax, edi
jne 0x140042254
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r12
shr r8d, 0x10
call fcn.140018e38
jmp 0x140042267
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, r12
call fcn.140018b68
mov dil, 1
mov rcx, r13
call fcn.140018614
mov rcx, rsi
call fcn.140018614
mov al, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400424c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1290
call fcn.140030eb0
sub rsp, rax
mov rdi, r8
mov r14, rcx
mov r13, rdx
lea r8, [rsp + 0x12d8]
lea rcx, [rsp + 0xa90]
mov edx, 0x800
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x140042616
mov esi, dword [rsp + 0x12d8]
mov rcx, r14
mov byte [rdi], 0
shr esi, 2
call fcn.140042460
xor ebp, ebp
mov r12d, eax
test esi, esi
je 0x140042614
lea rbx, [rsp + 0xa90]
cmp byte [rdi], 0
jne 0x140042614
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x12d8]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, 8
mov r15, rax
call sub.PSAPI.DLL_EnumProcessModules
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x460]
mov r9d, 0x104
mov rcx, r15
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x1400425fd
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0x880]
lea rcx, [rsp + 0x460]
mov qword [rsp + 0x20], rax
call fcn.1400198fc
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.140018114
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140018080
test eax, eax
jne 0x1400425ea
mov eax, dword [rbx]
mov dword [r13], eax
jmp 0x1400425fa
test r12d, r12d
je 0x1400425fd
mov ecx, dword [rbx]
cmp r12d, ecx
jne 0x1400425fd
mov dword [r13], ecx
mov byte [rdi], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add rbx, 4
cmp ebp, esi
jb 0x14004253a
mov al, 1
lea r11, [rsp + 0x1290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140042640
Capabilities:
Enumerate processes

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
sub rsp, 0xab0
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, r12
mov byte [rbx], 0
call fcn.140042460
mov esi, eax
jmp 0x14004271e
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140042727
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.1400198fc
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140018114
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140018080
test eax, eax
jne 0x14004270c
mov eax, dword [rsp + 0x38]
mov dword [rbp], eax
jmp 0x14004271b
test esi, esi
je 0x14004271e
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x14004271e
mov dword [rbp], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x140042699
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xab0]
mov al, 1
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140042750
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea r11, [rsp + 0x60]
mov qword [rsp + 0x30], r11
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400427d2
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x140042b80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 4
mov rbx, r8
mov rax, rdx
mov rdi, rcx
je 0x140042bd3
mov esi, dword [r8]
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
mov r8d, esi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140042bfb
and dword [rbx], eax
mov rcx, qword [rdi + 8]
lea r9d, [rax + 1]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x140042bfd
mov r9, qword [rcx + 8]
movsxd r8, dword [r8]
mov edx, 1
mov rcx, rax
call fcn.14001a708
mov dword [rbx], eax
mov rcx, qword [rdi + 8]
call fcn.14001a760
test eax, eax
je 0x140042bfb
and dword [rbx], 0
jmp 0x140042bcf
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140042d50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [rcx + 8]
mov rax, rdx
mov rbx, rcx
movsxd r8, r8d
mov edx, 1
mov rcx, rax
call fcn.14001a244
mov rcx, qword [rbx + 8]
call fcn.14001a760
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret