joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
add al, 0x7a
fmulp st(6)
loope 0x140125ea6
jrcxz 0x140125eeb
mov al, 0xa4
mov ebx, 0xffb36f74
push rdi
invalid
and dword [rcx], esi
sub byte [rbx], 0x9f
sub ch, byte [rax + 0x7f]
xchg ebp, eax
adc edx, edi
invalid
invalid
Function at 0x180004dc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.180004270
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.18001cb58
mov rcx, rdi
call fcn.18001c498
cmp eax, 0xffffffff
jne 0x180004e1b
mov rcx, rdi
call fcn.18001c428
test eax, eax
je 0x180004e1b
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.180005f10
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rsi
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.18001cb58
mov rcx, rdi
call fcn.18001d03c
xor r8d, r8d
movsxd rsi, eax
xor edx, edx
mov rcx, rdi
call fcn.18001cb58
cmp esi, 0xffffffff
jne 0x180004e6f
xor r9d, r9d
lea edx, [rsi + 6]
xor r8d, r8d
mov rcx, rbx
call fcn.180005f10
mov eax, dword [rbx + 0x6c]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test esi, esi
jne 0x180004e97
xor r9d, r9d
lea edx, [rsi + 0xd]
xor r8d, r8d
mov rcx, rbx
call fcn.180005f10
mov eax, dword [rbx + 0x6c]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rsi + 1]
call fcn.1800150d4
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.18001c81c
mov rcx, rbx
cmp rax, rsi
je 0x180004ee4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.180005f10
mov eax, dword [rbx + 0x6c]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x98]
mov byte [rsi + rax], 0
call fcn.180004fb0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000ceb0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1128
call fcn.180015170
sub rsp, rax
mov rax, qword [0x180056148]
xor rax, rsp
mov qword [rsp + 0x1110], rax
mov edi, edx
mov esi, r8d
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x74]
mov rbp, r9
lea r8d, [rdx + 0x64]
call fcn.180016ee0
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor edx, edx
mov qword [rsp + 0x50], rax
mov r8d, 0x1000
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x110]
mov qword [rsp + 0x60], rax
call fcn.180016ee0
mov r8, rbx
lea rcx, [rsp + 0x110]
mov edx, 0x800
call fcn.1800224d0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x110]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18000cfee
test esi, esi
je 0x18000cfcf
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea rcx, [rsp + 0xe0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test rbp, rbp
je 0x18000cfd4
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x18000cfd4
mov ebx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x18000cff0
xor eax, eax
mov rcx, qword [rsp + 0x1110]
xor rcx, rsp
call fcn.1800151e0
add rsp, 0x1128
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000d010
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x180056148]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rdx
mov r15, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov rdi, qword [rcx + 0x10]
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x18000d065
mov rsi, qword [rcx]
cmp rdi, 8
jae 0x18000d07c
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 0xf], 7
jmp 0x18000d0bc
mov rbx, rdi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 9]
call fcn.180001bf0
mov qword [rbp - 9], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.180016a80
mov qword [rbp + 0xf], rbx
mov qword [rbp + 7], rdi
lea rcx, [rbp - 9]
call fcn.18000eba0
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x59]
call fcn.180016ee0
mov dword [rbp - 0x59], 0x50
lea rax, [0x18000caf0]
mov qword [rbp - 0x51], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rax, qword [rbp - 9]
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x59]
call qword [sym.imp.USER32.dll_RegisterClassExW]
lea r14, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae r14, qword [rbp - 9]
lea rsi, [rbp - 9]
cmovae rsi, qword [rbp - 9]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, r14
mov rdx, rsi
mov ecx, 0x80080
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
lea r9d, [r13 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
lea edx, [r13 + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp qword [r12 + 0x18], 8
jb 0x18000d1c4
mov r12, qword [r12]
cmp qword [r15 + 0x18], 8
jb 0x18000d1ce
mov r15, qword [r15]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8, r15
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg bl
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x18000d233
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d22e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000d25d
call fcn.180015044
movzx eax, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800151e0
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180019754
int3
Function at 0x18000df40
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x840
mov rax, qword [0x180056148]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov ebx, edx
mov qword [rsp + 0x20], rcx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, ebx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rax
mov r8, 0xffffffffffffffff
mov word [rdi], ax
lea rax, [rsp + 0x30]
inc r8
cmp word [rax + r8*2], 0
jne 0x18000dfa0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180001f30
mov rax, rdi
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1800151e0
mov rbx, qword [rsp + 0x860]
add rsp, 0x840
pop rdi
ret
Function at 0x18000ee80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov rbx, r9
mov rdi, rcx
mov byte [rsp + 0x48], 0
movzx edx, dx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18000ef53
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000ef53
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18000ef53
mov esi, r14d
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
cmp r14, rax
jbe 0x18000ef09
mov edx, r14d
mov rcx, rbx
call fcn.18000d740
add rsi, rdi
nop dword [rax]
cmp rdi, rsi
je 0x18000ef43
movzx eax, byte [rdi]
mov byte [rsp + 0x20], al
mov rdx, qword [rbx + 8]
cmp qword [rbx + 0x10], rdx
je 0x18000ef31
mov byte [rdx], al
inc qword [rbx + 8]
inc rdi
jmp 0x18000ef10
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.18000d320
inc rdi
jmp 0x18000ef10
mov byte [rsp + 0x48], 1
mov al, 1
jmp 0x18000ef55
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18000f350
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
cmp qword [r8 + 0x28], 0x10
lea r10, [r8 + 0x10]
mov r11, qword [r8 + 0x20]
mov rdi, r8
mov r15, rdx
mov rsi, rcx
jb 0x18000f386
mov r10, qword [r8 + 0x10]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x18000f3c4
movabs rcx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r11
jb 0x18000f3b0
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x18]
and rdx, r9
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x18000f404
cmp rax, rdi
jne 0x18000f3fa
mov rax, qword [rsi + 8]
mov qword [rcx], rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 8]
mov qword [rdx + rcx + 8], rax
jmp 0x18000f40f
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x18000f40f
cmp rax, rdi
jne 0x18000f40f
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [rsi + 0x10]
call fcn.18000f6d0
mov edx, 0x50
mov rcx, rdi
call fcn.180015044
mov rsi, qword [rsp + 0x38]
mov rax, r15
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov qword [r15], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r15
ret
Function at 0x180011120
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r12, qword [r8 + 0x18]
mov rdi, r8
mov r15, qword [r8 + 0x10]
mov r13, rdx
mov rsi, rcx
mov r10, r8
cmp r12, 0x10
jb 0x18001114b
mov r10, qword [r8]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r15, r15
je 0x180011184
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r15
jb 0x180011170
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, r9
mov rbx, rax
mov qword [rsp + 0x70], rbp
add rax, rax
mov qword [rsp + 0x20], r14
add rbx, rbx
mov rdx, qword [rcx + rax*8]
inc rax
mov rbx, qword [rcx + rbx*8]
mov qword [rsp + 0x60], rdx
lea rax, [rcx + rax*8]
mov qword [rsp + 0x68], rax
nop
cmp rdx, rsi
jne 0x1800111ca
mov rax, rsi
jmp 0x1800111d0
mov rax, qword [rax]
mov rax, qword [rax]
cmp rbx, rax
je 0x18001124a
mov rdx, rdi
cmp r12, 0x10
jb 0x1800111e1
mov rdx, qword [rdi]
mov r14, qword [rbx + 0x28]
lea rcx, [rbx + 0x10]
cmp r14, 0x10
jb 0x1800111f3
mov rcx, qword [rbx + 0x10]
mov rbp, qword [rbx + 0x20]
cmp rbp, r15
jne 0x180011208
mov r8, rbp
call fcn.180017460
test eax, eax
je 0x180011217
mov rbx, qword [rbx]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
jmp 0x1800111c0
lea rdx, [rbx + 0x10]
cmp r14, 0x10
jb 0x180011224
mov rdx, qword [rdx]
cmp r12, 0x10
jb 0x18001122d
mov rdi, qword [rdi]
cmp r15, rbp
jne 0x180011241
mov r8, r15
mov rcx, rdi
call fcn.180017460
test eax, eax
je 0x180011244
mov rbx, rsi
mov qword [r13], rbx
jmp 0x18001124e
mov qword [r13], rsi
mov r14, qword [rsp + 0x20]
mov rax, r13
mov rbp, qword [rsp + 0x70]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800133a0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x1800133c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp 0x1800133d0
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x88], 0x800
mov ecx, 0x800
mov r12, r8
mov rdi, rdx
xor bl, bl
call fcn.180022568
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.180016ee0
test rsi, rsi
je 0x1800135be
lea rax, [rsp + 0x88]
xor r14d, r14d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsp + 0x30], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x1800135a2
cmp ecx, 0xea
jne 0x1800134a8
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.180023670
mov rsi, rax
test rax, rax
je 0x1800135be
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x1800135a2
mov eax, dword [rsp + 0x88]
cmp eax, 2
jbe 0x1800135a0
shr eax, 1
mov rbx, 0xffffffffffffffff
dec eax
mov r8, rbx
mov word [rsi + rax*2], r14w
inc r8
cmp word [rsi + r8*2], r14w
jne 0x1800134d3
mov rdx, rsi
mov rcx, r12
call fcn.180001f30
cmp dword [rsp + 0x30], 2
jne 0x1800135a0
mov r14d, dword [rsp + 0x88]
shr r14d, 1
add r14d, r14d
lea eax, [r14 + r14]
mov ecx, eax
mov ebp, eax
call fcn.180022568
mov rdi, rax
test rax, rax
je 0x1800135a0
mov r8d, ebp
mov qword [rsp + 0x70], r15
xor edx, edx
mov rcx, rax
call fcn.180016ee0
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, r14d
jbe 0x180013565
lea edx, [rax + rax]
mov rcx, rdi
call fcn.180023670
mov rdi, rax
test rax, rax
je 0x180013565
mov r8d, r15d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15, qword [rsp + 0x70]
test eax, eax
je 0x180013598
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180013580
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.180001f30
mov rcx, rdi
call fcn.180022538
mov bl, 1
mov rcx, rsi
call fcn.180022538
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800133d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp 0x1800133d0
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x88], 0x800
mov ecx, 0x800
mov r12, r8
mov rdi, rdx
xor bl, bl
call fcn.180022568
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.180016ee0
test rsi, rsi
je 0x1800135be
lea rax, [rsp + 0x88]
xor r14d, r14d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsp + 0x30], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x1800135a2
cmp ecx, 0xea
jne 0x1800134a8
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.180023670
mov rsi, rax
test rax, rax
je 0x1800135be
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x1800135a2
mov eax, dword [rsp + 0x88]
cmp eax, 2
jbe 0x1800135a0
shr eax, 1
mov rbx, 0xffffffffffffffff
dec eax
mov r8, rbx
mov word [rsi + rax*2], r14w
inc r8
cmp word [rsi + r8*2], r14w
jne 0x1800134d3
mov rdx, rsi
mov rcx, r12
call fcn.180001f30
cmp dword [rsp + 0x30], 2
jne 0x1800135a0
mov r14d, dword [rsp + 0x88]
shr r14d, 1
add r14d, r14d
lea eax, [r14 + r14]
mov ecx, eax
mov ebp, eax
call fcn.180022568
mov rdi, rax
test rax, rax
je 0x1800135a0
mov r8d, ebp
mov qword [rsp + 0x70], r15
xor edx, edx
mov rcx, rax
call fcn.180016ee0
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, r14d
jbe 0x180013565
lea edx, [rax + rax]
mov rcx, rdi
call fcn.180023670
mov rdi, rax
test rax, rax
je 0x180013565
mov r8d, r15d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15, qword [rsp + 0x70]
test eax, eax
je 0x180013598
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180013580
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.180001f30
mov rcx, rdi
call fcn.180022538
mov bl, 1
mov rcx, rsi
call fcn.180022538
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180013620
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x180013660
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
cmp qword [rdx + 0x18], 8
mov r10, rcx
jb 0x180013671
mov rdx, qword [rdx]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180013680
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, r10
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1800136c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r10, rcx
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1800136d0
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
mov rcx, r10
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x18002be80
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18002bd20
call fcn.180023f24
mov dword [rax], 0x16
call fcn.180019734
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002bd08
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18002bd08
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18002bd52
lock or dword [rax + 0x14], 0x10
jmp 0x18002bd08
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18002bd6f
mov rcx, qword [rbp + 0x10]
call fcn.180035840
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180029310
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18002c3b8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18002bdc6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18002bd08
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18002be32
mov rcx, qword [rbp + 0x10]
call fcn.180029310
cmp eax, 0xffffffff
je 0x18002be19
mov rcx, qword [rbp + 0x10]
call fcn.180029310
cmp eax, 0xfffffffe
je 0x18002be19
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180029310
movsxd rdi, eax
lea rsi, [0x180058840]
mov rcx, rbx
sar rdi, 6
call fcn.180029310
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18002be20
lea rax, [0x1800564d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18002be32
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18002be68
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18002be64
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18002be64
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18002bd0b
jmp 0x18002bcd8