joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007b9e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
xor ebx, ebx
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], ebx
mov r9d, 0x20019
mov qword [rbp + 0x30], rbx
xor r8d, r8d
mov dword [rbp + 0x18], ebx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007ba84
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.BlockAllObjects
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007ba74
cmp dword [rbp + 0x18], 4
jne 0x14007ba74
lea eax, [rbx + 1]
cmp dword [rbp + 0x20], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x14007ba94
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
xor ebx, ebx
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x30]
mov dword [rbp + 0x20], ebx
mov r9d, 0x20019
mov qword [rbp + 0x30], rbx
xor r8d, r8d
mov dword [rbp + 0x18], ebx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWordpadCOMChecks
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007bb38
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.ComCheckOn
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007bb28
cmp dword [rbp + 0x18], 4
jne 0x14007bb28
lea eax, [rbx + 1]
cmp dword [rbp + 0x20], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140081704
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, rdx
mov r14, rcx
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov esi, 0x80004005
xor edi, edi
and qword [rbp - 0x10], rdi
and qword [rbp - 8], rdi
and qword [rbp - 0x28], rdi
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008181e
mov rdi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdi
mov eax, dword [rbp + 0x38]
add eax, eax
mov dword [rbp + 0x30], eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140081806
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x140081806
mov ecx, dword [rbp + 0x30]
shr ecx, 1
mov dword [rbp + 0x38], ecx
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14000b9b8
mov rsi, rax
test rax, rax
je 0x140081806
lea r9, [rbp + 0x38]
mov r8, rax
lea rcx, [rbp - 0x18]
call fcn.1400818c8
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140081da4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x20]
test rdi, rdi
je 0x14008181c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
xor esi, esi
test rdi, rdi
je 0x140081832
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
js 0x140081887
test rbx, rbx
je 0x140081887
and dword [rbp + 0x30], 0
and dword [rbp + 0x34], 0
mov rax, qword [rbx]
movabs r10, 0xd4c5bf9b5ad58070
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [case.0x140063541.0]
mov rax, qword [r14]
movabs r10, 0xdd80b6d636d5a970
mov rdx, rbx
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [case.0x140063541.0]
mov esi, eax
test rbx, rbx
je 0x1400818a7
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
movabs r10, 0xbaac1f10365eb170
mov rcx, rbx
call qword [case.0x140063541.0]
nop
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400818c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.QatItems
add eax, eax
mov rbx, r8
mov dword [rsp + 0x48], eax
mov rdi, r9
lea rax, [r11 + 0x10]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov rcx, qword [rcx]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008194b
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140081946
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x14008195f
test ecx, ecx
je 0x14008195c
test cl, 1
jne 0x140081946
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14008195f
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14008194b
Function at 0x140081a40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp + 0x7f], rbx
lea rcx, [0x1400ba6e0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
mov edi, 0x80004005
test rsi, rsi
je 0x140081b9c
movups xmm0, xmmword [0x1400d6e58]
movdqu xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.140081f78
test eax, eax
js 0x140081b98
mov qword [rbp + 0x6f], r15
mov rax, qword [rsi]
movabs r10, 0xd4c5bf9b5ad58070
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [case.0x140063541.0]
lea eax, [r15 + 0xd]
mov word [rbp - 9], ax
mov qword [rbp - 1], rsi
mov rax, qword [rsi]
movabs r10, 0xfd41b67356dad870
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140063541.0]
nop
mov rbx, qword [rbp + 0x7f]
mov rax, qword [rbx]
movups xmm0, xmmword [rbp - 9]
movaps xmmword [rbp + 0x17], xmm0
movsd xmm1, qword [rbp + 7]
movsd qword [rbp + 0x27], xmm1
movabs r10, 0xd5ed861c38dd4b70
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x17]
mov rcx, rbx
mov rax, qword [rax + 0x1d0]
call qword [case.0x140063541.0]
test eax, eax
jne 0x140081b72
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov qword [rbp + 0x77], r15
mov rax, qword [rbx]
movabs r10, 0xd17427fb3adef170
lea rdx, [rbp + 0x77]
mov rcx, rbx
mov rax, qword [rax + 0x110]
call qword [case.0x140063541.0]
nop
mov eax, 0xfff
cmp word [rbp - 9], ax
jne 0x140081b86
mov eax, 8
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
jmp 0x140081b9c
mov rbx, qword [rbp + 0x7f]
mov qword [rbp + 0x7f], r15
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140081c40
mov rdi, qword [rbp + 0x7f]
mov rax, qword [rbp + 0x77]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x140081bf0
lea edx, [rdx*2 + 2]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test rdi, rdi
je 0x140081c3d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, r15d
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140081c71
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
movabs r10, 0xbaac1f10365eb170
mov rcx, rbx
call qword [case.0x140063541.0]
nop
mov eax, edi
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085a90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x140085acc
cmp rax, qword [rcx + 0x278]
je 0x140085acc
cmp rax, qword [rcx + 0x358]
je 0x140085acc
cmp rax, qword [rcx + 0x438]
jne 0x140085aef
call fcn.140084c5c
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, COleControlSite::XOleClientSite::AddRef
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor esi, esi
cmp dword [rdi + 8], 0x100
jne 0x140085b5c
cmp qword [rdi + 0x10], 9
jne 0x140085b27
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
mov r8d, esi
lea edx, [rsi + 9]
test ax, ax
mov rcx, rbx
sets r8b
call fcn.140085be4
jmp 0x140085b51
cmp qword [rdi + 0x10], 0x1b
jne 0x140085b5c
mov rcx, qword [rbx + 0x488]
mov rax, qword [rcx]
movabs r10, 0x8204266e3252c970
mov rax, qword [rax + 8]
mov edx, 2
call qword [case.0x140063541.0]
test al, al
je 0x140085b5c
mov eax, 1
jmp 0x140085bcb
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x140085bb9
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
movabs r10, 0xf3c91e0a32d41970
mov rcx, rdx
call qword [case.0x140063541.0]
mov r8, rax
test rax, rax
je 0x140085bb9
mov rcx, qword [rax]
mov rax, qword [rcx + 0x130]
movabs r10, 0xa475b7fc3854ba70
mov rdx, rdi
mov rcx, r8
call qword [case.0x140063541.0]
test eax, eax
jne 0x140085bcb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_RFX_Long_Bulk]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a474
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
xor r8d, r8d
lea rdx, [0x1400ba6e0]
mov rcx, rbx
call fcn.140010c5c
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rsi + 0x1a]
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x14008a639
cmp word [rsp + 0x50], si
jne 0x14008a516
mov r8d, esi
jmp 0x14008a529
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14008a51f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140010c5c
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.140088008
add rdi, 0x20
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140087ee8
lea rdx, [0x1400be898]
mov rcx, rbx
call fcn.140088008
cmp qword [rbx + 0x18], 8
jb 0x14008a576
mov rcx, qword [rbx]
jmp 0x14008a579
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14008a5e6
cmp qword [rbx + 0x18], 8
jb 0x14008a596
mov rdx, qword [rbx]
jmp 0x14008a599
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
nop dword [rax + rax]
test eax, eax
je 0x14008a5e6
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400865fc
cmp qword [rsp + 0x48], 8
jb 0x14008a639
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x14008a639
cmp qword [rdi + 0x18], 8
jb 0x14008a5f0
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14008a5fc
mov rcx, qword [rbx]
jmp 0x14008a5ff
mov rcx, rbx
lea r9, [rbp + 0x160]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400ba6e0]
mov rcx, rbx
call fcn.140010c5c
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.140088008
mov rax, rbx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008c254
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp dword [0x1400fdd9c], edi
mov qword [rsp + 0x20], rdi
jne 0x14008c298
mov eax, 0x80004005
jmp 0x14008c406
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x14008c2da
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008c2d2
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14008c3f5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14008f4b0
mov ebx, eax
test eax, eax
js 0x14008c3f0
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14008c339
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14008c339
test eax, eax
jg 0x14008c328
mov ebx, eax
jmp 0x14008c331
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14008c3f5
mov rcx, qword [0x1400fdd90]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [0x1400fdd90], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
je 0x14008c3a4
lea r8, str.oPackage
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14000fb80
test eax, eax
js 0x14008c3a4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14008f4b0
mov ebx, eax
test eax, eax
js 0x14008c3f0
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14008c3d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [0x1400fdd90]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [0x1400fdd90], rdi
xor edi, edi
jmp 0x14008c3f5
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14008e310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x150], rax
and dword [rsp + 0x40], 0
mov rax, rcx
and dword [rsp + 0x4c], 0
or r14, 0xffffffffffffffff
and dword [rsp + 0x44], 0
mov rsi, rcx
and dword [rsp + 0x48], 0
add rcx, 0x10
neg rax
mov rdi, rdx
sbb rbx, rbx
and rbx, rcx
je 0x14008e37e
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x4c], 0
jne 0x14008e38e
mov edi, 0x802a0035
jmp 0x14008e4dd
test rdi, rdi
jne 0x14008e39d
mov edi, 0x80070057
jmp 0x14008e4dd
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14008e3fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14008e4dd
movzx edi, ax
or edi, 0x80070000
jmp 0x14008e4dd
mov rax, qword [rsi]
movabs r10, 0xb9302e0230512270
mov rax, qword [rax + 0x28]
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [case.0x140063541.0]
mov edi, eax
test eax, eax
js 0x14008e4dd
mov rax, qword [rsi]
movabs r10, 0xef38161936d78270
mov rax, qword [rax + 0x38]
mov rcx, rsi
call qword [case.0x140063541.0]
mov edi, 0x200
mov rax, qword [rsi]
movabs r10, 0xc8a9975276d65b70
mov rax, qword [rax + 0x18]
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [case.0x140063541.0]
test eax, eax
js 0x14008e4a0
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x4c]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x14008e3d7
cmp dword [rsp + 0x40], edi
jae 0x14008e443
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov rax, qword [rsi]
movabs r10, 0xfdc5aee55c52c070
mov rax, qword [rax + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [case.0x140063541.0]
mov edi, eax
test eax, eax
js 0x14008e4dd
mov eax, dword [rsp + 0x44]
mov ecx, 0x80004005
cmp dword [rsp + 0x48], eax
cmovne edi, ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14008e501
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14008ee60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rax, rcx
mov r14d, r8d
neg rax
lea r8, [rcx + 0x10]
mov rsi, r9
mov rbp, rdx
sbb rbx, rbx
mov rdi, rcx
and rbx, r8
je 0x14008eea7
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x4c], 0
jne 0x14008eeb7
mov edi, 0x802a0035
jmp 0x14008ef9e
test rbp, rbp
jne 0x14008eec6
mov edi, 0x80070057
jmp 0x14008ef9e
test rsi, rsi
jne 0x14008eed5
mov edi, 0x80004003
jmp 0x14008ef9e
mov rcx, qword [rdi + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x14008eee9
mov edi, 0x802a002d
jmp 0x14008ef9e
mov edx, dword [rdi + 0x58]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
mov dword [rdi + 0x58], eax
cmp eax, 0xffffffff
jne 0x14008ef16
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14008ef83
mov eax, dword [rdi + 0x54]
sub eax, dword [rdi + 0x58]
jne 0x14008ef24
and dword [rsi], eax
xor edi, edi
jmp 0x14008ef9e
mov rcx, qword [rdi + 0x40]
cmp eax, r14d
mov r9, rsi
mov rdx, rbp
cmovb r14d, eax
and qword [rsp + 0x20], 0
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14008ef83
mov rcx, qword [rdi + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
mov dword [rdi + 0x58], eax
xor edi, edi
cmp eax, 0xffffffff
jne 0x14008ef9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14008ef9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x14008ef9e
movzx edi, ax
or edi, 0x80070000
test rbx, rbx
je 0x14008efb3
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140093b90
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
mov rdi, rcx
neg rax
lea rdx, [rcx + 8]
sbb rbx, rbx
and rbx, rdx
je 0x140093bc5
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xf8], 0
je 0x140093cc8
and dword [rdi + 0xf8], 0
cmp dword [rdi + 0x100], 0
je 0x140093bed
xor edx, edx
lea rcx, [rdi - 8]
call fcn.1400941ec
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x140093c18
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0xe8], 0
cmp dword [rdi + 0xfc], 0
je 0x140093c34
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xc0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x140093c98
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0xd8], 0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x140093cc3
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
and qword [rdi + 0xe0], 0
and qword [rdi + 0x38], 0
test rbx, rbx
je 0x140093cdd
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140095218
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x140095231
xor eax, eax
jmp 0x1400952a2
lea rdi, [0x1400d71f0]
not r9d
cmp r8d, 8
jb 0x140095277
mov r11d, r8d
shr r11, 3
mov ebx, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x14009524d
add r8d, 0xfffffff8
sub r11, 1
jne 0x140095248
test r8d, r8d
je 0x14009529c
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
inc r10
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x14009527c
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret