joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c0e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x14003c168
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, ecx
movaps xmmword [rsp + 0x20], xmm7
test ecx, ecx
je 0x14003c153
cmp ebx, 0xf
jae 0x14003c151
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003c151
pxor xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x58]
pxor xmm6, xmm6
sub r11, qword [rsp + 0x60]
cvtsi2sd xmm6, r11
call fcn.140010a30
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14003c11a
jmp 0x14003c159
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x14003c170
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14003c19f
cmp byte [rcx + 9], dl
je 0x14003c299
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x14003c250
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r12 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400c6d38], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x14003c229
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400c6d38]
mov dword [0x1400c6d34], eax
cmp ecx, eax
je 0x14003c217
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400c6d34]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x14003c299
test r12d, r12d
jne 0x14003c299
test ebp, ebp
jne 0x14003c299
mov eax, dword [0x1400c6d38]
cmp ebx, eax
jne 0x14003c299
cmp eax, dword [0x1400c6d34]
jne 0x14003c299
and qword [rsi + 0x28], 0
jmp 0x14003c299
test rdi, rdi
je 0x14003c284
mov edx, dword [0x1400c6d34]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c6d38]
mov edx, dword [0x1400c6d34]
cmp r11d, edx
je 0x14003c28b
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c6d38]
xor r8d, r8d
mov edx, r11d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14003c330
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
mov ecx, dword [rcx + 4]
lea edx, [rax + 2]
cmovne eax, edx
cmp ecx, eax
jge 0x14003c345
mov ecx, eax
jmp fcn.14003c0e0
Function at 0x14003c350
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
mov ecx, dword [rcx]
lea edx, [rax + 2]
cmovne eax, edx
cmp ecx, eax
jge 0x14003c364
mov ecx, eax
jmp fcn.14003c0e0

Function at 0x14003c370
Capabilities:
Log keystrokes
Log keystrokes via polling

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
sub rsp, 0x20
movzx esi, dl
mov r12, rcx
mov bl, r8b
mov ecx, esi
mov ebp, esi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
and dil, 1
cmp bl, dil
je 0x14003c3f1
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
mov dl, sil
mov r8d, eax
mov rcx, r12
call fcn.14003c2c0
mov rcx, r12
call fcn.14003c330
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, 2
mov dl, sil
mov r8d, eax
mov rcx, r12
call fcn.14003c2c0
mov rcx, r12
call fcn.14003c350
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov al, dil
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14003e460
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dl, 1
jne 0x14003e4b6
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x14003e4d3
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14003e4c9
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret

Function at 0x14003ed10
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rdi, r8
mov qword [rax - 0x18], r8
mov r8, qword [rdx]
mov rsi, rdx
lea edx, [r9 + 3]
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
jne 0x14003ed7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003ed81
mov ecx, dword [rdi]
call fcn.14003ebf0
mov qword [rsi], rax
test rax, rax
je 0x14003ed81
mov r9d, dword [rdi]
lea edx, [rbx + 3]
mov r8, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003ed81
mov ebx, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14003ee20
Capabilities:
Create thread

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
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call fcn.14003ec20
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rax
mov r9, r12
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [r12 + 0x10]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r11, qword [rbp]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14003edd0]
mov r9, r12
xor edx, edx
xor ecx, ecx
mov qword [r12 + 8], r11
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x14003ef00
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x14003ef7d
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rbp + 0x10]
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

Function at 0x14003efa0
Capabilities:
Impersonate user

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
movsx r9d, r9b
xor ebx, ebx
and r9d, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
or r9d, 4
shr r9d, 1
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14003f0a0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x70
xor r10d, r10d
mov rbp, r8
mov r12, rdx
lea ebx, [r10 + 1]
mov r13, rcx
mov qword [rax - 0x20], r10
test bl, r9b
je 0x14003f0d5
mov edi, ebx
jmp 0x14003f0e3
mov eax, 2
mov edi, r10d
test al, r9b
cmovne edi, eax
xor sil, sil
test r9b, 4
je 0x14003f133
and qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14003f199
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xb8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003f1a9
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x70]
mov al, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14004a860
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov ebx, ecx
test rdx, rdx
je 0x14004a88a
lea rcx, [0x1400c4ea0]
call fcn.140038270
mov dword [0x1400c4f58], eax
jmp 0x14004a890
mov eax, dword [0x1400c4f58]
cmp eax, 0xffffffff
je 0x14004a9f1
movsxd rcx, eax
mov rax, qword [0x1400c4f40]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x6a], 0
mov rbp, qword [rdi]
je 0x14004a8e6
cmp dword [rdi + 0x2b8], 0
mov byte [rdi + 0x6a], 0
jl 0x14004a8e6
cmp byte [rdi + 0x2c4], 0
je 0x14004a8e6
mov r8d, dword [rdi + 0x2c0]
lea rcx, [0x1400c4ea0]
mov rdx, rdi
call fcn.140049e90
mov byte [rdi + 0x2c4], 0
cmp ebx, 8
jg 0x14004a979
je 0x14004a94c
test ebx, ebx
je 0x14004a933
cmp ebx, 1
je 0x14004a94c
mov edx, 6
cmp ebx, 2
je 0x14004a91a
cmp ebx, 3
je 0x14004a9d3
jle 0x14004a942
cmp ebx, 5
jle 0x14004a94c
cmp ebx, edx
je 0x14004a91e
jmp 0x14004a942
mov byte [rdi + 0x68], 1
cmp byte [rdi + 0x68], 0
je 0x14004a9f1
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004a942
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x68], 0
mov eax, 1
jmp 0x14004a9f3
cmp byte [rdi + 0x68], 0
jne 0x14004a9f1
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004a973
cmp ebx, 4
je 0x14004a973
mov rcx, rbp
call fcn.14003bef0
mov byte [rdi + 0x68], 1
jmp 0x14004a942
mov edx, ebx
sub edx, 9
je 0x14004a9d3
sub edx, 0x37
je 0x14004a9cc
dec edx
je 0x14004a9bc
dec edx
je 0x14004a9ad
dec edx
jne 0x14004a942
xor ecx, ecx
mov byte [rdi + 0x69], dl
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x14004a942
mov rcx, rbp
mov byte [rdi + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004a942
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004a942
mov edx, 1
jmp 0x14004a9be
cmp byte [rdi + 0x68], 0
je 0x14004a9f1
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14003bef0
jmp 0x14004a942
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b4a0
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 0x14004b5fe
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 0x14004b618
mov rcx, qword [rbp + 0x198]
mov edx, ebx
call fcn.14004b4a0
mov rcx, qword [rbp + 0x198]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004b618
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140038340
test al, al
je 0x14004b595
lea rcx, [rsp + 0x40]
call fcn.14004b470
mov ebx, dword [rbp + 0x188]
lea rdx, [rsp + 0x60]
mov r8d, ebx
xor r9d, r9d
mov rcx, rsi
call rax
jmp 0x14004b5a9
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 0x14004b613
call fcn.140038750
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 0x14004b50c
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.140038750
xor al, al
jmp 0x14004b600
Function at 0x14004bc00
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004bca9
call fcn.140038e60
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bcb7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004bca1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038de0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004bca9
mov rcx, qword [rsp + 0x48]
jmp 0x14004bc55
mov rcx, rdi
call fcn.14001488c
cmp qword [rbx + 0x10], 0
jne 0x14004bccf
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bcc4
mov rcx, rdi
call fcn.14001488c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004bcd7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004bbc0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.1400176a8]
lea rdx, [0x14009c8a4]
mov qword [rsp + 0x28], rax
call fcn.140017620
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004bd36
lea edx, [rax + 0x1f]
jmp 0x14004bdb0
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bdab
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004bd90
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016d14
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004bd41
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004bda1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bdb3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004bdbc
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004bbc0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038cf0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004bdfb
jmp 0x14004bc00
jmp 0x14004bcf0
Function at 0x14004bcf0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004bca9
call fcn.140038e60
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bcb7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004bca1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038de0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004bca9
mov rcx, qword [rsp + 0x48]
jmp 0x14004bc55
mov rcx, rdi
call fcn.14001488c
cmp qword [rbx + 0x10], 0
jne 0x14004bccf
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bcc4
mov rcx, rdi
call fcn.14001488c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004bcd7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004bbc0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.1400176a8]
lea rdx, [0x14009c8a4]
mov qword [rsp + 0x28], rax
call fcn.140017620
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004bd36
lea edx, [rax + 0x1f]
jmp 0x14004bdb0
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bdab
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004bd90
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016d14
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004bd41
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004bda1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bdb3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004bdbc
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004bbc0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038cf0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004bdfb
jmp 0x14004bc00
jmp 0x14004bcf0
Function at 0x14004bdf0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x14004bca9
call fcn.140038e60
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bcb7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004bca1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038de0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004bca9
mov rcx, qword [rsp + 0x48]
jmp 0x14004bc55
mov rcx, rdi
call fcn.14001488c
cmp qword [rbx + 0x10], 0
jne 0x14004bccf
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bcc4
mov rcx, rdi
call fcn.14001488c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004bcd7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004bbc0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.1400176a8]
lea rdx, [0x14009c8a4]
mov qword [rsp + 0x28], rax
call fcn.140017620
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004bd36
lea edx, [rax + 0x1f]
jmp 0x14004bdb0
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14004bdab
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004bd90
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016d14
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004bd41
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004bda1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004bdb3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004bdbc
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004bbc0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038cf0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004bdfb
jmp 0x14004bc00
jmp 0x14004bcf0