joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020bea
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
jmp 0x140033d90
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x778]
lea rcx, [0x140095675]
call fcn.140021040
mov qword [rbp + 8], 0
mov qword [rbp + 0x48], 0
cmp dword [rbp + 0x750], 0x23f0
jae 0x140033dfd
lea rax, str.ntoskrnl.exe
mov qword [rbp + 0x68], rax
lea rax, str.g_CiEnabled
mov qword [rbp + 0x88], rax
jmp 0x140033e16
lea rax, str.CI.dll
mov qword [rbp + 0x68], rax
lea rax, str.g_CiOptions
mov qword [rbp + 0x88], rax
call fcn.140020587
test eax, eax
jne 0x140033e26
xor eax, eax
jmp 0x140033f6c
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rbp + rax + 0xd0], cx
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140033e56
xor eax, eax
jmp 0x140033f6c
lea rdx, [0x14006ede8]
lea rcx, [rbp + 0xd0]
call fcn.140020f96
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp + 0xd0]
call fcn.140020f96
mov r8d, 1
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140033f4a
mov rdx, qword [rbp + 0x68]
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.140020f41
call fcn.14002115d
mov qword [rbp + 0x28], rax
xor r8d, r8d
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x68]
call fcn.140020a87
test eax, eax
je 0x140033f2a
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x88]
call fcn.140021144
test eax, eax
je 0x140033f17
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
sub rax, qword [rbp + 0xa8]
mov qword [rbp + 8], rax
mov r8, qword [rbp + 8]
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
mov ecx, 2
call fcn.1400204b0
jmp 0x140033f28
lea rdx, str.____Unable_to_find_specified_symbol_r_n
mov ecx, 1
call fcn.1400204b0
jmp 0x140033f3b
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.1400204b0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140033f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rbp + 0x68]
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov ecx, 1
call fcn.1400204b0
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006ea30]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x140020c03
Capabilities:
Access pe header

Disassembly:
jmp 0x140054de0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rcx, [0x140097c3a]
call fcn.140021040
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
add rax, 0x18
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax + 0x6c], 1
ja 0x140054e2d
jmp 0x140054f9c
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x70]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140054e4e
jmp 0x140054f9c
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
jne 0x140054e89
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
jmp 0x140054ea3
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xc4], 0
jmp 0x140054ecf
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x88]
add rax, 8
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp qword [rax], 0
je 0x140054f9c
mov rax, qword [rbp + 0x68]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x140054f63
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x1c0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, 2
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.140021158
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x140054f97
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
and rax, 0xffff
mov r8, rax
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x1d0]
call fcn.140021158
mov ecx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x48]
mov qword [rdx + rcx*8], rax
jmp 0x140054eaf
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140020cf8
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140051020
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x488]
lea rcx, [0x140097c3a]
call fcn.140021040
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x294], 0
cmp qword [rbp + 0x470], 0
je 0x140051091
mov rax, qword [rbp + 0x470]
mov dword [rax], 0
mov edx, 0x20a
lea rcx, [rbp + 0x50]
call fcn.140020b7c
lea rax, [rbp + 0x274]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rbp + 0x50]
mov edx, dword [rbp + 0x294]
mov rcx, qword [rbp + 0x28]
call fcn.140020f00
test eax, eax
je 0x14005115f
cmp dword [rbp + 0x274], 0
jne 0x1400510da
jmp 0x14005115f
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x50]
call fcn.140020046
test eax, eax
jne 0x14005114c
cmp dword [rbp + 0x458], 0
je 0x140051145
mov eax, dword [rbp + 0x294]
inc eax
lea rcx, [rbp + 0x274]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x468]
mov r8, qword [rbp + 0x460]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.140020f00
mov dword [rbp + 4], eax
cmp qword [rbp + 0x470], 0
je 0x140051140
mov rax, qword [rbp + 0x470]
mov ecx, dword [rbp + 0x274]
mov dword [rax], ecx
mov eax, dword [rbp + 4]
jmp 0x140051161
mov eax, 1
jmp 0x140051161
mov eax, dword [rbp + 0x294]
inc eax
mov dword [rbp + 0x294], eax
jmp 0x14005109f
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007bd80]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret

Function at 0x140020cfd
Capabilities:
Access pe header

Disassembly:
jmp 0x140052710
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, [0x140097c3a]
call fcn.140021040
mov dword [rbp + 0x24], 2
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0x198]
mov qword [rax], 0
mov rdx, qword [rbp + 0x190]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x48]
lea rdx, [rbp + 0x24]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x14005279f
cmp qword [rbp + 0x78], 0
jne 0x1400527a4
mov eax, dword [rbp + 4]
jmp 0x1400527d6
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x1400527c6
mov eax, 0xc000007b
jmp 0x1400527d6
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x78]
mov qword [rax], rcx
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007c6a0]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140020dfc
Capabilities:
Delete file

Disassembly:
jmp 0x140048b00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14009781d]
call fcn.140021040
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.140020eec
test eax, eax
jne 0x140048b5f
xor eax, eax
jmp 0x140048bb2
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.140020573
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x140048b96
mov r8, qword [rbp + 0x68]
lea rdx, str.___Vulnerable_driver___ws__loaded_r_n
mov ecx, 2
call fcn.1400204b0
mov dword [rbp + 4], 1
jmp 0x140048baf
mov edx, dword [rbp + 0x24]
lea rcx, str.____Unable_to_load_vulnerable_driver
call fcn.140020249
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140020e47
Capabilities:
Disable system features via registry on windows
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140050400
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, [0x140097c3a]
call fcn.140021040
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 0x14005059c
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 0x14005051b
cmp dword [rbp + 0x64], 4
jne 0x14005051b
cmp dword [rbp + 0xa4], 0
jbe 0x140050502
mov dword [rbp + 0x194], 1
jmp 0x14005050c
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 0x140050570
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 0x140050592
cmp qword [rbp + 0xc8], 2
jne 0x140050592
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]
cmp qword [rbp + 0xc8], 0
jne 0x1400505b2
mov dword [rbp + 0x194], 1
jmp 0x1400505bc
mov dword [rbp + 0x194], 0
mov eax, dword [rbp + 0x194]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007d1c8]
call fcn.140020d66
mov eax, edi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140020e6f
Capabilities:
Install driver
Unload driver

Disassembly:
jmp 0x1400524f0
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, [0x140097c3a]
call fcn.140021040
cmp qword [rbp + 0x440], 0
jne 0x14005254b
mov eax, 0xc00000ef
jmp 0x14005267f
cmp qword [rbp + 0x448], 0
jne 0x14005255f
mov eax, 0xc00000f0
jmp 0x14005267f
mov edx, 0x20a
lea rcx, [rbp + 0x80]
call fcn.140020b7c
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.140020aa5
test eax, eax
jge 0x1400525b1
mov eax, 0xc00000ef
jmp 0x14005267f
mov rax, qword [rbp + 8]
lea rax, [rbp + rax*2 + 0x80]
mov rdx, rax
mov rcx, qword [rbp + 0x448]
call fcn.140020168
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x1400525dd
mov eax, dword [rbp + 0x24]
jmp 0x14005267f
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp qword [rbp + 0x458], 0
je 0x140052617
mov rdx, qword [rbp + 0x460]
lea rcx, [rbp + 0x48]
call qword [rbp + 0x458]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140052617
mov eax, dword [rbp + 0x24]
jmp 0x14005267f
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 0x14005266c
cmp dword [rbp + 0x24], 0xc000010e
je 0x14005264a
cmp dword [rbp + 0x24], 0xc0000035
je 0x14005264a
cmp dword [rbp + 0x24], 0x40000000
jne 0x14005266a
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jl 0x14005266a
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rbp + 0x24], eax
jmp 0x14005267c
cmp dword [rbp + 0x24], 0x40000000
jne 0x14005267c
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14007b730]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x140020e7e
Capabilities:
Access pe header

Disassembly:
jmp 0x14004f910
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x140097c3a]
call fcn.140021040
mov eax, dword [rbp + 0x168]
inc eax
shr eax, 1
mov r8d, eax
mov rdx, qword [rbp + 0x160]
xor ecx, ecx
call fcn.140020280
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 0x14004fa30
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 0x14004f99f
mov dword [rbp + 0x134], 1
jmp 0x14004f9a9
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 0x14004f9f9
mov dword [rbp + 0x134], 1
jmp 0x14004fa03
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 0x14004fa36
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 0x140020ea6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x140056480
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, [0x140097c3a]
call fcn.140021040
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 0x1400564e4
mov eax, 1
jmp 0x140056682
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 0x14005652f
cmp dword [rbp + 0x24], 2
jne 0x140056528
mov eax, 1
jmp 0x140056682
xor eax, eax
jmp 0x140056682
mov rcx, qword [rbp + 0x478]
call fcn.1400210e5
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax - 2]
cmp eax, 0x5c
je 0x14005656d
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 0x14005663a
mov r9d, 0x104
lea r8, [rbp + 0x70]
mov edx, 0x104
mov rcx, qword [rbp + 8]
call fcn.1400207b7
mov rdx, qword [rbp + 0x478]
mov rcx, qword [rbp + 0x470]
call fcn.140020ea6
test eax, eax
jne 0x1400565ec
jmp 0x14005663a
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 0x1400565bb
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]
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 0x140056680
mov eax, 1
jmp 0x140056682
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14007d860]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140020eb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14003a600
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, [0x14009627c]
call fcn.140021040
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.14002094c
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003a6b5
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14003a72e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [rbp + 0x190], 0
je 0x14003a700
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 0x14003a72b
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, [0x1400714c0]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140020ee7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140028b50
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, [0x140095341]
call fcn.140021040
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x94], 0
cmp qword [rbp + 0x198], 0
je 0x140028c4d
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 0x140028c4d
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 0x140028c4d
cmp qword [rbp + 0x1a0], 0
je 0x140028c4d
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, [0x1400670b0]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140021077
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400512b0
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, [0x140097c3a]
call fcn.140021040
mov dword [rbp + 0x24], 0
mov rax, qword [rbp + 0x160]
mov dword [rax], 0
mov edx, 0x20
lea rcx, [rbp + 0x48]
call fcn.140020b7c
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 0x140051338
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, [0x14007bed0]
call fcn.140020d66
mov eax, edi
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x140054030
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, [0x140097c3a]
call fcn.140021040
mov dword [rbp + 0x84], 0
mov edx, 0x40
lea rcx, [rbp + 0x30]
call fcn.140020b7c
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 0x14005409e
mov rax, qword [rbp + 0x58]
jmp 0x1400540c3
mov edx, 0x30
lea rcx, [rbp + 0xa8]
call fcn.140020b7c
lea rcx, [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rbp + 0xb8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007c000]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret