joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005992c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, qword [rsp + 0x280]
lea r8, [rsp + 0x30]
mov rdi, rdx
mov rsi, rcx
call fcn.140014a78
test al, al
lea rdx, [rsp + 0x30]
mov rcx, rsi
cmove rdx, rdi
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyTransactedW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140059ab8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, qword [rsp + 0x280]
lea rdi, str.SOFTWAREMicrosoftWindows_SearchPreviousSettings
mov rdx, rdi
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call fcn.140014a78
test al, al
lea rdx, [rsp + 0x30]
mov r9d, 4
lea r8, str.IncludeIPSPlugin
mov dword [rsp + 0x28], r9d
cmove rdx, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140059d04
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x40], r9
mov r8d, 0xd0
mov r14, r9
call sub.msvcrt.dll_memset
xor esi, esi
test r14, r14
je 0x140059d5d
mov word [r14], si
lea rcx, [rsp + 0x30]
call fcn.140059fc4
mov ebx, eax
mov ebp, 0x1a
test eax, eax
js 0x140059e2d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
movzx r12d, word [rsp + 0x30]
mov r13d, eax
mov r14, qword [rsp + 0x48]
cmp esi, ebp
jae 0x140059e17
bt r13d, esi
jae 0x140059e0d
movabs rax, 0x5c003a0020
lea r15d, [rsi + 0x41]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
mov word [rsp + 0x48], r15w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140059e0d
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
movzx edx, r12w
movzx ecx, r15w
call fcn.14005a054
mov ebx, eax
test eax, eax
js 0x140059e0d
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140059bec
mov ebx, eax
cmp eax, 1
jne 0x140059df6
xor ebx, ebx
jmp 0x140059e0d
test eax, eax
js 0x140059e0d
mov eax, esi
lea rcx, [rsp + 0x50]
lea rdx, [rdi + rax*8]
call qword [sym.imp.SHCORE.dll_SHStrDupW]
mov ebx, eax
inc esi
test ebx, ebx
jns 0x140059d8a
mov r14, qword [rsp + 0x40]
xor esi, esi
test ebx, ebx
js 0x140059e2d
test r14, r14
je 0x140059e43
mov word [r14], r12w
jmp 0x140059e43
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [rdi], rsi
lea rdi, [rdi + 8]
sub rbp, 1
jne 0x140059e2d
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140059fc4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
js 0x14005a02b
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_towupper]
mov word [rdi], ax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x14005a054
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, r9
mov rbp, r8
movzx ebx, dx
xor edi, edi
call qword [sym.imp.msvcrt.dll_towupper]
movzx ecx, bx
movzx r14d, ax
call qword [sym.imp.msvcrt.dll_towupper]
cmp r14w, ax
jne 0x14005a0ad
mov r8, rbp
mov edx, 0x104
mov rcx, rsi
call fcn.140013294
jmp 0x14005a138
movabs rax, 0x5c003a0020
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov word [rsp + 0x20], r14w
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14005a0f5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x14005a0f1
movzx edi, ax
or edi, 0x80070000
test edi, edi
js 0x14005a13a
mov edx, 0x7b
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
mov eax, 0x8000ffff
test rbx, rbx
cmove edi, eax
test edi, edi
js 0x14005a13a
mov r8, rbp
mov edx, 0x104
mov rcx, rsi
call fcn.140013294
mov edi, eax
test eax, eax
js 0x14005a13a
mov r8, rbx
mov rcx, rsi
call fcn.14005a160
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005c94c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400c9729], 0
jne 0x14005ca7e
cmp byte [0x1400c972a], 0
jne 0x14005ca7e
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov bl, 1
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov byte [0x1400c9729], bl
lea rdx, str.SOFTWAREMicrosoftWindows_Search
mov rcx, 0xffffffff80000002
call fcn.1400140d4
test eax, eax
jne 0x14005ca7e
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ETWLogging
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005c9e7
cmp dword [rbp + 0x20], 4
jne 0x14005c9e7
cmp dword [rbp + 0x28], eax
ja 0x14005c9e9
xor bl, bl
cmp dword [0x1400c94f8], 0
mov byte [0x1400c972a], bl
mov dword [rbp + 0x18], 4
ja 0x14005ca74
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.ETWBufferSize
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005ca74
cmp dword [rbp + 0x20], 4
jne 0x14005ca74
mov ebx, dword [rbp + 0x30]
test ebx, ebx
je 0x14005ca74
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
and dword [0x1400c94fc], 0
mov edx, 8
shr ebx, 0xb
mov rcx, rax
mov r8d, ebx
mov dword [0x1400c94f8], r8d
shl r8, 0xb
mov qword [0x1400c94f0], rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov qword [0x1400c9500], rax
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x14005ca8c
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3718
call fcn.14002ee30
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x3700], rax
mov rax, r9
mov r9, qword [rsp + 0x3740]
mov r9, qword [r9]
mov r8, rax
mov edx, 0xdac
lea rcx, [rsp + 0x1ba0]
call fcn.140044194
test eax, eax
js 0x14005cb81
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov r9d, eax
lea rax, [rsp + 0x1ba0]
mov qword [rsp + 0x20], rax
lea r8, str._4d__s_n
mov edx, 0xdac
lea rcx, [rsp + 0x40]
call fcn.14000db40
test eax, eax
js 0x14005cb23
cmp byte [0x1400c972a], 0
je 0x14005cb23
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea rdx, [rsp + 0x40]
call fcn.14005d12c
cmp byte [0x1400c9729], 0
jne 0x14005cb3b
call fcn.14005c94c
cmp byte [0x1400c972a], 0
jne 0x14005cb5c
lea rdx, [0x140094ac8]
mov rcx, qword [0x1400c6a30]
call qword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
test al, al
je 0x14005cb81
test byte [0x1400c9742], 0x20
je 0x14005cb81
lea r8, [rsp + 0x1ba0]
lea rdx, [0x140094ac8]
lea rcx, [0x1400c6a30]
call fcn.14004dbfc
nop
jmp 0x14005cb83
mov rcx, qword [rsp + 0x3700]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x3718
ret
Function at 0x140076888
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor r15d, r15d
mov qword [rsp + 0x68], 0x41
lea rax, [rsp + 0x70]
mov word [rsp + 0x70], r15w
mov qword [rsp + 0x60], rax
mov rdi, r8
lea rax, [0x14008bae8]
mov dword [rbp - 8], r15d
mov r9, r8
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov qword [rbp], r15
mov r8, rdx
lea rax, [0x14008c228]
mov rdx, qword [rcx + 0xb0]
mov r14, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.140075820
jmp 0x140076923
mov r8, rdi
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140076888
mov ebx, eax
test eax, eax
jne 0x140076986
mov rcx, qword [rbp]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rbp + 0x10]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x140076912
mov rcx, qword [r14 + 0xb0]
mov rdx, rsi
cmp rdi, 0xffffffffffffffff
je 0x14007697f
mov qword [rsp + 0x20], rdi
call fcn.14005992c
jmp 0x140076984
call fcn.1400598c0
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.14001a87c
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14002c150
mov rbx, qword [rsp + 0x368]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007a4a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x41
xor r15d, r15d
mov word [rbp - 0x20], r15w
lea rax, [0x14008bae8]
mov qword [rbp - 0x38], rax
lea rax, [0x14008c228]
mov qword [rbp - 0x40], rax
mov dword [rbp + 0x68], r15d
mov qword [rbp + 0x70], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x2001f
lea r8, str.SOFTWAREMicrosoftWindows_SearchCrawlScopeManager_
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x40]
call fcn.1400184e0
lea r8, [rsp + 0x30]
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x40]
call fcn.140015914
test eax, eax
jne 0x14007a673
mov rcx, qword [rsi + 0xa8]
mov rdx, qword [rcx]
call fcn.140004510
mov rdi, rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140097898]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14007a673
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001e324
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14001d444
nop
mov r14d, r15d
jmp 0x14007a650
mov rbx, rdi
mov rdx, rdi
mov rcx, qword [rsi + 0xa8]
call fcn.1400044b8
mov rdi, rax
cmp dword [rbx + 0x50], r15d
je 0x14007a650
cmp qword [rbx + 8], 2
jne 0x14007a650
xor edx, edx
mov rcx, rbx
call fcn.14001a6bc
lea rdx, str.file:
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14007a650
lea edx, [rax + 1]
mov rcx, rbx
call fcn.14001a6bc
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14001d444
nop
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14001ab80
mov ebx, eax
lea rcx, [rbp - 0x80]
call fcn.140014fb8
neg ebx
sbb eax, eax
add eax, 2
or eax, r14d
mov r14d, eax
mov r8d, eax
lea rdx, str.SQMFullDriveIndexingSent
lea rcx, [rbp - 0x40]
call fcn.140057b38
test rdi, rdi
jne 0x14007a5c0
lea rcx, [rsp + 0x48]
call fcn.140014fb8
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.140017860
nop
lea rcx, [rbp - 0x40]
call fcn.14001a87c
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14002c150
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14007c610
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
jmp 0x14007c7a9
cmp ecx, 0x7c
je 0x14007c7b2
cmp ecx, 0x29
jne 0x14007c653
cmp dword [rbx + 0x1c], 0
jne 0x14007c7b2
cmp ecx, ecx
jne 0x14007c653
test dword [rbx + 0x80], 0x10000000
je 0x14007c722
cmp ecx, 0x2e
jne 0x14007c673
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14007f7a8
mov rcx, rbx
call fcn.14007f810
jmp 0x14007c79c
cmp ecx, 0x5c
jne 0x14007c6da
mov rcx, rbx
call fcn.14007f810
test byte [rbx + 0x80], 0x80
je 0x14007c6cd
cmp word [rbx + 0x78], 0x62
jne 0x14007c6ab
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14007f7a8
mov rcx, rbx
call fcn.14007f810
jmp 0x14007c7a4
cmp word [rbx + 0x78], 0x42
jne 0x14007c6cd
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14007f7a8
mov rax, qword [rbx + 0x48]
add rax, 0xc
xor dword [rax], 1
jmp 0x14007c69e
mov rcx, rbx
call fcn.14007c840
jmp 0x14007c79c
cmp ecx, 0x5b
jne 0x14007c704
mov rcx, rbx
call fcn.14007f810
mov rcx, rbx
call fcn.14007ce48
cmp dword [rbx + 0x7c], 0x5d
je 0x14007c666
mov ecx, 4
call fcn.14002bd04
int3
cmp ecx, 0x28
jne 0x14007c72d
mov rcx, rbx
call fcn.14007f810
mov rcx, rbx
call fcn.14007fd94
cmp dword [rbx + 0x7c], 0x29
mov dil, al
je 0x14007c78f
mov ecx, 5
call fcn.14002bd04
int3
cmp ecx, 0x5e
jne 0x14007c73a
lea edx, [rcx - 0x5c]
jmp 0x14007c695
cmp ecx, 0x24
jne 0x14007c747
lea edx, [rcx - 0x21]
jmp 0x14007c695
cmp ecx, 0x3f
je 0x14007c7c8
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14007c7c8
cmp ecx, 0x7b
je 0x14007c7c8
cmp ecx, 0x7d
jne 0x14007c76a
test dword [rbx + 0x80], 0x10000000
je 0x14007c7bd
cmp ecx, 0x5d
jne 0x14007c77f
test dword [rbx + 0x80], 0x10000000
je 0x14007c6f9
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14007be40
mov dil, 1
mov rcx, rbx
call fcn.14007f810
test dil, dil
je 0x14007c7a4
mov rcx, rbx
call fcn.14007f850
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x14007c627
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 6
call fcn.14002bd04
int3
mov ecx, 0xa
call fcn.14002bd04
int3

Function at 0x1400862d4
Capabilities:
Get common file path
Set environment variable

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400c7228]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp byte [0x1400c9890], 0
jne 0x140086348
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
test eax, eax
jne 0x14008634a
lea rdx, [rsp + 0x30]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140086341
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x14008634a
movzx eax, ax
or eax, 0x80070000
jmp 0x14008634a
mov byte [0x1400c9890], 1
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c150
add rsp, 0x258
ret
Function at 0x180006c90
Capabilities:
Hash data with md5

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1800e2010]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
mov dword [rbp - 0x29], ecx
xor eax, eax
mov dword [rbp - 0x19], 0x67452301
lea rcx, [rbp - 0x19]
mov dword [rbp - 5], eax
lea rdx, [rbp - 0x29]
mov dword [rbp - 0x15], 0xefcdab89
movups xmmword [rbp - 1], xmm0
mov dword [rbp - 0x11], 0x98badcfe
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp - 0xd], 0x10325476
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
call fcn.180006b90
mov edx, dword [rbp - 9]
lea rcx, [rbp - 1]
shr edx, 3
and edx, 0x3f
mov eax, edx
add rcx, rax
mov eax, 0x3f
sub eax, edx
xor edx, edx
mov byte [rcx], 0x80
inc rcx
cmp eax, 8
jae 0x180006d43
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x19]
call fcn.1800063a0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x2f], rax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
jmp 0x180006d4e
add eax, 0xfffffff8
mov r8d, eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rbp - 9]
lea rdx, [rbp - 1]
mov dword [rbp + 0x37], eax
lea rcx, [rbp - 0x19]
mov eax, dword [rbp - 5]
mov dword [rbp + 0x3b], eax
call fcn.1800063a0
mov eax, dword [rbp - 0x13]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.18007b690
add rsp, 0xa0
pop rbp
ret
Function at 0x1800201b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1800e2010]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp rdx, 1
jne 0x180020246
lea ecx, [rdx + 7]
call fcn.18007b948
lea rcx, [0x18001f300]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180031630]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18002025d
cmp dword [rsp + 0x38], 0
jne 0x180020223
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x180020246
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18007b690
add rsp, 0x68
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x180020880
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 0x1800208a8
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 0x1800208ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800208d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180020929
test ecx, ecx
jle 0x180020909
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 0x180020929
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180020929
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
Function at 0x180020950
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 0x180020972
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180020988
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 0x1800209a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800209a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800209e2
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 0x180020a7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180020a1d
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 0x180020a5e
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 0x180020a7e
cmp rbx, rax
ja 0x180020a30
test rbx, rbx
je 0x180020a7e
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
Function at 0x180020eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800e2010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180020edd
xor eax, eax
jmp 0x18002103a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180020f08
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180020f08
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18002103a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18002102d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180020f4b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180020f76
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180021032
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180020fe5
sub eax, 1
je 0x180020fe5
cmp eax, 2
jne 0x18002102d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180021032
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180021013
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18002102d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180021032
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18007b690
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret