joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400216f8
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x170], rax
or r14, 0xffffffffffffffff
mov rdi, r8
mov rax, r14
xor r12d, r12d
mov rsi, rdx
mov r13, rcx
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14002173b
add rax, 0x14
mov ebx, 0x104
cmp rax, rbx
jbe 0x140021769
xor edx, edx
mov ecx, 0x400023db
call fcn.1400057e4
mov eax, 1
jmp 0x140021917
mov r8, rdx
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.14000dc10
lea r8, str.ShellOpenCommand
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000db30
lea rax, [rsp + 0x50]
mov r9d, 0x2000000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14002187a
test rdi, rdi
je 0x140021863
cmp word [rdi], r12w
je 0x140021863
lea rbx, [rsp + 0x60]
jmp 0x1400217dc
cmp word [rbx], 0x5c
je 0x1400217e2
add rbx, 2
cmp word [rbx], r12w
jne 0x1400217d2
movzx r15d, word [rbx]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov word [rbx], r12w
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov rcx, r13
mov dword [rsp + 0x20], r12d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov r12d, eax
test eax, eax
jne 0x140021849
xor r12d, r12d
test r15w, r15w
je 0x14002187a
mov rcx, qword [rsp + 0x50]
mov word [rbx], r15w
add rbx, 2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x1400217dc
mov r8, rsi
mov edx, 1
mov ecx, 0x400023a5
call fcn.1400057e4
mov eax, r12d
jmp 0x140021917
mov r8, rsi
mov edx, 1
mov ecx, 0x400023a5
call fcn.1400057e4
jmp 0x140021915
test rdi, rdi
je 0x1400218e5
cmp word [rdi], r12w
je 0x1400218e5
inc r14
cmp word [rdi + r14*2], r12w
jne 0x140021885
mov rcx, qword [rsp + 0x50]
lea eax, [r14*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140028958]
mov r9d, 2
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400218d5
mov r8, rdi
lea rcx, str._s_s_r_n
mov rdx, rsi
call fcn.14000ed0c
jmp 0x14002190a
xor edx, edx
mov ecx, eax
call fcn.1400057e4
mov ecx, 0x235d
jmp 0x1400218fd
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
je 0x14002190a
mov ecx, 0x400023a5
mov r8, rsi
mov edx, 1
call fcn.1400057e4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400151c0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov ebp, r8d
mov ecx, dword [rcx]
mov r14, r9
mov rsi, rdx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FlushFileBuffers]
mov ecx, dword [rdi]
call fcn.140008c50
xor edx, edx
mov rcx, rsi
call fcn.140014474
mov dword [rdi], eax
cmp eax, 0xffffffff
jne 0x1400239f2
mov ebx, 1
mov r8, rsi
mov edx, ebx
mov ecx, 0x4000271f
call fcn.1400057e4
mov eax, ebx
jmp 0x140023a9d
mov ebx, ebp
mov ecx, eax
neg ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
mov ecx, dword [rdi]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebp
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x140023a46
mov ecx, dword [rdi]
call fcn.140008c50
or dword [rdi], 0xffffffff
jmp 0x1400239d7
cmp dword [rsp + 0x50], ebp
jne 0x140023a3a
mov rdx, qword [rsp + 0x70]
mov r8, rbp
mov rcx, r14
call sub.msvcrt.dll_memcmp
mov ecx, dword [rdi]
test eax, eax
jne 0x140023a3c
call fcn.140008c50
mov ebx, 1
mov rcx, rsi
mov edx, ebx
call fcn.140014474
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x1400239dc
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400241bc
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 r12
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rsi, rdx
and dword [rax - 0x24], r14d
mov r15d, r9d
mov rbp, r8
lea edx, [r14 + 2]
call fcn.140014474
mov edi, eax
cmp eax, 0xffffffff
jne 0x14002420c
lea ecx, [rax + 0x6f]
call fcn.140024bb8
lea edx, [rdi + 2]
xor ecx, ecx
call fcn.140023ab8
int3
mov ecx, edi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, r15d
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x1400242df
mov eax, dword [rsi + 0x38]
mov ebx, dword [rsp + 0x30]
mov r12d, ebx
test eax, 0xc000
jne 0x140024264
cmp ebx, 2
jbe 0x14002425d
mov ecx, 0xfeff
cmp word [rbp], cx
jne 0x14002425d
bts eax, 0xe
jmp 0x140024261
bts eax, 0xf
mov dword [rsi + 0x38], eax
test ebx, ebx
je 0x140024293
mov eax, dword [rsi + 0x38]
lea r9, [rsp + 0x34]
xor ecx, ecx
lea r8, [rsp + 0x30]
and eax, 0x8002
mov rdx, rbp
cmp eax, 0x8002
sete cl
call fcn.1400226d0
mov ebx, dword [rsp + 0x30]
mov r14d, eax
cmp ebx, r15d
je 0x14002420c
test r14d, r14d
jne 0x1400242be
mov ecx, edi
sub ebx, r12d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9d, [r14 + 1]
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, edi
mov dword [0x140046d88], eax
call fcn.140008c50
mov ecx, dword [0x140046d88]
xor edx, edx
call fcn.1400057e4
mov edx, 1
xor ecx, ecx
call fcn.140023ab8
int3
Function at 0x140024490
Capabilities:
Delete file
Write 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, 0x40
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov esi, ecx
xor edi, edi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov rcx, rax
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x1400244e7
cmp ebp, dword [rsp + 0x30]
jne 0x1400244e7
cmp dword [0x14002f70c], edi
je 0x14002455e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, dword [rsp + 0x70]
mov dword [0x140046d88], eax
call fcn.140008c50
mov ecx, esi
call fcn.140008c50
mov ecx, esi
call fcn.14000b708
test eax, eax
je 0x140024515
mov edi, 0x1d
jmp 0x14002451e
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
mov ecx, dword [0x140046d88]
mov eax, 0x70
and dword [0x140030394], 0
test ecx, ecx
cmove ecx, eax
cmp dword [0x14002f70c], 0
mov dword [0x140046d88], ecx
je 0x140024548
xor edi, edi
jmp 0x140024551
test edi, edi
jne 0x140024551
call fcn.140024bb8
mov edx, 1
mov ecx, edi
call fcn.140023ab8
int3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400247c0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x140], rax
add cx, 0x40
mov dword [rsp + 0x24], 0x3a
xor esi, esi
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x20]
mov edi, esi
lea eax, [rsi + 0x3d]
mov word [rsp + 0x20], ax
call fcn.1400086f4
mov rbx, rax
test rax, rax
je 0x140024836
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetCurrentDirectoryW]
test al, al
jne 0x14002488c
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetErrorMode]
mov edi, eax
movzx ecx, word [rsp + 0x22]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x30], cx
movzx ecx, word [rsp + 0x24]
mov word [rsp + 0x32], cx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x34], 0x5c
call fcn.14000e278
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14002487f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
test rbx, rbx
je 0x14002488c
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetErrorMode]
xor r8d, r8d
lea rcx, [0x140032600]
mov edx, 0x104
call fcn.1400115f0
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400248d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test eax, eax
jne 0x1400248ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [0x140046d88], eax
xor eax, eax
add rsp, 0x28
ret

Function at 0x140024d0c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebx, ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov edx, 0x208
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
dec eax
cmp eax, 0x206
ja 0x140024d66
lea rcx, [rsp + 0x30]
mov word [rsp + 0x36], bx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 4
jne 0x140024d66
lea eax, [rbx + 1]
jmp 0x140024d68
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400151c0
add rsp, 0x450
pop rbx
ret

Function at 0x14002542c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14d, r9d
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.14000474c
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x106
call fcn.14000dc10
xor ebx, ebx
cmp word [rsp + 0x50], bx
je 0x1400254ab
cmp word [rsp + 0x52], 0x3a
jne 0x1400254ab
cmp word [rsp + 0x54], bx
jne 0x1400254ab
lea r8, [0x1400288e0]
mov edx, 0x106
lea rcx, [rsp + 0x50]
call fcn.14000db30
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDiskFreeSpaceExW]
mov edx, 6
mov rcx, rdi
call fcn.140022d90
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 0x106
mov r8d, 0xe
lea rdx, [rsp + 0x30]
mov ecx, esi
call fcn.140025e34
mov r9, r14
lea r8, str._5lu
mov edx, 0x104
lea rcx, [0x14004ada0]
call fcn.140011b7c
lea rax, [rsp + 0x50]
mov edx, 0x2379
lea r9, [0x14004ada0]
mov qword [rsp + 0x20], rax
mov r8d, 2
mov rcx, rdi
call fcn.140023038
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140025bb8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rbx, rcx
mov r8, rdx
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.14000dc10
or rax, 0xffffffffffffffff
lea rcx, [rbp + 0x160]
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x140025c07
lea edx, [rax + 1]
lea r8, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.140011d14
test al, al
jne 0x140025c2f
xor eax, eax
jmp 0x140025d52
lea r8, [0x1400288e0]
mov edx, 0x106
lea rcx, [rsp + 0x50]
call fcn.14000db30
mov dword [rsp + 0x38], edi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea rdx, [rbp + 0x370]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x50]
mov r8d, 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
jne 0x140025c9f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x90
je 0x140025c28
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
mov eax, 1
jmp 0x140025d52
cmp word [rsp + 0x50], 0x5c
jne 0x140025cb6
lea rcx, [rsp + 0x50]
call fcn.14000e900
mov word [rax], di
jmp 0x140025cbb
mov word [rsp + 0x52], di
lea r9, [rsp + 0x50]
mov rcx, rbx
cmp word [rbp + 0x370], di
je 0x140025cea
lea rax, [rbp + 0x370]
mov edx, 0x235f
mov r8d, 2
mov qword [rsp + 0x20], rax
call fcn.140023038
jmp 0x140025cfa
mov edx, 0x235e
mov r8d, 1
call fcn.140023038
mov ecx, eax
test eax, eax
jne 0x140025d50
mov rax, qword [rsp + 0x40]
test eax, eax
jne 0x140025d0f
cmp dword [rsp + 0x44], edi
je 0x140025d50
movzx r9d, word [rsp + 0x42]
lea r8, str._04X__04X
movzx edx, ax
lea rcx, [rbp + 0x580]
mov dword [rsp + 0x20], edx
mov edx, 0x100
call fcn.140011b7c
lea r9, [rbp + 0x580]
mov edx, 0x235b
mov r8d, 1
mov rcx, rbx
call fcn.140023038
mov ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140026c4c
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
je 0x140026c95
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
test eax, eax
je 0x140026c95
cmp eax, 4
je 0x140026c95
mov eax, 1
jmp 0x140026c97
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400151c0
add rsp, 0x248
ret

Function at 0x140026cb8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov bl, r8b
mov dil, dl
mov r8d, 0x104
lea rdx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNameW]
test eax, eax
jne 0x140026cff
mov eax, 1
jmp 0x140026db3
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
test eax, eax
je 0x140026db1
cmp eax, 4
je 0x140026db1
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x260]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
je 0x140026cf5
lea rdx, str.NTFS
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140026cf5
test bl, bl
je 0x140026d92
lea rdx, str.REFS
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140026cf5
test dil, dil
je 0x140026db1
lea rdx, str.CSVFS
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140026cf5
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400151c0
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
Function at 0x140059240
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x78], 0
je 0x14005926b
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x30], 0
jne 0x140059270
jmp 0x1400593b5
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x24], 0x2e
mov byte [rsp + 0x25], 0x71
mov byte [rsp + 0x26], 0x74
mov byte [rsp + 0x27], 0x69
mov byte [rsp + 0x28], 0x6e
mov byte [rsp + 0x29], 0x6a
mov byte [rsp + 0x2a], 0
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400592b5
jmp 0x1400593b5
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1400592e0
jmp 0x1400593b5
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140059399
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 1
jmp 0x14005933f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x140059397
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.140059060
test eax, eax
jne 0x140059395
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rax, qword [rcx + 0x30]
mov qword [rsp + 0x30], rax
jmp 0x140059397
jmp 0x140059335
jmp 0x1400593ab
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x1400593ab
jmp 0x1400593b5
xor eax, eax
test eax, eax
jne 0x140059257
cmp qword [rsp + 0x30], 0
je 0x1400593f8
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x53435349
jne 0x1400593ef
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
cmp rax, 0x58
jbe 0x1400593ef
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax + 8]
test eax, eax
jne 0x1400593f8
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x140059590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov byte [rsp + 0x30], 0x6b
mov byte [rsp + 0x31], 0x65
mov byte [rsp + 0x32], 0x72
mov byte [rsp + 0x33], 0x6e
mov byte [rsp + 0x34], 0x65
mov byte [rsp + 0x35], 0x6c
mov byte [rsp + 0x36], 0x33
mov byte [rsp + 0x37], 0x32
mov byte [rsp + 0x38], 0x2e
mov byte [rsp + 0x39], 0x64
mov byte [rsp + 0x3a], 0x6c
mov byte [rsp + 0x3b], 0x6c
mov byte [rsp + 0x3c], 0
mov byte [rsp + 0x50], 0x47
mov byte [rsp + 0x51], 0x65
mov byte [rsp + 0x52], 0x74
mov byte [rsp + 0x53], 0x50
mov byte [rsp + 0x54], 0x72
mov byte [rsp + 0x55], 0x6f
mov byte [rsp + 0x56], 0x63
mov byte [rsp + 0x57], 0x41
mov byte [rsp + 0x58], 0x64
mov byte [rsp + 0x59], 0x64
mov byte [rsp + 0x5a], 0x72
mov byte [rsp + 0x5b], 0x65
mov byte [rsp + 0x5c], 0x73
mov byte [rsp + 0x5d], 0x73
mov byte [rsp + 0x5e], 0
mov byte [rsp + 0x40], 0x4c
mov byte [rsp + 0x41], 0x6f
mov byte [rsp + 0x42], 0x61
mov byte [rsp + 0x43], 0x64
mov byte [rsp + 0x44], 0x4c
mov byte [rsp + 0x45], 0x69
mov byte [rsp + 0x46], 0x62
mov byte [rsp + 0x47], 0x72
mov byte [rsp + 0x48], 0x61
mov byte [rsp + 0x49], 0x72
mov byte [rsp + 0x4a], 0x79
mov byte [rsp + 0x4b], 0x41
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x60], 0x56
mov byte [rsp + 0x61], 0x69
mov byte [rsp + 0x62], 0x72
mov byte [rsp + 0x63], 0x74
mov byte [rsp + 0x64], 0x75
mov byte [rsp + 0x65], 0x61
mov byte [rsp + 0x66], 0x6c
mov byte [rsp + 0x67], 0x50
mov byte [rsp + 0x68], 0x72
mov byte [rsp + 0x69], 0x6f
mov byte [rsp + 0x6a], 0x74
mov byte [rsp + 0x6b], 0x65
mov byte [rsp + 0x6c], 0x63
mov byte [rsp + 0x6d], 0x74
mov byte [rsp + 0x6e], 0
mov byte [rsp + 0x20], 0x45
mov byte [rsp + 0x21], 0x78
mov byte [rsp + 0x22], 0x69
mov byte [rsp + 0x23], 0x74
mov byte [rsp + 0x24], 0x50
mov byte [rsp + 0x25], 0x72
mov byte [rsp + 0x26], 0x6f
mov byte [rsp + 0x27], 0x63
mov byte [rsp + 0x28], 0x65
mov byte [rsp + 0x29], 0x73
mov byte [rsp + 0x2a], 0x73
mov byte [rsp + 0x2b], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400590d0
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400590d0
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400590d0
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x18], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400590d0
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
add rsp, 0x78
ret
Function at 0x140001a44
Capabilities:
Write 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, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140001a75
call 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]
jmp 0x140001ae5
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140001adf
test rax, rax
jle 0x140001abf
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.140002e1c
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x140001adf
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001adf
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret