joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d300
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006d3c9
cmp byte [rcx + 0x71], 0
je 0x14006d3c9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006d3bc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006d378
sub eax, 1
je 0x14006d37c
cmp eax, 2
jne 0x14006d3bc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14006d3aa
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006d3bc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1400723cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140072416
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140072416
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140072416
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140072416
cmp dword [rcx + 0x84], 0xe
jbe 0x140072416
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140072418
xor al, al
add rsp, 0x28
ret
Function at 0x14085f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14085f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14085f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085f06f
add dl, dl
jne 0x14085f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085f0f6
xor eax, eax
add dl, dl
jne 0x14085f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085f1ad
add dl, dl
jne 0x14085f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14085f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14085f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14085f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14085f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14085f07e
mov eax, 1
add dl, dl
jne 0x14085f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14085f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085f0fb
sub eax, ebx
mov ebx, 1
jne 0x14085f14c
mov ecx, 1
add dl, dl
jne 0x14085f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14085f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14085f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14085f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085f15d
cmp eax, 0x7d00
jae 0x14085f19b
cmp eax, 0x500
jb 0x14085f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085f07e
cmp eax, 0x7f
ja 0x14085f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14085f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14085f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400038d0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x30], rdx
xor r12d, r12d
mov qword [r11 - 0x58], r12
lea edx, [r12 + 6]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebp, eax
cmp eax, 0x80010106
je 0x14000392e
test eax, eax
js 0x1400039df
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140076370]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140076360]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x14000398f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + gethostname]
mov esi, eax
test eax, eax
js 0x14000398f
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + gethostname]
mov esi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000399f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400039af
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test esi, esi
js 0x1400039df
cmp qword [rbx + 0x20], 8
jb 0x1400039c0
mov r8, qword [rbx + 8]
jmp 0x1400039c4
lea r8, [rbx + 8]
cmp qword [rdi + 0x20], 8
jb 0x1400039d1
mov rdx, qword [rdi + 8]
jmp 0x1400039d5
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0x30]
call fcn.1400035e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400039ef
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebp, ebp
js 0x1400039fa
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rdi + 0x20], 8
jb 0x140003a0a
mov rcx, qword [rdi + 8]
call fcn.140044814
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [rdi + 8], r12w
cmp qword [rbx + 0x20], 8
jb 0x140003a2b
mov rcx, qword [rbx + 8]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r12
mov word [rbx + 8], r12w
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140044830
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140003a60
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x30], rdx
xor r12d, r12d
mov qword [r11 - 0x58], r12
lea edx, [r12 + 6]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebp, eax
cmp eax, 0x80010106
je 0x140003abe
test eax, eax
js 0x140003b6f
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140076370]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140076360]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x140003b1f
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + gethostname]
mov esi, eax
test eax, eax
js 0x140003b1f
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + gethostname]
mov esi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003b2f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140003b3f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test esi, esi
js 0x140003b6f
cmp qword [rbx + 0x20], 8
jb 0x140003b50
mov r8, qword [rbx + 8]
jmp 0x140003b54
lea r8, [rbx + 8]
cmp qword [rdi + 0x20], 8
jb 0x140003b61
mov rdx, qword [rdi + 8]
jmp 0x140003b65
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0x30]
call fcn.140003740
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140003b7f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebp, ebp
js 0x140003b8a
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
cmp qword [rdi + 0x20], 8
jb 0x140003b9a
mov rcx, qword [rdi + 8]
call fcn.140044814
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], r12
mov word [rdi + 8], r12w
cmp qword [rbx + 0x20], 8
jb 0x140003bbb
mov rcx, qword [rbx + 8]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r12
mov word [rbx + 8], r12w
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140044830
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140003bf0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
movzx esi, cl
xor ecx, ecx
lea edx, [rbx + 6]
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp eax, 0x80010106
je 0x140003c1e
test eax, eax
js 0x140003ce3
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x140076370]
lea rcx, [0x140076360]
lea r8d, [rdx + 1]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140003c7f
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov ebx, eax
test eax, eax
js 0x140003c7f
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003c8f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003c9f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test ebx, ebx
js 0x140003ce3
mov rbx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
test sil, sil
je 0x140003ccc
test eax, eax
js 0x140003ce3
cmp word [rsp + 0x58], 0
jne 0x140003ce3
or edx, 0xffffffff
jmp 0x140003cda
test eax, eax
js 0x140003ce3
cmp word [rsp + 0x58], 0
je 0x140003ce3
xor edx, edx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140003cf3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test edi, edi
js 0x140003cfd
call qword [sym.imp.ole32.dll_CoUninitialize]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004d80
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor ecx, ecx
lea r8, str.Microsoft_.NET_Framework_MGEN_v4.0.30318_X86
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ecx
lea rdx, str.dr_optimization_v4.0.30318_32
mov r9d, 0xa0000000
mov rcx, rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
add rsp, 0x70
pop rbx
ret

Function at 0x140004df0
Capabilities:
Delete service

Disassembly:
sub rsp, 0x28
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, str.dr_optimization_v4.0.30318_32
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004e28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
add rsp, 0x28
ret

Function at 0x14000baa0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000bb4a
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], ebx
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140044830
add rsp, 0x80
pop rbx
ret
Function at 0x14000bed0
Capabilities:
Enumerate process modules

Disassembly:
push rdi
push r12
push r13
mov eax, 0x10e0
call fcn.140061300
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1108], rbx
mov qword [rsp + 0x1110], rbp
mov qword [rsp + 0x1118], rsi
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x10d8], rax
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0xb0]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x14000bf67
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r13
mov word [rsi + 8], r13w
xor r8d, r8d
lea rdx, [0x140073800]
mov rcx, rsi
call fcn.14003b810
mov rax, rsi
jmp 0x14000c14d
mov edi, dword [rsp + 0x20]
shr edi, 2
mov qword [rsp + 0x10d0], 7
mov qword [rsp + 0x10c8], r13
mov word [rsp + 0x10b8], r13w
xor r8d, r8d
lea rdx, [0x140073800]
lea rcx, [rsp + 0x10b0]
call fcn.14003b810
nop
test edi, edi
je 0x14000c109
lea rbx, [rsp + 0xb0]
mov r12d, edi
mov ecx, dword [rbx]
test ecx, ecx
je 0x14000c0fb
call fcn.14000be50
mov rbp, rax
test rax, rax
je 0x14000c0fb
mov edx, dword [rbx]
lea rcx, [rsp + 0x80]
call fcn.140002a00
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003080
nop
lea r8, [0x1400740f8]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14003dc60
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x10b0]
call fcn.14003b540
nop
cmp qword [rsp + 0x48], 8
jb 0x14000c02e
mov rcx, qword [rsp + 0x30]
call fcn.140044814
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
cmp qword [rsp + 0x70], 8
jb 0x14000c054
mov rcx, qword [rsp + 0x58]
call fcn.140044814
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rsp + 0xa0], 0x10
jb 0x14000c080
mov rcx, qword [rsp + 0x88]
call fcn.140044814
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.14003b810
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x10b0]
call fcn.14003b540
nop
cmp qword [rsp + 0x48], 8
jb 0x14000c0e1
mov rcx, qword [rsp + 0x30]
call fcn.140044814
mov r8d, 2
lea rdx, [0x1400738d0]
lea rcx, [rsp + 0x10b0]
call fcn.14003b690
add rbx, 4
sub r12, 1
jne 0x14000bfb6
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r13
mov word [rsi + 8], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x10b0]
mov rcx, rsi
call fcn.140039eb0
nop
cmp qword [rsp + 0x10d0], 8
jb 0x14000c14a
mov rcx, qword [rsp + 0x10b8]
call fcn.140044814
mov rax, rsi
mov rcx, qword [rsp + 0x10d8]
xor rcx, rsp
call fcn.140044830
lea r11, [rsp + 0x10e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14000e540
Capabilities:
Get session user name

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14003b810
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140002ef0
nop
cmp qword [rsp + 0x48], 8
jb 0x14000e5ea
mov rcx, qword [rsp + 0x30]
call fcn.140044814
mov rax, rbx
jmp 0x14000e5ed
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140044830
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140021120
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx + 0x20], send
mov qword [rcx + 0x18], rbp
mov byte [rcx + 8], bpl
xor r8d, r8d
lea rdx, [0x14007380c]
call fcn.14003afb0
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [0x14007380c]
mov rcx, rdi
call fcn.14003afb0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ebx, ebp
nop word [rax + rax]
mov eax, esi
mov ecx, ebx
shr eax, cl
and eax, 1
je 0x1400213ab
mov qword [rsp + 0xa8], send
mov qword [rsp + 0xa0], rbp
mov byte [rsp + 0x90], 0
xor r8d, r8d
lea rdx, [0x14007380c]
lea rcx, [rsp + 0x88]
call fcn.14003afb0
nop
mov rdx, qword [rsp + 0xa8]
cmp rdx, 1
jae 0x140021223
mov r8, qword [rsp + 0xa0]
mov edx, 1
lea rcx, [rsp + 0x88]
call fcn.14003b320
mov rdx, qword [rsp + 0xa8]
lea ecx, [rbx + 0x41]
lea rax, [rsp + 0x90]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x90]
mov byte [rax], cl
mov qword [rsp + 0xa0], 1
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rax, qword [rsp + 0x90]
mov byte [rax + 1], 0
mov r8d, 1
lea rdx, [0x1400740a8]
lea rcx, [rsp + 0x88]
call fcn.140039180
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1400212cf
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x140021393
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.140038a70
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.14001f8d0
nop
lea rcx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rcx, qword [rsp + 0xb8]
xor r8d, r8d
lea rdx, [0x14007380c]
call fcn.1400592f0
movsxd rcx, eax
test eax, eax
jne 0x14002133a
mov eax, ebp
cmp qword [rsp + 0xc8], rax
setne al
mov ecx, eax
test ecx, ecx
je 0x14002137a
mov r8b, 0xd
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
call fcn.14003dbb0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.14003ae70
nop
cmp qword [rsp + 0x58], 0x10
jb 0x14002137a
mov rcx, qword [rsp + 0x40]
call fcn.140044814
nop
cmp qword [rsp + 0xd0], 0x10
jb 0x140021393
mov rcx, qword [rsp + 0xb8]
call fcn.140044814
nop
cmp qword [rsp + 0xa8], 0x10
jb 0x1400213ab
mov rcx, qword [rsp + 0x90]
call fcn.140044814
inc ebx
cmp ebx, 0x1a
jl 0x1400211b0
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140044830
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400262e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140026327
lea ecx, [rdi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rsi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x14002632c
mov rsi, qword [rsp + 0x28]
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rdi
mov word [rbx + 8], di
mov dword [rsp + 0x20], 1
test rsi, rsi
je 0x14002636c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.14003b810
mov rax, rbx
jmp 0x140026381
xor r8d, r8d
lea rdx, [0x140073800]
mov rcx, rbx
call fcn.14003b810
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400280d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140087990]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, r9
mov rbx, r8
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rbx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
cmp qword [rdx + 0x20], 8
jb 0x140028128
lea r12, [rdx + 8]
mov rdx, qword [r12]
jmp 0x14002812f
lea r12, [rdx + 8]
mov rdx, r12
cmp qword [r8 + 0x20], 8
jb 0x140028140
lea rbp, [r8 + 8]
mov rdi, qword [rbp]
jmp 0x140028147
lea rbp, [r8 + 8]
mov rdi, rbp
mov dword [rsp + 0x34], 0x3e8
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140028296
mov ecx, 0x800
call fcn.1400432bc
mov r14, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002822b
mov qword [r13 + 0x20], 7
mov qword [r13 + 0x18], r15
mov word [r13 + 8], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
mov rcx, r13
call fcn.14003b810
nop
cmp qword [rsi + 0x20], 8
jb 0x1400281f1
mov rcx, qword [r12]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r15
mov word [r12], r15w
cmp qword [rbx + 0x20], 8
jb 0x140028212
mov rcx, qword [rbp]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbp], r15w
mov rax, r13
jmp 0x1400282ff
mov qword [r13 + 0x20], 7
mov qword [r13 + 0x18], r15
mov word [r13 + 8], r15w
xor r8d, r8d
lea rdx, [0x140073800]
mov rcx, r13
call fcn.14003b810
nop
cmp qword [rsi + 0x20], 8
jb 0x14002825f
mov rcx, qword [r12]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r15
mov word [r12], r15w
cmp qword [rbx + 0x20], 8
jb 0x140028280
mov rcx, qword [rbp]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbp], r15w
mov rax, r13
jmp 0x1400282ff
mov qword [r13 + 0x20], 7
mov qword [r13 + 0x18], r15
mov word [r13 + 8], r15w
xor r8d, r8d
lea rdx, [0x140073800]
mov rcx, r13
call fcn.14003b810
nop
cmp qword [rsi + 0x20], 8
jb 0x1400282ca
mov rcx, qword [r12]
call fcn.140044814
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r15
mov word [r12], r15w
cmp qword [rbx + 0x20], 8
jb 0x1400282eb
mov rcx, qword [rbp]
call fcn.140044814
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r15
mov word [rbp], r15w
mov rax, r13
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140044830
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret