joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003113c
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 0x1400311ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400311b1
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 0x1400311b1
mov rax, qword [rbp - 8]
jmp 0x1400311cf
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 0x140031184
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140038c64
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x140038dae
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140038da1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140038d57
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x140038d6d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140038d53
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140038d8c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140038daf
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140039dcb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400449c0], eax
mov eax, dword [0x1400449c0]
cmp eax, 0xffffffff
jne 0x140039df2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140039fa5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400449c0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140039ff8
mov rax, qword [rbp - 0x10]
jmp 0x14003a158
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14003a014
cmp qword [rbp - 0x10], 0
jne 0x14003a01e
mov eax, 0
jmp 0x14003a158
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14003a0f9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14003a154
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14003a252
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14003a2bf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400449c0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a403
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14003a35c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a317
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003a403
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003a396
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14003a403
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14003b045
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400449d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14003b15a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400449d0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14003b128
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400449d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14003b169
lea rax, [0x1400449d0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14003b1a5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14003b213
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14003b25d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14003b25d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400449d0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14003b24f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x10000bc20
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x440
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x100019698], rax
call fcn.100013ee0
xor ebp, ebp
movzx ebx, al
mov rsi, rbp
test al, al
jne 0x10000bc7f
lea r9d, [rbp + 0x10]
lea r8, [0x1000057c0]
lea rdx, [0x100005788]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea edi, [rbp + 1]
jmp 0x10000bde7
call fcn.100015560
lea rdx, [0x1000191a0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [0x1000191a0]
mov edx, 0x5c
call fcn.100013adc
mov word [rax], bp
call fcn.10000d210
test al, al
jne 0x10000bcc0
mov edi, 8
jmp 0x10000bde7
mov r9d, dword [0x100007dd4]
lea r8, [0x100005720]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call fcn.1000151f0
lea r8, [rsp + 0x230]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
jne 0x10000bd2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea rdx, [rsp + 0x30]
lea rcx, [0x1000056d0]
call fcn.10000c150
lea edi, [rsi + 2]
jmp 0x10000bde7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10000bd52
lea rcx, [0x100005670]
call fcn.10000c150
mov edi, 3
jmp 0x10000bde7
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x10000bda1
cmp eax, 1
je 0x10000bda1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
mov r8d, eax
mov edx, 0x100
call qword [0x100019160]
lea rdx, [rsp + 0x30]
lea rcx, [0x100005638]
call fcn.10000c150
mov edi, 0x13
jmp 0x10000bde7
lea rcx, [0x1000195d0]
mov edx, 0x64
call fcn.10000d250
test al, al
jne 0x10000bdbd
mov word [0x1000195d0], bp
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [0x100019698]
lea r9, [0x10000a7d0]
mov r8, rax
mov edx, 0x65
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rdi, rax
call fcn.10000e110
mov rbp, qword [rsp + 0x458]
test rsi, rsi
je 0x10000be02
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x460]
test bl, bl
mov rbx, qword [rsp + 0x450]
je 0x10000be1b
call fcn.100014140
mov eax, edi
add rsp, 0x440
pop rdi
ret
jmp 0x10000bc20
Function at 0x10000be30
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x440
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x100019698], rax
call fcn.100013ee0
xor ebp, ebp
movzx ebx, al
mov rsi, rbp
test al, al
jne 0x10000bc7f
lea r9d, [rbp + 0x10]
lea r8, [0x1000057c0]
lea rdx, [0x100005788]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea edi, [rbp + 1]
jmp 0x10000bde7
call fcn.100015560
lea rdx, [0x1000191a0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [0x1000191a0]
mov edx, 0x5c
call fcn.100013adc
mov word [rax], bp
call fcn.10000d210
test al, al
jne 0x10000bcc0
mov edi, 8
jmp 0x10000bde7
mov r9d, dword [0x100007dd4]
lea r8, [0x100005720]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call fcn.1000151f0
lea r8, [rsp + 0x230]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
jne 0x10000bd2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
mov edx, 0x100
mov r8d, eax
call qword [0x100019160]
lea rdx, [rsp + 0x30]
lea rcx, [0x1000056d0]
call fcn.10000c150
lea edi, [rsi + 2]
jmp 0x10000bde7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10000bd52
lea rcx, [0x100005670]
call fcn.10000c150
mov edi, 3
jmp 0x10000bde7
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x10000bda1
cmp eax, 1
je 0x10000bda1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x30]
mov r8d, eax
mov edx, 0x100
call qword [0x100019160]
lea rdx, [rsp + 0x30]
lea rcx, [0x100005638]
call fcn.10000c150
mov edi, 0x13
jmp 0x10000bde7
lea rcx, [0x1000195d0]
mov edx, 0x64
call fcn.10000d250
test al, al
jne 0x10000bdbd
mov word [0x1000195d0], bp
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [0x100019698]
lea r9, [0x10000a7d0]
mov r8, rax
mov edx, 0x65
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rdi, rax
call fcn.10000e110
mov rbp, qword [rsp + 0x458]
test rsi, rsi
je 0x10000be02
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x460]
test bl, bl
mov rbx, qword [rsp + 0x450]
je 0x10000be1b
call fcn.100014140
mov eax, edi
add rsp, 0x440
pop rdi
ret
jmp 0x10000bc20
Function at 0x10000d250
Capabilities:
Get explorer pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0xc0
xor r12d, r12d
mov esi, edx
mov rbp, rcx
mov qword [rsp + 0x38], r12
xor bl, bl
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0xf0]
mov rcx, rax
mov dword [rsp + 0xf0], r12d
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0xf0]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x10000d338
lea r8, [rsp + 0x38]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10000d32f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0xf8]
lea r9d, [r12 + 0x78]
lea r8, [rsp + 0x40]
lea edx, [r12 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10000d32f
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10000d32f
mov r8, qword [rsp + 0x30]
mov edx, esi
mov rcx, rbp
call fcn.100014680
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x30], r12
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x10000d348
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xc0]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100013c10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x100019188]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, [0x100008fa0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100013d1c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x100013d0d
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
jne 0x100013cd1
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x100013d0d
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x100013cf9
mov al, byte [rdx + rdi]
cmp al, bl
je 0x100013cf9
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x100013cdb
cmp rsi, rbx
jne 0x100013d06
dec rdi
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x100013d1e
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.100016570
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100013e40
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
mov eax, 0x20
cmp word [rbx], 0x22
jne 0x100013e63
mov eax, 0x22
add rbx, 2
movzx edx, ax
mov rcx, rbx
call fcn.1000136f8
test rax, rax
je 0x100013e80
lea rcx, [rax + 2]
xor edx, edx
call fcn.1000144f0
jmp 0x100013e90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r11d, eax
lea rax, [rbx + r11*2]
mov rcx, rax
call fcn.10000be30
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100013ee0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
movzx ecx, word [0x100009440]
xor edx, edx
call fcn.100014460
movzx eax, byte [0x100030eac]
test al, al
jne 0x10001408a
lea rcx, [0x100030d90]
mov dword [0x100030d90], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000140aa
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8, [0x100009100]
mov qword [rsp + 0x28], rax
lea rax, [0x100019170]
lea rdx, [0x1000090a0]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [0x100030ec0]
lea r8, [0x100009080]
lea rdx, [0x1000090a0]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x64
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
movzx eax, byte [0x100030d98]
movzx r11d, byte [0x100030d94]
shl r11w, 8
movzx ecx, r11w
or ecx, eax
mov eax, dword [0x100030d9c]
mov dword [0x100030d50], eax
mov dword [0x100030eb0], ecx
cmp ecx, 0x500
jb 0x1000140aa
call fcn.100015f30
test al, al
je 0x1000140aa
lea rcx, [0x100030d58]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [0x100009060]
lea rcx, [0x100009050]
call fcn.100016180
lea rdx, [0x100009038]
lea rcx, [0x100009050]
mov qword [0x100030f48], rax
call fcn.100016180
lea rdx, [0x100009018]
lea rcx, [0x100009000]
mov qword [0x100030f50], rax
call fcn.100016180
lea rdx, [0x100008fe0]
lea rcx, [0x100009000]
mov qword [0x100030f40], rax
call fcn.100016180
mov ecx, 0x18
mov qword [0x100030f58], rax
call fcn.100009520
mov rbx, rax
test rax, rax
je 0x10001408f
mov rcx, rax
call fcn.100015fc0
mov qword [0x100030c98], rbx
mov rbx, qword [rsp + 0x30]
mov byte [0x100030eac], 1
mov al, 1
add rsp, 0x38
ret
mov al, byte [0x100030eac]
mov rbx, qword [rsp + 0x30]
mov qword [0x100030c98], 0
add rsp, 0x38
ret
mov al, byte [0x100030eac]
add rsp, 0x38
ret

Function at 0x100015e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
lea eax, [r9 + r9]
mov rbx, r8
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov edi, r9d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor esi, esi
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x68], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
test eax, eax
jne 0x100015e92
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x100015e5a
mov ecx, dword [rsp + 0x68]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
shr eax, 1
cmp eax, edi
ja 0x100015e88
test eax, eax
je 0x100015e72
dec eax
cmp word [rbx + rax*2], si
je 0x100015e8f
jmp 0x100015e8b
mov word [rbx], si
mov eax, r11d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea eax, [rdi - 1]
mov word [rbx + rax*2], si
mov eax, r11d
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret