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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400022c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400022c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400022c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400022c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400022c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400022c8
xor al, al
add rsp, 0x28
ret
Function at 0x140002d90
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.140003d70
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.140003d70
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 0x140002e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002f30
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ed5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e30
mov rcx, rbx
call fcn.140003850
mov rdi, rax
test rax, rax
je 0x140002f52
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003990
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ece
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ee0
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d90
nop dword [rax]
xor esi, esi
jmp 0x140002e58
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000351c
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 0x140003513
test rsi, rsi
je 0x140003513
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034f8
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 0x140003850
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400038d0
Capabilities:
Parse pe header

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

Function at 0x140003990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140005cf1
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
add r8, 0x10
mov r8, qword [r8]
mov r11, qword [r8 + 0x60]
test r11, r11
je 0x140005d02
test ecx, ecx
je 0x140005d4e
movzx eax, word [r11]
test ax, ax
je 0x140005d46
add r11, 2
xor r9d, r9d
lea r10d, [rax - 0x41]
lea edx, [rax + 0x20]
cmp r10w, 0x1a
cmovae edx, eax
movzx eax, dx
add r9d, eax
movzx eax, word [r11]
add r11, 2
test ax, ax
jne 0x140005d22
jmp 0x140005d49
xor r9d, r9d
cmp r9d, ecx
jne 0x140005d02
mov rax, qword [r8 + 0x30]
ret

Function at 0x140005d53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov r9d, dword [rcx + rax + 0x1c]
mov r11d, dword [rcx + rax + 0x20]
add r11, rcx
mov r10d, dword [rcx + rax + 0x24]
xor eax, eax
mov r14, rax
mov esi, dword [r11 + rax*4]
add rsi, rcx
xor eax, eax
mov edi, eax
inc eax
cmp byte [rsi + rdi], 0
jne 0x140005d84
xor ebx, ebx
cmp eax, 1
je 0x140005db2
xor eax, eax
xor ebx, ebx
movsx ebp, byte [rsi + rax]
imul ebx, dword [r8 + 0x128]
movzx ebp, bp
add ebx, ebp
inc rax
cmp rdi, rax
jne 0x140005d99
lea rax, [r14 + 1]
cmp ebx, edx
jne 0x140005d78
mov eax, r14d
add r10, rcx
add r9, rcx
movzx eax, word [r10 + rax*2]
mov eax, dword [r9 + rax*4]
add rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14008d630
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdi, rax
cmp word [rax], 0x2e
jne 0x14008d8dc
call fcn.14000c990
lea rdx, [rdi + 2]
mov rcx, rax
call fcn.1400e0870
mov esi, eax
lea edx, [rax - 8]
cmp edx, 1
ja 0x14008d8dc
lea rdx, [0x1401e759c]
mov rcx, rbx
call fcn.1401a7ab0
mov rdi, rax
test rax, rax
je 0x14008d8dc
mov r9, rax
lea rcx, [rsp + 0xa0]
mov edx, 1
mov r8d, 0x400
call fcn.1401a7d58
mov rcx, rdi
mov rbx, rax
call fcn.1401a78bc
lea rdi, [rbp + 0x790]
xor r9d, r9d
mov rcx, rdi
xor r8d, r8d
mov edx, 0x7d4
call fcn.14000fa10
lea r9, [rsp + 0xa0]
mov r8, rbx
mov edx, 0x8ea
mov rcx, rdi
call fcn.14000fa10
xor r9d, r9d
mov edx, 0x896
mov r8d, 0x600000
mov rcx, rdi
call fcn.14000fa10
lea r9, [rbx - 1]
xor r8d, r8d
mov edx, 0xa7e
mov rcx, rdi
call fcn.14000fa10
mov edx, 0x895
mov rcx, rdi
cmp esi, 9
jne 0x14008d80f
lea r9, str.__xml___t_version___t____t_________t_encoding___t____t_________t_.__
lea r8d, [rsi + 0x49]
call fcn.14000fa10
add rax, 2
cmp rax, 1
jbe 0x14008d8dc
lea r9, str.encoding___t____t____.__
mov edx, 0x895
lea r8d, [rsi + 0x14]
mov rcx, rdi
call fcn.14000fa10
lea r9, [0x140216168]
mov edx, 0x895
lea r8d, [rsi - 5]
mov rcx, rdi
call fcn.14000fa10
lea r9, str._a_zA_Z0_9___
mov edx, 0x895
lea r8d, [rsi + 5]
mov rcx, rdi
call fcn.14000fa10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x88f
mov rcx, rdi
call fcn.14000fa10
xor r9d, r9d
movsxd rbx, eax
xor r8d, r8d
mov edx, 0x891
mov rcx, rdi
call fcn.14000fa10
mov rdx, rax
sub rdx, rbx
cmp rdx, 0x80
jae 0x14008d8dc
mov r8, rbx
mov r9, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140113c80
lea rdx, [rsp + 0x20]
lea rcx, [0x1402be850]
call fcn.14004b740
test eax, eax
mov ecx, 0xffffffff
cmove eax, ecx
jmp 0x14008d8e1
lea r9, str._meta___t_http_equiv___t____t__Content_Type___t__content___t_____text_html____t_charset___t____t_.______
mov r8d, 0x7b
call fcn.14000fa10
add eax, 2
cmp eax, 1
ja 0x14008d84f
lea r9, str._meta___t_content___t_____text_html____t_charset___t____t_.___t__http_equiv___t____t__Content_Type___t____
mov edx, 0x895
mov r8d, 0x7c
mov rcx, rdi
call fcn.14000fa10
add eax, 2
cmp eax, 1
jbe 0x14008d8dc
lea r9, str.charset___t____t____
mov edx, 0x895
mov r8d, 0x1a
mov rcx, rdi
call fcn.14000fa10
lea r9, [0x140216290]
mov edx, 0x895
mov r8d, 9
mov rcx, rdi
call fcn.14000fa10
lea r9, [0x1402162a0]
mov edx, 0x895
mov r8d, 8
mov rcx, rdi
call fcn.14000fa10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x88f
mov rcx, rdi
call fcn.14000fa10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x891
mov rcx, rdi
mov rbx, rax
call fcn.14000fa10
movsxd r8, ebx
mov rcx, rax
sub rcx, r8
cmp rcx, 0x80
jb 0x14008d7df
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400eaa60
Capabilities:
Check if file exists
Create directory

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
lea rdx, [rbp - 0x48]
call fcn.1400e3e90
nop
mov r8d, 7
lea rdx, str.cloud_
lea rcx, [rbp - 0x48]
call fcn.140006aa0
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400eaadd
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8d, 6
lea rdx, str.choice
lea rcx, [rbp - 0x48]
call fcn.140006aa0
call fcn.14000ca20
xor esi, esi
mov qword [rsp + 0x20], rsi
mov rbx, 0xffffffffffffffff
mov r9d, ebx
mov r8d, 0xfde9
mov rdx, rdi
mov rcx, rax
call fcn.14002c0e0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x1401e5040]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], sil
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400eab33
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140006c20
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call fcn.14002c380
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400eaba9
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eaba4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eac2c
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5040]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1400eabf6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400eabf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400eac26
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], si
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
nop
int3

Function at 0x1400eae30
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rdx, rdx
je 0x1400eae6c
cmp word [rdx], 0
je 0x1400eae6c
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400eae50
add rcx, 0x33218
add rsp, 0x20
pop rdi
jmp fcn.140006d70
add rcx, 0x608
mov qword [rsp + 0x30], rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400eaea8
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdi + r8*2 + 0x608], 0
jne 0x1400eae90
lea rdx, [rdi + 0x608]
jmp 0x1400eaecb
lea rdx, [rdi + 0x33138]
cmp qword [rdx + 0x18], 8
jb 0x1400eaeb9
mov rdx, qword [rdx]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400eaec0
lea rcx, [rdi + 0x33218]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140006d70
Function at 0x140007240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000728a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000728a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000728a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000728a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000728a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000728c
xor al, al
add rsp, 0x28
ret
Function at 0x1400202ee
Capabilities:
Get process image filename

Disassembly:
jmp 0x14005b779
jmp qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]

Function at 0x1400204fb
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140055f20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x1400b43ad]
call fcn.140021842
mov qword [rbp + 0x268], 0
mov edx, 0x238
lea rcx, [rbp + 0x10]
call fcn.140021090
xor edx, edx
mov ecx, 2
call fcn.140020b09
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0xffffffffffffffff
jne 0x140055fb2
lea rcx, str.CreateToolhelp32Snapshot
call fcn.140020d5c
xor eax, eax
jmp 0x14005605d
mov dword [rbp + 0x10], 0x238
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140020e65
test eax, eax
jne 0x140055fea
lea rcx, str.Process32First
call fcn.140020d5c
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14005605d
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x140056011
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x14005605d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140021469
test eax, eax
je 0x14005604e
mov rdx, qword [rbp + 0x420]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14005604c
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x14005605d
jmp 0x140056011
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007d000]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x140020672
Capabilities:
Terminate process

Disassembly:
jmp 0x1400520e0
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x1400b4398]
call fcn.140021842
mov qword [rbp + 8], 0
xor ecx, ecx
call fcn.140052430
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0xe8]
call fcn.1400523d0
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x140052179
lea rcx, str.localtime_s
call fcn.140020d5c
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea r8, [rbp + 0xe8]
mov edx, 0x20
lea rcx, [rbp + 0x70]
call qword [sym.imp.ucrtbased.dll__wasctime_s]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x1400521af
lea rcx, str._tasctime_s
call fcn.140020d5c
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rcx, [rbp + 0x70]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0x40
jae 0x1400521d1
jmp 0x1400521d6
call fcn.1400210fe
xor eax, eax
mov rcx, qword [rbp + 0x1e8]
mov word [rbp + rcx + 0x70], ax
lea rcx, [rbp + 0x70]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 6]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140052240
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1400211da
xor edx, edx
mov rax, qword [rbp + 8]
mov ecx, 2
div rcx
lea r9, [rbp + 0x70]
lea r8, str.__s_
mov rdx, rax
mov rcx, qword [rbp + 0x28]
call fcn.1400206fe
mov rax, qword [rbp + 0x28]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007c4b0]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret

Function at 0x14002069f
Capabilities:
Get process heap flags

Disassembly:
jmp 0x140037e30
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b40d3]
call fcn.140021842
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
call fcn.140020695
movzx eax, al
test eax, eax
je 0x140037e89
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
add rax, 0x70
mov qword [rbp + 0x28], rax
jmp 0x140037ea9
mov rax, qword gs:[0x60]
add rax, 0x30
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
add rax, 0x14
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140020703
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140056ac0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xc58
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x21a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc78]
mov rax, qword [0x1400a7e78]
xor rax, rbp
mov qword [rbp + 0xc18], rax
lea rcx, [0x1400b43ad]
call fcn.140021842
mov qword [rbp + 8], 0
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov dword [rbp + 0x844], 0x104
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0xc48]
mov rcx, qword [rbp + 0xc40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056bc5
lea rax, [rbp + 0x844]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0xc50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140056bbb
mov rdx, qword [rbp + 0xc58]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140056bbb
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056bc7
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007c7e0]
call fcn.1400213b0
mov rax, rdi
mov rcx, qword [rbp + 0xc18]
xor rcx, rbp
call fcn.140020b4a
lea rsp, [rbp + 0xc28]
pop rdi
pop rbp
ret
Function at 0x140020721
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
jmp 0x1400560f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x50]
lea rcx, [0x1400b43ad]
call fcn.140021842
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14005613f
lea rcx, str.CoInitializeEx
call fcn.140020d5c
xor eax, eax
jmp 0x140056340
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14005619e
lea rcx, str.CoInitializeSecurity
call fcn.140020d5c
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140056340
mov rcx, qword [rbp + 0x128]
call fcn.140020942
mov qword [rsp + 0x20], rax
lea r9, [0x14007e8d8]
mov r8d, 1
xor edx, edx
lea rcx, [0x1400807a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x1400561ed
lea rcx, str.CoCreateInstance
call fcn.140020d5c
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140056340
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400562ac
mov rax, qword [rbp + 0x128]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x120]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x1400562a2
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, str.ConnectServer
call fcn.140020d5c
mov rax, qword [rbp + 0x128]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx]
mov rax, qword [rax]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140056340
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14005633b
lea rcx, str.CoSetProxyBlanket
call fcn.140020d5c
mov rax, qword [rbp + 0x120]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x120]
mov rcx, qword [rcx]
mov rax, qword [rax]
call qword [rax + 0x10]
mov rax, qword [rbp + 0x128]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx]
mov rax, qword [rax]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x140056340
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret