joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a3c0
Capabilities:
Get session user name

Disassembly:
jmp 0x14001a3c0
push rbx
sub rsp, 0x20
cmp byte [0x140188f70], 0
jne 0x14001a414
lea rbx, [0x140188f70]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14001a40b
mov r9, 0xffffffffffffffff
lea r8, [0x140142080]
mov edx, 0x101
mov rcx, rbx
call fcn.140001b0e
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140188f70]
add rsp, 0x20
pop rbx
ret

Function at 0x14001a440
Capabilities:
Get session user name

Disassembly:
jmp 0x14001a440
push rbx
sub rsp, 0x20
cmp word [0x140188d60], 0
jne 0x14001a495
lea rbx, [0x140188d60]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14001a48c
mov r9, 0xffffffffffffffff
lea r8, [0x140142078]
mov edx, 0x101
mov rcx, rbx
call fcn.140002f90
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140188d60]
add rsp, 0x20
pop rbx
ret

Function at 0x14001a710
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001a710
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400070e5
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x250]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1ff
mov rcx, qword [rax]
or rcx, 1
call fcn.1400052bd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edx
lea rdx, str.__02i:_02i:_02i:_02i:_03i___5d_
mov dword [rsp + 0x20], r10d
call fcn.140004ec6
lea rax, [rsp + 0x50]
dec rax
nop dword [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x14001a7d0
lea r8, [rsp + 0x250]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14001a7f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140002cde
add rsp, 0x468
pop rdi
pop rbx
ret
Function at 0x14001bb40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14001bb40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov ebx, 1
call fcn.140004ca0
test rdi, rdi
je 0x14001bbfc
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1400045ac
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001bbb6
bt eax, 0xa
jb 0x14001bbcf
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14000427d
test rax, rax
je 0x14001bbe2
mov byte [rax], 0
jmp 0x14001bba0
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.140007856
xor ebx, ebx
test ebx, ebx
je 0x14001bbfc
mov rdx, rdi
mov rcx, rsi
call fcn.1400069ec
test eax, eax
je 0x14001bbfc
mov eax, 1
jmp 0x14001bbfe
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002cde
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001bd50
Capabilities:
Delete file

Disassembly:
jmp 0x14001bd50
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, r8
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov r8d, 0x104
xor edx, edx
mov ebp, r9d
xor esi, esi
call fcn.140004ca0
test rbx, rbx
je 0x14001be47
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001be47
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
dec eax
cmp eax, 0x102
ja 0x14001bdfe
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.14000427d
test rax, rax
je 0x14001bdfe
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14001bdfe
lfence
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.140002527
test eax, eax
jne 0x14001bdfe
mov esi, 1
mov eax, esi
jmp 0x14001be49
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.140007856
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14001be43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001be43
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.140007856
mov eax, esi
jmp 0x14001be49
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002cde
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bec0
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14001bec0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14001bf24
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14001bf2a
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140004ca0
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001c0cf
cmp byte [rsi + 0x255], r14b
je 0x14001bf78
cmp dword [rsi + 0x18], 0x400
jb 0x14001bf78
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400053f8
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001c0cf
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14001c0d5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x140142018]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001294
mov ebx, eax
test eax, eax
jle 0x14001c04f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14001c011
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.1400070e5
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x8b8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.140004985
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14001c053
cmp ebp, 0x800
jae 0x14001c03f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14014201c]
call fcn.140007cfc
mov ebx, eax
test ebx, ebx
jle 0x14001c053
cmp ebp, 0x800
jae 0x14001c053
add ebp, ebx
jmp 0x14001c053
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14001c098
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001c098
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
lea rcx, str.CLogger::Write_WriteFile_failed_0x_08X___d___d_
call fcn.140007856
cmp dword [rsi + 0x18], 0x186a0
jb 0x14001c0d8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c0c5
cmp qword [rsp + 0x30], 0xa00000
jge 0x14001c0c5
mov dword [rsi + 0x18], r14d
jmp 0x14001c0d8
mov rcx, rsi
call fcn.140005515
jmp 0x14001c0d8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14001c0eb
test r12b, r12b
je 0x14001c0eb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140002cde
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001eb90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14001ec6f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14001ebc7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14001ec72
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14001ec16
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14001ec20
test rax, rax
je 0x14001ec6f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14001ec60
cmp rdx, rax
jb 0x14001ec40
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400244d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1400244d0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400246fe
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140024500
test rax, rax
je 0x140024534
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1400246fe
cmp r8w, 0x2f
je 0x1400246fe
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140024510
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140002298
mov rsi, rax
test rax, rax
je 0x14002462e
mov qword [rsp + 0x50], r14
call fcn.140002563
mov r14, rax
test rax, rax
je 0x14002461b
mov rcx, rsi
call fcn.14001e990
test eax, eax
je 0x140024604
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x1400245b0
mov r8, rbx
mov rcx, rsi
call fcn.14000370b
test eax, eax
je 0x1400245d8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x1400245a0
jmp 0x1400245e7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140022860
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140024612
mov rcx, rsi
call fcn.14001e920
test eax, eax
je 0x140024612
mov rbp, rsi
xor esi, esi
jmp 0x140024612
mov rdx, rsi
mov rcx, r14
call fcn.140022860
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x1400246ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400246d3
mov rcx, rbx
call fcn.14001e7f0
mov rdi, rax
test rax, rax
je 0x1400246d3
mov ecx, 0x37e4
call fcn.140022120
test eax, eax
je 0x140024668
xor ecx, ecx
call fcn.140002e7d
jmp 0x14002466d
call fcn.140002563
mov rbx, rax
test rax, rax
je 0x1400246c1
mov rdx, rdi
mov rcx, rax
call fcn.140022860
mov rbp, rax
test rax, rax
je 0x1400246b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002469a
test al, 0x50
je 0x1400246b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400246ad
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1400246d3
xor ecx, ecx
jmp 0x1400246e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400246e6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400259f0
Capabilities:
Get common file path

Disassembly:
jmp 0x1400259f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140025a52
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140025a47
cmp edi, eax
jb 0x140025a47
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ef20
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14002ef20
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14002ef4e
mov rdx, qword [rbx + 0x48]
test rdx, rdx
je 0x14002ef48
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
cmp dword [0x14018725c], 6
mov dword [0x140187120], 6
jg 0x14002ef83
lea rdx, str.CSPNvAPIUtils::UnloadNvapiDllMonitorInterface:_OUT
lea rcx, vtable.CLogger.0
add rsp, 0x20
pop rbx
jmp fcn.140002ebe
add rsp, 0x20
pop rbx
ret

Function at 0x140031340
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140031340
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x14003146a
test r8, r8
je 0x14003146a
test r9, r9
je 0x14003146a
mov edx, dword [rcx + 0x800]
mov qword [rsp + 0x40], rbx
xor bl, bl
mov qword [rsp + 0x48], 0
test edx, edx
je 0x14003139b
sub edx, 1
je 0x140031419
cmp edx, 2
jne 0x140031401
lea rdx, [rcx + 0x400]
mov r9d, 0x101
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400313f1
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140031401
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rdx, [rcx + 0x400]
mov r9d, 0x101
lea rax, [rsp + 0x48]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400313f1
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400313f1
mov bl, 1
jmp 0x1400313f1
mov rbp, qword [rsp + 0x50]
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140031520
Capabilities:
Set registry value

Disassembly:
jmp 0x140031520
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov edi, r9d
mov rsi, r8
mov rdx, rcx
test rbp, rbp
je 0x140031675
test r8, r8
je 0x140031675
test r9d, r9d
je 0x140031675
mov ecx, dword [rcx + 0x800]
xor r8d, r8d
mov qword [rsp + 0x60], rbx
xor bl, bl
mov qword [rsp + 0x68], r8
test ecx, ecx
je 0x14003157d
sub ecx, 1
je 0x14003160c
cmp ecx, 2
jne 0x1400315f4
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400315e4
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400315f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400315e4
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400315e4
mov bl, 1
jmp 0x1400315e4
mov rbp, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x141d33058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141d331df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141d33089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d3306f
add dl, dl
jne 0x141d33096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d330f6
xor eax, eax
add dl, dl
jne 0x141d330a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d331ad
add dl, dl
jne 0x141d330b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d330c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d330d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d330dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141d330ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141d3307e
mov eax, 1
add dl, dl
jne 0x141d33106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d33113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d330fb
sub eax, ebx
mov ebx, 1
jne 0x141d3314c
mov ecx, 1
add dl, dl
jne 0x141d3312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d3313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d33123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141d33168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d33175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d3315d
cmp eax, 0x7d00
jae 0x141d3319b
cmp eax, 0x500
jb 0x141d33196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3307e
cmp eax, 0x7f
ja 0x141d3319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d3307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141d331d2
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 0x141d3307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400028f0
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.0x140002911
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 0x14000293e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002940
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002999
test ecx, ecx
jle 0x140002979
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 0x140002999
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002999
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
sbb bh, bh
xor byte [0x1aab2e867], bl
push 0xffffffffffffffff
call [rcx - 0x67000067]
cwde
in al, dx
call [rcx + 0x2699]
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
call [rcx - 0x6700cd67]
cwde
in al, dx
call [rcx + 0x7cd0ff99]
jl 0x14000e983
dec dword [rax + 0x2b]
sub edi, edi
sub bl, byte [rcx]
sbb edi, edi
sub bl, byte [rcx]
sbb edi, edi
sub bl, byte [rcx]
sub rbp, qword [rbx]
jmp [rdx]
Function at 0x1400029c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400029e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400029f1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002a16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002a52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002aee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002a8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002ace
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002aee
cmp rbx, rax
ja 0x140002aa0
test rbx, rbx
je 0x140002aee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cdq
call es:[rax - 0x66001368]
cdq
push qword [rcx + 0x30ff6a6a]
sbb eax, 0x1a2bff1d
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]
sbb bh, bh
sub ebx, dword [rdx]