joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093592
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ca368]
test eax, eax
je 0x14009362a
lea rax, [0x1400ca340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ca370]
mov qword [rbp - 8], rax
jmp 0x14009360e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140093602
cmp qword [rbp - 0x10], 0
je 0x140093602
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400935c8
lea rax, [0x1400ca340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009362b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140093730
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140093758
mov eax, 0
jmp 0x1400937a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140093781
mov eax, 0
jmp 0x1400937a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400937a1
mov eax, 0
jmp 0x1400937a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400937ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14009382a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140093821
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140093821
mov rax, qword [rbp - 8]
jmp 0x14009383f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400937f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003d00
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140003da0
jmp 0x140003d8f
jae 0x140003e5f
cmp r8, 0x201
jae 0x140003da0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140003df7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x140003dcf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140019d80
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140003e20
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140003ecb
mov r8d, r13d
cmp r12, r8
jne 0x140003d80
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003eff
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140003d8f
jmp 0x140003da0
cmp r14, r8
jb 0x140003f19
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140006da0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140003eb4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001a20
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140003e9f
jmp 0x140003eb4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001b030
jmp 0x140003f2e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001b3e0
ud2
Function at 0x14000b380
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001e060]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000b3b8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000b416
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000b443
test eax, eax
js 0x14000b422
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000b439
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140006a40
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140002430
mov ecx, 7
int 0x29
ud2
Function at 0x140017c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140017cba
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140017cb0
cmp r10, r11
jb 0x140017d36
cmp r10, rdx
ja 0x140017d48
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140017cb2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140017c90
jmp 0x140017d17
ja 0x140017cba
mov r11, r10
cmp rax, r8
jne 0x140017c57
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140017d1b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140017cf0
mov r8, r10
sub ecx, r9d
jns 0x140017d0e
jmp 0x140017d1d
cmp r10, rdx
je 0x140017d2a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140017d1d
xor al, 1
cmp r8, rdx
jne 0x140017cd0
jmp 0x140017d1d
xor eax, eax
jmp 0x140017d1d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001af10
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b450
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b3e0
int3

Function at 0x140019584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400195ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400195ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400195ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400195ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400195ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400195d0
xor al, al
add rsp, 0x28
ret
Function at 0x14000e9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000ea5a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14000ea50
cmp r10, rax
jb 0x14000eaed
cmp r10, rdx
ja 0x14000eb01
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14000ea52
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14000ea30
jmp 0x14000eac2
ja 0x14000ea5a
mov rax, r10
cmp r11, r8
jne 0x14000ea00
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14000eac6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x14000eaa0
mov rsi, rbx
sub ecx, edi
jns 0x14000eab9
jmp 0x14000eac8
cmp rbx, rdx
je 0x14000ead3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x14000eac8
xor al, 1
cmp rsi, rdx
jne 0x14000ea80
jmp 0x14000eac8
xor eax, eax
jmp 0x14000eac8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140065d89]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140059190
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.1400593b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400593a0
ud2
Function at 0x140013860
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x1400138f0
jmp 0x1400138df
jae 0x1400139ae
cmp r8, 0x201
jae 0x1400138f0
mov r14d, 0x200
lea rbx, [rbp - 0x58]
mov rsi, r8
jmp 0x140013947
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14001391f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.140059560
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov r12, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov r14, rdi
mov rbx, qword [rbp + 0x3e8]
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x14001396f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140013a16
mov r8d, r15d
cmp rsi, r8
jne 0x1400138d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013a39
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x1400138df
jmp 0x1400138f0
cmp r14, r8
jb 0x140013a53
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.140015190
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x1400139ff
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.1400490f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x1400139e7
jmp 0x1400139ff
lea rcx, [0x140067c4b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140059190
jmp 0x140013a68
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400593a0
ud2
Function at 0x140015a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x39]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140015ac3
test ecx, ecx
jne 0x140015b12
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x140015ad0
test ecx, ecx
jne 0x140015b12
mov rcx, rdi
call fcn.140015970
movzx r10d, al
test bl, bl
jne 0x140015b19
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140015b06.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140015c8c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140015b06.2
xor r10d, r10d
test bl, bl
je 0x140015ae0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140015c6e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140015b4b
xor edi, edi
jmp 0x140015bc8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140015b90
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140015bab
inc rsi
dec rax
cmp rsi, 1
jne 0x140015b70
jmp 0x140015bc8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140015bab
cmp ebx, 0x5c
je 0x140015bab
inc rsi
dec rax
cmp rsi, 1
jne 0x140015b90
jmp 0x140015bc8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140015c7c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140015bf2
mov al, 9
cmp rdx, 2
je 0x140015bf6
cmp rdx, 1
jne 0x140015c06
cmp byte [r9], 0x2e
jne 0x140015c06
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140015c06
mov al, 0xa
jmp 0x140015c06
cmp byte [r9], 0x2e
jne 0x140015c06
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140015b06.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140015b06.2
mov esi, 2
jmp case.0x140015b06.2
lea r8, str.library_std_srcpath.rs
call fcn.140059390
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140059390
ud2
Function at 0x140024440
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
sub rsp, 0x20
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140024531
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa430], rax
test rax, rax
je 0x140024531
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140024531
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa438], rax
test rax, rax
je 0x140024531
lea rcx, str.COMBASE.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140024531
mov rsi, rax
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa440], rax
test rax, rax
je 0x140024531
lea rdx, str.WindowsCreateStringReference
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa448], rax
test rax, rax
je 0x140024531
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa4a0], rax
test rax, rax
je 0x140024531
lea rdx, str.WindowsDeleteString
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400aa450], rax
add rsp, 0x20
pop rsi
ret
Function at 0x14002b040
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, r8
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002b1ac
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14002b1ac
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], 0
mov rbx, qword [rdi + 0x10]
lea rdx, [rbx + 4]
cmp rdx, 8
jb 0x14002b222
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.14005aec0
mov qword [r14 + 0x10], 0
mov rbx, qword [rdi + 0x10]
mov rax, qword [r14 + 0x18]
cmp qword [rdi + 0x18], 8
jb 0x14002b0e4
mov rdi, qword [rdi]
cmp rax, rbx
jb 0x14002b1c4
mov qword [rsp + 0x40], rbx
cmp rax, 8
jb 0x14002b0ff
mov r14, qword [rsp + 0x30]
jmp 0x14002b104
lea r14, [rsp + 0x30]
lea r8, [rbx + rbx]
mov rcx, r14
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [r14 + rbx*2], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
sub rdx, rax
cmp rdx, 4
jb 0x14002b1de
lea rdx, [rax + 4]
mov qword [rsp + 0x40], rdx
cmp rcx, 8
jb 0x14002b14a
mov rcx, qword [rsp + 0x30]
jmp 0x14002b14f
lea rcx, [rsp + 0x30]
movabs rdx, 0x6b006e006c002e
mov qword [rcx + rax*2], rdx
mov word [rcx + rax*2 + 8], 0
cmp qword [rsp + 0x48], 8
jb 0x14002b173
mov r8, qword [rsp + 0x30]
jmp 0x14002b178
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14002b1ac
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002b202
call fcn.140057540
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058660
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.14005afe0
jmp 0x14002b11a
mov qword [rsp + 0x20], 4
lea r9, str..lnk
lea rcx, [rsp + 0x30]
mov edx, 4
call fcn.14005afe0
jmp 0x14002b164
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14002b22c
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14002b1a7
mov eax, 7
jmp 0x14002b0da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002cd80
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, r9d
mov r13, r8
mov r12d, edx
mov r14, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r15, str.0x_X_in__S:_d
mov rcx, r15
call fcn.140059f80
inc eax
movsxd rbx, eax
mov rsi, rbx
add rsi, rbx
mov rax, 0xffffffffffffffff
cmovb rsi, rax
mov rcx, rsi
call fcn.14005766c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r12d
mov rcx, rdi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r15
call fcn.14005a000
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002ce62
mov rbx, rax
lea rax, [rsp + 0x48]
mov qword [rax], rdi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, r12d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.140057540
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058660
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002ce90
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12d, r9d
mov r15, r8
mov rsi, rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea r13, [rsp + 0xd0]
mov qword [rsp + 0x50], r13
call fcn.140002650
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r13
xor r14d, r14d
mov qword [rsp + 0x20], r14
xor edx, edx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov ebx, 0xffffffff
cmovns ebx, eax
inc ebx
lea rbp, [rbx + rbx]
mov rcx, rbp
call fcn.14005766c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r13
call fcn.140002650
mov rcx, qword [rax]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
lea r13, str.Error:__s___S:_d_
mov rcx, r13
mov rdx, rdi
mov r8, r15
mov r9d, r12d
call fcn.140059f80
inc eax
movsxd rbx, eax
mov rbp, rbx
add rbp, rbx
mov rax, 0xffffffffffffffff
cmovb rbp, rax
mov rcx, rbp
call fcn.14005766c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r13
call fcn.14005a000
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002d002
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rax], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rbx
mov dx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.140057540
mov rcx, rdi
call fcn.140057540
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058660
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret