joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001974
Capabilities:
Resolve function by parsing pe exports

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 r15
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rcx, r15
je 0x1400019cd
test byte [rcx + 0x1c], 4
je 0x1400019cd
cmp byte [rcx + 0x19], 4
jb 0x1400019cd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151c40]
mov edx, 0xa
call fcn.14000c0e8
mov rax, qword [rsp + 0x70]
mov ecx, 0x10000
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
movups xmm0, xmmword [rax]
mov rax, qword [rsp + 0x78]
movdqu xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rax]
mov rax, rdi
cqo
idiv rcx
xor eax, eax
mov dword [rbx + 0x30], edx
mov r8, rdx
movdqu xmmword [rbx + 0x20], xmm1
test edx, edx
jne 0x140001a0d
mov dword [rbx + 0x30], ecx
mov r8d, ecx
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
mov qword [rbx + 0x34], rax
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x58], eax
mov al, byte [rsp + 0x90]
mov byte [rbx + 0x5c], al
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x68], rax
mov al, byte [rsp + 0xa8]
mov byte [rbx + 0x70], al
mov dword [rbx + 0x3c], r9d
mov dword [rbx + 0x40], r10d
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x140001b41
test byte [rcx + 0x1c], 4
je 0x140001aae
cmp byte [rcx + 0x19], 4
jb 0x140001aae
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r9d
mov r9d, r8d
lea r8, [0x140151c40]
call fcn.1400c9db8
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x140001b41
test byte [rcx + 0x1c], 4
je 0x140001ae9
cmp byte [rcx + 0x19], 4
jb 0x140001ae9
mov rax, qword [rbx]
movzx r9d, byte [rbx + 0x5c]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.1400d7308
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x140001b41
test byte [rcx + 0x1c], 4
je 0x140001b1b
cmp byte [rcx + 0x19], 4
jb 0x140001b1b
movzx r9d, byte [rbx + 0x70]
lea r8, [0x140151c40]
mov rcx, qword [rcx + 0x10]
mov edx, 0xd
call fcn.14001539c
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x140001b41
test byte [rcx + 0x1c], 4
je 0x140001b41
cmp byte [rcx + 0x19], 4
jb 0x140001b41
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151c40]
mov edx, 0xe
call fcn.14000c0e8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140004f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea rbp, [0x14016a048]
cmp rcx, rbp
jne 0x140004fc6
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140005040
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140005009
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x140004f8d
test byte [rcx + 0x1c], 4
jne 0x140004fa9
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
cmp byte [rcx + 0x19], 5
jb 0x140004f8d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1fe
call fcn.14000c0e8
jmp 0x140004f8d
test byte [rcx + 0x1c], 4
je 0x140004f3d
cmp byte [rcx + 0x19], 5
jb 0x140004f3d
mov eax, dword [r9 + 0x14]
mov edx, 0x1fd
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.1400ca538
jmp 0x140004f3d
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x140005039
test byte [rcx + 0x1c], 4
je 0x140005039
cmp byte [rcx + 0x19], 2
jb 0x140005039
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1ff
mov r9d, ebx
call fcn.14000c114
mov qword [r14], rbx
xor eax, eax
jmp 0x140005070
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14000506d
test byte [rcx + 0x1c], 4
je 0x14000506d
cmp byte [rcx + 0x19], 5
jb 0x14000506d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x200
call fcn.14000c0e8
mov rax, rbx
mov qword [r14 + 8], rax
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x140004f8d
Function at 0x140005090
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r9
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea rbp, [0x14016a048]
cmp rcx, rbp
je 0x1400050d3
test byte [rcx + 0x1c], 4
jne 0x14000515c
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400051cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140005195
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x140005123
test byte [rcx + 0x1c], 4
jne 0x14000513f
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
cmp byte [rcx + 0x19], 5
jb 0x140005123
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1f8
call fcn.14000c0e8
jmp 0x140005123
cmp byte [rcx + 0x19], 5
jb 0x1400050d3
mov eax, dword [r9 + 0x14]
mov edx, 0x1f7
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.1400ca538
jmp 0x1400050d3
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x1400051c5
test byte [rcx + 0x1c], 4
je 0x1400051c5
cmp byte [rcx + 0x19], 2
jb 0x1400051c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1f9
mov r9d, ebx
call fcn.14000c114
mov qword [r14], rbx
xor eax, eax
jmp 0x1400051fc
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x1400051f9
test byte [rcx + 0x1c], 4
je 0x1400051f9
cmp byte [rcx + 0x19], 5
jb 0x1400051f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140151728]
mov edx, 0x1fa
call fcn.14000c0e8
mov rax, rbx
mov qword [r14 + 8], rax
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x140005123
Function at 0x1400053ac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov edi, 0x208
and qword [rdx], rbx
mov ecx, edi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
mov rsi, rax
lea r12, [0x14016a048]
test rax, rax
jne 0x140005406
mov rcx, qword [0x14016a048]
mov ebx, 0x8007000e
jmp 0x140005562
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rsi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x14000551a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov edi, eax
call fcn.14012d4e0
test eax, eax
jns 0x1400054be
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400054a5
test byte [rcx + 0x1c], 1
je 0x1400054a5
cmp byte [rcx + 0x19], 3
jb 0x1400054a5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140014f78
mov rcx, qword [0x14016a048]
test edi, edi
jg 0x1400054b0
mov ebx, edi
jmp 0x140005543
movzx ebx, di
or ebx, 0x80070000
jmp 0x140005543
test dword [rsp + 0x78], 0x800
je 0x1400055a3
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x1400054fc
test byte [rcx + 0x1c], 1
je 0x1400054fc
cmp byte [rcx + 0x19], 4
jb 0x1400054fc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x41
mov r9, rbp
call fcn.140014f10
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.14012d800
mov rsi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x14000553c
test rsi, rsi
jne 0x140005537
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140088f60
mov qword [r14], rsi
xor esi, esi
mov rcx, qword [0x14016a048]
test rsi, rsi
je 0x14000555e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x14000558f
cmp rcx, r12
je 0x14000558f
test byte [rcx + 0x1c], 1
je 0x14000558f
cmp byte [rcx + 0x19], 3
jb 0x14000558f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140014f78
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, 0x3ed
je 0x1400055b9
cmp edi, 1
je 0x1400055b9
cmp edi, 0x57
jne 0x14000549e
mov rcx, qword [0x14016a048]
cmp rcx, r12
je 0x140005543
test byte [rcx + 0x1c], 1
je 0x140005543
cmp byte [rcx + 0x19], 5
jb 0x140005543
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a048]
mov edx, 0x43
mov r9, rbp
call fcn.140014f10
jmp 0x14000553c
Function at 0x140006f10
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14016c488], rbx
je 0x140006f77
cmp rax, rbx
jne 0x140006f6a
mov edi, 1
mov esi, edi
jmp 0x140006f7c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006f4f
mov edi, 1
mov eax, dword [0x14016c490]
cmp eax, edi
jne 0x140006f94
mov ebx, 0x1f
mov ecx, ebx
call fcn.140205000
jmp 0x14000700a
mov eax, dword [0x14016c490]
test eax, eax
jne 0x140006fff
mov dword [0x14016c490], edi
lea r15, [0x140146c30]
lea rbx, [0x140146c18]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140006ff1
test eax, eax
jne 0x140006ff5
cmp qword [rbx], r14
je 0x140006fe6
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140006fbe
test eax, eax
je 0x140007005
mov eax, 0xff
jmp 0x14000716b
mov dword [0x14016abc4], edi
mov ebx, 0x1f
mov eax, dword [0x14016c490]
cmp eax, edi
jne 0x140007031
lea rdx, [0x140146c10]
lea rcx, [0x140146b88]
call sub.msvcrt.dll__initterm
mov dword [0x14016c490], 2
test esi, esi
jne 0x14000703f
mov rax, r14
xchg qword [0x14016c488], rax
cmp qword [0x14016c4a8], r14
je 0x14000707c
lea rcx, [0x14016c4a8]
call fcn.140007970
test eax, eax
je 0x14000707c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14016c4a8]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140007095
mov eax, 0xff
jmp 0x14000716b
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000711c
test ax, ax
je 0x1400070b0
test edx, edx
jne 0x14000711c
sub ax, di
cmp ax, bx
ja 0x1400070c6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400070b0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140068e70
mov dword [0x14016abc0], eax
cmp dword [0x14016abe0], r14d
jne 0x140007105
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14016abc4], r14d
jne 0x14000711a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14016abc0]
jmp 0x14000716b
cmp ax, 0x22
jne 0x140007130
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000709e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140007a04
add rsp, 0x28
jmp 0x140006f10
Function at 0x14000785c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400078a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400078a0
cmp dword [rcx + 0x3c], edx
jl 0x1400078a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400078a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400078a8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400079d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400079f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400079f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140007b04
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007b10
push rbx
sub rsp, 0x540
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007b8d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007bad
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x540
pop rbx
ret

Function at 0x140007b10
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007b10
push rbx
sub rsp, 0x540
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007b8d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007bad
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x540
pop rbx
ret
Function at 0x1400095f0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14000961e
lea r8, str.m_hKey___0
mov edx, 0x1544
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov rcx, qword [rbx]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]

Function at 0x140009ee8
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.140009b6c
mov ebx, eax
test eax, eax
jne 0x140009fac
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
jne 0x140009f9a
lea rdx, [rsp + 0x70]
call fcn.140009ee8
jmp 0x140009f3e
call fcn.140008ef8
mov rdx, rsi
mov rcx, rdi
call fcn.1400094e0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140008ef8
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
lea r15d, [rbx + 2]
mov r8d, r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000a1e1
call fcn.140008a58
mov ebx, eax
jmp 0x14000a324
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000a20b
call fcn.140008a58
jmp 0x14000a312
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000a201
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x14000a252
mov ebx, 0x8007000e
jmp 0x14000a324
mov ecx, eax
mov rdx, r15
call fcn.140007da4
mov r15, rax
cmp qword [rsp + 0x60], rbx
je 0x14000a27e
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.140088f60
cmp r15, 0x400
jbe 0x14000a29b
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400088bc
mov rax, qword [rsp + 0x60]
jmp 0x14000a2a5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000a2bc
test rax, rax
jne 0x14000a2c8
mov ebx, 0x8007000e
jmp 0x14000a314
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14000a201
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140009fe4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x60]
call fcn.140007ee0
nop
lea rcx, [rsp + 0x48]
call fcn.140007e10
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000aac4
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 0x14000ab00
lea r8, str.m_hKey___0
mov edx, 0x16ed
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
test rbx, rbx
jne 0x14000ab28
lea r8, str.__atl_condVal
mov edx, 0x16ee
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov ecx, 0x80004005
call fcn.140008c24
int3
mov r8d, ebp
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bp
jne 0x14000ab32
inc ecx
lea rdx, [rdx + rcx*2]
lea r8d, [r8 + rcx*2]
cmp ecx, 1
jne 0x14000ab2e
mov dword [rsp + 0x28], r8d
lea r9d, [rcx + 6]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ab8c
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 0x14000abc8
lea r8, str.m_hKey___0
mov edx, 0x16e0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
test rbx, rbx
jne 0x14000abf0
lea r8, str.__atl_condVal
mov edx, 0x16e1
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov ecx, 0x80004005
call fcn.140008c24
int3
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14000abf4
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400353e0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rdi, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
lea r12, [0x14014a790]
cmp rcx, r15
je 0x140035449
test byte [rcx + 0x1c], 1
je 0x140035449
cmp byte [rcx + 0x19], 4
jb 0x140035449
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.14000c0e8
mov edx, dword [rdi + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rdi + 0x158]
call fcn.14010b4e0
mov ebx, eax
test eax, eax
jns 0x1400354ab
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400355a6
test byte [rcx + 0x1c], 1
je 0x1400355a6
cmp byte [rcx + 0x19], 2
jb 0x1400355a6
mov r9, qword [rdi + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140014f78
jmp 0x14003559f
mov ebx, 0x101
lea rcx, [rsp + 0x40]
mov r8d, ebx
mov dword [rsp + 0x38], ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, qword [rdi + 0x260]
lea rcx, [rsp + 0x40]
test r8, r8
jne 0x140035534
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14003553c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140035501
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x14003552d
test byte [rcx + 0x1c], 1
je 0x14003552d
cmp byte [rcx + 0x19], 2
jb 0x14003552d
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c7
mov r9d, eax
mov r8, r12
call fcn.14000c114
mov word [rsp + 0x40], bp
jmp 0x14003553c
mov rdx, rbx
call fcn.140006300
mov r8, qword [rdi + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rdi + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400dcc64
mov ebx, eax
test eax, eax
jns 0x14003559f
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400355a6
test byte [rcx + 0x1c], 1
je 0x1400355a6
cmp byte [rcx + 0x19], 2
jb 0x1400355a6
mov r9, qword [rdi + 0x158]
mov edx, 0x2c8
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x160]
mov qword [rsp + 0x20], rax
call fcn.1400150ac
mov rcx, qword [0x14016a048]
cmp qword [rsp + 0x30], rbp
je 0x1400355c5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x1400355e7
test byte [rcx + 0x1c], 1
je 0x1400355e7
cmp byte [rcx + 0x19], 4
jb 0x1400355e7
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret