joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e130
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x8b0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x8e0], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x70], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001e17c
mov rdx, qword [rcx]
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], bp
jne 0x14001e195
mov rcx, rdi
call fcn.1400149d0
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14001e1bc
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x14001e2f1
mov word [rsp + 0x80], bp
lea rdx, [rsp + 0x80]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
lea rax, [rsp + 0x80]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001e201
mov r8, rbx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400149d0
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14001c9a0
nop
cmp rdi, rax
je 0x14001e25a
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001e24d
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001e29c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e297
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e388
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001e2f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e2ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e388
call fcn.1400cd424
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001e390
nop
cmp rdi, rax
je 0x14001e31e
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001e311
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001e35c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e357
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e382
call fcn.1400cd424
mov rax, rdi
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0x8e0]
add rsp, 0x8b0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3
Function at 0x14001eac0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14001ead3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001eb08
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001eaea
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 8
jb 0x14001eaff
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x14001ee00
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14001d3a0
test eax, eax
jne 0x14001ee26
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001c720
mov rcx, rax
call fcn.14001c930
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001ee79
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ee74
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001eeaf
call fcn.1400cd424
cmp qword [rbx + 0x18], 8
jb 0x14001ee83
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001ee8d
mov rdi, qword [rdi]
mov r8d, 2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x60]
test eax, eax
setne al
add rsp, 0x40
pop rdi
ret
call fcn.1400d20f4
int3

Function at 0x14001eec0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14001d3a0
test eax, eax
jne 0x14001eee6
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001c720
mov rcx, rax
call fcn.14001c930
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001ef39
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ef34
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ef6c
call fcn.1400cd424
cmp qword [rbx + 0x18], 8
jb 0x14001ef43
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001ef4d
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rbx, qword [rsp + 0x60]
test eax, eax
setne al
add rsp, 0x40
pop rdi
ret
call fcn.1400d20f4
int3
Function at 0x14001f3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rdx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 8
jb 0x14001f3f9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f40c
test al, 0x10
je 0x14001f40c
mov al, 1
jmp 0x14001f40e
xor al, al
test rsi, rsi
jns 0x14001f425
test al, al
jne 0x14001f422
mov rcx, rbx
call fcn.14001eb40
mov rsi, rax
test rsi, rsi
jle 0x14001f4f5
mov qword [rsp + 0x48], rbp
cmp qword [rbx + 0x18], 8
jb 0x14001f43a
mov rbx, qword [rbx]
lea r8, [0x1401250b8]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400d58d4
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001f4f5
xor r8d, r8d
xor edx, edx
call fcn.1400d2b8c
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140009b30
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 1
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call fcn.1400d5be0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400204e0
mov rcx, qword [rsp + 0x48]
call fcn.1400d28ac
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001f4f5
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f4f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f515
call fcn.1400cd424
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d20f4
int3
Function at 0x14001f6a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x28], ebx
jb 0x14001f6d1
mov rcx, qword [rcx]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x68], rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test eax, eax
je 0x14001f7ab
xor eax, eax
lea rcx, [rsp + 0x30]
mov edx, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
call fcn.140009b30
cmp qword [rsi + 0x18], 8
jb 0x14001f712
mov rsi, qword [rsi]
mov rdi, qword [rsp + 0x30]
mov r8d, ebp
mov edx, dword [rsp + 0x28]
mov r9, rdi
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14001f775
lea r9, [rsp + 0x2c]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2c], ebx
lea rdx, str.._
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001f775
cmp dword [rsp + 0x2c], ebx
je 0x14001f775
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0xfeef04bd
jne 0x14001f775
mov ebx, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rbx, 0x20
or rbx, rax
test rdi, rdi
je 0x14001f7ab
mov rdx, qword [rsp + 0x40]
mov rax, rdi
sub rdx, rdi
cmp rdx, 0x1000
jb 0x14001f7a3
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f7d0
mov rcx, rdi
call fcn.1400cd424
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
call fcn.1400d20f4
int3
Function at 0x140028280
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x1400282b2
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x1400282b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov rax, rbx
mov qword [rbx + 0x28], rcx
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rcx
jb 0x1400282c9
mov rax, qword [rbx]
mov word [rax], cx
cmp rbx, rdi
je 0x1400282ea
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400282de
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.1400149d0
cmp qword [rdi + 0x18], 8
mov r8, rdi
jb 0x1400282f7
mov r8, qword [rdi]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140028381
cmp eax, 5
je 0x140028331
cmp eax, 0xb7
je 0x14002834f
cmp qword [rbx + 0x28], 0
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x18], 8
jb 0x14002833b
mov rdi, qword [rdi]
mov r8, rdi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rbx + 0x28], rax
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14002838c
cmp byte [rbx + 0x20], 0
jne 0x14002838c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
cmp qword [rbx + 0x28], 0
mov byte [rbx + 0x20], al
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x28], 0
je 0x140028391
mov byte [rbx + 0x20], 1
cmp qword [rbx + 0x28], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x140028960
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
mov rdi, qword [rcx + 8]
cmp qword [rdx], 0
je 0x140028ab7
test rdi, rdi
jne 0x140028ab7
mov qword [rcx + 8], 0xffffffffffffffff
lea ecx, [rdi + 0x30]
call fcn.1400cd42c
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov qword [rax + 8], rbp
mov dword [rax + 0x10], 1
mov qword [rax], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x28], rbp
mov qword [rsi + 0x10], rax
mov qword [rax + 0x20], rsi
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call fcn.140018410
mov rax, qword [rsi + 0x10]
mov qword [rax + 0x18], rbp
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rbp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x48], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, qword [rsi + 0x10]
lea r8, [0x140028af0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x18], rax
mov edi, dword [rsp + 0x48]
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140028aaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], rbp
mov rcx, rbx
call fcn.1400184e0
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a5e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rsi, qword [rdx + 0x10]
mov rbx, rcx
jb 0x14004a612
mov rdi, qword [rdx]
lea rdx, [rsp + 0x20]
call fcn.14001c720
mov rcx, rax
call fcn.14001c930
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004a666
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a661
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a6f9
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
xor eax, eax
cmp qword [rbx + 0x18], 8
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], ax
mov qword [rsp + 0x40], rax
jb 0x14004a68a
mov rbx, qword [rbx]
lea r8, [0x1401250c0]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400d58d4
mov rcx, qword [rsp + 0x40]
xor bl, bl
test rcx, rcx
je 0x14004a6d9
xor r8d, r8d
xor edx, edx
call fcn.1400d2b8c
mov r9, qword [rsp + 0x40]
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1400dc370
mov rcx, qword [rsp + 0x40]
test rax, rax
setne bl
call fcn.1400d28ac
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.1400d20f4
int3
Function at 0x140056fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
jne 0x140057021
xor al, al
jmp 0x140057114
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14001e130
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140057076
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057071
test al, 0x10
jne 0x140057076
xor dil, dil
jmp 0x1400570cf
lea rsi, [rdi + 0x60]
mov qword [rsp + 0x40], rsi
mov edx, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov qword [rsp + 0x48], rbx
test eax, eax
setne byte [rsp + 0x50]
lea rcx, [rdi + 0x50]
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x58]
call fcn.140059420
mov dil, 1
test rbx, rbx
je 0x1400570cf
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140057110
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005710b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140057139
call fcn.1400cd424
movzx eax, dil
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400cd400
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400d20f4
int3
Function at 0x140068ab0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rsi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140068aef
cmp eax, 0x80010106
je 0x140068af5
jmp 0x140068c07
mov dword [rsi], 1
lea rdi, [rsi + 8]
mov qword [rsp + 0x20], rdi
lea r9, [0x1401185b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401185a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
xor r12d, r12d
test eax, eax
js 0x140068bfe
mov r15, qword [rdi]
lea ecx, [r12 + 0x18]
call fcn.1400cd42c
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140068b65
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r12
mov dword [rbx + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400ce800
mov qword [rbx], rax
jmp 0x140068b68
mov rbx, r12
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x140068c75
lea r14, [rsi + 0x10]
mov rax, qword [r15]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call qword [rax + Ordinal_26]
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x140068be9
mov rcx, qword [rbx]
test rcx, rcx
je 0x140068bca
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140068bdc
call fcn.1400cd424
mov qword [rbx + 8], r12
mov edx, Ordinal_27
mov rcx, rbx
call fcn.1400cd424
test ebp, ebp
jns 0x140068c22
mov rcx, qword [rdi]
test rcx, rcx
je 0x140068bfe
mov qword [rdi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsi], r12d
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140068c71
mov rcx, qword [rdi]
test rcx, rcx
je 0x140068c64
mov qword [rdi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [r14]
test rcx, rcx
je 0x140068bfe
mov qword [r14], r12
jmp 0x140068bf8
mov al, 1
jmp 0x140068c09
mov ecx, 0x8007000e
call fcn.1400ce7f0
int3
Function at 0x14008b580
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008b5e1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14008b5db
shr ax, 8
cmp al, 2
jne 0x14008b5db
call fcn.1400909d0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400cd400
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400cd400
add rsp, 0x1d8
ret

Function at 0x140092aa0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x1400aa320
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400aa37c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400aa38c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14009b0d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x500], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x14009b1ff
test rax, rax
je 0x14009b1ff
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x14009b1ff
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x14009b15b
sub ecx, 1
je 0x14009b14b
sub ecx, 1
je 0x14009b162
cmp ecx, 1
je 0x14009b152
jmp 0x14009b1ff
lea r9, str.Header
lea rax, [0x140108e10]
jmp 0x14009b169
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.14009da90
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009b192
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x14009b1c9
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x14009b1ff
jmp 0x14009b20f
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x140108d38]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400dc370
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400dc370
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.14009bba0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400cd400
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14009b510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14009b54b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14009b8b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x218]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x210]
call fcn.14009baa0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x14009b950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14009b924
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x14009b95a
mov edx, ebx
mov rcx, r14
call fcn.1400a9510
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14009b230
mov rax, qword [r14]
mov dword [rax + 0x499c], ebx
mov eax, gethostname
jmp 0x14009b952
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret