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

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

Function at 0x1400264cc
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.14000cb80
sub rsp, rax
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400239b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002651b
mov rax, rbp
jmp 0x140026623
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 + 0x75420]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400273ac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x75420]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002661f
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 0x14002661f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400273ac
test rax, rax
js 0x14002661f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002661f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026611
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026611
cmp byte [rcx], 0xd
jne 0x1400265f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026606
cmp byte [rcx + 1], 0xa
jne 0x140026606
inc rcx
jmp 0x140026606
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x72480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400265d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140026623
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000c280
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 0x14002674c
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, [0x140075420]
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 0x1400267a3
cmp word [rdx], r13w
jne 0x1400267a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400267a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400268cd
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400268ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400267e1
mov rdx, r9
mov word [rbx], cx
jmp 0x140026808
cmp r9, r8
jae 0x140026818
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 0x1400267c2
jmp 0x1400268cd
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 0x1400268c2
cmp dword [rsp + 0x80], esi
je 0x1400268c2
lea r8, [0x140075420]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002689a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002686a
mov word [rbx], r13w
jmp 0x1400268ca
mov ecx, SafeArrayGetDim
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 0x140026877
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400268ca
cmp word [rsp + 0x70], r13w
jne 0x1400268a7
cmp rbx, r14
je 0x140026864
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400273b4
cmp word [rsp + 0x70], r13w
je 0x1400268cd
mov ecx, SafeArrayGetDim
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, [0x140075420]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400268c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400268cd
Function at 0x140029c58
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 0x140029c88
xor eax, eax
jmp 0x140029d4b
mov rbp, rbx
cmp word [rax], si
je 0x140029cad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140029c94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140029c90
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.140021228
movsxd r14, eax
test eax, eax
jne 0x140029ceb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140029c81
mov rcx, r14
call fcn.1400211c8
mov rdi, rax
test rax, rax
jne 0x140029d04
xor ecx, ecx
call fcn.14002118c
jmp 0x140029ce0
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.140021228
test eax, eax
jne 0x140029d35
mov rcx, rdi
call fcn.14002118c
jmp 0x140029d3f
xor ecx, ecx
call fcn.14002118c
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 0x14002c878
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.140021680
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 0x14002c919
cmp ebx, dword [rsp + 0x30]
je 0x14002c912
test esi, esi
je 0x14002c912
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002c8ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002c8fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002c8d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002c8fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002c91b
mov eax, 1
jmp 0x14002c91b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140030c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140030c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140030c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140032c84
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x60], 0
mov rbx, rcx
jne 0x140032cb5
mov rcx, qword [rcx + 0xf0]
test rcx, rcx
je 0x140032ca7
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov word [rbx + 0x60], 1
call fcn.140040f50
add rsp, 0x20
pop rbx
ret
Function at 0x140034fc0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x60], 0
mov rbx, rcx
jne 0x140035000
mov rcx, qword [rcx + 0xd0]
xor edx, edx
test rcx, rcx
je 0x140034fe9
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov dl, 1
call fcn.140040d7c
add rsp, 0x20
pop rbx
ret

Function at 0x140037c58
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x60], 0
mov rbx, rcx
jne 0x140037cb1
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
je 0x140037cb1
cmp dword [rbx + 0x64], 0
je 0x140037c9e
and qword [rsp + 0x28], 0
lea r8, [0x1400370d8]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x30
pop rbx
ret
call fcn.14004fb5c
mov ecx, dword [rbx + 0x58]
mov word [rbx + 0x60], 1
call fcn.140040f50
add rsp, 0x30
pop rbx
ret
Function at 0x140040d7c
Capabilities:
Get disk size
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov dil, dl
mov dword [rbp - 0x11], ecx
mov ecx, 0x20
call fcn.14000c318
mov rbx, rax
mov dword [rbp - 9], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp - 9]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov rcx, rbx
call fcn.14000c2e4
lea r9, [rbp + 0xf]
lea r8, [rbp + 0x17]
lea rdx, [rbp + 0x1f]
lea rcx, [0x140062ef8]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea rcx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rcx, [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea r14, [0x140075ad0]
mov qword [rbp - 0x19], r14
mov rcx, r14
call fcn.140009e54
test eax, eax
jne 0x140040f3e
mov eax, dword [0x140075b1c]
cmp eax, 0x7fffffff
je 0x140040f2b
mov rcx, qword [0x140075b20]
mov rax, qword [rcx + 8]
mov edx, dword [rbp - 0x11]
jmp 0x140040e4e
cmp dword [rax + 0x20], edx
jae 0x140040e48
mov rax, qword [rax + 0x10]
jmp 0x140040e4e
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140040e3d
cmp byte [rcx + 0x19], 0
jne 0x140040efe
cmp edx, dword [rcx + 0x20]
jb 0x140040efe
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea rdx, [rbp - 0x11]
call fcn.140003ca8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040e84
lock inc dword [rcx + 8]
mov rcx, qword [rax]
mov qword [rbp - 1], rcx
mov rbx, qword [rax + 8]
mov qword [rbp + 7], rbx
mov r8, rcx
mov eax, 0x61
test dil, dil
je 0x140040ea4
mov dl, 1
jmp 0x140040ea6
xor dl, dl
mov byte [r8 + rax], dl
mov byte [rcx + 0x60], 1
lea rdx, [rbp - 0x11]
call fcn.140003ca8
mov rdx, rax
call fcn.140003bd8
lea rdx, [rbp - 0x11]
call fcn.140003dc4
nop
test rbx, rbx
je 0x140040efe
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x140040efe
mov rbx, qword [rbp + 7]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x140040efe
mov rcx, qword [rbp + 7]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, r14
call fcn.140009e7c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000c280
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
dec eax
mov dword [0x140075b1c], eax
mov ecx, 6
call fcn.140009c6c
int3
mov ecx, 5
call fcn.140009c6c
int3
Function at 0x140041334
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov rdx, rcx
call fcn.140049960
test eax, eax
je 0x140041505
mov qword [rbp + 7], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
and ebx, 0xf
add ebx, 0x10
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rdi
xor r8d, r8d
lea rdx, [0x14006300c]
lea rcx, [rbp + 0xf]
call fcn.140001bf0
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x51eb851f
mul r9d
shr edx, 3
imul ecx, edx, 0x19
sub r9d, ecx
add r9w, 0x61
mov rcx, qword [rbp + 0x1f]
cmp rcx, qword [rbp + 0x27]
jae 0x1400413eb
lea rax, [rcx + 1]
mov qword [rbp + 0x1f], rax
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rax, qword [rbp + 0xf]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], di
jmp 0x1400413fd
mov r8b, byte [rbp - 0x29]
mov edx, 1
lea rcx, [rbp + 0xf]
call fcn.1400049e4
sub rbx, 1
jne 0x1400413a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
lea r10, [rbp + 0x44]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
mov cl, dl
shl cl, 2
lea r8d, [rcx + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140041410
lea r8, [rbp + 0x44]
mov rdx, r10
lea rcx, [rbp - 0x21]
call fcn.140002aa8
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x140041486
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041481
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004152c
call fcn.14000c2e4
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x1f]
sub rax, rcx
cmp rax, 9
jb 0x140041526
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rax, qword [rbp + 0xf]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str..pipe_
lea rcx, [rbp - 0x21]
call fcn.140001dc0
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 7]
call fcn.14004be48
test al, al
je 0x1400414ef
lea rcx, [rbp + 7]
call fcn.14004be20
mov dil, 1
lea rcx, [rbp + 0xf]
call fcn.1400016f0
nop
lea rcx, [rbp + 7]
call fcn.14004be20
mov al, dil
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000c280
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140001664
nop
call fcn.140013644
int3
Function at 0x1400463c0
Capabilities:
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov esi, edx
lea rcx, [r11 - 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x186a0
call fcn.14000c318
mov rcx, rax
mov edx, 0x186a
movdqu xmm0, xmmword [rcx]
paddb xmm0, xmmword [0x140065e50]
movdqu xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
sub rdx, 1
jne 0x14004640f
mov rcx, rax
call fcn.14000c2e4
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
lea rcx, [0x140063580]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
xor ebx, ebx
test esi, esi
je 0x140046491
lea ebp, [rsi - 1]
cmp ebx, ebp
jne 0x140046485
xorps xmm1, xmm1
mov eax, 0x8000
psubq xmm1, xmmword [0x140065e20]
sub rax, 1
jne 0x140046462
movdqa xmm0, xmm1
psrldq xmm0, 8
paddq xmm1, xmm0
movq rax, xmm1
add qword [rdi], rax
call qword [rdi]
inc ebx
add rdi, 8
cmp ebx, esi
jb 0x140046456
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000c280
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400464bc
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, ecx
mov eax, 8
mov rcx, 0xffffffffffffffff
lea edx, [rdi + 1]
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.14000c318
mov ecx, 0x20
mov rsi, rax
call fcn.14000c318
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov rcx, rbx
call fcn.14000c2e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140046571
lea rax, [rsp + 0x30]
mov rcx, rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x186a0
call fcn.14000c318
mov rcx, rax
mov edx, 0x186a
movdqu xmm0, xmmword [rcx]
paddb xmm0, xmmword [0x140065e50]
movdqu xmmword [rcx], xmm0
lea rcx, [rcx + 0x10]
sub rdx, 1
jne 0x140046583
mov rcx, rax
call fcn.14000c2e4
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test edi, edi
je 0x140046608
mov rbx, rsi
call fcn.14001b634
mov r8d, eax
mov eax, 0x55555556
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
sub r8d, ecx
je 0x1400465f4
sub r8d, 1
je 0x1400465eb
cmp r8d, 1
jne 0x1400465fe
lea rax, [0x140046630]
jmp 0x1400465fb
lea rax, [0x140046668]
jmp 0x1400465fb
lea rax, [0x1400466ac]
mov qword [rbx], rax
add rbx, 8
sub rdi, 1
jne 0x1400465b7
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000c280
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140047af0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x48], rcx
mov qword [r11 - 0x40], rdx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + 0x10]
jmp 0x140047b58
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140047b48
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x60]
call fcn.14001b6b8
test eax, eax
je 0x140047b61
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
jne 0x140047b3b
jmp 0x140047b6a
mov r8, qword [rsi + 0x30]
test r8, r8
jne 0x140047bd7
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140047b77
mov rcx, qword [rdi]
call fcn.14004aaf8
mov r8, rax
test rax, rax
jne 0x140047bd7
mov rcx, rdi
call fcn.1400016f0
nop
mov rdx, qword [rbx + 0x18]
mov esi, reloc.OLEAUT32.dll_SafeArrayDestroy
cmp rdx, rsi
jbe 0x140047bcb
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140047bc6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047d1c
mov rcx, r8
call fcn.14000c2e4
and qword [rbx + 0x10], 0
xor eax, eax
jmp 0x140047ca5
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
add rcx, r8
mov ebp, dword [rcx + 0x20]
add rbp, r8
mov r14d, dword [rcx + 0x24]
add r14, r8
mov r15d, dword [rcx + 0x1c]
add r15, r8
xor edx, edx
mov r12d, dword [rcx + 0x18]
lea esi, [rdx + 0xf]
test r12d, r12d
je 0x140047c44
mov eax, dword [rbp + rdx*4]
add rax, r8
mov rcx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140047c1b
mov rcx, qword [rbx]
sub rcx, rax
movzx r9d, byte [rax]
movzx r10d, byte [rax + rcx]
sub r9d, r10d
jne 0x140047c34
inc rax
test r10d, r10d
jne 0x140047c1e
test r9d, r9d
je 0x140047cd2
inc edx
cmp edx, r12d
jb 0x140047c08
mov rdx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140047c50
mov rdx, qword [rbx]
mov rcx, r8
call fcn.14004aa34
mov rbp, rax
mov rcx, rdi
call fcn.1400016f0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140047c9d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140047c98
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140047d1c
mov rcx, r8
call fcn.14000c2e4
mov rax, rbp
and qword [rbx + 0x10], 0
mov byte [rbx], 0
mov qword [rbx + 0x18], rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000c280
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [r14 + rdx*2]
mov ebp, dword [r15 + rax*4]
add rbp, r8
mov rcx, rdi
call fcn.1400016f0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140047c9d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140047c98
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140047d1c
mov rcx, rax
jmp 0x140047c98
call fcn.140013644
int3
Function at 0x14004bd50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004bd9a
cmp dword [rsp + 0x30], ebx
jne 0x14004bd9a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x14004bd9c
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c280
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14004bdbc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c280
add rsp, 0x48
ret