joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ca5c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140029ec0
sub rsp, rax
mov rax, qword [0x14007d078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004a6f0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004caab
mov rax, rbp
jmp 0x14004cbb3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x81520]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004c698
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x81520]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004cbaf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004cbaf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004c698
test rax, rax
js 0x14004cbaf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004cbaf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004cba1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004cba1
cmp byte [rcx], 0xd
jne 0x14004cb87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004cb96
cmp byte [rcx + 1], 0xa
jne 0x14004cb96
inc rcx
jmp 0x14004cb96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7db60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004cb69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004cbb3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029320
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052af4
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 0x140052b7b
mov rsi, rbx
cmp word [rax], bp
je 0x140052b3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140052b24
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140052b20
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004dc50
mov rdi, rax
test rax, rax
je 0x140052b68
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002e2e0
mov rbp, rdi
xor ecx, ecx
call fcn.14004a6b4
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 0x14005570c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004a354
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400557ad
cmp ebx, dword [rsp + 0x30]
je 0x1400557a6
test esi, esi
je 0x1400557a6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140055781
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005578e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005576b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140055792
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400557af
mov eax, 1
jmp 0x1400557af
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140055ac0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140081520]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140055b17
cmp word [rdx], r13w
jne 0x140055b17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140055b1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140055c41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140055c62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140055b55
mov rdx, r9
mov word [rbx], cx
jmp 0x140055b7c
cmp r9, r8
jae 0x140055b8c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140055b36
jmp 0x140055c41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140055c36
cmp dword [rsp + 0x80], esi
je 0x140055c36
lea r8, [0x140081520]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140055c0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140055bde
mov word [rbx], r13w
jmp 0x140055c3e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140055beb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140055c3e
cmp word [rsp + 0x70], r13w
jne 0x140055c1b
cmp rbx, r14
je 0x140055bd8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004c6a0
cmp word [rsp + 0x70], r13w
je 0x140055c41
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140081520]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140055c3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140055c41
Function at 0x14005a438
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.14004c6a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004c6a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005a588
cmp rax, 0xffffffffffffffff
je 0x14005a588
xor edi, edi
test rbp, rbp
jle 0x14005a533
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004c374
mov rbx, rax
test rax, rax
jne 0x14005a4c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005a529
mov edx, 0x8000
mov ecx, r14d
call fcn.140048510
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.14004c06c
cmp eax, 0xffffffff
je 0x14005a509
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005a4d0
mov edx, r15d
mov ecx, r14d
call fcn.140048510
jmp 0x14005a529
cmp byte [rsi + 0x38], dil
je 0x14005a520
cmp dword [rsi + 0x34], 5
jne 0x14005a520
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005a529
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004a6b4
jmp 0x14005a59c
jns 0x14005a59c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004c6a0
cmp rax, 0xffffffffffffffff
jne 0x14005a554
cmp byte [rsi + 0x30], dil
je 0x14005a59c
mov edi, dword [rsi + 0x2c]
jmp 0x14005a59c
mov ecx, r14d
call fcn.1400531b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005a59c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005a59c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005a595
mov eax, dword [rsi + 0x2c]
jmp 0x14005a59a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004c6a0
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 0x14005acd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005acf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005acf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001990
Capabilities:
Create thread
Print debug messages

Disassembly:
sub rsp, 0x48
mov r8, rdx
mov rdx, rcx
lea rcx, [0x140006f60]
call sub.ntoskrnl.exe_DbgPrint
call fcn.1400013b4
and qword [rsp + 0x30], 0
lea rax, [0x140001170]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x60]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
xor eax, eax
add rsp, 0x48
ret
jmp 0x1400014b4

Function at 0x140001a20
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140005e0c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x38
and qword [rax + 0x10], 0
lea r9, [rax + 8]
mov dword [rax - 0x10], 0x40
lea rdx, [rax + 0x10]
xor r8d, r8d
mov dword [rax - 0x18], 0x3000
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.140006ac0
mov rax, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140005e5c
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov edx, 0x100000
xor ecx, ecx
mov r8d, 0x7170776f
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor r9d, r9d
lea ecx, [rbx + 5]
mov rdx, rax
mov r8d, 0x100000
mov rsi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
lfence
test eax, eax
jns 0x140005eb1
mov edx, eax
lea rcx, [0x140007030]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140005f01
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdi, rsi
lfence
lea rcx, [rsi + 0x38]
jmp 0x140005ed8
mov eax, dword [rdi]
test eax, eax
je 0x140005f01
add rdi, rax
lea rcx, [rdi + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x140005ecb
lfence
mov rdx, qword [rdi + 0x50]
lea rcx, [0x140007060]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rdi + 0x50]
mov edx, 0x7170776f
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140005f24
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
jne 0x140005f6c
lea rcx, [0x140006fd0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rax + 0x18]
jmp 0x140005f9a
lea rcx, [0x140006fe0]
call sub.ntoskrnl.exe_DbgPrint
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], 0xfffffffffffe7960
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140005f72
add rax, 0x10
mov rbx, qword [rax]
jmp 0x140005fd9
lea rsi, [rbx + 0x58]
mov rdx, rsi
lea rcx, [0x140007000]
call sub.ntoskrnl.exe_DbgPrint
mov r8b, 1
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140005fe3
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x10
cmp rbx, rax
jne 0x140005fa8
jmp 0x140005f55
mov rdx, rsi
lea rcx, [0x140006f90]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rbx + 0x30]
jmp 0x140005f57
Function at 0x140005ffc
Capabilities:
Get file attributes
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1400d1a20]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 7], 0
lea rax, [rbp - 0x11]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x40
lea r9, [rbp - 0x21]
mov qword [rbp + 0xf], rax
lea r8, [rbp - 1]
mov dword [rbp - 1], 0x30
mov edx, 0x80000000
mov dword [rbp + 0x17], 0x240
lea rcx, [rbp - 0x39]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov edx, eax
lea rcx, [0x140007080]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp - 0x39]
lea r8, [rbp + 0x2f]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp - 0x31], rax
lea rdx, [rbp - 0x21]
mov qword [rbp + 0x3f], rax
movups xmmword [rbp + 0x2f], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov r8, qword [rbp + 0x37]
lea rcx, [0x1400070b0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rbp + 0x37]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov ecx, dword [rbp + 0x37]
xor r8d, r8d
mov dword [rsp + 0x30], ecx
xor edx, edx
mov rcx, qword [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rdi], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
lea r8, [rbp - 0x29]
mov qword [rbp - 0x29], 0xfffffffffffe7960
xor edx, edx
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
mov edx, ebx
lea rcx, [0x140007120]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rdi]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140006640
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400061a8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
and dword [rsp + 0x60], 0
lea rax, [r11 + 0x20]
mov rbx, r8
mov qword [r11 - 0x28], rax
mov rdi, rdx
mov qword [r11 - 0x18], rbx
lea r8, [r11 - 0x18]
mov r9d, 0x40
lea rdx, [r11 + 8]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov rcx, qword [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call fcn.140006800
mov r9d, dword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400062c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov rbp, rdx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov ebx, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rbx, rcx
mov edi, dword [r8 + 0x24]
add r10, rcx
mov esi, dword [r8 + 0x14]
add rdi, rcx
xor ecx, ecx
test esi, esi
je 0x14000634d
movsxd rdx, dword [r10]
mov rax, rbp
add rdx, r9
sub rdx, rbp
movzx r8d, byte [rax]
movzx r11d, byte [rax + rdx]
sub r8d, r11d
jne 0x14000632d
inc rax
test r11d, r11d
jne 0x140006317
test r8d, r8d
je 0x14000633e
inc ecx
add r10, 4
cmp ecx, esi
jb 0x14000630b
jmp 0x14000634d
movsxd rax, ecx
movsx rcx, word [rdi + rax*2]
movsxd rax, dword [rbx + rcx*4]
add rax, r9
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x140006364
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rax, dword [rcx + 0x3c]
mov rsi, r8
mov rbx, rcx
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
mov rdi, rdx
mov r9d, dword [rax + rcx + 0x50]
or rcx, 0xffffffffffffffff
mov qword [r11 + 8], r9
lea r9, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lfence
test eax, eax
jns 0x1400063c4
mov edx, eax
lea rcx, [0x140007160]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140006424
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rdi]
call fcn.140006ac0
movsxd rax, dword [rbx + 0x3c]
mov rdx, rbx
mov rcx, qword [rdi]
mov r8d, dword [rax + rbx + 0x54]
call fcn.140006800
mov r8, rdi
lea rdx, [0x140006230]
mov rcx, rbx
call fcn.14000624c
mov rcx, qword [rdi]
mov rdx, rcx
call fcn.14000652c
mov rcx, qword [rdi]
mov rdx, rsi
call fcn.140006434
test al, al
jne 0x14000641f
lea rcx, [0x140007190]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140006f20
Capabilities:
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x2c], 0
mov rdi, rcx
jne 0x140006f4c
call fcn.1400072c0
test eax, eax
jne 0x140006f4c
lea rdx, str.Cant_open_clipboard_for_writing.
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x140007070
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x140006f9a
cmp dword [rdi + 0x2c], eax
je 0x140006f81
xor esi, esi
cmp qword [rdi + 0x10], rsi
je 0x140006f75
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, str.EmptyClipboard
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140007070
mov rcx, qword [rdi + 8]
xor esi, esi
test rcx, rcx
je 0x140006fdd
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140007011
cmp word [rax], si
mov qword [rsp + 0x30], rbx
sete bl
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test bl, bl
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 0x18], rsi
mov dword [rdi + 0x28], esi
je 0x140007011
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rdi + 8], rax
cmp dword [rdi + 0x2c], esi
je 0x140007001
cmp qword [rdi + 0x10], rsi
je 0x140006ff5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 8]
mov ecx, ntohs
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x14000702b
mov qword [rdi + 8], rsi
jmp 0x140006fdd
cmp dword [rdi + 0x2c], esi
je 0x14000704f
cmp qword [rdi + 0x10], rsi
je 0x140007043
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rdi + 0x2c], esi
mov qword [rdi], rsi
lea rdx, str.SetClipboardData
mov rcx, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140007070
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x2c], esi
je 0x1400070ab
cmp qword [rcx + 0x10], rsi
je 0x14000709f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [rbx + 0x2c], esi
mov qword [rbx], rsi
cmp qword [rbx + 0x18], rsi
je 0x1400070c2
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x28], esi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400070d5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], rax
cmp word [rdi], si
je 0x1400070ff
lea r8, [0x1400f1524]
lea rcx, [0x14012c5c0]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14004e590
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400739a0
Capabilities:
Copy file
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400e0a90
sub rsp, rax
mov rax, rdx
movzx ebx, r8b
mov rdi, rcx
lea r8, [rsp + 0x20]
xor r9d, r9d
mov edx, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x14012d148]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r8d, r8d
test bl, bl
lea rdx, [rsp + 0x20]
mov rcx, rdi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [0x1400f1524]
test eax, eax
mov rax, qword [0x140127148]
setne bl
test rax, rax
je 0x140073a19
mov rax, qword [rax]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx eax, bl
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x14008ebb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
lea rax, vtable.ComObject.0
mov rbx, rcx
mov qword [rcx], rax
movzx eax, word [rcx + 0x20]
mov ecx, 9
cmp cx, ax
je 0x14008ebdb
mov ecx, ntohs
cmp cx, ax
jne 0x14008ec16
cmp qword [rbx + 0x10], 0
je 0x14008ec16
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008ec06
xor r8d, r8d
xor edx, edx
call fcn.140090dd0
mov r11, qword [rbx + 0x18]
test r11, r11
je 0x14008ec06
mov qword [r11 + 0x18], 0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
add rsp, 0x20
pop rbx
jmp qword [rax + reloc.WSOCK32.dll_recv]
mov ecx, 0x6000
and ax, cx
mov ecx, 0x2000
cmp ax, cx
jne 0x14008ec38
test byte [rbx + 0x22], 1
je 0x14008ec38
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WSOCK32.dll_recv]
add rsp, 0x20
pop rbx
ret
Function at 0x140091a10
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayLock]
test eax, eax
js 0x140091b30
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x140091b30
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
test eax, eax
js 0x140091b2b
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x38], r13
movzx r13d, word [rsi + 0x20]
mov eax, 0xfff
mov rcx, rdi
mov qword [rsp + 0x30], r14
and r13w, ax
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetUBound]
mov ecx, dword [rsp + 0x78]
sub ecx, dword [rsp + 0x20]
mov r12d, eax
imul ecx, eax
movsxd r14, ecx
mov ecx, gethostbyname
add r14, qword [rsp + 0x28]
call fcn.1400d7718
test rax, rax
je 0x140091aed
mov rdx, qword [rsp + 0x28]
lea rcx, vtable.ComArrayEnum.0
mov dword [rax + 8], 1
sub rdx, r12
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r14
mov dword [rax + 0x28], r12d
mov word [rax + 0x2c], r13w
mov qword [rax + 0x18], rdx
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x68]
mov qword [rbp], rax
test rax, rax
je 0x140091b1d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WSOCK32.dll_htonl]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret