joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2280
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2296
mov al, 1
jmp 0x1400b22f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b22a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b22f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b2c94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b22f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b22f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b22f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b22f6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b2da4
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.1400aa960
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400aa960
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b2ef4
cmp rax, 0xffffffffffffffff
je 0x1400b2ef4
xor edi, edi
test rbp, rbp
jle 0x1400b2e9f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400aed60
mov rbx, rax
test rax, rax
jne 0x1400b2e2c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b2e95
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ac020
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.1400ad7a0
cmp eax, 0xffffffff
je 0x1400b2e75
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b2e3c
mov edx, r15d
mov ecx, r14d
call fcn.1400ac020
jmp 0x1400b2e95
cmp byte [rsi + 0x38], dil
je 0x1400b2e8c
cmp dword [rsi + 0x34], 5
jne 0x1400b2e8c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b2e95
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400aedd8
jmp 0x1400b2f08
jns 0x1400b2f08
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400aa960
cmp rax, 0xffffffffffffffff
jne 0x1400b2ec0
cmp byte [rsi + 0x30], dil
je 0x1400b2f08
mov edi, dword [rsi + 0x2c]
jmp 0x1400b2f08
mov ecx, r14d
call fcn.1400b2c94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b2f08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b2f08
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b2f01
mov eax, dword [rsi + 0x2c]
jmp 0x1400b2f06
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400aa960
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 0x1400b6784
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 0x1400b67b4
xor eax, eax
jmp 0x1400b6877
mov rbp, rbx
cmp word [rax], si
je 0x1400b67d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b67c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b67bc
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.1400b3740
movsxd r14, eax
test eax, eax
jne 0x1400b6817
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b67ad
mov rcx, r14
call fcn.1400af9bc
mov rdi, rax
test rax, rax
jne 0x1400b6830
xor ecx, ecx
call fcn.1400aedd8
jmp 0x1400b680c
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.1400b3740
test eax, eax
jne 0x1400b6861
mov rcx, rdi
call fcn.1400aedd8
jmp 0x1400b686b
xor ecx, ecx
call fcn.1400aedd8
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 0x1400b6894
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b691b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b68da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b68c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b68c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400af9bc
mov rdi, rax
test rax, rax
je 0x1400b6908
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bdfe0
mov rbp, rdi
xor ecx, ecx
call fcn.1400aedd8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b801c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b803c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009fb0c
or eax, 0xffffffff
jmp 0x1400b803e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ba988
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e9700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ba9d2
call fcn.14009fb78
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14009fb98
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009cd00
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400945b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ba9dd
lea eax, [rbx + 1]
jmp 0x1400ba9bf
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ba9bd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ba9bf
Function at 0x1400bbe24
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.14009fbb8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bbeae
cmp byte [rbp - 0x21], r15b
je 0x1400bbea9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bbee4
call fcn.1400af080
test eax, eax
jne 0x1400bbed0
cmp byte [rbp - 0x21], r15b
je 0x1400bbec8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bbee4
cmp byte [rbp - 0x21], r15b
je 0x1400bbee1
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.1400a8408
test eax, eax
jne 0x1400bbf84
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009fbb8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bbf23
cmp byte [rbp - 0x21], r15b
je 0x1400bbf58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bbf58
call fcn.1400af080
test eax, eax
jne 0x1400bbf44
cmp byte [rbp - 0x21], r15b
je 0x1400bbf3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bbf58
cmp byte [rbp - 0x21], r15b
je 0x1400bbf55
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.1400a8408
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bbf84
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bbf87
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bbf95
mov rcx, rdi
call fcn.1400aedd8
cmp byte [rbp + 0x3f], r15b
je 0x1400bbfa4
mov rcx, qword [rbp + 0x27]
call fcn.1400aedd8
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 0x140013850
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x140039ab0]
test rcx, rcx
je 0x1400138ba
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400138ad
mov rcx, qword [0x140039ab0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140039ab0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003c2c0], 1
jne 0x140013964
mov r14, qword [0x14002bbe0]
mov qword [rsp + 0x50], r14
movups xmm8, xmmword [0x14002bbd0]
movaps xmmword [rsp + 0x40], xmm8
movups xmm7, xmmword [0x14002bbc0]
movaps xmmword [rsp + 0x30], xmm7
movups xmm6, xmmword [0x14002bbb0]
movaps xmmword [rsp + 0x20], xmm6
lea r15, [rsp + 0x20]
mov rcx, r15
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea r12, [0x140039ac0]
mov rbx, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, r12
call rbx
cmp eax, 0xffffffff
je 0x140013964
and eax, 0x10
je 0x140013964
mov ecx, 0x64
call rsi
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rcx, r15
call rdi
dec ebp
jne 0x140013930
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015260
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400150a0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140015200
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x140039ab8]
test eax, eax
je 0x1400150d5
test eax, eax
jg 0x14001511d
jmp 0x140015152
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140013190
test al, al
je 0x1400151da
lea rcx, [rsp + 0x20]
call fcn.14001bc8c
movsxd rcx, dword [0x140039ab8]
lea rdx, [0x140046b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140039ab8], eax
test eax, eax
jle 0x140015152
lea rdi, [0x140046b20]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001c8d0
test eax, eax
je 0x1400151bb
inc rbx
movsxd rax, dword [0x140039ab8]
add rdi, 8
cmp rbx, rax
jl 0x140015130
mov rcx, rsi
call fcn.14001c908
cmp rax, 2
jne 0x140015169
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x1400151bd
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140015188
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x1400151bd
cmp dword [0x140039ab8], 0x3ff
jg 0x1400151bd
mov rcx, rsi
call fcn.14001bc8c
movsxd rcx, dword [0x140039ab8]
lea rdx, [0x140046b20]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140039ab8], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140015260
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140014090
int3

Function at 0x140015a14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015a5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015a5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015a5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015a5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140015a5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140015a60
xor al, al
add rsp, 0x28
ret
Function at 0x14001ab40
Capabilities:
Parse pe header

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

Function at 0x14001cd60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cd88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001cd88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400225a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002262f
mov rsi, rbx
cmp word [rax], bp
je 0x1400225ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400225d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400225d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001fa1c
mov rdi, rax
test rax, rax
je 0x14002261c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016260
mov rbp, rdi
xor ecx, ecx
call fcn.14001eadc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400042d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400042f4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140004382
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004350
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140004350
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140031fe0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000436d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004375
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140004311
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140004460
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140004399
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000439b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400043cd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140031fe0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000445d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004408
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 rsi, 0xfff
jbe 0x14000443e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14001b174
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000445d
cmp rsi, rax
ja 0x140004411
test rsi, rsi
je 0x14000445d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001b174
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000af60
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x140049100]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov ecx, 0xfffffff5
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx ecx, word [rsp + 0x38]
lea rax, [rsp + 0x34]
movsx r8d, word [rsp + 0x3a]
mov dl, 0x20
mov r9d, dword [rsp + 0x30]
imul r8d, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
movsx eax, word [rsp + 0x38]
mov edx, 0xa
movsx r8d, word [rsp + 0x3a]
mov rcx, rdi
mov r9d, dword [rsp + 0x30]
imul r8d, eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400110a0
add rsp, 0x60
pop rdi
ret
Function at 0x14000d130
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 [0x140049100]
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
mov r9d, 0xffffffff
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 0x14000d264
mov r8, qword [rsp + 0x48]
cmp rbx, r8
ja 0x14000d1d1
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov word [rax + rbx*2], si
jmp 0x14000d230
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000d218
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 0x14000d20d
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14000d230
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14000d740
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
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call fcn.140032680
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000d2ef
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 0x14000d2d3
add rax, 2
test ecx, ecx
jne 0x14000d2c0
test edx, edx
je 0x14000d2eb
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000d2a0
jmp 0x14000d2ef
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 0x14000d337
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d332
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d361
call fcn.1400110c0
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400110a0
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.14001b998
int3
Function at 0x14000d370
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140049100]
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 0x14000d3f4
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 0x14000d3f4
cmp byte [rsp + 0x30], sil
jne 0x14000d420
test rbx, rbx
jne 0x14000d3a0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400110a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14000d3fb