joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400854e8
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r15, rdx
mov rbx, rcx
lea rdx, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov dword [rbp + 0x40], 1
mov qword [rbp + 0x48], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rax, qword [rbp + 0x48]
mov ecx, 0x400
test rax, rax
cmove rax, rcx
cmp dword [rbp + 0x40], 0
mov qword [rbp + 0x48], rax
je 0x1400855e9
test rax, rax
jne 0x14008554a
xor edi, edi
jmp 0x140085559
mov rcx, rax
call fcn.14002641c
mov rdi, rax
mov rax, qword [rbp + 0x48]
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400855f7
mov ecx, dword [rbp + 0x40]
test ecx, ecx
je 0x1400855e1
mov esi, ecx
test rdi, rdi
je 0x1400855ce
test ecx, ecx
je 0x1400855ce
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
lea rdx, [rbp - 0x10]
lea rcx, [rbx + 0x70]
call fcn.140085a14
xor ecx, ecx
call fcn.140024bd4
mov rax, qword [rbx + 0x78]
mov rcx, qword [rbx + 0x80]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx], rdi
mov rcx, qword [rbx + 0x80]
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx + 8], rsi
mov ecx, dword [rbp + 0x40]
mov eax, ecx
add qword [rbx + 0x10], rax
test ecx, ecx
je 0x1400855e9
mov rax, qword [rbp + 0x48]
jmp 0x140085541
mov rcx, rdi
call fcn.140024bd4
cmp qword [rbx + 0x10], 0
jne 0x14008560f
mov edx, SafeArrayDestroyDescriptor
jmp 0x140085604
mov rcx, rdi
call fcn.140024bd4
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x140085617
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.140085630
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400857b0
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rbx, rdx
xor edx, edx
mov rsi, r8
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x31]
call fcn.140026d50
mov r14d, 1
mov rcx, rbx
mov dword [rbp - 9], r14d
mov dword [rbp - 0x19], r14d
mov dword [rbp - 0x29], r14d
mov dword [rbp + 0x27], r14d
mov dword [rbp + 0x17], r14d
mov dword [rbp + 7], r14d
mov dword [rbp - 0x39], 0xf0
call fcn.140026b28
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140085914
mov r9d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x31]
xor r8d, r8d
mov rcx, rsi
call fcn.14001e718
mov r9d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x21]
lea rcx, [rsi + 0x20]
xor r8d, r8d
call fcn.14001e718
mov r9d, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
lea rcx, [rsi + 0x40]
xor r8d, r8d
call fcn.14001e718
mov r9d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rsi + 0x60]
xor r8d, r8d
call fcn.14001e718
mov r9d, dword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
lea rdi, [rsi + 0x80]
xor r8d, r8d
mov rcx, rdi
call fcn.14001e718
mov r9d, dword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
lea rbx, [rsi + 0xa0]
xor r8d, r8d
mov rcx, rbx
call fcn.14001e718
lea rdx, [rbp + 0x37]
mov r8, rbx
mov rcx, rdi
call fcn.140064df0
lea rcx, [rsi + 0xc0]
mov rdx, rax
call fcn.14001f350
lea rcx, [rbp + 0x37]
call fcn.14001c29c
mov ecx, dword [rbp - 0x25]
movzx eax, word [rbp - 0x15]
mov dword [rsi + 0xe4], ecx
mov word [rsi + 0xe8], ax
dec ecx
je 0x14008590a
dec ecx
je 0x1400858fe
mov dword [rsi + 0xe0], 3
jmp 0x140085911
mov dword [rsi + 0xe0], 2
jmp 0x140085911
mov dword [rsi + 0xe0], r14d
mov al, r14b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140085934
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x14008599a
test dl, dl
je 0x14008599a
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x140085968
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x190], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
lea rcx, [0x1400859e8]
mov r8, rdi
xor edx, edx
mov qword [rdi + 0x190], rax
call fcn.14002b5a8
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x14008599f
call fcn.140084618
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b824
Capabilities:
Hash data with crc32

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
mov esi, dword [rsp + 0x30]
mov ebp, r9d
mov eax, r9d
shl eax, 2
mov edi, r8d
or r10d, 0xffffffff
imul ebp, dword [rsp + 0x30]
movsxd rbx, eax
shl ebp, 2
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl esi, 2
lea r14, [0x1400cb3e0]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x14008b8c0
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14008b86e
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret
Function at 0x14008b8ec
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov eax, dword [r8 + 8]
mov rbx, r8
mov r8d, dword [r8]
mov r10d, dword [rbx + 0xc]
mov r11d, dword [rbx + 4]
cmp eax, r8d
setl dil
cmp r10d, r11d
setl r14b
test dil, dil
je 0x14008b938
mov dword [rbx], eax
mov dword [rbx + 8], r8d
test r14b, r14b
je 0x14008b945
mov dword [rbx + 4], r10d
mov dword [rbx + 0xc], r11d
mov r9, rdx
mov edx, dword [rcx + 0x1d0]
lea r8, [rbp + 0x67]
call fcn.140086ee4
mov rax, qword [rbp + 0x67]
mov ecx, dword [rbp + 0x6b]
add dword [rbx + 8], eax
add dword [rbx + 0xc], ecx
add dword [rbx], eax
add dword [rbx + 4], ecx
mov r15d, dword [rbx + 8]
mov esi, dword [rbx + 0xc]
sub r15d, dword [rbx]
sub esi, dword [rbx + 4]
mov eax, 1
xor ecx, ecx
add r15d, eax
add esi, eax
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, esi
mov edx, r15d
mov rcx, rax
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r13
mov qword [rbp + 0x77], rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, qword [rbp + 0x77]
mov rcx, rax
mov r12, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
mov qword [rbp - 0x19], rax
test r14b, r14b
je 0x14008b9c4
neg ecx
mov eax, r15d
test dil, dil
je 0x14008b9ce
neg eax
test r14b, r14b
je 0x14008b9d9
mov r8d, dword [rbx + 0xc]
jmp 0x14008b9dd
mov r8d, dword [rbx + 4]
test dil, dil
je 0x14008b9e7
mov edx, dword [rbx + 8]
jmp 0x14008b9e9
mov edx, dword [rbx]
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov r9d, r15d
xor edx, edx
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
call qword [sym.imp.GDI32.dll_StretchBlt]
mov r14, qword [rbp + 0x77]
mov eax, esi
mov dword [rbp - 0xd], r15d
neg eax
xor r15d, r15d
xor r9d, r9d
mov dword [rbp - 9], eax
lea rax, [rbp - 0x11]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r14
mov rcx, r12
mov dword [rbp - 0x11], SafeArrayCreateEx
mov qword [rbp - 5], 0x200001
mov qword [rsp + 0x20], r15
call qword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [rbp + 3]
mov rcx, qword [rbp + 0x7f]
mov dword [rcx], eax
mov ecx, eax
call fcn.14002641c
mov dword [rsp + 0x30], r15d
mov r9d, esi
mov rdi, rax
lea rax, [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.GDI32.dll_GetDIBits]
mov rdx, qword [rbp - 0x19]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x14008bacf
mov rax, rdi
jmp 0x14008bad9
mov rcx, rdi
call fcn.140024bd4
xor eax, eax
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008c6b8
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
lea rcx, [rax - 0x38]
mov r15d, 2
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov word [rdx], r15w
call fcn.14001c51c
lea r8, [rsp + 0x20]
mov rdx, r14
call fcn.14008ca34
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_inet_addr]
lea rcx, [rsp + 0x20]
mov ebp, eax
call fcn.14001c29c
cmp ebp, 0xffffffff
jne 0x14008c747
lea rdx, str.255.255.255.255
mov rcx, r14
call fcn.140067c30
test al, al
je 0x14008c747
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rbx, rcx
lea rcx, [rbx + 8]
call fcn.140004ed0
mov dword [rax + 0x1c], 1
jmp 0x14008c77c
lea eax, [rsi - 1]
mov dword [rdi + 4], ebp
cmp eax, 0xfffe
ja 0x14008c765
movzx ecx, si
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rdi + 2], ax
mov al, 1
jmp 0x14008c78b
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rbx, rcx
lea rcx, [rbx + 8]
call fcn.140004ed0
mov dword [rax + 0x1c], r15d
lea rcx, [rbx + 8]
call fcn.140004ed0
mov byte [rax + 0x20], 0
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14008c7a4
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
and dword [r8], 0
mov qword [r8 + 8], rdx
inc dword [r8]
mov r14, rdx
mov eax, 0x10624dd3
mov rbx, rcx
xor ecx, ecx
mov rdi, r8
imul r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x50], edx
imul eax, edx, 0x3e8
sub r9d, eax
imul eax, r9d, 0x3e8
xor r9d, r9d
mov dword [rsp + 0x54], eax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
cmp byte [rsp + 0x60], cl
je 0x14008c80e
xor edx, edx
jmp 0x14008c814
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test eax, eax
jne 0x14008c842
cmp byte [rsp + 0x60], al
je 0x14008c89a
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rbx, rcx
lea rcx, [rbx + 8]
call fcn.140004ed0
mov dword [rax + 0x1c], 0x274c
jmp 0x14008c88d
jle 0x14008c86f
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x14008c89a
lea esi, [rax - 2]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rbx, rcx
lea rcx, [rbx + 8]
call fcn.140004ed0
mov dword [rax + 0x1c], esi
jmp 0x14008c88d
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov edi, eax
add rbx, rdx
lea rcx, [rbx + 8]
call fcn.140004ed0
mov dword [rax + 0x1c], edi
lea rcx, [rbx + 8]
call fcn.140004ed0
mov byte [rax + 0x20], 0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x1400918cc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x1f78]
mov eax, 0x2060
call fcn.140038b30
sub rsp, rax
lea rcx, [rsp + 0x20]
mov r14, rdx
call fcn.14001e640
lea rcx, [rsp + 0x40]
call fcn.14001e640
mov rcx, r14
call fcn.140006dd4
xor r15d, r15d
movzx ecx, word [rax]
mov rsi, rax
mov dil, r15b
test cx, cx
je 0x140091a55
mov ebx, r15d
lea r12d, [r15 + 0x25]
inc rbx
cmp cx, r12w
jne 0x140091a04
cmp word [rsi + rbx*2], r12w
jne 0x14009195f
lea rcx, [rsp + 0x20]
mov edx, r12d
mov dil, 1
call fcn.14001eae8
inc rbx
jmp 0x140091a11
lea rdx, [0x1400ab2d0]
lea rcx, [rsp + 0x40]
call fcn.14001edf8
jmp 0x140091987
test ax, ax
je 0x140091991
lea rcx, [rsp + 0x40]
movzx edx, ax
call fcn.14001eae8
inc rbx
movzx eax, word [rsi + rbx*2]
cmp ax, r12w
jne 0x140091972
cmp word [rsi + rbx*2], r15w
je 0x140091a20
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0xfff
inc rbx
mov word [rsp + 0x60], r15w
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
test eax, eax
je 0x1400919d3
lea rdx, [rsp + 0x60]
call fcn.14001ef20
mov dil, 1
jmp 0x140091a11
lea rdx, [0x1400cf3a4]
mov dil, 1
call fcn.14001ef20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14001ec60
lea rdx, [0x1400cf3a4]
lea rcx, [rsp + 0x20]
call fcn.14001ef20
jmp 0x140091a11
movzx edx, cx
lea rcx, [rsp + 0x20]
call fcn.14001eae8
movzx ecx, word [rsi + rbx*2]
test cx, cx
jne 0x140091933
jmp 0x140091a43
lea rdx, [0x1400cf3a4]
lea rcx, [rsp + 0x20]
mov dil, 1
call fcn.14001ef20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14001ec60
test dil, dil
je 0x140091a55
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140006a84
lea rcx, [rsp + 0x40]
call fcn.14001c29c
lea rcx, [rsp + 0x20]
call fcn.14001c29c
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140097898
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
lea rax, [rsp + 0x58]
mov ebx, edx
lea r9, [rbp + 0x190]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov dword [rbp + 0x190], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1400979f6
mov edi, ebx
or edi, 0x20019
lea rax, [rbp + 0x198]
lea rdx, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140097a10
mov rcx, qword [rbp + 0x198]
mov edx, ebx
call fcn.140097898
mov rcx, qword [rbp + 0x198]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x140097a10
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140097684
test al, al
je 0x14009798d
lea rcx, [rsp + 0x40]
call fcn.14009625c
mov ebx, dword [rbp + 0x188]
lea rdx, [rsp + 0x60]
mov r8d, ebx
xor r9d, r9d
mov rcx, rsi
call rax
jmp 0x1400979a1
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [rbp + 0x188]
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x140097a0b
call fcn.140096244
lea rax, [rsp + 0x58]
lea r9, [rbp + 0x190]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x190], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140097904
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.140096244
xor al, al
jmp 0x1400979f8
Function at 0x1400a4fb8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rbx, rdx
xor edx, edx
lea rbp, [0x1400e51b0]
lea r8d, [rdx + 0x68]
mov rcx, rbp
call fcn.140026d50
xor edx, edx
lea rdi, [0x1400e5218]
lea r8d, [rdx + 0x18]
mov rcx, rdi
call fcn.140026d50
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rbp
xor edi, edi
mov eax, 1
xor r9d, r9d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_RegisterActiveObject
mov dword [0x1400e51b0], 0x68
mov dword [0x1400e51ec], eax
mov word [0x1400e51f0], ax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x1400a5054
mov rcx, qword [0x1400e5218]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400a550c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
mov r14, r9
mov rax, r8
mov rsi, rdx
cmp word [r8], r12w
je 0x1400a5693
mov qword [r11 - 0x68], r12
mov dword [r11 - 0x70], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a5574
xor eax, eax
jmp 0x1400a56ce
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, 2
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov r15, rax
test rax, rax
jne 0x1400a55a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400a556d
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x1400a556d
lea r8, [rbp - 0x28]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea r9, [0x1400ae980]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x30], r12
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400a556d
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rbp + 0x40]
lea r8, [rbp - 0x20]
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.GDI32.dll_GetObjectW]
mov rcx, qword [rbp + 0x50]
cmp dword [r14], r12d
jne 0x1400a5665
cmp dword [rcx], r12d
jne 0x1400a5665
mov eax, dword [rbp - 0x1c]
mov dword [r14], eax
mov eax, dword [rbp - 0x18]
mov dword [rcx], eax
mov r9d, dword [rcx]
mov r8d, dword [r14]
mov rcx, qword [rbp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.USER32.dll_CopyImage]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x40], rax
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r9, qword [rbp + 0x40]
jmp 0x1400a569a
mov r9, r12
mov qword [rbp + 0x40], r12
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x1400a56b0
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r9, qword [rbp + 0x40]
mov rbx, qword [rsi]
xor r8d, r8d
mov edx, 0x172
mov rcx, rbx
mov qword [rsi + 0xc0], r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400a613c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
lea rcx, [0x1400e2de0]
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
call fcn.140004560
movsxd rcx, eax
mov rax, qword [0x1400e2e80]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp rsi, rdi
jne 0x1400a61c0
cmp qword [rbx + 0x2d0], 0
je 0x1400a622e
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rdi
mov r8d, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x54]
xor edx, edx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x1400a6250
lea rcx, [0x1400e2de0]
mov rdx, rsi
call fcn.14000450c
cmp eax, 0xffffffff
je 0x1400a622e
movsxd rbp, eax
mov rax, qword [0x1400e2ea8]
mov rcx, qword [rax + rbp*8]
mov rdx, qword [rcx]
mov cl, byte [rdx + 0xfc]
lea eax, [rcx - 0xe]
cmp al, 2
jbe 0x1400a622e
cmp cl, 0x13
je 0x1400a622e
cmp qword [rdx + 0x18], 0
je 0x1400a622e
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [0x1400e2ea8]
and qword [rsp + 0x28], 0
mov rcx, qword [rax + rbp*8]
mov rax, qword [rbx]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x18]
jmp 0x1400a61a9
movzx r9d, word [rsp + 0x70]
movzx eax, r14w
mov r8, rsi
shl r9d, 0x10
mov edx, 0x7b
mov rcx, rdi
or r9, rax
call qword [sym.imp.USER32.dll_DefDlgProcW]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140003af0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b24
cmp word [rcx], 0x5a4d
jne 0x140003b24
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b24
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b24
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a30
test eax, eax
jne 0x140003b40
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003aa0
test rax, rax
je 0x140003b35
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042e9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004190
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004644
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140537678]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140537674]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004692
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000468a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004779
inc ebx
add rax, 0x28
jmp 0x14000466a
mov rcx, r12
call fcn.140004e71
mov rbp, rax
test rax, rax
jne 0x1400046b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045e0
movsxd rbx, ebx
mov rax, qword [0x140537678]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f1f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140537678]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004713
mov rax, qword [0x140537678]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004773
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004773
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 [0x140537678]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004773
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045e0
inc dword [0x140537674]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret