joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021e24
Capabilities:
Delete file

Disassembly:
jmp 0x14004a9f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14009a81d]
call fcn.140022068
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x160]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x160]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x160]
call fcn.140021f14
test eax, eax
jne 0x14004aa50
xor eax, eax
jmp 0x14004aaa6
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.140021587
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14004aa88
mov r8, qword [rbp + 0x68]
lea rdx, str.___Vulnerable_driver___ws__loaded_r_n
mov ecx, 2
call fcn.1400214bf
nop
mov dword [rbp + 4], 1
jmp 0x14004aaa3
mov edx, dword [rbp + 0x24]
lea rcx, str.____Unable_to_load_vulnerable_driver
call fcn.140021249
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140021e6f
Capabilities:
Disable system features via registry on windows
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140052570
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
lea rax, str.SystemCurrentControlSetControlCIConfig
mov qword [rbp + 8], rax
lea rax, str.VulnerableDriverBlocklistEnable
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x64], 4
mov dword [rbp + 0x84], 4
mov dword [rbp + 0xa4], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x14005270e
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x14005268c
cmp dword [rbp + 0x64], 4
jne 0x14005268c
cmp dword [rbp + 0xa4], 0
jbe 0x140052673
mov dword [rbp + 0x194], 1
jmp 0x14005267d
mov dword [rbp + 0x194], 0
mov rax, qword [rbp + 0x1c0]
mov ecx, dword [rbp + 0x194]
mov dword [rax], ecx
cmp dword [rbp + 0x1c8], 0
je 0x1400526e1
mov dword [rbp + 0x84], 4
mov dword [rbp + 0xa4], 0
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cdqe
mov qword [rbp + 0xc8], rax
jmp 0x140052703
cmp qword [rbp + 0xc8], 2
jne 0x140052703
mov qword [rbp + 0xc8], 0
mov rax, qword [rbp + 0x1c0]
mov dword [rax], 1
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0xc8], 0
jne 0x140052724
mov dword [rbp + 0x194], 1
jmp 0x14005272e
mov dword [rbp + 0x194], 0
mov eax, dword [rbp + 0x194]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400806c0]
call fcn.140021d8e
mov eax, edi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140021e97
Capabilities:
Install driver
Unload driver

Disassembly:
jmp 0x1400546d0
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x478]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
cmp qword [rbp + 0x440], 0
jne 0x14005472c
mov eax, 0xc00000ef
jmp 0x140054862
cmp qword [rbp + 0x448], 0
jne 0x140054740
mov eax, 0xc00000f0
jmp 0x140054862
mov edx, 0x20a
lea rcx, [rbp + 0x80]
call fcn.140021b9f
nop
mov qword [rbp + 8], 0x12
mov rax, qword [rbp + 0x440]
mov qword [rsp + 0x20], rax
lea r9, str.RegistryMachine
lea r8, str._wSSystemCurrentControlSetServices_wS
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.140021ac3
test eax, eax
jge 0x140054793
mov eax, 0xc00000ef
jmp 0x140054862
mov rax, qword [rbp + 8]
lea rax, [rbp + rax*2 + 0x80]
mov rdx, rax
mov rcx, qword [rbp + 0x448]
call fcn.140021168
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x1400547bf
mov eax, dword [rbp + 0x24]
jmp 0x140054862
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop
cmp qword [rbp + 0x458], 0
je 0x1400547fa
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x48]
call qword [rbp + 0x458]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x1400547fa
mov eax, dword [rbp + 0x24]
jmp 0x140054862
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x24], eax
movzx eax, byte [rbp + 0x450]
test eax, eax
je 0x14005484f
cmp dword [rbp + 0x24], 0xc000010e
je 0x14005482d
cmp dword [rbp + 0x24], 0xc0000035
je 0x14005482d
cmp dword [rbp + 0x24], 0x40000000
jne 0x14005484d
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14005484d
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x24], eax
jmp 0x14005485f
cmp dword [rbp + 0x24], 0x40000000
jne 0x14005485f
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007eb20]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x140021ea6
Capabilities:
Access pe header

Disassembly:
jmp 0x140051a60
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov eax, dword [rbp + 0x168]
inc eax
shr eax, 1
mov r8d, eax
mov rdx, qword [rbp + 0x160]
xor ecx, ecx
call fcn.140021280
mov word [rbp + 0x44], ax
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140051b81
mov rax, qword [rbp + 0x28]
add rax, 0x58
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x44]
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140051af0
mov dword [rbp + 0x134], 1
jmp 0x140051afa
mov dword [rbp + 0x134], 0
movzx eax, word [rbp + 0x44]
sub eax, dword [rbp + 0x134]
mov word [rbp + 0x44], ax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x44]
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx]
cmp eax, ecx
jge 0x140051b4a
mov dword [rbp + 0x134], 1
jmp 0x140051b54
mov dword [rbp + 0x134], 0
movzx eax, word [rbp + 0x44]
sub eax, dword [rbp + 0x134]
mov word [rbp + 0x44], ax
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax]
movzx ecx, word [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov word [rbp + 0x44], ax
jmp 0x140051b87
xor eax, eax
mov word [rbp + 0x44], ax
movzx eax, word [rbp + 0x44]
add eax, dword [rbp + 0x168]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140021ece
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x140058720
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140058785
mov eax, 1
jmp 0x140058929
lea rax, [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400587d0
cmp dword [rbp + 0x24], 2
jne 0x1400587c9
mov eax, 1
jmp 0x140058929
xor eax, eax
jmp 0x140058929
mov rcx, qword [rbp + 0x478]
call fcn.14002210d
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x14005880e
mov eax, 0x5c
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rax, qword [rbp + 8]
add rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x1400588e0
mov r9d, 0x104
lea r8, [rbp + 0x70]
mov edx, 0x104
mov rcx, qword [rbp + 8]
call fcn.1400217d0
nop
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call fcn.140021ece
test eax, eax
jne 0x140058892
jmp 0x1400588e0
mov dword [rbp + 0x44], 0x104
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140058860
mov rax, qword [rbp + 8]
sub rax, 2
mov qword [rbp + 8], rax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140058927
mov eax, 1
jmp 0x140058929
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140080c50]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140021ed8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14003ba20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x14009927c]
call fcn.140022068
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x188]
mov dword [rbp + 0x70], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp + 0x68]
mov edx, 0x22e400
mov rcx, qword [rbp + 0x170]
call fcn.14002196a
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003bad7
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor eax, eax
jmp 0x14003bb51
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
cmp dword [rbp + 0x190], 0
je 0x14003bb23
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0x188]
mov rdx, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x24], eax
jmp 0x14003bb4e
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0x188]
mov rdx, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400744c0]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140021f0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140029c00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x140098341]
call fcn.140022068
nop
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x94], 0
cmp qword [rbp + 0x198], 0
je 0x140029cfe
mov eax, 8
imul rax, rax, 0
mov qword [rbp + rax + 0x28], 0xa
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x190]
mov qword [rbp + rax + 0x28], rcx
mov eax, 8
imul rax, rax, 2
mov qword [rbp + rax + 0x28], 0
lea r9, [rbp + 0x58]
mov r8d, 3
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140029cfe
lea r9, [rbp + 0x94]
lea r8, [rbp + 0x78]
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140029cfe
cmp qword [rbp + 0x1a0], 0
je 0x140029cfe
mov rax, qword [rbp + 0x1a0]
mov ecx, dword [rbp + 0x94]
mov dword [rax], ecx
mov rax, qword [rbp + 0x78]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006a0b0]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14002209f
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140053450
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 0x24], 0
mov rax, qword [rbp + 0x160]
mov dword [rax], 0
mov edx, 0x20
lea rcx, [rbp + 0x48]
call fcn.140021b9f
nop
lea r9, [rbp + 0x24]
mov r8d, 0x20
lea rdx, [rbp + 0x48]
mov ecx, 0x5a
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x1400534da
mov rax, qword [rbp + 0x160]
mov ecx, dword [rbp + 0x58]
mov dword [rax], ecx
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007f2c0]
call fcn.140021d8e
mov eax, edi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400220b8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x140056260
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov dword [rbp + 0x84], 0
mov edx, 0x40
lea rcx, [rbp + 0x30]
call fcn.140021b9f
nop
lea r9, [rbp + 0x84]
mov r8d, 0x40
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x1400562d0
mov rax, qword [rbp + 0x58]
jmp 0x1400562f7
mov edx, 0x30
lea rcx, [rbp + 0xa8]
call fcn.140021b9f
nop
lea rcx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov rax, qword [rbp + 0xb8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007f3f0]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400221b2
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140027ad0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1a8]
lea rcx, [0x140098341]
call fcn.140022068
nop
mov dword [rbp + 0x44], 0x1000
cmp qword [rbp + 0x188], 0
je 0x140027b34
mov rax, qword [rbp + 0x188]
mov dword [rax], 0
cmp dword [rbp + 0x180], 0
je 0x140027b49
mov dword [rbp + 0x84], 0x4d
jmp 0x140027b53
mov dword [rbp + 0x84], 0xb
mov eax, dword [rbp + 0x44]
mov ecx, eax
call qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140027b70
xor eax, eax
jmp 0x140027c1f
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x140027bc9
mov rcx, qword [rbp + 0x28]
call qword [rbp + 0x198]
nop
mov eax, dword [rbp + 0x44]
mov ecx, eax
call qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp qword [rbp + 0x188], 0
je 0x140027bdf
mov rax, qword [rbp + 0x188]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
cmp dword [rbp + 4], 0x80000005
jne 0x140027bff
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
je 0x140027bff
mov rax, qword [rbp + 0x28]
jmp 0x140027c1f
cmp dword [rbp + 4], 0
jl 0x140027c0b
mov rax, qword [rbp + 0x28]
jmp 0x140027c1f
cmp qword [rbp + 0x28], 0
je 0x140027c1d
mov rcx, qword [rbp + 0x28]
call qword [rbp + 0x198]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400689f0]
call fcn.140021d8e
mov rax, rdi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400221e4
Capabilities:
Read file via mapping

Disassembly:
jmp 0x140054ce0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rcx, [0x14009ac3a]
call fcn.140022068
nop
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140054db5
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140054daa
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14002b7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140098370]
call fcn.140022068
nop
mov byte [rbp + 4], 0
jmp 0x14002b808
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14002b88d
mov byte [rbp + 0x24], 0
jmp 0x14002b820
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14002b888
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x14002b817
jmp 0x14002b7ff
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14002ddd0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140098370]
call fcn.140022068
nop
mov byte [rbp + 4], 0
jmp 0x14002ddff
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14002de5e
mov byte [rbp + 0x24], 0
jmp 0x14002de17
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14002de5c
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, str.cw
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14002de0e
jmp 0x14002ddf6
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14005dfd0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400220fe
movzx eax, al
test eax, eax
jne 0x14005dff0
mov ecx, 7
call fcn.140021d9d
nop
mov byte [rsp + 0x20], 0
call fcn.140021df7
mov byte [rsp + 0x21], al
cmp dword [0x14008e7c0], 1
jne 0x14005e014
mov ecx, 7
call fcn.140021d9d
nop
jmp 0x14005e06c
cmp dword [0x14008e7c0], 0
jne 0x14005e067
mov dword [0x14008e7c0], 1
lea rdx, [0x140067660]
lea rcx, [0x140067330]
call fcn.14002179e
test eax, eax
je 0x14005e048
mov eax, 0xff
jmp 0x14005e171
lea rdx, [0x140067220]
lea rcx, [section..rdata]
call fcn.140021dd9
mov dword [0x14008e7c0], 2
jmp 0x14005e06c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140021d75
call fcn.140021be0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14005e0c9
mov rcx, qword [rsp + 0x30]
call fcn.140021636
movzx eax, al
test eax, eax
je 0x14005e0c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14009c020]
nop
call fcn.140021c99
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14005e0fd
mov rcx, qword [rsp + 0x38]
call fcn.140021636
movzx eax, al
test eax, eax
je 0x14005e0fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140021ff5
nop
call fcn.14005e220
mov dword [rsp + 0x28], eax
call fcn.140021b72
movzx eax, al
test eax, eax
jne 0x14005e11c
mov ecx, dword [rsp + 0x28]
call fcn.1400210ff
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14005e12b
call fcn.140022022
nop
xor edx, edx
mov cl, 1
call fcn.1400215b9
mov eax, dword [rsp + 0x28]
jmp 0x14005e171
add rsp, 0x68
ret
Function at 0x416c00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416d8b
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 sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00b17710]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416c65
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416c74
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416c93
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416ca3
cmp rbx, 0x1000
jae 0x416c6b
jmp 0x416d0d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416cb5
xor edx, edx
jmp 0x416d04
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 sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00b17710]
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 0x416c99
jmp 0x416c88
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00b17710]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x006cead3]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x006cf2ca]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x006d36e3]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS