joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011048
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov r12, rdx
mov r14, rcx
mov r13d, 0x30
lea rcx, [rbp - 9]
mov r8d, r13d
xor edx, edx
call fcn.14001fbe0
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, r13d
lea rcx, [rbp - 0x69]
xor edx, edx
call fcn.14001fbe0
xor edi, edi
mov qword [r14 + 0x10], rdi
xor edx, edx
jmp 0x1400111a3
cmp dword [rbp - 0x49], 0x1000
jne 0x140011198
movups xmm0, xmmword [rbp - 0x69]
lea r15, [r14 + 0x18]
mov rbx, qword [r15]
movups xmm1, xmmword [rbp - 0x59]
mov rdx, rbx
movups xmm2, xmmword [rbp - 0x49]
movq rcx, xmm0
mov qword [rbp + 0x67], rcx
mov rax, qword [rbx + 8]
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm2
cmp byte [rax + 0x19], dil
jne 0x140011100
cmp qword [rax + 0x20], rcx
jae 0x1400110f1
mov rax, qword [rax + 0x10]
jmp 0x1400110f7
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dil
je 0x1400110e5
mov rdx, qword [r15]
cmp rbx, rdx
je 0x14001110b
cmp rcx, qword [rbx + 0x20]
jae 0x140011171
mov ecx, 0x58
call fcn.140033484
mov rcx, qword [r15]
mov r8, r13
mov rsi, rax
mov qword [rax], rcx
mov rcx, qword [r15]
mov qword [rax + 8], rcx
lea rcx, [rax + 0x28]
mov rdx, qword [r15]
mov qword [rax + 0x10], rdx
and word [rax + 0x18], 0
mov rdx, qword [rbp + 0x67]
mov qword [rax + 0x20], rdx
xor edx, edx
call fcn.14001fbe0
lea r9, [rsi + 0x20]
mov qword [rsp + 0x20], rsi
mov r8, rbx
lea rdx, [rbp + 0x77]
mov rcx, r15
call fcn.140012494
movups xmm0, xmmword [rbp - 0x39]
mov rbx, qword [rbp + 0x77]
xor edi, edi
movups xmm1, xmmword [rbp - 0x29]
movups xmm2, xmmword [rbp - 0x19]
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm1
movups xmmword [rbx + 0x48], xmm2
test byte [rbp - 0x45], 0x70
je 0x140011198
mov r8, qword [rbp - 0x51]
xor edx, edx
mov ecx, dword [rbp - 5]
mov rax, r8
div rcx
add qword [r14 + 0x10], rax
jmp 0x14001119c
mov r8, qword [rbp - 0x51]
mov rdx, qword [rbp - 0x69]
add rdx, r8
mov r9, r13
lea r8, [rbp - 0x69]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, r13
je 0x1400110a3
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400158b4
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0xe0], 0
mov rbx, rcx
jne 0x14001599b
xor r8d, r8d
mov dword [rcx + 0xe0], 2
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14001599b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x100], rax
test rax, rax
je 0x14001599b
lea rcx, [rbx + 0x68]
mov dword [rsp + 0x28], 4
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400161d8]
mov r9, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x14001599b
mov rax, qword [rbx + 0x58]
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x18], 8
jb 0x14001594c
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rax
mov edx, 0x40080003
and dword [rsp + 0x30], 0
mov eax, 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9d, [rax - 0x3f]
lea r8d, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14001599b
mov rcx, qword [rbx + 0x100]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1400159a3
mov dword [rbx + 0xe0], 1
xor al, al
add rsp, 0x40
pop rbx
ret
mov al, 1
jmp 0x14001599d
Function at 0x140015b3c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
xor eax, eax
mov dword [rbp - 9], 2
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
xor r15d, r15d
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp - 5], r15
mov rbx, rdx
mov qword [rbp + 0x1f], rax
mov rdi, rcx
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], r15
movdqa xmmword [rbp + 0x37], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 5], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x2f]
mov rdx, qword [rbx + 0x48]
mov rcx, rax
mov dword [rsp + 0x30], r15d
mov rsi, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140015c7f
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x37]
mov rdx, qword [rbx + 0x50]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140015c7f
mov r8, qword [rbx + 0x40]
lea r9, [rbp + 0x3f]
mov rdx, qword [rdi + 0x70]
mov rcx, rsi
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140015c7f
mov rcx, qword [rdi + 0x60]
lea rax, [rdi + 0xe8]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 0x50]
mov dword [rbp + 0x6f], r15d
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
test eax, eax
je 0x140015c59
mov eax, r15d
jmp 0x140015c5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test sil, sil
jne 0x140015c6f
cmp eax, 0x3e5
jne 0x140015d01
mov rdx, rbx
mov rcx, rdi
call fcn.1400160cc
jmp 0x140015d03
mov rdx, qword [rbp + 0x2f]
mov edi, 1
test rdx, rdx
je 0x140015caf
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rbp + 0x2f], r15
mov rdx, qword [rbp + 0x37]
test rdx, rdx
je 0x140015cda
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov qword [rbp + 0x37], r15
mov rdx, qword [rbp + 0x3f]
test rdx, rdx
je 0x140015d01
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x140017fd8
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rsi, rdx
mov byte [rbp + 0x28], 0
mov rdi, rcx
lea rdx, [rbp + 0x28]
lea rcx, [0x1400180e4]
mov rbx, r8
call qword [sym.imp.USER32.dll_EnumWindows]
call fcn.1400014bc
mov rcx, rax
test rax, rax
je 0x1400180d7
mov rax, qword [rax]
call qword [rax + 0x18]
mov r9, rbx
lea rdx, str._s_s.dmp
add rax, 0x18
lea rcx, [rbp - 0x10]
mov r8, rsi
mov qword [rbp - 0x10], rax
call fcn.14000ab44
lea rcx, [rbp - 0x10]
call fcn.14000b2a0
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.140018dfc
cmp byte [rdi + 1], 0
je 0x1400180a4
mov r9, rbx
lea rdx, str._s_s_full.dmp
mov r8, rsi
lea rcx, [rbp - 0x10]
call fcn.14000ab44
lea rcx, [rbp - 0x10]
call fcn.14000b2a0
mov rbx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.140006830
test al, al
je 0x1400180a8
mov dl, byte [rdi]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.140018dfc
jmp 0x1400180a8
mov rbx, qword [rbp - 0x10]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400180c2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001880
int3
Function at 0x1400186a8
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x30], 0
mov r14, rdx
mov sil, cl
call fcn.14001a060
call fcn.1400014bc
mov rcx, rax
test sil, sil
je 0x140018739
test rax, rax
je 0x1400188a4
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, str.CocCocCrashReports
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rax
call fcn.14000575c
mov rdx, rax
lea r9, [rbp - 0x20]
mov r8b, 1
mov ecx, 0x26
call fcn.14001944c
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14001872e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp - 0x20]
mov ebx, 1
jmp 0x14001879e
test rcx, rcx
je 0x1400188a4
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, str.CocCocCrashReports
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x48], rax
call fcn.14000575c
mov rdx, rax
lea r9, [rbp + 0x48]
mov r8b, 1
mov ecx, 0x1c
call fcn.14001944c
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140018795
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp + 0x48]
mov ebx, 2
lea rcx, [rbp + 0x40]
call fcn.1400057e8
test bl, 2
je 0x1400187cd
mov rdx, qword [rbp + 0x48]
and ebx, 0xfffffffd
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400187cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x1400187f0
mov rdx, qword [rbp - 0x20]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400187f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x14001881b
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140018825
lea rcx, [rbp + 0x40]
call fcn.14001847c
test eax, eax
jns 0x14001881b
mov rbx, qword [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001881f
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018869
lea rcx, [rbp - 8]
call fcn.14000626c
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400018a4
mov rdx, qword [rbp - 8]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140018858
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140018869
mov esi, 0x8004fffc
jmp 0x14001887c
test r14, r14
je 0x14001887a
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.1400018a4
xor esi, esi
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140018897
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001880
int3
Function at 0x140018a28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbp, rcx
lea rdx, str.ClientCustomData
lea rcx, [rsp + 0x30]
call fcn.14000575c
call fcn.1400014bc
xor edi, edi
mov rcx, rax
test rax, rax
je 0x140018b93
mov rax, qword [rax]
call qword [rax + 0x18]
mov r8, qword [rsp + 0x30]
lea rdx, str.__s__r_n
add rax, 0x18
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
call fcn.14000ab8c
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140018aef
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000ab8c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x140018acf
mov rax, qword [rbx + 8]
jmp 0x140018ac4
cmp rbx, qword [rax + 0x10]
jne 0x140018aca
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x140018ab7
mov rbx, rax
jmp 0x140018aea
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x140018aea
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x140018adb
cmp rbx, qword [rsi]
jne 0x140018a8e
mov rbx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rdi
mov r8d, dword [rbx - 0x10]
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140018b40
call fcn.14000ba40
lea rdx, [rbx - 0x18]
mov esi, eax
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140018b5f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140018b5f
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140018b5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov esi, edi
mov rdx, qword [rsp + 0x30]
mov ecx, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140018b7f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x60]
test esi, esi
cmovs edi, esi
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001880
int3
Function at 0x14001a6d0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.14001fbe0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
test eax, eax
je 0x14001a73d
lea rdx, str..coccoc.com
lea rcx, [rsp + 0x30]
call fcn.140006b28
test al, al
je 0x14001a73d
mov al, 1
jmp 0x14001a783
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], rbx
mov edx, 0x64
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov rdi, qword [rsp + 0x28]
test eax, eax
jne 0x14001a778
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001a778
lea rdx, str.coccoc
call fcn.14002f1c4
test eax, eax
jne 0x14001a778
mov bl, 1
mov rcx, rdi
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001ec90
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001b338
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov bl, dl
mov rdi, rcx
call fcn.1400014bc
mov rcx, rax
test rax, rax
je 0x14001b5b6
mov rax, qword [rax]
call qword [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
add rax, 0x18
xor ecx, ecx
mov qword [rdi], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov edx, 0x8023
test bl, bl
jne 0x14001b3a5
mov edx, 0x801a
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001b571
mov ebx, 0x104
lea r8, str.CocCoc
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.14002b410
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea r8, [0x14004ac10]
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.14002b410
lea rcx, [rsp + 0x48]
call fcn.1400066f8
lea rcx, [rbp - 0x70]
call fcn.140006830
test al, al
je 0x14001b48d
xor r8d, r8d
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006774
xor edx, edx
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 0x28]
call fcn.14001fbe0
and dword [rsp + 0x34], 0
xor ebx, ebx
mov byte [rsp + 0x30], 0
jmp 0x14001b457
test ecx, ecx
je 0x14001b473
mov dl, byte [rsp + 0x30]
cmp dl, 0xa
je 0x14001b473
cmp ebx, 0x26
jae 0x14001b457
cmp dl, 0xd
je 0x14001b457
mov byte [rsp + rbx + 0x68], dl
inc ebx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140006940
mov ecx, dword [rsp + 0x34]
test eax, eax
jns 0x14001b43a
mov byte [rsp + rbx + 0x68], 0
test ecx, ecx
jne 0x14001b480
test ebx, ebx
je 0x14001b48d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.1400071e0
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
jne 0x14001b567
mov rcx, rdi
call fcn.1400051e8
test eax, eax
jne 0x14001b549
lea rdx, [0x14004ac0c]
mov rcx, rdi
call fcn.14001b5c4
lea rdx, [0x14004ac08]
mov rcx, rdi
call fcn.14001b5c4
and dword [rsp + 0x20], 0
lea rdx, [rbp - 0x70]
mov r8b, 1
lea rcx, [rsp + 0x48]
call fcn.140006774
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140006bbc
mov rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x38]
and dword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8d, dword [rbx - 0x10]
call fcn.14000698c
test eax, eax
je 0x14001b52d
lea rcx, [0x14004ac7c]
call fcn.14002bd6c
mov r8d, eax
lea rdx, [0x14004ac7c]
mov rcx, rdi
call fcn.140005978
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b567
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001b567
lea rcx, str.00000000_0000_0000_0000_000000000000
call fcn.14002bd6c
mov r8d, eax
lea rdx, str.00000000_0000_0000_0000_000000000000
mov rcx, rdi
call fcn.140001a24
lea rcx, [rsp + 0x48]
call fcn.14000673c
lea rdx, [0x14004ac0c]
mov rcx, rdi
call fcn.14001b5c4
lea rdx, [0x14004ac08]
mov rcx, rdi
call fcn.14001b5c4
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14001ec90
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001880
int3
Function at 0x14001b854
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test dl, dl
je 0x14001b86f
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001b875
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x140047610]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001b8a2
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001b889
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001b8ca
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001b8a8
lea rdx, [0x140045b28]
jmp 0x14001b8db
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x140047612]
add rdx, rax
mov rcx, rbx
call fcn.14000575c
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d138
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
lea rcx, [0x140050f68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rsi + 0x28]
lea rcx, [0x140050f68]
and qword [rsi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14001d241
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001d19d
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001cec0
test eax, eax
jne 0x14001d241
mov rdx, qword [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.1400070f4
mov rbx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov rcx, qword [rdi]
lea r9, [rbp + 0x40]
and qword [rbp + 0x48], 0
mov esi, 8
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x48]
mov dword [rbp + 0x38], esi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001d1f3
cmp dword [rbp + 0x40], 3
jne 0x14001d1f3
test eax, eax
jne 0x14001d1f3
cmp dword [rbp + 0x38], esi
je 0x14001d201
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.14001fbe0
mov rcx, qword [rdi]
lea rax, [rbp + 0x48]
add qword [rbp + 0x48], r14
mov r9d, 3
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d241
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001d3e8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x140050f68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x28]
lea rcx, [0x140050f68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14001d49a
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001d446
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001cec0
test eax, eax
jne 0x14001d49a
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.1400070f4
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov r9d, 3
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d49a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14001d4ac
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
lea rcx, [0x140050f68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rsi + 0x28]
lea rcx, [0x140050f68]
or dword [rsi + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x58], ebx
cmp ebx, 0xffffffff
je 0x14001d563
lea rbx, [rdi + 0x80]
cmp qword [rbx], 0
jne 0x14001d50f
mov rdx, qword [rdi + 0x20]
lea r8, str.Booleans
mov rcx, rbx
call fcn.14001cec0
test eax, eax
jne 0x14001d563
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.1400070f4
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
mov r9d, 3
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d563
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001e900
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov ebx, dword [rcx + 0x38]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
lea r8d, [rbx + 0x50]
xor eax, eax
mov qword [rbp - 0x38], rbx
mov qword [rsp + 0x68], rax
mov rcx, rsi
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x40]
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14001ea57
cmp dword [rsp + 0x40], 2
jne 0x14001ea57
cmp dword [rsp + 0x44], ebx
je 0x14001ea57
cmp qword [rsp + 0x78], rbx
je 0x14001ea57
cmp qword [rbp - 0x80], rbx
je 0x14001ea57
cmp qword [rbp - 0x78], rbx
je 0x14001ea57
xor eax, eax
mov qword [rbp - 0x1c], rbx
xorps xmm0, xmm0
mov qword [rbp], rax
lea r9, [rbp + 0x40]
movdqa xmmword [rbp - 0x10], xmm0
lea r8d, [rbx + 0x50]
mov qword [rbp + 8], rax
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x10], rax
mov rcx, rsi
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x18], rbx
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001ea57
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x40], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rdi + 0x48], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rdi + 0x50], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x58], ecx
jmp 0x14001ea59
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret