joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014c58
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 r15d, r15d
mov dword [rbp - 9], 2
xorps xmm0, xmm0
mov dword [rbp - 1], r15d
xorps xmm1, xmm1
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov rbx, rdx
movups xmmword [rbp + 0x1f], xmm1
mov qword [rbp + 0x2f], r15
mov rdi, rcx
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 0x140014d98
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 0x140014d98
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 0x140014d98
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 0x140014d72
mov eax, r15d
jmp 0x140014d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
test sil, sil
jne 0x140014d88
cmp eax, 0x3e5
jne 0x140014e1a
mov rdx, rbx
mov rcx, rdi
call fcn.1400151e4
jmp 0x140014e1c
mov rdx, qword [rbp + 0x2f]
mov edi, 1
test rdx, rdx
je 0x140014dc8
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 0x140014df3
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 0x140014e1a
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 0x14001750c
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 rbx, rcx
lea rdx, [rbp + 0x28]
lea rcx, [0x140017614]
mov rdi, r8
call qword [sym.imp.USER32.dll_EnumWindows]
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x140017606
mov rax, qword [rax]
call qword [rax + 0x18]
mov r9, rdi
lea rdx, str._s_s.dmp
add rax, 0x18
lea rcx, [rbp - 0x10]
mov r8, rsi
mov qword [rbp - 0x10], rax
call fcn.14000b708
lea rcx, [rbp - 0x10]
call fcn.14000befc
mov dl, byte [rbx]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.1400182c8
cmp byte [rbx + 1], 0
je 0x1400175d3
mov r9, rdi
lea rdx, str._s_s_full.dmp
mov r8, rsi
lea rcx, [rbp - 0x10]
call fcn.14000b708
lea rcx, [rbp - 0x10]
call fcn.14000befc
mov rcx, qword [rbp - 0x10]
call fcn.1400069c4
test al, al
je 0x1400175d3
mov dl, byte [rbx]
lea r8, [rbp - 0x10]
mov cl, byte [rbp + 0x28]
xor r9d, r9d
call fcn.1400182c8
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400175f1
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.140001834
int3
Function at 0x140017bc4
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x30], 0
mov rsi, rdx
mov dil, cl
call fcn.140019704
or r15d, 0xffffffff
test dil, dil
je 0x140017bf9
lea rdx, [rbp - 0x18]
call fcn.14001a4b8
lea ebx, [r15 + 2]
jmp 0x140017c65
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x140017d7d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, str.BraveSoftwareCrashReports
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x48], rax
call fcn.140005938
mov rdx, rax
lea r9, [rbp + 0x48]
mov r8b, 1
mov ecx, 0x1c
call fcn.140018c10
mov rdx, qword [rbp - 0x20]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140017c5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, [rbp + 0x48]
mov ebx, 2
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.140001a9c
add rax, 0x18
mov qword [rbp + 0x40], rax
test bl, 2
je 0x140017ca1
mov rdx, qword [rbp + 0x48]
and ebx, 0xfffffffd
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140017ca1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x140017cc6
mov rdx, qword [rbp - 0x18]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140017cc6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
je 0x140017cec
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
je 0x140017cec
lea rcx, [rbp + 0x40]
call fcn.140017994
test eax, eax
jns 0x140017cec
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x140017d2b
lea rcx, [rbp - 0x10]
call fcn.140006530
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140001858
mov rdx, qword [rbp - 0x10]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140017d2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x140017d3c
mov ebx, 0x8004fffc
jmp 0x140017d4f
test rsi, rsi
je 0x140017d4d
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.140001858
xor ebx, ebx
mov rdx, qword [rbp + 0x40]
mov ecx, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ecx
add ecx, r15d
test ecx, ecx
jg 0x140017d70
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, ebx
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001834
int3
Function at 0x140017f04
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.140005938
call fcn.1400014b8
xor edi, edi
mov rcx, rax
test rax, rax
je 0x14001806f
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.14000b750
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140017fcb
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000b750
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x140017fab
mov rax, qword [rbx + 8]
jmp 0x140017fa0
cmp rbx, qword [rax + 0x10]
jne 0x140017fa6
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x140017f93
mov rbx, rax
jmp 0x140017fc6
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x140017fc6
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x140017fb7
cmp rbx, qword [rsi]
jne 0x140017f6a
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 0x14001801c
call fcn.14000c0dc
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 0x14001803b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x14001803b
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140018039
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 0x14001805b
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.140001834
int3
Function at 0x14001b0ec
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.140021320
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x30]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
test eax, eax
je 0x14001b159
lea rdx, str..brave.com
lea rcx, [rsp + 0x30]
call fcn.140006c84
test al, al
je 0x14001b159
mov al, 1
jmp 0x14001b19f
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 0x14001b194
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001b194
lea rdx, str.brave
call fcn.14003413c
test eax, eax
jne 0x14001b194
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.140020490
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001d070
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov bl, cl
test cl, cl
je 0x14001d09a
call fcn.14000bb48
test al, al
je 0x14001d188
and qword [rbp - 0x28], 0
lea rsi, [0x14004ce38]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rsi
mov cl, bl
call fcn.14001c304
mov rax, qword [rbp - 0x30]
lea rcx, [0x14000a1bc]
cmp qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
jne 0x14001d0d2
or edx, 0xffffffff
call qword [rax + 0x18]
jmp 0x14001d0d5
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea r14, [0x14004bec8]
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x10], 0x200
call fcn.140019704
lea rax, str.HKCUSoftwareBraveSoftwareUpdate_
test bl, bl
lea rdx, str.HKLMSoftwareBraveSoftwareUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000a564
test eax, eax
js 0x14001d14b
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004f760]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x18]
lea rdx, str.old_uid
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004f760]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x20], r14
test rcx, rcx
je 0x14001d16a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x18], 0
mov dword [rbp - 0x10], 0x200
mov rax, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x30], rsi
test rcx, rcx
je 0x14001d188
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret

Function at 0x14001d2b4
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 0x14001d2cf
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001d2d5
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x14004a7d0]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001d302
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001d2e9
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001d32a
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001d308
lea rdx, [0x140048b78]
jmp 0x14001d33b
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x14004a7d2]
add rdx, rax
mov rcx, rbx
call fcn.140005938
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ea10
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, [0x140055e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [rsi + 0x28]
lea rcx, [0x140055e48]
and qword [rsi + 0x28], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x14001eb15
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001ea75
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001e798
test eax, eax
jne 0x14001eb15
mov rdx, qword [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.14000727c
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 0x14001eac7
cmp dword [rbp + 0x40], 3
jne 0x14001eac7
cmp dword [rbp + 0x38], esi
je 0x14001ead5
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.140021320
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 0x14001eb15
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 0x14001ecb8
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, [0x140055e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rsi + 0x28]
lea rcx, [0x140055e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x14001ed6a
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001ed16
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001e798
test eax, eax
jne 0x14001ed6a
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.14000727c
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 0x14001ed6a
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 0x14001ed7c
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, [0x140055e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rsi + 0x28]
lea rcx, [0x140055e48]
or dword [rsi + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x58], ebx
cmp ebx, 0xffffffff
je 0x14001ee33
lea rbx, [rdi + 0x80]
cmp qword [rbx], 0
jne 0x14001eddf
mov rdx, qword [rdi + 0x20]
lea r8, str.Booleans
mov rcx, rbx
call fcn.14001e798
test eax, eax
jne 0x14001ee33
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
call fcn.14000727c
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 0x14001ee33
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 0x140020108
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]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov rcx, rsi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
xorps xmm1, xmm1
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
movups xmmword [rsp + 0x68], xmm1
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 0x14002025a
cmp dword [rsp + 0x40], 2
jne 0x14002025a
cmp dword [rsp + 0x44], ebx
je 0x14002025a
cmp qword [rsp + 0x78], rbx
je 0x14002025a
cmp qword [rbp - 0x80], rbx
je 0x14002025a
cmp qword [rbp - 0x78], rbx
je 0x14002025a
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
xor eax, eax
movaps xmmword [rbp], xmm1
lea r9, [rbp + 0x40]
mov qword [rbp + 0x10], rax
lea r8d, [rbx + 0x50]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002025a
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 0x14002025c
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
Function at 0x140026f3c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140026d9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026d9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026d9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026d9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026d9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140026d9b
cmp dword [rcx + 0xf8], 0
je 0x140026d9b
mov ecx, ebx
call fcn.140026e58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140026c28
nop
cmp dword [rbp + 0x20], 0
je 0x140026de9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026df4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026d2c
Function at 0x14002f1c8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002f24f
mov rsi, rbx
cmp word [rax], bp
je 0x14002f20e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002f1f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002f1f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030b3c
mov rdi, rax
test rax, rax
je 0x14002f23c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400214e0
mov rbp, rdi
xor ecx, ecx
call fcn.14002d58c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e930
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x268]
xor esi, esi
movzx edi, dl
test rcx, rcx
je 0x14000e975
mov qword [rbx + 0x268], rsi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x14000e98e
mov qword [rbx + 0x260], rsi
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000e9a1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 8], rsi
test dil, dil
je 0x14000ea40
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x80], si
call sub.MSVCR110.dll_memset
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR110.dll__time64]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCR110.dll__localtime64_s]
mov eax, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x6c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
lea r8, [rbx + 0x50]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
lea rdx, [0x1400d8970]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
add r9d, 0x76c
mov dword [rsp + 0x20], eax
call fcn.1400062a0
lea rdx, [rsp + 0x80]
lea rcx, [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400bb310
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret