joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023c8c
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, [0x140088b10]
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 0x140023ce3
cmp word [rdx], r13w
jne 0x140023ce3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023ce8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023e0d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023e2e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023d21
mov rdx, r9
mov word [rbx], cx
jmp 0x140023d48
cmp r9, r8
jae 0x140023d58
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 0x140023d02
jmp 0x140023e0d
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 0x140023e02
cmp dword [rsp + 0x80], esi
je 0x140023e02
lea r8, [0x140088b10]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023dda
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140023daa
mov word [rbx], r13w
jmp 0x140023e0a
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 0x140023db7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023e0a
cmp word [rsp + 0x70], r13w
jne 0x140023de7
cmp rbx, r14
je 0x140023da4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400248f4
cmp word [rsp + 0x70], r13w
je 0x140023e0d
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, [0x140088b10]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140023e07
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023e0d
Function at 0x140027a0c
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 0x140027a3c
xor eax, eax
jmp 0x140027aff
mov rbp, rbx
cmp word [rax], si
je 0x140027a61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140027a48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140027a44
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.14002611c
movsxd r14, eax
test eax, eax
jne 0x140027a9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140027a35
mov rcx, r14
call fcn.14001f710
mov rdi, rax
test rax, rax
jne 0x140027ab8
xor ecx, ecx
call fcn.14001e91c
jmp 0x140027a94
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.14002611c
test eax, eax
jne 0x140027ae9
mov rcx, rdi
call fcn.14001e91c
jmp 0x140027af3
xor ecx, ecx
call fcn.14001e91c
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 0x14002aa74
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.14001e5bc
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 0x14002ab15
cmp ebx, dword [rsp + 0x30]
je 0x14002ab0e
test esi, esi
je 0x14002ab0e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002aae9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002aaf6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002aad3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002aafa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002ab17
mov eax, 1
jmp 0x14002ab17
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e06c
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.14001a030
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002e0f6
cmp byte [rbp - 0x21], r15b
je 0x14002e0f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002e12c
call fcn.14001ec20
test eax, eax
jne 0x14002e118
cmp byte [rbp - 0x21], r15b
je 0x14002e110
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002e12c
cmp byte [rbp - 0x21], r15b
je 0x14002e129
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.14001a60c
test eax, eax
jne 0x14002e1cc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001a030
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002e16b
cmp byte [rbp - 0x21], r15b
je 0x14002e1a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002e1a0
call fcn.14001ec20
test eax, eax
jne 0x14002e18c
cmp byte [rbp - 0x21], r15b
je 0x14002e185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002e1a0
cmp byte [rbp - 0x21], r15b
je 0x14002e19d
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.14001a60c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002e1cc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002e1cf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002e1dd
mov rcx, rdi
call fcn.14001e91c
cmp byte [rbp + 0x3f], r15b
je 0x14002e1ec
mov rcx, qword [rbp + 0x27]
call fcn.14001e91c
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 0x140003db8
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, rdx
xor r14d, r14d
mov esi, r14d
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdx + rbx*2], r14w
jne 0x140003de9
add rbx, 0xe
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14000aab8
mov rdi, rax
test rax, rax
je 0x140003f57
mov word [rax], r14w
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140004110
test eax, eax
js 0x140003f57
lea rax, [rbx - 1]
mov ecx, r14d
mov edx, 0x80070057
cmp rax, 0x7ffffffe
cmova ecx, edx
test ecx, ecx
js 0x14001c044
mov r8, rbx
mov rax, rdi
test rbx, rbx
je 0x140003e69
cmp word [rax], r14w
je 0x140003e69
add rax, 2
sub r8, 1
jne 0x140003e59
mov rax, r8
neg rax
sbb ecx, ecx
not ecx
and ecx, edx
test r8, r8
je 0x14001c044
mov rdx, rbx
sub rdx, r8
test ecx, ecx
js 0x140003f57
mov rcx, rbx
sub rcx, rdx
lea r8, [rdi + rdx*2]
je 0x140003ed2
mov rax, rcx
sub rax, rbx
lea r9, [rdx + 0x7ffffffe]
add r9, rax
lea rdx, str.Tabtip_MainUI
sub rdx, r8
test r9, r9
je 0x140003ed2
movzx eax, word [rdx + r8]
test ax, ax
je 0x140003ed2
mov word [r8], ax
add r8, 2
dec r9
sub rcx, 1
jne 0x140003eb2
lea rax, [r8 - 2]
test rcx, rcx
cmovne rax, r8
mov word [rax], r14w
je 0x140003f57
mov dword [rsp + 0x38], 0x18
lea rbx, section..rdata
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x28]
call fcn.140004f38
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r14d
mov r8, rdi
mov edx, 1
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov rsi, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14001c04c
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x28]
call fcn.140009ba0
mov rcx, rdi
call fcn.14000aaac
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
mov rdx, r14
jmp 0x140003e84
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, r14
jmp 0x140003f48
Function at 0x1400041ec
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x14005b3e8]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x41], 0
and dword [rbp - 0x49], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rbp - 0x41]
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x14001c0b0
mov r9d, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea ebx, [r8 + 1]
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x49]
call fcn.14000aab8
mov rcx, qword [rbp - 0x41]
mov rdi, rax
test rax, rax
je 0x14001c0a4
mov r9d, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14001c098
lea rcx, [rbp - 0x39]
call fcn.14000445c
mov rcx, qword [rdi]
lea rdx, [rax + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
lea rcx, [rbp - 0x39]
mov ebx, eax
call fcn.140005690
mov rcx, rdi
call fcn.14000aaac
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000aea0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rcx, rdi
call fcn.14000aaac
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400042db
Function at 0x140006a30
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14005b3e8]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x28]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionTouchKeyboard
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, 0x80070000
test eax, eax
jg 0x14002993a
js 0x140006ae1
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x2c]
and dword [rbp - 0x30], 0
lea rdx, str.DelayStart
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 0x30]
mov dword [rbp - 0x2c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jle 0x140006acb
movzx eax, ax
or eax, ebx
test eax, eax
jns 0x140029946
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
call fcn.140006b58
test byte [0x14005c540], 1
jne 0x140029975
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
nop dword [rax + rax]
cmp byte [0x14005bc38], 0
jne 0x140006b40
and dword [rbp - 0x30], 0
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rbp - 0x30]
call fcn.1400034ac
cmp al, 1
jne 0x140006b48
call fcn.140004710
mov ebx, eax
jmp 0x140029990
or ebx, 0xffffffff
jmp 0x140029990
mov ebx, dword [rbp - 0x30]
jmp 0x140029990
movzx eax, ax
or eax, ebx
test eax, eax
jmp 0x140006a84
cmp dword [rbp - 0x30], 1
jne 0x140006ad1
xor r9d, r9d
lea r8, str.TabTip_MessageBox__
lea rdx, str.TabTip_is_at_WinMain.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
nop
jmp 0x140006ad1
lea rax, [rbp - 0x20]
lea rdx, [0x140050e50]
mov qword [rsp + 0x20], rax
call fcn.140033750
nop
jmp 0x140006af3
mov rcx, qword [0x14005bc40]
test rcx, rcx
je 0x1400299b0
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
and qword [0x14005bc40], 0
test byte [0x14005c540], 1
je 0x1400299ce
lea rax, [rbp - 0x20]
lea rdx, [0x140050e70]
mov qword [rsp + 0x20], rax
call fcn.140033750
call fcn.14003371c
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000aea0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
Function at 0x140006f50
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1388]
mov eax, 0x1470
call fcn.14000d8b0
sub rsp, rax
mov rax, qword [0x14005b3e8]
xor rax, rsp
mov qword [rbp + 0x1360], rax
xor edi, edi
cmp byte [0x14005be9b], dil
jne 0x14000713b
lea rcx, [rbp + 0xf40]
call fcn.140007178
test eax, eax
jns 0x140006fbc
mov rcx, qword [rbp + 0x1388]
mov r9d, eax
call fcn.1400400e8
jmp 0x1400070ff
lea rdx, str.explorer.exe
lea rcx, [rbp + 0xf40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400070ff
lea rdx, str.customshellhost.exe
lea rcx, [rbp + 0xf40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400070ff
lea rdx, str.ppishell.exe
lea rcx, [rbp + 0xf40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400070ff
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcesses]
nop dword [rax + rax]
test eax, eax
je 0x1400070fc
mov esi, dword [rsp + 0x20]
mov r14d, edi
shr esi, 2
test esi, esi
je 0x1400070fc
lea r15, [rsp + 0x40]
mov r8d, dword [r15]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rbp + 0x1150]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetProcessImageFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400070c2
lea rcx, [rbp + 0x1150]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindFileNameW]
nop dword [rax + rax]
mov rcx, rax
lea rdx, str.explorer.exe
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000710f
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400070ec
mov rax, qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
call fcn.14000bf00
inc r14d
add r15, 4
cmp r14d, esi
jb 0x14000705c
mov dil, 1
mov byte [0x14005be9a], dil
mov byte [0x14005be9b], 1
jmp 0x140007142
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400070ff
mov rax, qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
call fcn.14000bf00
jmp 0x1400070ff
mov dil, byte [0x14005be9a]
mov al, dil
mov rcx, qword [rbp + 0x1360]
xor rcx, rsp
call fcn.14000aea0
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140007178
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x40
lea rax, [r11 + 0x10]
mov dword [rsp + 0x58], 0x208
mov qword [r11 - 0x18], rax
lea r8, str.Shell
mov qword [r11 - 0x20], rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
and qword [r11 - 0x28], 0
mov rbx, rcx
mov rcx, 0xffffffff80000001
mov r9d, 0x20000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140029a06
cmp eax, 2
jne 0x1400299ee
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x30], rax
lea r8, str.Shell
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
and qword [rsp + 0x20], 0
mov r9d, 0x20000002
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140007289
cmp eax, 2
jne 0x140029a16
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0x208
mov qword [rsp + 0x30], rax
lea r8, str.Shell
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
and qword [rsp + 0x20], 0
mov r9d, 0x20000002
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140029a2e
cmp dword [rsp + 0x58], 2
jbe 0x140029a41
xor eax, eax
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x58], 2
ja 0x140007280
jmp 0x140007229
mov rcx, qword [rsp + 0x48]
mov r9d, eax
mov edx, 0x191
call fcn.14004012c
nop
jmp 0x1400071d8
cmp dword [rsp + 0x58], 2
ja 0x140007280
jmp 0x1400071d8
mov rcx, qword [rsp + 0x48]
mov r9d, eax
mov edx, 0x19d
call fcn.14004012c
nop
jmp 0x140007229
mov rcx, qword [rsp + 0x48]
mov r9d, eax
call fcn.14003fe64
nop
jmp 0x140007282
mov rcx, qword [rsp + 0x48]
lea r8, [0x14004d7a8]
mov ebx, 0x80004005
mov edx, 0x1a7
mov r9d, ebx
call fcn.1400312dc
mov eax, ebx
jmp 0x140007282
Function at 0x1400085a8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, qword [0x14005bd00]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x88], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x78], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
and dword [rsp + 0x40], 0
lea r8, [0x140009f40]
mov qword [rbx + 0x80], rax
mov r9, rbx
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx + 0x70], rax
add rsp, 0x30
pop rbx
ret
Function at 0x14000ac00
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.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14005bb80], rbx
je 0x14000ac67
cmp rax, rbx
jne 0x14000ac5a
mov ebx, 1
mov esi, ebx
jmp 0x14000ac6c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000ac3f
mov ebx, 1
mov eax, dword [0x14005bb88]
cmp eax, ebx
jne 0x14000ac84
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000acf0
mov eax, dword [0x14005bb88]
test eax, eax
jne 0x14000ace5
mov dword [0x14005bb88], ebx
lea r15, [0x14004bf30]
lea rdi, [0x14004bf18]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000acd7
test eax, eax
jne 0x14000acdb
cmp qword [rdi], r14
je 0x14000accc
mov rax, qword [rdi]
mov rcx, qword [case.0x1400380cf.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000acae
test eax, eax
je 0x14000aceb
mov eax, 0xff
jmp 0x14000ae46
mov dword [0x14005b594], ebx
mov edi, 0x1f
mov eax, dword [0x14005bb88]
cmp eax, ebx
jne 0x14000ad17
lea rdx, [0x14004bf10]
lea rcx, [0x14004be38]
call sub.msvcrt.dll__initterm
mov dword [0x14005bb88], 2
test esi, esi
jne 0x14000ad25
mov rax, r14
xchg qword [0x14005bb80], rax
cmp qword [0x14005bba0], r14
je 0x14000ad58
lea rcx, [0x14005bba0]
call fcn.14000b630
test eax, eax
je 0x14000ad58
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14005bba0]
mov r9, qword [case.0x1400380cf.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000ad71
mov eax, 0xff
jmp 0x14000ae46
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000adf7
test ax, ax
je 0x14000ad8c
test edx, edx
jne 0x14000adf7
sub ax, bx
cmp ax, di
ja 0x14000ada2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000ad8c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006a30
mov dword [0x14005b590], eax
cmp dword [0x14005b5b0], r14d
jne 0x14000ade0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005b594], r14d
jne 0x14000adf5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14005b590]
jmp 0x14000ae46
cmp ax, 0x22
jne 0x14000ae0b
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 0x14000ad7a
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.1401b1000
add rsp, 0x28
jmp 0x14000ac00