joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008da40
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1800a0440
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x18008dac0
cmp dword [rsp + 0x24], 6
jb 0x18008dac0
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18009c630
add rsp, 0x150
pop rbx
ret

Function at 0x18008dae0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.180005fa4
nop
call fcn.180073db0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.180073e50
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.180005bf8
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.180005fa4
nop
call fcn.180073db0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.180073e50
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.180005bf8
test rbx, rbx
je 0x18008dc36
test rdi, rdi
je 0x18008dc36
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800b7ce8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800b7b88
call fcn.1800a31bc
mov dword [rax], 0x16
call fcn.1800a306c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800b7b70
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800b7b70
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800b7bba
lock or dword [rax + 0x14], 0x10
jmp 0x1800b7b70
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800b7bd7
mov rcx, qword [rbp + 0x10]
call fcn.1800bb3a4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800b672c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800b6c84
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800b7c2e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800b7b70
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800b7c9a
mov rcx, qword [rbp + 0x10]
call fcn.1800b672c
cmp eax, 0xffffffff
je 0x1800b7c81
mov rcx, qword [rbp + 0x10]
call fcn.1800b672c
cmp eax, 0xfffffffe
je 0x1800b7c81
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800b672c
movsxd rdi, eax
lea rsi, [0x1801251d0]
mov rcx, rbx
sar rdi, 6
call fcn.1800b672c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800b7c88
lea rax, [0x180122520]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800b7c9a
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800b7cd0
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800b7ccc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800b7ccc
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800b7b73
jmp 0x1800b7b40
Function at 0x1800c5fa0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1800c601e
and dword [rsp + 0x2c], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
and dword [rsp + 0x28], 0
mov r9d, 2
and qword [rsp + 0x30], 0
mov rdx, 0xffffffff80000002
call fcn.180002820
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x1800c6010
lea rdx, str.6B3BA4A8_EC7E_4714_9ECF_EB33995B3384
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x1800c601e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x180125998]
test rbx, rbx
je 0x1800c6054
jmp 0x1800c604e
call qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r8d, r8d
mov rdx, rax
call fcn.180004bf8
test eax, eax
js 0x1800c60ae
xor ecx, ecx
call qword [rbx + 8]
test eax, eax
js 0x1800c60ae
add rbx, 0x48
cmp qword [rbx], 0
jne 0x1800c602c
mov rax, qword [0x180125928]
test rax, rax
je 0x1800c6066
call rax
test eax, eax
js 0x1800c60ae
mov rbx, qword [0x180125e70]
xor eax, eax
mov rcx, qword [0x180125e78]
jmp 0x1800c60a9
mov rdi, qword [rbx]
test rdi, rdi
je 0x1800c60a5
call qword [rdi + 0x30]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rax
call fcn.180004bf8
test eax, eax
js 0x1800c60ae
xor ecx, ecx
call qword [rdi + 8]
test eax, eax
js 0x1800c60ae
mov rcx, qword [0x180125e78]
add rbx, 8
cmp rbx, rcx
jb 0x1800c6078
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18009c630
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800c60cc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov r14d, 1
test eax, eax
js 0x1800c6209
and dword [rbp - 0x14], 0
lea rdi, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
and qword [rbp - 0x20], 0
lea r9d, [r14 + 1]
and dword [rbp - 0x18], 0
lea rcx, [rbp - 0x20]
and qword [rbp - 0x10], 0
mov rbx, 0xffffffff80000002
mov r8, rdi
mov rdx, rbx
call fcn.180002820
test eax, eax
je 0x1800c61b5
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionShell_Extensions
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.180002768
test eax, eax
jne 0x1800c616b
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1800c6167
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
mov r8, rdi
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180002768
test eax, eax
jne 0x1800c6196
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1800c6192
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
mov r9d, 2
lea rcx, [rbp - 0x20]
mov r8, rdi
mov rdx, rbx
call fcn.180002820
test eax, eax
je 0x1800c61b5
mov rcx, qword [rbp - 0x20]
jmp 0x1800c61fe
lea rbx, str.2345SoftMgr_Shell_Extension
mov rcx, rbx
call fcn.1800a31e4
mov r9d, r14d
lea rdx, str.6B3BA4A8_EC7E_4714_9ECF_EB33995B3384
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x1800c6209
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
test rcx, rcx
je 0x1800c6209
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [0x180125998]
test rbx, rbx
je 0x1800c6244
jmp 0x1800c623e
mov ecx, r14d
call qword [rbx + 8]
test eax, eax
js 0x1800c62a6
call qword [rbx + 0x38]
mov rcx, qword [rbx]
mov r8d, r14d
mov rdx, rax
call fcn.180004bf8
test eax, eax
js 0x1800c62a6
add rbx, 0x48
cmp qword [rbx], 0
jne 0x1800c6217
mov rbx, qword [0x180125e70]
xor eax, eax
mov rdx, qword [0x180125e78]
jmp 0x1800c6288
mov rdi, qword [rbx]
test rdi, rdi
je 0x1800c6284
mov ecx, r14d
call qword [rdi + 8]
test eax, eax
js 0x1800c62a6
call qword [rdi + 0x30]
mov rcx, qword [rdi]
mov r8d, r14d
mov rdx, rax
call fcn.180004bf8
test eax, eax
js 0x1800c62a6
mov rdx, qword [0x180125e78]
add rbx, 8
cmp rbx, rdx
jb 0x1800c6256
test eax, eax
js 0x1800c62a6
mov rdx, qword [0x180125920]
test rdx, rdx
je 0x1800c62a6
mov rcx, qword [0x180124068]
call rdx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18009c630
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800c6a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x60
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rbx + 0x18]
call fcn.1800a0440
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x76
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea r8, str.LastLoadedDPI
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800c6b22
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180069f30
mov ebx, eax
mov edx, 0x64
mov ecx, ebx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18009c630
add rsp, 0xd0
pop rbx
ret
Function at 0x1800c6b68
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov rax, qword [rcx + 0x58]
cmp qword [rcx + 0x50], rax
je 0x1800c6cf8
xor eax, eax
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
call fcn.18000c6b0
lea rsi, vtable.RC::RCDeferStat.0
mov qword [rbp - 9], rsi
lea rcx, [rbp - 9]
call fcn.180007560
lea rcx, [rbp - 9]
call fcn.1800078c0
lea rcx, [rbp + 0x27]
call fcn.1800c74dc
nop
xor edi, edi
cmp qword [rbp + 0x37], rdi
je 0x1800c6cc9
lea rcx, [rbp + 0x27]
call fcn.18006ae70
test al, al
je 0x1800c6cc9
movdqa xmm0, xmmword [0x1800f13a0]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov r8, qword [rbx + 0x50]
cmp qword [r8 + 0x18], 8
jb 0x1800c6c1d
mov r8, qword [r8]
lea rdx, str.__shortcutsoftmgr
lea rcx, [rbp + 7]
call fcn.18006a830
mov dword [rbp - 0x79], 0x70
mov dword [rbp - 0x75], 0x540
mov qword [rbp - 0x71], rdi
lea rax, str.Open
mov qword [rbp - 0x69], rax
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x61], rax
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rdi
mov dword [rbp - 0x49], 1
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rbp - 0x41]
call fcn.1800a0440
lea rcx, [rbp - 0x79]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800c6c9a
xor edx, edx
jmp 0x1800c6cab
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800c6ca9
or edx, 0xffffffff
jmp 0x1800c6cab
mov edx, eax
lea rcx, [rbp - 9]
call fcn.180007990
lea rcx, [rbp - 1]
call fcn.18000c850
nop
lea rcx, [rbp + 7]
call fcn.180005c24
jmp 0x1800c6ce1
mov edx, 0xfffffffe
lea rcx, [rbp - 9]
call fcn.180007990
lea rcx, [rbp - 1]
call fcn.18000c850
nop
lea rcx, [rbp + 0x27]
call fcn.180005c24
nop
mov qword [rbp - 9], rsi
lea rcx, [rbp - 1]
call fcn.18000c7f0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.18009c630
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400055c0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400055f0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400055ef
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400055f5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400055ef
mov eax, 0
jmp 0x1400055ef

Function at 0x140005c70
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005c20
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000f280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140017dc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140017dc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000f2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140594094]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f480
mov rax, qword [0x140594098]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000f33c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000f3c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000f320
mov rcx, rdi
call fcn.14000fe50
test rax, rax
mov r12, rax
je 0x14000f4d2
mov rax, qword [0x140594098]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000ff90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140594098]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f4b5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f3be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f430
add dword [0x140594094], 1
cmp ebx, 8
jae 0x14000f3f1
test bl, 4
jne 0x14000f490
test ebx, ebx
je 0x14000f3e6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f4a4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000f3e6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000f40a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140594098]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f280
xor esi, esi
jmp 0x14000f347
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f3e6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f3e6
mov rax, qword [0x140594098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000f280
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000f280
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000faa0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140594100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405940e0]
test rbx, rbx
je 0x14000faf4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000faeb
test rsi, rsi
je 0x14000faeb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fad0
lea rcx, [0x140594100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000fe50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14058e050]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000febf
mov rcx, r9
call fcn.14000fd20
test eax, eax
je 0x14000febf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000febd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000feb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000febf
add rdx, 0x28
cmp rdx, r9
jne 0x14000fea0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405892a0]
jmp 0x140010c80

Function at 0x14001a190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405892a0]
jmp 0x140010c80
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14115c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14115c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14115c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14115c06f
add dl, dl
jne 0x14115c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14115c0f6
xor eax, eax
add dl, dl
jne 0x14115c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14115c1ad
add dl, dl
jne 0x14115c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14115c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14115c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14115c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14115c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14115c07e
mov eax, 1
add dl, dl
jne 0x14115c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14115c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14115c0fb
sub eax, ebx
mov ebx, 1
jne 0x14115c14c
mov ecx, 1
add dl, dl
jne 0x14115c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14115c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14115c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14115c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14115c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14115c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14115c15d
cmp eax, 0x7d00
jae 0x14115c19b
cmp eax, 0x500
jb 0x14115c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14115c07e
cmp eax, 0x7f
ja 0x14115c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14115c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14115c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14115c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002040
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400020b5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400020b5
nop dword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400020d1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140002090
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1400029d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400029f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002a1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002a20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002a79
test ecx, ecx
jle 0x140002a59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002a79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002a79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al