joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087880
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400878b7
call fcn.14008717c
mov dword [rax], 0x16
call fcn.1400767d4
xor eax, eax
jmp 0x140087945
mov rdx, r9
mov rcx, r8
call fcn.14008781c
mov rbx, rax
test rax, rax
je 0x140087942
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140087748]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008792f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400870f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140087916
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140087925
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14008e624
jmp 0x140087942
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008793f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14009227c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140127bb0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400922d3
cmp word [rdx], r13w
jne 0x1400922d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400922d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400923fd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009241e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140092311
mov rdx, r9
mov word [rbx], cx
jmp 0x140092338
cmp r9, r8
jae 0x140092348
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400922f2
jmp 0x1400923fd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400923f2
cmp dword [rsp + 0x80], esi
je 0x1400923f2
lea r8, [0x140127bb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400923ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009239a
mov word [rbx], r13w
jmp 0x1400923fa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400923a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400923fa
cmp word [rsp + 0x70], r13w
jne 0x1400923d7
cmp rbx, r14
je 0x140092394
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009304c
cmp word [rsp + 0x70], r13w
je 0x1400923fd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140127bb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400923f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400923fd
Function at 0x1400931e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400931fe
mov al, 1
jmp 0x14009325e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009320f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009325c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140098e84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009325c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009325c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009325c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009325e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140098170
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400981a0
xor eax, eax
jmp 0x140098263
mov rbp, rbx
cmp word [rax], si
je 0x1400981c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400981ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400981a8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400968e4
movsxd r14, eax
test eax, eax
jne 0x140098203
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140098199
mov rcx, r14
call fcn.14008e660
mov rdi, rax
test rax, rax
jne 0x14009821c
xor ecx, ecx
call fcn.14008e624
jmp 0x1400981f8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400968e4
test eax, eax
jne 0x14009824d
mov rcx, rdi
call fcn.14008e624
jmp 0x140098257
xor ecx, ecx
call fcn.14008e624
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14009b3d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14008d74c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14009b479
cmp ebx, dword [rsp + 0x30]
je 0x14009b472
test esi, esi
je 0x14009b472
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009b44d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009b45a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009b437
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009b45e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009b47b
mov eax, 1
jmp 0x14009b47b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009f53c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007db18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14009f5c6
cmp byte [rbp - 0x21], r15b
je 0x14009f5c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009f5fc
call fcn.140090088
test eax, eax
jne 0x14009f5e8
cmp byte [rbp - 0x21], r15b
je 0x14009f5e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009f5fc
cmp byte [rbp - 0x21], r15b
je 0x14009f5f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140089794
test eax, eax
jne 0x14009f69c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007db18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009f63b
cmp byte [rbp - 0x21], r15b
je 0x14009f670
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14009f670
call fcn.140090088
test eax, eax
jne 0x14009f65c
cmp byte [rbp - 0x21], r15b
je 0x14009f655
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14009f670
cmp byte [rbp - 0x21], r15b
je 0x14009f66d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140089794
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14009f69c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14009f69f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14009f6ad
mov rcx, rdi
call fcn.14008e624
cmp byte [rbp + 0x3f], r15b
je 0x14009f6bc
mov rcx, qword [rbp + 0x27]
call fcn.14008e624
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a02ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009304c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009304c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a043c
cmp rax, 0xffffffffffffffff
je 0x1400a043c
xor edi, edi
test rbp, rbp
jle 0x1400a03e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008e5ac
mov rbx, rax
test rax, rax
jne 0x1400a0374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a03dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14008addc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140091f74
cmp eax, 0xffffffff
je 0x1400a03bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a0384
mov edx, r15d
mov ecx, r14d
call fcn.14008addc
jmp 0x1400a03dd
cmp byte [rsi + 0x38], dil
je 0x1400a03d4
cmp dword [rsi + 0x34], 5
jne 0x1400a03d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a03dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14008e624
jmp 0x1400a0450
jns 0x1400a0450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009304c
cmp rax, 0xffffffffffffffff
jne 0x1400a0408
cmp byte [rsi + 0x30], dil
je 0x1400a0450
mov edi, dword [rsi + 0x2c]
jmp 0x1400a0450
mov ecx, r14d
call fcn.140098e84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a0450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400a0450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a0449
mov eax, dword [rsi + 0x2c]
jmp 0x1400a044e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009304c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400a0ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a0ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a0ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001b0c4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x14001b100
lea r8, [0x1400019c8]
lea rcx, [0x1400019a8]
mov edx, 0x1686
call fcn.1400a8be8
test rbx, rbx
mov eax, ebp
setne al
test eax, eax
jne 0x14001b12f
lea r8, [0x140001998]
lea rcx, [0x1400019a8]
mov edx, 0x1687
call fcn.1400a8be8
mov ecx, 0x80004005
call fcn.14001ad98
int3
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14001b133
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001b17c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call fcn.14001b008
jmp 0x14001b1e2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001b17c
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14001b24d
xor ebx, ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], reloc.ADVAPI32.dll_TraceEvent
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001b1d3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001b23b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14001ae80
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x14001b258
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14001b9a1
call fcn.14001ae0c
mov ebx, eax
jmp 0x14001baf2
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x14001b9c5
call fcn.14001ae0c
jmp 0x14001bae6
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001b9bb
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14001ba17
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001ba0d
lea rcx, [rsp + 0x70]
call fcn.14001d97c
nop
mov eax, 0x8007000e
jmp 0x14001bb18
mov r14d, eax
test eax, eax
jne 0x14001ba23
mov r14, rbx
jmp 0x14001ba39
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x14001bb0d
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x14001ba58
invalid
lea r8, [0x140001f50]
mov edx, 0x207
lea rcx, [0x140001910]
call fcn.1400a8be8
cmp r14, 0x400
jbe 0x14001ba75
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14001dc08
mov r11, qword [rsp + 0x70]
jmp 0x14001ba7f
lea r11, [rsp + 0x78]
mov qword [rsp + 0x70], r11
jmp 0x14001ba96
test r11, r11
jne 0x14001baa2
mov ebx, 0x8007000e
jmp 0x14001bae8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r11
mov r9d, edi
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001b9bb
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + reloc.ADVAPI32.dll_TraceEvent]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001c798
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14001bb09
lea rcx, [rsp + 0x70]
call fcn.14001d97c
nop
mov eax, ebx
jmp 0x14001bb18
mov ecx, 0x80070057
call fcn.14001ad98
nop
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140168920
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003c7e4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14003c836
test byte [rcx + 0x1c], 1
je 0x14003c836
cmp byte [rcx + 0x19], 4
jb 0x14003c836
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1f7
call fcn.14001dd24
and qword [rsp + 0x60], 0
test r14, r14
jne 0x14003c859
lea r8, [0x140004658]
lea rcx, [0x140003c50]
mov edx, 0x2e70
call fcn.1400a8be8
test rbx, rbx
jne 0x14003c876
lea r8, [0x140004660]
lea rcx, [0x140003c50]
mov edx, 0x2e71
call fcn.1400a8be8
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov byte [r14], 1
call fcn.1400a987c
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x14003c9e7
xor edi, edi
and qword [rsp + 0x30], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
mov rcx, rbx
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003c940
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x14003c927
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14003c90f
test byte [rcx + 0x1c], 1
je 0x14003c90f
cmp byte [rcx + 0x19], 4
jb 0x14003c90f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1fa
mov r9d, edi
mov qword [rsp + 0x20], rbx
call fcn.14006beb4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
or rbp, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, r15d
cmp r15d, 5
jb 0x14003c898
lea r15, [0x14017d3a8]
jmp 0x14003c9d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14003c98f
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14003c989
test byte [rcx + 0x1c], 1
je 0x14003c989
cmp byte [rcx + 0x19], 4
jb 0x14003c989
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1f8
mov r9, rbx
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
mov byte [r14], 0
jmp 0x14003c9ee
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x14003c9ee
test byte [rcx + 0x1c], 1
je 0x14003c9ee
cmp byte [rcx + 0x19], 2
jb 0x14003c9ee
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1f9
mov r9, rbx
mov dword [rsp + 0x20], esi
call fcn.14001ecbc
cmp rbp, 0xffffffffffffffff
je 0x14003c9e7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
test rbx, rbx
je 0x14003ca03
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r15
je 0x14003ca29
test byte [rcx + 0x1c], 1
je 0x14003ca29
cmp byte [rcx + 0x19], 4
jb 0x14003ca29
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003c28]
mov edx, 0x1fb
call fcn.14001dd24
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400456c8
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rdi, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
lea r15, [0x140003c28]
cmp rcx, r14
je 0x140045731
test byte [rcx + 0x1c], 1
je 0x140045731
cmp byte [rcx + 0x19], 4
jb 0x140045731
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c0
mov r8, r15
call fcn.14001dd24
mov edx, dword [rdi + reloc.ADVAPI32.dll_TraceEvent]
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0x30]
call fcn.14012ed28
mov ebx, eax
test eax, eax
jns 0x140045793
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x1400458b2
test byte [rcx + 0x1c], 1
je 0x1400458b2
cmp byte [rcx + 0x19], 2
jb 0x1400458b2
mov r9, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c1
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x1400458ab
mov ebx, 0x101
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x38], ebx
call sub.msvcrt.dll_memset
mov r11, qword [rdi + 0x260]
lea rcx, [rsp + 0x40]
test r11, r11
jne 0x140045812
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140045848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x14004580b
test byte [rcx + 0x1c], 1
je 0x14004580b
cmp byte [rcx + 0x19], 2
jb 0x14004580b
mov rcx, qword [rcx + 0x10]
movzx r9d, ax
mov edx, 0x2c2
or r9d, 0x80070000
test eax, eax
mov r8, r15
cmovle r9d, eax
call fcn.14001de24
mov word [rsp + 0x40], bp
jmp 0x140045848
lea rax, [rsp + 0x40]
sub r11, rax
lea rax, [rbx + 0x7ffffefd]
test rax, rax
je 0x14004583c
movzx eax, word [r11 + rcx]
test ax, ax
je 0x14004583c
mov word [rcx], ax
add rcx, 2
dec rbx
jne 0x14004581a
test rbx, rbx
jne 0x140045845
sub rcx, 2
mov word [rcx], bp
mov r8, qword [rdi + 0x188]
mov rdx, qword [rdi + 0x158]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
call fcn.1400fe918
mov ebx, eax
test eax, eax
jns 0x1400458ab
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x1400458b2
test byte [rcx + 0x1c], 1
je 0x1400458b2
cmp byte [rcx + 0x19], 2
jb 0x1400458b2
mov r9, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x160]
mov edx, 0x2c3
mov r8, r15
mov qword [rsp + 0x20], rax
call fcn.140028ec8
mov rcx, qword [0x14017d3a8]
cmp qword [rsp + 0x30], rbp
je 0x1400458cb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x1400458ed
test byte [rcx + 0x1c], 1
je 0x1400458ed
cmp byte [rcx + 0x19], 4
jb 0x1400458ed
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c4
mov r8, r15
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140062c34
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov rsi, r8
xor r9d, r9d
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140062ceb
cmp dword [rsi], ebx
je 0x140062ca6
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140062d5f
test byte [rcx + 0x1c], 1
je 0x140062d5f
cmp byte [rcx + 0x19], 4
jb 0x140062d5f
mov edx, 0x20c
jmp 0x140062cd6
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140062d5f
test byte [rcx + 0x1c], 1
je 0x140062d5f
cmp byte [rcx + 0x19], 4
jb 0x140062d5f
mov edx, 0x20d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov r9, rdi
call fcn.14001ec40
jmp 0x140062d5f
cmp eax, 2
jne 0x140062d16
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140062d5f
test byte [rcx + 0x1c], 1
je 0x140062d5f
cmp byte [rcx + 0x19], 3
jb 0x140062d5f
mov edx, 0x20e
jmp 0x140062cd6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140062d5f
test byte [rcx + 0x1c], 1
je 0x140062d5f
cmp byte [rcx + 0x19], 2
jb 0x140062d5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400068c8]
mov edx, 0x20f
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret