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

Disassembly:
jmp 0x1400186f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov edx, 0x923
xor ecx, ecx
mov rbx, r8
call fcn.14000201d
xor edi, edi
lea r9, str.Global96D95145_FAC5_46C4_835A_E722C8698A35_ngxCancel
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor ecx, ecx
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400164b0]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14001877e
mov edx, 0x926
lea ecx, [rax + 7]
call fcn.14000201d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ebx, 2
mov qword [rsp + 0x38], rdi
mov ecx, ebx
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea rdx, [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400187ca
cmp eax, 1
je 0x1400187eb
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x38]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1400187a4
call fcn.140003297
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x1401399ac]
jp 0x140018803
jne 0x140018803
mov ebx, 1
mov edx, 0x925
jmp 0x140018808
call fcn.140003297
mov edx, 0x61a8
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14001880f
mov edx, 0x926
mov ecx, ebx
call fcn.14000201d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, 1
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140019ef0
Capabilities:
Get session user name

Disassembly:
jmp 0x140019ef0
push rbx
sub rsp, 0x20
cmp byte [0x14017af70], 0
jne 0x140019f44
lea rbx, [0x14017af70]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140019f3b
mov r9, 0xffffffffffffffff
lea r8, [0x14013a088]
mov edx, 0x101
mov rcx, rbx
call fcn.140001adc
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14017af70]
add rsp, 0x20
pop rbx
ret

Function at 0x140019f70
Capabilities:
Get session user name

Disassembly:
jmp 0x140019f70
push rbx
sub rsp, 0x20
cmp word [0x14017ad60], 0
jne 0x140019fc5
lea rbx, [0x14017ad60]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140019fbc
mov r9, 0xffffffffffffffff
lea r8, [0x14013a080]
mov edx, 0x101
mov rcx, rbx
call fcn.140002ef0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14017ad60]
add rsp, 0x20
pop rbx
ret

Function at 0x14001a240
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001a240
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x140179788]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140006f55
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x250]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1ff
mov rcx, qword [rax]
or rcx, 1
call fcn.140005187
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edx
lea rdx, str.__02i:_02i:_02i:_02i:_03i___5d_
mov dword [rsp + 0x20], r10d
call fcn.140004d90
lea rax, [rsp + 0x50]
dec rax
nop dword [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x14001a300
lea r8, [rsp + 0x250]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14001a320
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140002c3e
add rsp, 0x468
pop rdi
pop rbx
ret
Function at 0x14001b670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14001b670
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140179788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov ebx, 1
call fcn.140004b6a
test rdi, rdi
je 0x14001b72c
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000449e
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001b6e6
bt eax, 0xa
jb 0x14001b6ff
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.140004183
test rax, rax
je 0x14001b712
mov byte [rax], 0
jmp 0x14001b6d0
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400076a3
xor ebx, ebx
test ebx, ebx
je 0x14001b72c
mov rdx, rdi
mov rcx, rsi
call fcn.140006884
test eax, eax
je 0x14001b72c
mov eax, 1
jmp 0x14001b72e
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002c3e
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001b880
Capabilities:
Delete file

Disassembly:
jmp 0x14001b880
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140179788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, r8
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov r8d, 0x104
xor edx, edx
mov ebp, r9d
xor esi, esi
call fcn.140004b6a
test rbx, rbx
je 0x14001b977
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b977
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
dec eax
cmp eax, 0x102
ja 0x14001b92e
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.140004183
test rax, rax
je 0x14001b92e
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14001b92e
lfence
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.1400024aa
test eax, eax
jne 0x14001b92e
mov esi, 1
mov eax, esi
jmp 0x14001b979
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400076a3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14001b973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001b973
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400076a3
mov eax, esi
jmp 0x14001b979
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002c3e
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b9f0
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14001b9f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140179788]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14001ba54
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14001ba5a
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140004b6a
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001bbff
cmp byte [rsi + 0x255], r14b
je 0x14001baa8
cmp dword [rsi + 0x18], 0x400
jb 0x14001baa8
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400052cc
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001bbff
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14001bc05
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x14013a020]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000128f
mov ebx, eax
test eax, eax
jle 0x14001bb7f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14001bb41
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.140006f55
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x8b8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.14000487c
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14001bb83
cmp ebp, 0x800
jae 0x14001bb6f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14013a024]
call fcn.140007b30
mov ebx, eax
test ebx, ebx
jle 0x14001bb83
cmp ebp, 0x800
jae 0x14001bb83
add ebp, ebx
jmp 0x14001bb83
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14001bbc8
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001bbc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
lea rcx, str.CLogger::Write_WriteFile_failed_0x_08X___d___d_
call fcn.1400076a3
cmp dword [rsi + 0x18], 0x186a0
jb 0x14001bc08
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bbf5
cmp qword [rsp + 0x30], 0xa00000
jge 0x14001bbf5
mov dword [rsi + 0x18], r14d
jmp 0x14001bc08
mov rcx, rsi
call fcn.1400053e4
jmp 0x14001bc08
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14001bc1b
test r12b, r12b
je 0x14001bc1b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140002c3e
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001e6c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14001e79f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14001e6f7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14001e7a2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14001e746
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14001e750
test rax, rax
je 0x14001e79f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14001e790
cmp rdx, rax
jb 0x14001e770
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140023ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140023ff0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14002421e
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140024020
test rax, rax
je 0x140024054
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14002421e
cmp r8w, 0x2f
je 0x14002421e
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140024030
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140002248
mov rsi, rax
test rax, rax
je 0x14002414e
mov qword [rsp + 0x50], r14
call fcn.1400024e6
mov r14, rax
test rax, rax
je 0x14002413b
mov rcx, rsi
call fcn.14001e4c0
test eax, eax
je 0x140024124
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x1400240d0
mov r8, rbx
mov rcx, rsi
call fcn.14000365c
test eax, eax
je 0x1400240f8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x1400240c0
jmp 0x140024107
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140022390
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140024132
mov rcx, rsi
call fcn.14001e450
test eax, eax
je 0x140024132
mov rbp, rsi
xor esi, esi
jmp 0x140024132
mov rdx, rsi
mov rcx, r14
call fcn.140022390
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x1400241ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400241f3
mov rcx, rbx
call fcn.14001e320
mov rdi, rax
test rax, rax
je 0x1400241f3
mov ecx, 0x37e4
call fcn.140021c50
test eax, eax
je 0x140024188
xor ecx, ecx
call fcn.140002de2
jmp 0x14002418d
call fcn.1400024e6
mov rbx, rax
test rax, rax
je 0x1400241e1
mov rdx, rdi
mov rcx, rax
call fcn.140022390
mov rbp, rax
test rax, rax
je 0x1400241d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400241ba
test al, 0x50
je 0x1400241d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400241cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1400241f3
xor ecx, ecx
jmp 0x140024200
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140024206
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140025510
Capabilities:
Get common file path

Disassembly:
jmp 0x140025510
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140025572
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140025567
cmp edi, eax
jb 0x140025567
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14002d5f0
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x14002d71a
test r8, r8
je 0x14002d71a
test r9, r9
je 0x14002d71a
mov edx, dword [rcx + 0x800]
mov qword [rsp + 0x40], rbx
xor bl, bl
mov qword [rsp + 0x48], 0
test edx, edx
je 0x14002d64b
sub edx, 1
je 0x14002d6c9
cmp edx, 2
jne 0x14002d6b1
lea rdx, [rcx + 0x400]
mov r9d, 0x101
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002d6a1
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002d6b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rdx, [rcx + 0x400]
mov r9d, 0x101
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002d6a1
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002d6a1
mov bl, 1
jmp 0x14002d6a1
mov rbp, qword [rsp + 0x50]
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002d7d0
Capabilities:
Set registry value

Disassembly:
jmp 0x14002d7d0
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov edi, r9d
mov rsi, r8
mov rdx, rcx
test rbp, rbp
je 0x14002d925
test r8, r8
je 0x14002d925
test r9d, r9d
je 0x14002d925
mov ecx, dword [rcx + 0x800]
xor r8d, r8d
mov qword [rsp + 0x60], rbx
xor bl, bl
mov qword [rsp + 0x68], r8
test ecx, ecx
je 0x14002d82d
sub ecx, 1
je 0x14002d8bc
cmp ecx, 2
jne 0x14002d8a4
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14002d894
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002d8a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14002d894
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14002d894
mov bl, 1
jmp 0x14002d894
mov rbp, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180005724
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor ebx, ebx
mov r12, rcx
mov r14d, 0x3bd
lea rsi, [0x1802525e0]
movabs r15, 0x97b425ed097b425f
mov edi, 0x3d0924
dec edx
je 0x180005779
dec edx
je 0x180005874
jmp 0x180005942
mov dword [rbp - 0x59], 0x6b612925
mov dword [rbp - 0x55], 0x29306674
mov dword [rbp - 0x51], 0x4b687328
mov dword [rbp - 0x4d], 0x516c3f32
mov dword [rbp - 0x49], 0x616e423c
mov dword [rbp - 0x45], 0x45597062
mov word [rbp - 0x41], 0x573c
mov byte [rbp - 0x3f], bl
mov rdx, rdi
mov eax, ebx
lea rcx, [rbp - 0x39]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x72
jb 0x1800057b5
dec rdx
jne 0x1800057af
cmp byte [rbp + 8], 0x41
jne 0x180005874
mov edx, 0x1ba00
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsx ecx, byte [rbp + 0x20]
mov r10, rsi
mov r11, rax
xor ecx, 0x3e5
mov eax, r14d
sub eax, ecx
mov r8d, ebx
movabs rdi, 0x97b425ed097b425f
movsxd r15, eax
mov r9, r11
sub r10, r11
movsxd rcx, r8d
mov rax, rdi
inc r8d
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
imul rcx, r15
mov al, byte [rbp + rcx - 0x59]
xor al, byte [r10 + r9]
mov byte [r9], al
inc r9
cmp r8d, 0x1ba00
jb 0x180005814
mov rdx, r11
call fcn.180005668
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 1]
mov qword [0x1802cc5e0], rax
call qword [0x1802cc5f0]
mov edi, 0x3d0924
movabs r15, 0x97b425ed097b425f
mov dword [rbp - 0x59], 0x6b612925
mov dword [rbp - 0x55], 0x29306674
mov dword [rbp - 0x51], 0x4b687328
mov dword [rbp - 0x4d], 0x516c3f32
mov dword [rbp - 0x49], 0x616e423c
mov dword [rbp - 0x45], 0x45597062
mov word [rbp - 0x41], 0x573c
mov byte [rbp - 0x3f], bl
mov eax, ebx
lea rcx, [rbp - 0x39]
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x72
jb 0x1800058ad
dec rdi
jne 0x1800058a7
cmp byte [rbp + 8], 0x41
jne 0x180005942
lea r9d, [rdi + 4]
mov edx, 0x1ba00
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, rax
movsx eax, byte [rbp + 0x20]
xor eax, 0x3e5
mov r8, r9
sub r14d, eax
sub rsi, r9
movsxd r10, r14d
movsxd rcx, ebx
mov rax, r15
inc ebx
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
imul rcx, r10
mov al, byte [rbp + rcx - 0x59]
xor al, byte [rsi + r8]
mov byte [r8], al
inc r8
cmp ebx, 0x1ba00
jb 0x1800058f3
mov rdx, r9
call fcn.180005668
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 2]
mov qword [0x1802cc5e0], rax
call qword [0x1802cc5f0]
lea r11, [rsp + 0xc0]
mov eax, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180015678
Capabilities:
Extract resource via kernel32 functions

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, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x1800156e0
call fcn.1800405dc
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1800156e0
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x180015702
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.1800e4d90
mov esi, eax
test rdi, rdi
je 0x180015700
test rbx, rbx
je 0x180015700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180017178
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1800e2b88
mov rdi, rax
test rax, rax
je 0x1800171f4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1800171ef
cmp dword [rbx], 0x40
jb 0x1800171ef
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1800171ef
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1800171f8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret