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

Disassembly:
jmp 0x1400186e0
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.140002022
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, [0x1400164a0]
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 0x14001876e
mov edx, 0x926
lea ecx, [rax + 7]
call fcn.140002022
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 0x1400187ba
cmp eax, 1
je 0x1400187db
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 0x140018794
call fcn.14000329c
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x14013a9ac]
jp 0x1400187f3
jne 0x1400187f3
mov ebx, 1
mov edx, 0x925
jmp 0x1400187f8
call fcn.14000329c
mov edx, 0x61a8
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400187ff
mov edx, 0x926
mov ecx, ebx
call fcn.140002022
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 0x140019ee0
Capabilities:
Get session user name

Disassembly:
jmp 0x140019ee0
push rbx
sub rsp, 0x20
cmp byte [0x14017bf70], 0
jne 0x140019f34
lea rbx, [0x14017bf70]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140019f2b
mov r9, 0xffffffffffffffff
lea r8, [0x14013b088]
mov edx, 0x101
mov rcx, rbx
call fcn.140001ae1
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14017bf70]
add rsp, 0x20
pop rbx
ret

Function at 0x140019f60
Capabilities:
Get session user name

Disassembly:
jmp 0x140019f60
push rbx
sub rsp, 0x20
cmp word [0x14017bd60], 0
jne 0x140019fb5
lea rbx, [0x14017bd60]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140019fac
mov r9, 0xffffffffffffffff
lea r8, [0x14013b080]
mov edx, 0x101
mov rcx, rbx
call fcn.140002ef5
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14017bd60]
add rsp, 0x20
pop rbx
ret

Function at 0x14001a230
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001a230
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 [0x14017a788]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140006f50
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.140005182
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 0x14001a2f0
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 0x14001a310
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140002c43
add rsp, 0x468
pop rdi
pop rbx
ret
Function at 0x14001b660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14001b660
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14017a788]
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 0x14001b71c
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1400044a3
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001b6d6
bt eax, 0xa
jb 0x14001b6ef
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.140004188
test rax, rax
je 0x14001b702
mov byte [rax], 0
jmp 0x14001b6c0
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.14000769e
xor ebx, ebx
test ebx, ebx
je 0x14001b71c
mov rdx, rdi
mov rcx, rsi
call fcn.14000687f
test eax, eax
je 0x14001b71c
mov eax, 1
jmp 0x14001b71e
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002c43
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001b870
Capabilities:
Delete file

Disassembly:
jmp 0x14001b870
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14017a788]
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 0x14001b967
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b967
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
dec eax
cmp eax, 0x102
ja 0x14001b91e
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.140004188
test rax, rax
je 0x14001b91e
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14001b91e
lfence
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.1400024af
test eax, eax
jne 0x14001b91e
mov esi, 1
mov eax, esi
jmp 0x14001b969
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.14000769e
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14001b963
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001b963
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.14000769e
mov eax, esi
jmp 0x14001b969
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002c43
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b9e0
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14001b9e0
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 [0x14017a788]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14001ba44
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14001ba4a
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 0x14001bbef
cmp byte [rsi + 0x255], r14b
je 0x14001ba98
cmp dword [rsi + 0x18], 0x400
jb 0x14001ba98
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400052c7
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001bbef
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14001bbf5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x14013b020]
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 0x14001bb6f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14001bb31
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.140006f50
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.140004881
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14001bb73
cmp ebp, 0x800
jae 0x14001bb5f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14013b024]
call fcn.140007b26
mov ebx, eax
test ebx, ebx
jle 0x14001bb73
cmp ebp, 0x800
jae 0x14001bb73
add ebp, ebx
jmp 0x14001bb73
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14001bbb8
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 0x14001bbb8
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.14000769e
cmp dword [rsi + 0x18], 0x186a0
jb 0x14001bbf8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bbe5
cmp qword [rsp + 0x30], 0xa00000
jge 0x14001bbe5
mov dword [rsi + 0x18], r14d
jmp 0x14001bbf8
mov rcx, rsi
call fcn.1400053df
jmp 0x14001bbf8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14001bc0b
test r12b, r12b
je 0x14001bc0b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140002c43
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001e6b0
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 0x14001e78f
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 0x14001e6e7
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 0x14001e792
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 0x14001e736
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 0x14001e740
test rax, rax
je 0x14001e78f
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 0x14001e780
cmp rdx, rax
jb 0x14001e760
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 0x140024b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140024b40
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 0x140024d6e
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140024b70
test rax, rax
je 0x140024ba4
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140024d6e
cmp r8w, 0x2f
je 0x140024d6e
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140024b80
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14000224d
mov rsi, rax
test rax, rax
je 0x140024c9e
mov qword [rsp + 0x50], r14
call fcn.1400024eb
mov r14, rax
test rax, rax
je 0x140024c8b
mov rcx, rsi
call fcn.14001e4b0
test eax, eax
je 0x140024c74
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 0x140024c20
mov r8, rbx
mov rcx, rsi
call fcn.140003661
test eax, eax
je 0x140024c48
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140024c10
jmp 0x140024c57
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140022d50
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140024c82
mov rcx, rsi
call fcn.14001e440
test eax, eax
je 0x140024c82
mov rbp, rsi
xor esi, esi
jmp 0x140024c82
mov rdx, rsi
mov rcx, r14
call fcn.140022d50
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 0x140024d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140024d43
mov rcx, rbx
call fcn.14001e310
mov rdi, rax
test rax, rax
je 0x140024d43
mov ecx, 0x37e4
call fcn.140021c40
test eax, eax
je 0x140024cd8
xor ecx, ecx
call fcn.140002de7
jmp 0x140024cdd
call fcn.1400024eb
mov rbx, rax
test rax, rax
je 0x140024d31
mov rdx, rdi
mov rcx, rax
call fcn.140022d50
mov rbp, rax
test rax, rax
je 0x140024d28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024d0a
test al, 0x50
je 0x140024d28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140024d1d
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 0x140024d43
xor ecx, ecx
jmp 0x140024d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140024d56
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 0x140026060
Capabilities:
Get common file path

Disassembly:
jmp 0x140026060
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 0x1400260c2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400260b7
cmp edi, eax
jb 0x1400260b7
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 0x14002e650
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14002e650
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 0x14002e77a
test r8, r8
je 0x14002e77a
test r9, r9
je 0x14002e77a
mov edx, dword [rcx + 0x800]
mov qword [rsp + 0x40], rbx
xor bl, bl
mov qword [rsp + 0x48], 0
test edx, edx
je 0x14002e6ab
sub edx, 1
je 0x14002e729
cmp edx, 2
jne 0x14002e711
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 0x14002e701
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 0x14002e711
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 0x14002e701
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 0x14002e701
mov bl, 1
jmp 0x14002e701
mov rbp, qword [rsp + 0x50]
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002e830
Capabilities:
Set registry value

Disassembly:
jmp 0x14002e830
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 0x14002e985
test r8, r8
je 0x14002e985
test r9d, r9d
je 0x14002e985
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 0x14002e88d
sub ecx, 1
je 0x14002e91c
cmp ecx, 2
jne 0x14002e904
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 0x14002e8f4
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 0x14002e904
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 0x14002e8f4
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 0x14002e8f4
mov bl, 1
jmp 0x14002e8f4
mov rbp, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x4154a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41562b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432a60
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415505
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415514
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415533
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415543
cmp rbx, 0x1000
jae 0x41550b
jmp 0x4155ad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415555
xor edx, edx
jmp 0x4155a4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432a60
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x415539
jmp 0x415528
call fcn.004630e0
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436f00
lea rax, [0x004d4271]
mov ebx, 0x18
nop dword [rax]
call fcn.00437780
mov rax, qword [rsp + 0x38]
call fcn.004374c0
lea rax, [0x004d477e]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437780
mov rax, qword [rsp + 0x30]
call fcn.004374c0
call fcn.00437140
call fcn.00436f60
lea rax, [0x004d68a8]
mov ebx, 0x21
call fcn.00435560
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045fa00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004154a0
Function at 0x415660
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415886
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00432ae0
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4156d3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4156e2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415705
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415715
cmp rbx, 0x1000
jae 0x4156d9
nop
jmp 0x415798
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41572d
xor esi, esi
jmp 0x41578a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00432ae0
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41570b
jmp 0x4156f6
call fcn.004630e0
xorps xmm15, xmm15
mov r14, qword [0x00fb02d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415820
nop dword [rax + rax]
call fcn.00436f00
lea rax, [0x004d4797]
mov ebx, 0x19
call fcn.00437780
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.004374c0
lea rax, [0x004d477e]
mov ebx, 0x19
call fcn.00437780
mov eax, dword [rsp + 0x34]
call fcn.004374c0
nop
call fcn.00437140
call fcn.00436f60
lea rax, [0x004d122f]
mov ebx, 0xd
call fcn.00435560
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4157c0
call fcn.00436f00
lea rax, [0x004d4797]
mov ebx, 0x19
call fcn.00437780
mov rax, qword [rsp + 0x38]
call fcn.004374c0
lea rax, [0x004d477e]
mov ebx, 0x19
call fcn.00437780
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.004374c0
call fcn.00437140
call fcn.00436f60
lea rax, [0x004d6193]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00435560
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045fa00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00415660