joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008b20
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140027010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140008b76
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000a558
cmp rax, 0x105
jb 0x140008b8d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140018460
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000a4a8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140025890
test eax, eax
je 0x140008b76
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008bda
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008b76
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140025890
test eax, eax
je 0x140008b76
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008c0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008b76
mov esi, 1
jmp 0x140008b76

Function at 0x140008ce0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x468
mov esi, edx
mov rbx, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea r14, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bac0
mov rcx, r14
call fcn.140008b20
test eax, eax
je 0x140008d56
xor edi, edi
lea r14, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.14000bac0
lea rdx, str..status
mov rcx, rbx
mov r8, r14
call fcn.140008c20
test eax, eax
jne 0x140008d75
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140018460
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.140025890
test eax, eax
je 0x140008d56
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140008d56
mov rbx, rax
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, esi
call fcn.1400259f0
mov rcx, rdi
call fcn.140013b70
mov rsi, rax
mov qword [rsp + 0x20], 0
lea r14, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
setne al
cmp dword [r14], esi
sete cl
and cl, al
movzx edi, cl
jmp 0x140008d56
Function at 0x140008f40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140038120], 0
je 0x140008fda
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x140038120]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140013228
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x140038120]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.14000c44c
mov r9, qword [0x140038120]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140013228
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140018460
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000f7cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f8fc
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000f963
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f963
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f963
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f963
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f963
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f963
cmp dword [rcx + 0xf8], 0
je 0x14000f963
mov ecx, ebx
call fcn.14000f848
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000fa7c
cmp dword [rbp + 0x20], 0
je 0x14000f9b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f8a4
int3

Function at 0x140012240
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140010400
or eax, 0xffffffff
jmp 0x140012262
xor eax, eax
add rsp, 0x28
ret
Function at 0x140025a60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [0x14002fa8c]
call fcn.140012168
test rax, rax
je 0x140025ad7
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.140012b1c
mov ebp, 6
test eax, eax
je 0x140025ade
mov rcx, rsi
call fcn.140012268
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018460
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
jmp 0x140025ab7
mov rcx, rsi
call fcn.140012d2c
test eax, eax
jle 0x140025aaf
mov r14d, eax
lea rcx, [r14 + 1]
call fcn.14000a498
mov rbx, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.140012b1c
mov ebp, 6
test eax, eax
je 0x140025b19
mov rcx, rbx
call fcn.14000a4a0
jmp 0x140025aaf
mov edx, 1
mov rcx, rbx
mov r8, r14
mov r9, rsi
call fcn.140012888
cmp rax, r14
jne 0x140025b0f
mov byte [rbx + r14], 0
lea r14, [rsp + 0x38]
mov qword [r14], rbx
lea r15, [0x14002cfb0]
xor r12d, r12d
xor r13d, r13d
mov rcx, r15
mov rdx, r14
call fcn.140025c90
test rax, rax
je 0x140025c3e
mov rbp, rax
movzx eax, byte [rax]
cmp eax, 0x23
je 0x140025b4b
cmp eax, 0x3b
je 0x140025b4b
jmp 0x140025b77
mov al, byte [rbp + 1]
inc rbp
cmp al, 9
je 0x140025b71
movzx ecx, al
cmp ecx, 0x20
je 0x140025b71
mov qword [rsp + 0x30], rbp
test al, al
je 0x140025b4b
cmp ecx, 0x5b
jne 0x140025bb7
inc rbp
mov qword [rsp + 0x30], rbp
lea rcx, [0x14002cfb6]
lea r13, [rsp + 0x30]
mov rdx, r13
call fcn.140025c90
test rax, rax
je 0x140025b48
jmp 0x140025c4f
test r13b, 1
je 0x140025b4b
lea rcx, [0x14002cfb8]
lea rdx, [rsp + 0x30]
call fcn.140025c90
test rax, rax
je 0x140025b4b
mov rcx, rbp
call fcn.140025d20
test eax, eax
jne 0x140025b4b
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
call fcn.140013b70
lea rcx, [rax + 1]
mov qword [rsp + 0x20], rcx
call fcn.14000a498
mov rbp, rax
mov rcx, rax
xor edx, edx
mov r8, qword [rsp + 0x20]
call fcn.14000bac0
mov rcx, qword [rdi]
mov qword [rdi], rbp
test rcx, rcx
je 0x140025c29
call fcn.14000a4a0
mov rbp, qword [rdi]
mov rcx, rbp
mov rdx, qword [rsp + 0x28]
call fcn.140013690
inc r12d
jmp 0x140025b4b
xor eax, eax
cmp r12d, 1
setne al
lea ebp, [rax + rax*4]
jmp 0x140025b0f
lea rcx, [0x14002cfb3]
mov rdx, r13
call fcn.140025c90
test rax, rax
jne 0x140025b48
mov rcx, rbp
lea rdx, str.Strings
call fcn.140013570
test eax, eax
sete r13b
jmp 0x140025b4b
Function at 0x28e381820
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x28e381890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x28e39e084]
mov rbx, rcx
test esi, esi
jle 0x28e3819c0
mov rax, qword [0x28e39e088]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x28e3818db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x28e381965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x28e3818c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x28e3819e2
mov rax, qword [0x28e39e088]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x28e39e088]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x28e3819c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x28e38195e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x28e381970
add dword [0x28e39e084], 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 [0x28e39e088]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x28e38195e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x28e3818e8
mov rax, qword [0x28e39e088]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x28e381d60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x28e39e0c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x28e39e0a0]
test rbx, rbx
je 0x28e381dbc
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 eax, eax
jne 0x28e381db3
test rsi, rsi
je 0x28e381db3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x28e381d98
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 0x28e381fd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x28e381fe8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x28e381ff0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x28e382000
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x28e38204d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x28e382044
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x28e38204f
add rax, 0x28
cmp rax, r9
jne 0x28e382030
xor eax, eax
ret

Function at 0x28e382050
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x28e3820e0
mov rdx, qword [0x28e39b230]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x28e3820ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x28e3820ce
cmp word [rax + 0x18], 0x20b
jne 0x28e3820ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x28e3820e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x28e3820b9
add rbx, 0x28
cmp rbx, rdi
je 0x28e3820e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x28e3820b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x28e3820f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28e39b230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28e382110
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28e382118
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382110
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x28e38216d
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 0x28e382164
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x28e382110
add rax, 0x28
cmp rax, r9
jne 0x28e382150
xor eax, eax
ret

Function at 0x28e382170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28e39b230]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x28e38218f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x28e382198
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x28e38218f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x28e3821b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x28e39b230]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x28e3821d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x28e3821d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x28e3821d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x28e382220
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x28e382217
test rcx, rcx
je 0x28e3821d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x28e382208
xor eax, eax
ret

Function at 0x28e382230
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28e39b230]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x28e38224f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x28e382258
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x28e382270
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28e39b230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28e382290
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28e382298
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382290
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x28e382290
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x28e3822e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x28e3822f0
add rdx, 0x28
cmp r9, rdx
jne 0x28e3822d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x28e382300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x28e39b230]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x28e382322
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x28e382330
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28e382322
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x28e382322
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x28e382322
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x28e382385
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x28e382398
add rdx, 0x28
cmp rdx, r10
jne 0x28e382370
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x28e3823a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x28e3823b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x28e38238e
test ecx, ecx
jg 0x28e3823a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140006350
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400063ec
mov rdi, r14
mov rcx, rbx
call fcn.140008de0
test rax, rax
jle 0x1400063c4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400471a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400063dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400063e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006386
sub r14, rdi
jmp 0x1400064cf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006403
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006405
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006437
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400471a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400064cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006472
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400064ad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140030468
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400064cc
cmp rbp, rax
ja 0x140006480
test rbp, rbp
je 0x1400064cc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140030468
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14001d650
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400620c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x14001d782
mov r8, qword [rsp + 0x48]
cmp rbx, r8
ja 0x14001d6ef
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rbx
mov word [rax + rbx*2], si
jmp 0x14001d74e
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001d736
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x38]
cmp rdi, 7
cmova r9, qword [rsp + 0x38]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001d72b
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14001d74e
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001dc60
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call fcn.140047840
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001d80f
nop dword [rax]
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdi, qword [rsp + 0x38]
lea rax, [rbp - 0x74]
sub rdi, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14001d7f3
add rax, 2
test ecx, ecx
jne 0x14001d7e0
test edx, edx
je 0x14001d80b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001d7c0
jmp 0x14001d80f
mov esi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14001d857
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d852
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d881
call fcn.140022150
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140022130
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140030c78
int3
Function at 0x14001d890
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400620c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14001d914
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14001d914
cmp byte [rsp + 0x30], sil
jne 0x14001d940
test rbx, rbx
jne 0x14001d8c0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140022130
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14001d91b