joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff8af250fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3138], 0
lea rbx, [rcx + 0x3140]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x7ff8af251067
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x7ff8af25101a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.7ff8af2535b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.7ff8af23b7e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3138]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3148]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x7ff8af2b73c8]
cmovne rcx, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x7ff8af25106f
mov rcx, rbx
call fcn.7ff8af23b7e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff8af277990
Capabilities:
Get graphical window text

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
sub rsp, 0x170
mov rax, qword [0x7ff8af2b6430]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
call qword [sym.imp.user32.dll_GetForegroundWindow]
lea rbx, [rdi - 1]
test rax, rax
jne 0x7ff8af2779f1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0xf
xor r8d, r8d
lea rdx, [0x7ff8af28c8c2]
jmp 0x7ff8af277a2f
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.user32.dll_GetWindowTextA]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0xf
lea rax, [rsp + 0x50]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x7ff8af277a20
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.7ff8af27dfa0
lea rax, [0x7ff8af2b7530]
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff8af277a40
lea rbp, [rsp + 0x28]
mov r14, qword [rsp + 0x40]
cmp r14, 0x10
setae r13b
mov rsi, qword [rsp + 0x28]
cmovae rbp, rsi
mov rax, qword [rsp + 0x38]
cmp rbx, rax
ja 0x7ff8af277ad3
sub rax, rbx
test rbx, rbx
je 0x7ff8af277b1b
lea r15, [rax + rbp]
movsx r12d, byte [0x7ff8af2b7530]
lea r8, [r15 + 1]
sub r8, rbp
mov edx, r12d
mov rcx, rbp
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x7ff8af277ad3
mov r8, rbx
lea rdx, [0x7ff8af2b7530]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x7ff8af277b12
inc rdi
lea r8, [r15 + 1]
sub r8, rdi
mov edx, r12d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x7ff8af277aa0
xor bl, bl
test r13b, r13b
je 0x7ff8af277b8f
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x7ff8af277b87
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff8af277b87
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
sub rdi, rbp
cmp rdi, 0xffffffffffffffff
je 0x7ff8af277ad3
mov dword [rsp + 0x28], 0x18
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.user32.dll_GetCursorInfo]
test eax, eax
je 0x7ff8af277b53
mov eax, dword [rsp + 0x30]
add eax, 0xffff0217
cmp eax, 0x3e6
setbe bl
jmp 0x7ff8af277ad5
test r13b, r13b
je 0x7ff8af277b92
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x7ff8af277b7d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff8af277b0b
mov rcx, rsi
call fcn.7ff8af286e60
jmp 0x7ff8af277b92
mov rcx, rsi
call fcn.7ff8af286e60
movzx eax, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.7ff8af286d70
lea r11, [rsp + 0x170]
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 0x7ff8af27dc10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff8af2b6430]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff8af27dce3
cmp byte [rcx + 0x71], 0
je 0x7ff8af27dce3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff8af27dcdf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.msvcp140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x7ff8af27dca4
sub eax, 1
je 0x7ff8af27dca8
cmp eax, 2
jne 0x7ff8af27dcdf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff8af286d70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff8af27dcd6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff8af27dcdf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff8af27dc8c
xor al, al
jmp 0x7ff8af27dc8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff8af286d70
add rsp, 0x60
pop rbx
ret
Function at 0x7ff8af2806c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x7ff8af2b6430]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov ebp, edi
lea r15d, [rdi - 6]
mov r13d, edi
cmp qword [rdx + 0x10], rbp
jbe 0x7ff8af280834
mov ecx, edi
mov qword [rsp + 0x28], rcx
lea r8, [0x7ff8af2a9940]
mov rax, r14
cmp qword [r14 + 0x18], 0x10
jb 0x7ff8af280741
mov rax, qword [r14]
shl ebp, 8
movsx eax, byte [rcx + rax]
add ebp, eax
add r15d, 8
js 0x7ff8af2807cb
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x7ff8af2807ad
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x7ff8af2807a2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x7ff8af2807bc
mov rcx, rbx
call fcn.7ff8af27f210
lea r8, [0x7ff8af2a9940]
sub rdi, 6
sub rsi, 1
jne 0x7ff8af280770
mov rcx, qword [rsp + 0x28]
inc r13d
inc rcx
mov qword [rsp + 0x28], rcx
movsxd rax, r13d
cmp rax, qword [r14 + 0x10]
jb 0x7ff8af280734
cmp r15d, 0xfffffffa
jle 0x7ff8af280832
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x7ff8af28082a
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x7ff8af28081f
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x7ff8af280832
mov rcx, rbx
call fcn.7ff8af27f210
xor edi, edi
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x7ff8af280879
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x7ff8af280865
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x7ff8af28085d
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x7ff8af280870
mov r9b, 0x3d
mov rcx, rbx
call fcn.7ff8af27f210
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x7ff8af280840
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x7ff8af2808af
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x7ff8af2808aa
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff8af2808e7
mov rcx, r8
call fcn.7ff8af286e60
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff8af286d70
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x7ff8af281770
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x7ff8af2b6430]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rsi, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rbx, rax
cmp r9d, 1
mov qword [rsp + 0x20], rbx
cmovne rdi, rax
test r9d, r9d
mov r8, rdi
cmovne rsi, rax
xor r9d, r9d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ws2_32.dll_select]
cmp eax, 0xffffffff
jne 0x7ff8af281848
nop dword [rax]
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x7ff8af281894
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ws2_32.dll_select]
cmp eax, 0xffffffff
je 0x7ff8af281820
test eax, eax
je 0x7ff8af281871
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.7ff8af286d70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, [0x7ff8af2a9ad0]
lea rcx, [rsp + 0x30]
call fcn.7ff8af281580
lea rdx, [0x7ff8af2b3000]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.7ff8af274cf0
mov r8, rax
lea r9, [0x7ff8af2a9ab8]
lea rcx, [rsp + 0x30]
call fcn.7ff8af280540
lea rdx, [0x7ff8af2b2cc0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x7ff8af285730
Capabilities:
Create thread
Terminate process

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [0x7ff8af2b6430]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
cmp edx, 1
jne 0x7ff8af285890
mov qword [rsp + 0x288], rbx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 8]
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x7ff8af2857b1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
lea edx, [rbx + 0x14]
call qword [sym.imp.advapi32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x7ff8af2857c1
call qword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0x288]
jne 0x7ff8af2857ef
xor r9d, r9d
lea r8, [0x7ff8af2a464c]
lea rdx, [0x7ff8af2aa068]
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll_exit]
int3
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x7ff8af285810
lea rdx, [rsp + 0x40]
lea rcx, [0x7ff8af2b6678]
call fcn.7ff8af27dfa0
mov r8d, 0x104
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea rdx, [0x7ff8af2aa0a8]
lea rcx, [rsp + 0x150]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x7ff8af28588b
cmp byte [0x7ff8af2b7601], al
jne 0x7ff8af28588b
mov qword [rsp + 0x28], rax
lea r8, [0x7ff8af278720]
mov r9, rdi
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x7ff8af285890
call fcn.7ff8af284410
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.7ff8af286d70
add rsp, 0x270
pop rdi
ret
Function at 0x140003e50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140003e78
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140003e9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003ea0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003ef9
test ecx, ecx
jle 0x140003ed9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003ef9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003ef9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140003f20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003f42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003f58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003f76
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003fb2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000404e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003fed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000402e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000404e
cmp rbx, rax
ja 0x140004000
test rbx, rbx
je 0x14000404e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140004480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400044ad
xor eax, eax
jmp 0x140004619
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400044e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400044e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004619
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000460c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000452a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004555
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400045c4
sub eax, 1
je 0x1400045c4
cmp eax, 2
jne 0x14000460c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400045f2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000460c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004611
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d220
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005540
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005613
cmp byte [rcx + 0x71], 0
je 0x140005613
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000560f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400055d4
sub eax, 1
je 0x1400055d8
cmp eax, 2
jne 0x14000560f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d220
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005606
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000560f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400055bc
xor al, al
jmp 0x1400055bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d220
add rsp, 0x60
pop rbx
ret
Function at 0x14001c6a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], 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 0x14001c7c7
mov r8, qword [rsp + 0x40]
cmp rbx, r8
ja 0x14001c73f
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rax + rbx*2], si
jmp 0x14001c793
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001c786
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
cmp rdi, 8
cmovae r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001c77b
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14001c793
mov r9, rdx
lea rcx, [rsp + 0x30]
call fcn.140006fa0
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
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 + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001c84b
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x7c]
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14001c833
add rax, 2
test ecx, ecx
jne 0x14001c820
test edx, edx
je 0x14001c847
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14001c7fd
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14001c89a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c895
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c895
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001d4d4
mov eax, esi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14001d220
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret