joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018190
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.140019cd0
or r15d, 0xffffffff
test dil, dil
je 0x1400181c5
lea rdx, [rbp - 0x18]
call fcn.14001aa84
lea ebx, [r15 + 2]
jmp 0x140018231
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x140018349
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.1400191dc
mov rdx, qword [rbp - 0x20]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140018228
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 0x14001826d
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 0x14001826d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bl, 1
je 0x140018292
mov rdx, qword [rbp - 0x18]
mov eax, r15d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140018292
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
je 0x1400182b8
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
je 0x1400182b8
lea rcx, [rbp + 0x40]
call fcn.140017f60
test eax, eax
jns 0x1400182b8
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x1400182f7
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 0x1400182f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x140018308
mov ebx, 0x8004fffc
jmp 0x14001831b
test rsi, rsi
je 0x140018319
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 0x14001833c
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 0x1400184d0
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 0x14001863b
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.14000c07c
mov rax, qword [rsi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140018597
mov r9, qword [rbx + 0x28]
lea rdx, str._s_s_r_n
mov r8, qword [rbx + 0x20]
lea rcx, [rsp + 0x78]
call fcn.14000c07c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], dil
je 0x140018577
mov rax, qword [rbx + 8]
jmp 0x14001856c
cmp rbx, qword [rax + 0x10]
jne 0x140018572
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], dil
je 0x14001855f
mov rbx, rax
jmp 0x140018592
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], dil
jne 0x140018592
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], dil
je 0x140018583
cmp rbx, qword [rsi]
jne 0x140018536
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 0x1400185e8
call fcn.14000ca08
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 0x140018607
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140018607
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140018605
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 0x140018627
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 0x14001b6b8
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.1400218f0
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 0x14001b725
lea rdx, str..brave.com
lea rcx, [rsp + 0x30]
call fcn.140006c84
test al, al
je 0x14001b725
mov al, 1
jmp 0x14001b76b
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 0x14001b760
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001b760
lea rdx, [0x14004e588]
call fcn.14003470c
test eax, eax
jne 0x14001b760
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.140020a60
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x14001d63c
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 0x14001d666
call fcn.14000c474
test al, al
je 0x14001d754
and qword [rbp - 0x28], 0
lea rsi, [0x14004ceb0]
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x30], rsi
mov cl, bl
call fcn.14001c8d0
mov rax, qword [rbp - 0x30]
lea rcx, [0x14000aae8]
cmp qword [rax + 8], rcx
lea rcx, [rbp - 0x30]
jne 0x14001d69e
or edx, 0xffffffff
call qword [rax + 0x18]
jmp 0x14001d6a1
call qword [rax + 8]
and qword [rbp - 0x18], 0
lea r14, [0x14004bee8]
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x10], 0x200
call fcn.140019cd0
lea rax, str.HKCUSoftwareBraveSoftwareUpdate_
test bl, bl
lea rdx, str.HKLMSoftwareBraveSoftwareUpdate_
mov r8d, 0xf003f
cmove rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000ae90
test eax, eax
js 0x14001d717
mov rcx, qword [rbp - 0x18]
lea rdx, [0x14004f770]
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, [0x14004f770]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x20], r14
test rcx, rcx
je 0x14001d736
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 0x14001d754
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 0x14001d880
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 0x14001d89b
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x14001d8a1
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
lea r10, [0x14004a800]
movzx edx, ax
mov r8, rdi
mov eax, ecx
cmp dx, ax
je 0x14001d8ce
inc r8
imul rax, r8, 0x1a
movzx eax, word [rax + r10]
test ax, ax
jne 0x14001d8b5
movzx edx, cx
mov r9, rdi
mov r8d, edi
cmp cx, dx
je 0x14001d8f6
inc r9
inc r8d
imul rax, r9, 0x1a
movzx ecx, word [rax + r10]
test cx, cx
jne 0x14001d8d4
lea rdx, [0x140048b78]
jmp 0x14001d907
movsxd rax, r8d
imul rdx, rax, 0x1a
lea rax, [0x14004a802]
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 0x14001efdc
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 0x14001f0e1
lea rdi, [rbx + 0x38]
cmp qword [rdi], 0
jne 0x14001f041
mov rdx, qword [rbx + 0x20]
lea r8, str.Counts
mov rcx, rdi
call fcn.14001ed64
test eax, eax
jne 0x14001f0e1
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 0x14001f093
cmp dword [rbp + 0x40], 3
jne 0x14001f093
cmp dword [rbp + 0x38], esi
je 0x14001f0a1
mov r8, rsi
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.1400218f0
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 0x14001f0e1
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 0x14001f284
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 0x14001f336
lea rbx, [rdi + 0x68]
cmp qword [rbx], 0
jne 0x14001f2e2
mov rdx, qword [rdi + 0x20]
lea r8, str.Integers
mov rcx, rbx
call fcn.14001ed64
test eax, eax
jne 0x14001f336
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 0x14001f336
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 0x14001f348
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 0x14001f3ff
lea rbx, [rdi + 0x80]
cmp qword [rbx], 0
jne 0x14001f3ab
mov rdx, qword [rdi + 0x20]
lea r8, str.Booleans
mov rcx, rbx
call fcn.14001ed64
test eax, eax
jne 0x14001f3ff
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 0x14001f3ff
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 0x1400206d4
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 0x140020826
cmp dword [rsp + 0x40], 2
jne 0x140020826
cmp dword [rsp + 0x44], ebx
je 0x140020826
cmp qword [rsp + 0x78], rbx
je 0x140020826
cmp qword [rbp - 0x80], rbx
je 0x140020826
cmp qword [rbp - 0x78], rbx
je 0x140020826
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 0x140020826
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 0x140020828
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 0x14002750c
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 0x14002736b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002736b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002736b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002736b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002736b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002736b
cmp dword [rcx + 0xf8], 0
je 0x14002736b
mov ecx, ebx
call fcn.140027428
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.1400271f8
nop
cmp dword [rbp + 0x20], 0
je 0x1400273b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400273c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400272fc
Function at 0x14002f798
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 0x14002f81f
mov rsi, rbx
cmp word [rax], bp
je 0x14002f7de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002f7c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002f7c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003110c
mov rdi, rax
test rax, rax
je 0x14002f80c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021ab0
mov rbp, rdi
xor ecx, ecx
call fcn.14002db5c
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 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400026b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edi, r8d
mov r15, rcx
mov rbx, rdx
mov rbp, r9
shr edi, 3
mov dword [rsp + 0x3c], 8
je 0x140002738
mov r12, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
lea r14d, [rdi - 1]
xor esi, esi
mov r8d, 8
lea r13, [rsp + 0x3c]
nop dword [rax]
mov rdx, r15
mov rcx, rbx
call sub.msvcrt.dll_memcpy
cmp r14d, esi
mov qword [rsp + 0x20], rbx
mov rcx, rbp
sete r8b
mov qword [rsp + 0x28], r13
xor edx, edx
add esi, 1
movzx r8d, r8b
mov r9d, 0
call r12
mov r8d, dword [rsp + 0x3c]
add r15, r8
add rbx, r8
cmp edi, esi
jne 0x1400026f8
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002750
Capabilities:
Allocate or change rwx memory
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
call fcn.140001500
mov byte [rbp - 1], 0
lea rcx, [rbp - 0x28]
xor r8d, r8d
sub rsp, 0x140
xor edx, edx
mov r9d, 0x18
movabs rax, 0x776f656d776f656d
mov qword [rbp - 9], rax
lea rsi, [rsp + 0x30]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x800c
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp - 9]
xor r9d, r9d
mov r8d, 9
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rax, [rbp - 0x20]
xor r9d, r9d
mov edx, 0x6601
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rbp - 0x28]
mov rbx, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor edx, edx
call rbx
mov r9, qword [rbp - 0x20]
mov r8d, 0x13b
mov rdx, rsi
lea rcx, [0x140003080]
call fcn.1400026b0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x28]
xor edx, edx
call rbx
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 0x13b
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rsi
mov r8d, 0x13b
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
mov rsp, rbp
pop rbx
pop rsi
pop rbp
ret
Function at 0x140001060
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x80
cmp qword [rcx], 0
mov rsi, rdx
mov rbx, rcx
jne 0x1400010b0
add rcx, 0x78
lea rdx, [0x1400233f0]
call fcn.140002ca0
mov qword [rbx], rax
test rax, rax
jne 0x1400010b0
lea rcx, str.Cannot_open_archive_file_n
call fcn.140001de0
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
mov ecx, dword [rsi + 4]
mov qword [rsp + 0x90], rbp
call sub.WS2_32.dll_ntohl
add eax, dword [rbx + 8]
xor r8d, r8d
mov rcx, qword [rbx]
mov edx, eax
call fcn.14000b0b4
mov ecx, dword [rsi + 8]
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000aa0c
mov rbp, rax
test rax, rax
jne 0x1400010fa
lea rcx, str.Could_not_allocate_read_buffer_n
call fcn.140001de0
xor eax, eax
jmp 0x14000124c
mov ecx, dword [rsi + 8]
call sub.WS2_32.dll_ntohl
mov r9, qword [rbx]
mov r8d, 1
mov edx, eax
mov rcx, rbp
call fcn.14000ade4
cmp rax, 1
jae 0x140001136
lea rcx, str.Could_not_read_from_file_n
call fcn.140001de0
mov rcx, rbp
call fcn.14000a9f8
xor eax, eax
jmp 0x14000124c
mov qword [rsp + 0xa0], r14
xor r14d, r14d
cmp byte [rsi + 0x10], 1
jne 0x140001231
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x98], rdi
call sub.WS2_32.dll_ntohl
mov ecx, eax
call fcn.14000aa0c
mov rdi, rax
test rax, rax
jne 0x14000117b
lea rcx, str.Error_allocating_decompression_buffer_n
call fcn.140001de0
jmp 0x140001202
mov ecx, dword [rsi + 8]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], rbp
call sub.WS2_32.dll_ntohl
mov ecx, dword [rsi + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], rdi
call sub.WS2_32.dll_ntohl
mov r8d, 0x58
mov dword [rsp + 0x38], eax
lea rdx, str.1.2.11
lea rcx, [rsp + 0x20]
call fcn.1400074a0
test eax, eax
js 0x1400011ef
mov edx, 4
lea rcx, [rsp + 0x20]
call fcn.140005ad0
test eax, eax
js 0x1400011e6
lea rcx, [rsp + 0x20]
call fcn.1400072a0
jmp 0x140001205
lea rcx, str.Error__d_from_inflate:__s_n
jmp 0x1400011f6
lea rcx, str.Error__d_from_inflateInit:__s_n
mov r8, qword [rsp + 0x40]
mov edx, eax
call fcn.140001de0
mov rdi, r14
mov rcx, rbp
call fcn.14000a9f8
test rdi, rdi
mov rbp, rdi
mov rdi, qword [rsp + 0x98]
jne 0x140001231
lea rdx, [rsi + 0x12]
lea rcx, str.Error_decompressing__s_n
call fcn.140001de0
xor eax, eax
jmp 0x140001244
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001241
call fcn.14000aa98
mov qword [rbx], r14
mov rax, rbp
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rsi
ret
Function at 0x140001270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140001060
mov rcx, rdi
mov rbp, rax
call fcn.140004210
cmp eax, 0xffffffff
jne 0x1400012aa
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x2078]
lea rbx, [rsi + 0x12]
mov rdx, rbx
call fcn.140004550
mov ecx, dword [rsi + 0xc]
mov rdi, rax
call sub.WS2_32.dll_ntohl
mov esi, eax
test rdi, rdi
jne 0x1400012ef
mov r8, rbx
lea rdx, str._s_could_not_be_extracted__n
lea rcx, str.fopen
call fcn.1400018b0
lea eax, [rdi - 1]
jmp 0x14000133d
mov r9, rdi
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14000b808
cmp rax, 1
je 0x14000132b
test rsi, rsi
je 0x14000132b
mov r8, rbx
lea rdx, str.Failed_to_write_all_bytes_for__s_n
lea rcx, str.fwrite
call fcn.1400018b0
mov eax, 0xffffffff
jmp 0x14000133d
mov rcx, rdi
call fcn.14000aa98
mov rcx, rbp
call fcn.14000a9f8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret