joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019760
Capabilities:
Modify service

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1a0], rbx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8d, edx
or edx, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140019868
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x70]
call fcn.140005480
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x180], 7
mov word [rsp + 0x168], di
lea rdx, str.ChangeServiceConfig_returned_0x
lea rcx, [rsp + 0x80]
call fcn.140009120
mov rcx, qword [rsp + 0x80]
movsxd rdx, dword [rcx + 4]
and dword [rsp + rdx + 0x98], 0xfffff9ff
or dword [rsp + rdx + 0x98], 0x800
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.14001bb40
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0x98], 0xfffff3ff
or dword [rsp + rcx + 0x98], 0x200
lea rcx, [rsp + 0x80]
call fcn.14000cb50
nop
lea rcx, [rsp + 0x70]
call fcn.14000ba70
xor eax, eax
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x190
pop rdi
ret
Function at 0x140019a40
Capabilities:
Modify service

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x90]
call fcn.1401b3ce0
lea rcx, [rsp + 0x90]
call fcn.14001a610
nop
xor ebp, ebp
mov ebx, ebp
cmp qword [rdi], rbx
je 0x140019ad3
mov rax, qword [rdi]
nop dword [rax]
nop word [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001ac50
mov rcx, rax
call fcn.14001afd0
inc ebx
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140019ab0
lea rcx, [rsp + 0x90]
call fcn.14001afd0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.14001a540
cmp qword [rax + 0x18], 8
jb 0x140019afc
mov rax, qword [rax]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
sete bl
mov r8, qword [rsp + 0x80]
cmp r8, 8
jb 0x140019b58
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140007b00
test bl, bl
je 0x140019c26
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x10
mov ecx, dword [rax + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test cl, 1
jne 0x140019b99
or ecx, 1
mov dword [rax + rdx], ecx
mov ecx, r8d
add rcx, rdx
call fcn.14000b960
nop
cmp byte [r8 + rdx + 1], 0
je 0x140019c26
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1402c00f0]
mov rcx, rdi
call fcn.140012600
mov rax, qword [0x1402c00f0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, ebx
mov rcx, rdi
call fcn.14000cd70
mov rax, qword [0x1402c00f0]
movsxd rdx, dword [rax + 4]
add rdx, rdi
and dword [rdx + 0x18], 0xfffff3ff
or dword [rdx + 0x18], 0x200
mov rax, qword [0x1402c00f0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140013c50
movzx edx, al
mov rcx, rdi
call fcn.140013a90
mov rcx, rdi
call fcn.1400118c0
nop
lea rcx, [rsp + 0x118]
call fcn.14001a570
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.14018ee78
nop
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001a2e0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rdx], rbp
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001a318
call fcn.1401b194c
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001a3e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x14001a3e4
mov ecx, dword [rsp + 0x30]
call fcn.1401b1944
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14001a371
mov eax, 0xe
jmp 0x14001a3e4
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1401b3ce0
mov r8, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, dword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rbx + 0x18], r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_1.dll_EnumDependentServicesW]
test eax, eax
jne 0x14001a3c4
mov rcx, qword [rbx + 0x10]
call fcn.1401b194c
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x14001a3e2
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x14001a3d0
mov qword [rdi], rbp
jmp 0x14001a3e2
mov rcx, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, qword [rcx]
call fcn.140018690
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022c10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0x50], r12
lea rax, [0x1402c2370]
nop dword [rax + rax]
mov rsi, qword [r14 + rax]
cmp byte [rsi + 0x40], 1
je 0x140022c74
cmp byte [rsi + 0x40], 3
jne 0x140022ded
mov qword [rsp + 0x60], r12
lea rdx, [rsi + 8]
cmp qword [rdx + 0x18], 8
jb 0x140022c87
mov rdx, qword [rdx]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebp, eax
test eax, eax
jne 0x140022e04
mov rbx, qword [rsi + 0x28]
mov rdi, qword [rsi + 0x30]
cmp rbx, rdi
je 0x140022dd6
cmp byte [rsi + 0x40], 3
jne 0x140022d2a
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov r15, qword [rsp + 0x60]
mov r14, qword [rbx]
mov rax, qword [r14]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [str.44e_]
mov rcx, r14
call rbp
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140022dc4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rbx]
mov rbp, qword [rax]
mov r14, rbp
mov r12, rax
mov qword [rsp + 0x70], rax
mov rbp, qword [rbp + 8]
mov rcx, rbp
call qword [str.44e_]
mov rcx, r12
call rbp
mov r13, rax
mov rbp, qword [r14]
mov rcx, rbp
call qword [str.44e_]
mov rcx, r12
call rbp
mov r12, rax
mov rbp, qword [r14 + 0x10]
mov rcx, rbp
call qword [str.44e_]
mov r15, qword [rsp + 0x70]
mov rcx, r15
call rbp
mov r14d, eax
mov rdx, qword [r15]
mov rbp, qword [rdx + 0x18]
mov rcx, rbp
call qword [str.44e_]
mov rcx, r15
call rbp
mov rdx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x140022e04
xor r12d, r12d
add rbx, 8
cmp rbx, rdi
jne 0x140022cd2
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022de6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea rax, [0x1402c2370]
add r14, 8
mov qword [rsp + 0x50], r14
cmp r14, 0x60
jb 0x140022c60
xor eax, eax
jmp 0x140022e1c
call fcn.140022b60
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140022e1a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebp
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401b1920
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140022e70
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [rcx + 0x41], 2
jne 0x140022ee7
cmp qword [rcx + 0x20], 8
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], 0
jb 0x140022ea2
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140022efc
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
mov ebx, eax
test eax, eax
jne 0x140022efc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140022ee7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140022f0c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x40
pop rbx
ret
Function at 0x140031b40
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor eax, eax
xor r14d, r14d
mov qword [rcx], rax
mov rbp, r8
mov qword [rcx + 8], rax
mov rdi, rcx
mov qword [rcx + 0x10], rax
mov esi, r9d
mov qword [rcx + 0x18], rdx
lea rax, vtable.SqliteStatement.0
mov qword [rcx + 0x30], rdx
lea r8d, [r14 + 6]
lea rdx, str.SELECT_FILES.FILE_ID__SEGMENTS_SLOW.CLUSTERS__SEGMENTS_FAST.CLUSTERS_FROM_FILES_LEFT_JOIN_SEGMENTS_AS_SEGMENTS_SLOW_ON_FILES.FILE_ID__SEGMENTS_SLOW.FILE_ID_AND_SEGMENTS_SLOW.SEGMENT_ID__0__LEFT_JOIN_SEGMENTS_AS_SEGMENTS_FAST_ON_FILES.FILE_ID__SEGMENTS_FAST.FILE_ID_AND_SEGMENTS_FAST.SEGMENT_ID__1__WHERE_FILES.FILE_STATE__1_AND_FILES.FILE_ID____file_id_ORDER_BY_FILES.FILE_ID_LIMIT__maxfiles
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x38], rdx
mov dword [rcx + 0x28], r14d
mov qword [rcx + 0x40], r14
mov qword [rcx + 0x48], r14
mov byte [rcx + 0x50], r14b
lea rcx, [0x14025c780]
call fcn.1401bfb60
test eax, eax
jne 0x140031bb9
mov byte [rdi + 0x50], 1
mov r8, rbp
mov dword [rdi + 0x58], r14d
mov edx, 1
lea rcx, [rdi + 0x20]
call fcn.1400297f0
test eax, eax
jne 0x140031be1
mov r8d, esi
lea edx, [rax + 2]
lea rcx, [rdi + 0x20]
call fcn.140029950
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140032110
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
mov eax, 0x80e0
call fcn.1401b1970
sub rsp, rax
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x80c0], rax
mov rbp, r9
mov esi, edx
mov r14, r8
mov r15, rcx
mov rcx, qword [0x1402b9860]
lea r12, [0x1402b9860]
cmp rcx, r12
je 0x140032181
test dword [rcx + 0x44], 0x100
je 0x140032181
cmp byte [rcx + 0x41], 5
jb 0x140032181
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261538]
mov edx, 0xa
call fcn.140022ad0
mov rcx, qword [0x1402b9860]
test r14, r14
je 0x140032343
test rbp, rbp
je 0x140032343
cmp esi, 0xffc
jbe 0x1400321a5
mov eax, 0x57
jmp 0x1400322e2
lea r8, str.SELECT_FILES.FILE_ID_id__FILES.FILE_STATE__SEGMENTS.SEGMENT_ID__SEGMENTS.CLUSTERS____FROM_FILES_LEFT_JOIN_SEGMENTS_on_SEGMENTS.FILE_ID__FILES.FILE_ID____WHERE__id___
mov edx, 0x8096
lea rcx, [rsp + 0x20]
call fcn.1401d8edc
test eax, eax
jne 0x14003219b
mov qword [rsp + 0x80d0], rdi
lea rdi, [rsp + 0xc8]
cmp esi, 1
jbe 0x140032206
lea eax, [rsi - 1]
lea rdx, [rax*8]
movabs rax, 0x3f3d646920524f20
mov rcx, rdx
lea rdi, [rsp + 0xc8]
shr rcx, 3
rep stosq qword [rdi], rax
lea rdi, [rsp + 0xc8]
add rdi, rdx
lea rdx, [rsp + 0x80b6]
mov rcx, rdi
sub rdx, rdi
lea r8, str.__ORDER_BY_id
call fcn.1401d8edc
test eax, eax
je 0x14003222e
mov eax, 0x57
jmp 0x1400322da
mov rax, qword [r15 + 8]
mov byte [rdi + 0xd], 0
mov qword [rsp + 0x80d8], rbx
mov rdi, qword [rax]
mov rcx, rdi
call qword [str.44e_]
lea rdx, [rsp + 0x20]
lea rcx, [r15 + 8]
call rdi
mov byte [r15 + 0x68], 0
mov rcx, qword [0x1402b9860]
cmp rcx, r12
je 0x14003228a
test dword [rcx + 0x44], 0x100
je 0x14003228a
cmp byte [rcx + 0x41], 5
jb 0x14003228a
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261538]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140022ad0
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140032380
mov edi, eax
test eax, eax
je 0x140032302
mov rcx, qword [0x1402b9860]
cmp rcx, r12
je 0x1400322d0
test dword [rcx + 0x44], 0x100
je 0x1400322d0
cmp byte [rcx + 0x41], 2
jb 0x1400322d0
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261538]
mov edx, 0xd
mov r9d, eax
call fcn.140022b00
mov eax, edi
mov rbx, qword [rsp + 0x80d8]
mov rdi, qword [rsp + 0x80d0]
mov rcx, qword [rsp + 0x80c0]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x80e0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
xor ecx, ecx
mov edi, ecx
test rsi, rsi
je 0x14003233f
mov rbx, rbp
nop
mov rax, qword [r14 + rdi*8]
mov qword [rbx + 8], rax
test ecx, ecx
jne 0x14003232d
mov r8, rbp
mov edx, edi
mov rcx, r15
call fcn.1400324b0
mov ecx, eax
jmp 0x140032333
mov dword [rbx], 2
inc rdi
add rbx, 0x28
cmp rdi, rsi
jb 0x140032310
xor eax, eax
jmp 0x1400322d2
cmp rcx, r12
je 0x14003236c
test dword [rcx + 0x44], 0x100
je 0x14003236c
cmp byte [rcx + 0x41], 2
jb 0x14003236c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261538]
mov edx, VariantTimeToDosDateTime
call fcn.140022ad0
mov eax, 6
jmp 0x1400322e2
Function at 0x140032b90
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140032ba9
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140032c63
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x140032c1b
xor edi, edi
mov rcx, qword [0x1402b9860]
lea rax, [0x1402b9860]
cmp rcx, rax
je 0x140032c63
test dword [rcx + 0x44], 0x100
je 0x140032c63
cmp byte [rcx + 0x41], 4
jb 0x140032c63
cmp qword [rbx + 0x18], 8
jb 0x140032bf6
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402616c8]
mov edx, 0xa
mov r9, rbx
call fcn.1400328a0
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1402b9860]
lea rax, [0x1402b9860]
cmp rcx, rax
je 0x140032c63
test dword [rcx + 0x44], 0x100
je 0x140032c63
cmp byte [rcx + 0x41], 2
jb 0x140032c63
cmp qword [rbx + 0x18], 8
jb 0x140032c47
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402616c8]
mov edx, VariantTimeToDosDateTime
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140032910
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140037330
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx edi, dx
mov rbx, rcx
mov rcx, qword [0x1402b9860]
lea rsi, [0x1402b9860]
cmp rcx, rsi
je 0x140037388
test byte [rcx + 0x44], 1
je 0x140037388
cmp byte [rcx + 0x41], 4
jb 0x140037388
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261880]
mov edx, VariantTimeToDosDateTime
call fcn.140022ad0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbx + 0x68]
mov edx, 0xc0000000
mov word [rbx + 0x70], di
mov word [rbx + 0x7e], di
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov qword [rbx + 0x88], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140037408
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x1400373fe
test byte [rcx + 0x44], 1
je 0x1400373fe
cmp byte [rcx + 0x41], 2
jb 0x1400373fe
mov rcx, qword [rcx + 0x38]
lea edx, [rax + 0xd]
lea r9, [rbx + 0x68]
lea r8, [0x140261880]
call fcn.1400328a0
mov eax, 0x6e
jmp 0x1400374d5
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rdx
lea rax, [rbx + 8]
mov dword [rsp + 0x28], 0x60
mov edx, 0x90064
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x140037492
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
je 0x140037492
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x140037483
test byte [rcx + 0x44], 1
je 0x140037483
cmp byte [rcx + 0x41], 2
jb 0x140037483
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x68]
mov edx, 0xd
mov dword [rsp + 0x20], eax
lea r8, [0x140261880]
call fcn.140036fd0
mov rcx, rbx
call fcn.140037c80
mov eax, 0x6e
jmp 0x1400374d5
mov eax, dword [rsp + 0x40]
cmp eax, 0x60
jae 0x1400374d3
mov rcx, qword [0x1402b9860]
cmp rcx, rsi
je 0x1400374c4
test byte [rcx + 0x44], 1
je 0x1400374c4
cmp byte [rcx + 0x41], 2
jb 0x1400374c4
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140037050
mov rcx, rbx
call fcn.140037c80
mov eax, 0x6e
jmp 0x1400374d5
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400376a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x1402b9860]
lea r12, [0x1402b9860]
cmp rcx, r12
je 0x1400376fe
test byte [rcx + 0x44], 1
je 0x1400376fe
cmp byte [rcx + 0x41], 4
jb 0x1400376fe
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261880]
mov edx, 0x13
call fcn.140022ad0
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400332a0
mov ebx, dword [rbp + 0x34]
mov rcx, r14
mov rdx, qword [rax]
imul rdx, rbx
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x30]
call fcn.1400332b0
mov edx, dword [rsp + 0x38]
lea r8, [rsp + 0x3c]
mov rcx, qword [rbp + 0x88]
xor r9d, r9d
imul rbx, qword [rax]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov r15d, 0xffffffff
mov dword [rsp + 0x38], eax
cmp eax, r15d
jne 0x1400377a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x1400377a1
mov rax, qword [0x1402b9860]
cmp rax, r12
je 0x14003779a
test byte [rax + 0x44], 1
je 0x14003779a
cmp byte [rax + 0x41], 2
jb 0x14003779a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1402b9860]
lea r8, [0x140261880]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x38]
call fcn.140036f70
mov eax, 0x57
jmp 0x1400377ee
cmp rbx, qword [rdi]
cmova rbx, qword [rdi]
test rbx, rbx
je 0x1400377ec
xor r14d, r14d
mov rcx, qword [rbp + 0x88]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov dword [rsp + 0x30], r14d
cmp rbx, r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
mov eax, dword [rsp + 0x30]
je 0x14003780a
sub qword [rdi], rax
add rsi, rax
sub rbx, rax
jne 0x1400377b0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b1920
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
sub qword [rdi], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1400377ee
Function at 0x140054520
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov rbx, rcx
cmp rax, qword [rcx + 0x18]
jae 0x140054540
inc rax
mov qword [rcx + 0x20], rax
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0x38], 0
jne 0x14005458c
mov rax, qword [rcx + 0x28]
mov edx, 1
add qword [rcx + 0x30], rax
mov r9, qword [rcx]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.1401f3f10
mov rdx, qword [rbx + 8]
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rbx + 0x18], rcx
cmp rax, qword [rbx + 0x10]
jae 0x14005458c
mov byte [rdx + rax], 0
inc qword [rbx + 0x18]
mov byte [rbx + 0x38], 1
add rsp, 0x20
pop rbx
ret
Function at 0x14005dd20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov eax, edx
neg rax
mov ecx, edx
shl rax, 3
movabs rbx, 0x400000006cc
add qword [rdi + 0x18], rax
mov r8, qword [rdi + 0x18]
test edx, edx
je 0x14005dd71
mov rax, r8
movabs rdx, 0x100000001b3
nop dword [rax + rax]
xor rbx, qword [rax]
lea rax, [rax + 8]
imul rbx, rdx
sub rcx, 1
jne 0x14005dd60
lea rax, [r8 + 8]
cmp rax, qword [rdi + 0x20]
jbe 0x14005dd83
mov rcx, rdi
call fcn.140067cf0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 8]
mov qword [rdi + 0x18], rax
mov al, 1
mov qword [rcx], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005ddb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8d, [rdx + rdx]
mov r10d, edx
neg r8
mov rbx, rcx
shl r8, 3
movabs rdi, 0x30000000519
add qword [rcx + 0x18], r8
xor r8d, r8d
mov r9, qword [rcx + 0x18]
test edx, edx
je 0x14005de10
movabs r11, 0x100000001b3
nop
lea ecx, [r8 + r8]
inc r8d
mov eax, ecx
lea edx, [rcx + 1]
mov rcx, qword [r9 + rdx*8]
xor rcx, qword [r9 + rax*8]
imul rcx, r11
xor rdi, rcx
cmp r8d, r10d
jb 0x14005ddf0
lea rax, [r9 + 8]
cmp rax, qword [rbx + 0x20]
jbe 0x14005de22
mov rcx, rbx
call fcn.140067cf0
mov rcx, qword [rbx + 0x18]
lea rax, [rcx + 8]
mov qword [rbx + 0x18], rax
mov al, 1
mov rbx, qword [rsp + 0x30]
mov qword [rcx], rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14005de90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402b8d08]
xor rax, rsp
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov rdi, rcx
comisd xmm0, xmm1
jbe 0x14005debc
cvttsd2si rax, xmm1
jmp 0x14005deee
movsd xmm2, qword [0x1402649e0]
xor ecx, ecx
comisd xmm1, xmm2
movaps xmm0, xmm1
jb 0x14005dee6
subsd xmm0, xmm2
comisd xmm0, xmm2
jae 0x14005dee6
movabs rax, 0x8000000000000000
mov rcx, rax
cvttsd2si rax, xmm0
add rax, rcx
movsd qword [rsp + 0x28], xmm1
movabs rbx, 0x789e9b398d409406
mov qword [rsp + 0x20], rax
xor ecx, ecx
movabs rdx, 0x100000001b3
nop
movzx eax, byte [rsp + rcx + 0x20]
xor rbx, rax
movzx eax, byte [rsp + rcx + 0x21]
imul rbx, rdx
xor rbx, rax
movzx eax, byte [rsp + rcx + 0x22]
imul rbx, rdx
xor rbx, rax
movzx eax, byte [rsp + rcx + 0x23]
imul rbx, rdx
add rcx, 4
xor rbx, rax
imul rbx, rdx
cmp rcx, 0x10
jb 0x14005df10
mov rax, qword [rdi + 0x18]
add rax, 8
cmp rax, qword [rdi + 0x20]
jbe 0x14005df60
mov rcx, rdi
call fcn.140067cf0
mov rcx, qword [rdi + 0x18]
lea rax, [rcx + 8]
mov qword [rdi + 0x18], rax
mov al, 1
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401b1920
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret