joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call fcn.140004cc0
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov qword [0x14000d560], rax
test rax, rax
je 0x140005b39
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x1400059dc
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140005814
test eax, eax
jne 0x1400059ef
mov edx, 0x4ba
jmp 0x140005aa8
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x1400051e0]
mov dword [rsp + 0x38], 1
lea rax, [0x1400053c0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140004fa0]
lea rax, [fcn.140005350]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005470]
lea rax, [0x140005280]
lea rcx, [0x140005450]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
mov rdi, rax
test rax, rax
je 0x140005a9c
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x1400096f0]
and qword [rsp + 0x28], 0
lea rax, [0x140005480]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
mov ebx, eax
test eax, eax
je 0x140005ac9
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
test eax, eax
jne 0x140005ac9
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
call fcn.140004a70
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005ae3
call qword [sym.imp.KERNEL32.DLL_FreeResource]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005b0d
cmp dword [0x14000d5fc], ebx
jne 0x140005b0d
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004a70
test byte [0x14000cd18], 1
jne 0x140005b37
test byte [0x14000de64], 1
jne 0x140005b37
mov rcx, qword [0x14000c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005d44
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140001144
mov r8, rbp
mov edx, 0x104
mov rcx, rdi
inc esi
call fcn.140001008
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.1400073cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005e23
cmp esi, 0x190
jl 0x140005d6f
mov r9, rdi
lea rdx, [0x14000996c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
je 0x140005dfe
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x140005dcb
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x140005dfe
Function at 0x140005e4c
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140005f41
lea rdx, [rsp + 0x50]
call fcn.140005d44
test eax, eax
je 0x140005fed
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005ec8
mov al, byte [r8 + rcx]
test al, al
je 0x140005ec8
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005ea9
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x140005f2e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x140005f1d
sub ecx, 1
je 0x140005f14
sub ecx, 1
je 0x140005f0b
cmp ecx, 1
jne 0x140005f2e
lea r8, [0x140009988]
jmp 0x140005f24
lea r8, str.alpha
jmp 0x140005f24
lea r8, str.mips
jmp 0x140005f24
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.1400073cc
lea r8, [0x1400096f0]
mov edx, edi
mov rcx, rbx
call fcn.1400073cc
jmp 0x140005f80
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140005f72
mov al, byte [r9 + rcx]
test al, al
je 0x140005f72
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140005f53
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.14000648c
test eax, eax
jne 0x140005fa5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x140005fd3
mov dword [0x14000cd00], 1
test esi, esi
je 0x140005ff1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400065b0
test eax, eax
jne 0x140005ff1
cmp dword [0x14000cd00], eax
je 0x140005fed
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
jmp 0x140005fed
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
xor eax, eax
jmp 0x140005ffd
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000648c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400064a7
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006519
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004a70
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000d544], ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140001008
lea r8, str.TMP4351_.TMP
mov edx, ebx
mov rcx, rsi
call fcn.1400073cc
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x1400064e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400064e8
test al, 0x10
je 0x1400064e8
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006504
Function at 0x140006fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007037
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rbx, rax
test rax, rax
je 0x140007075
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007006
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x14000706b
call qword [sym.imp.KERNEL32.DLL_FreeResource]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.140001144
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
test rax, rax
jne 0x140006fe2
jmp 0x140007081
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_FreeResource]
jmp 0x140007081
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14000723c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007290
mov al, byte [r9 + rcx]
test al, al
je 0x140007290
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007271
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.1400073cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400072d6
test al, 0x10
jne 0x1400072d6
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
jmp 0x1400072e3
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c20
add rsp, 0x148
ret
Function at 0x140007304
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
test rax, rax
je 0x140007387
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rdi, rax
test rax, rax
je 0x140007387
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x14000736a
and qword [rsp + 0x20], rax
jmp 0x14000736f
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x1400073ab
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004a70
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400076d8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x14000784c
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x140007846
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140007846
cmp dword [rsp + 0x54], 4
jne 0x140007846
cmp dword [rsp + 0x58], 0xa
jae 0x140007846
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140007846
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007846
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x1400096f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140007846
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x1400077f5
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x14000781b
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140007826
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
jmp 0x1400077e0
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140007846
and edi, 0x3ff
cmp edi, esi
je 0x14000783e
cmp edi, 0xd
jne 0x140007846
mov dword [0x14000c20c], esi
jmp 0x14000784c
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400079c8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008114
add rsp, 0x28
jmp 0x1400079c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000cb78], rbx
je 0x140007a12
cmp rax, rbx
jne 0x140007a27
mov edi, 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007a34
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140007aa1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x1400079fb
mov eax, dword [0x14000cb80]
test eax, eax
jne 0x140007a97
mov dword [0x14000cb80], 1
lea r14, [0x140009678]
lea rbx, [0x140009660]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140007a89
test eax, eax
jne 0x140007a8d
cmp qword [rbx], 0
je 0x140007a7e
mov rax, qword [rbx]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140007a5f
test eax, eax
je 0x140007aa1
mov eax, 0xff
jmp 0x140007bf6
mov dword [0x14000c224], 1
mov eax, dword [0x14000cb80]
cmp eax, 1
jne 0x140007ac9
lea rdx, [0x140009658]
lea rcx, [0x140009648]
call sub.msvcrt.dll__initterm
mov dword [0x14000cb80], 2
test edi, edi
jne 0x140007ad6
xor eax, eax
xchg qword [0x14000cb78], rax
cmp qword [0x14000cb88], 0
je 0x140007b0a
lea rcx, [0x14000cb88]
call fcn.140008080
test eax, eax
je 0x140007b0a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000cb88]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x140007b95
test cl, cl
je 0x140007b2c
test edi, edi
jne 0x140007b95
dec cl
cmp cl, 0x1f
ja 0x140007b3f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140007b2c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400029e4
mov dword [0x14000c220], eax
cmp dword [0x14000c240], 0
jne 0x140007b7e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c224], 0
jne 0x140007b93
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c220]
jmp 0x140007bf6
cmp cl, 0x22
jne 0x140007ba7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140007bbc
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007b1d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140008240
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140099684
cmp rax, rbx
jne 0x1400082dc
cmp edi, 1
je 0x140008284
cmp edi, 2
je 0x1400082dc
mov rcx, qword [rsi + 0x40]
call fcn.140099310
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140083c20
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140008300
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140008335
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140099684
xor ebx, ebx
test rsi, rsi
jle 0x14000835a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14000835a
inc rbx
cmp rsi, rbx
jne 0x14000833c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140008370
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x57], 0xaa
cmp edx, 0xffffffff
je 0x1400083e1
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x1400083f0
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.140099684
mov esi, 0xffffffff
cmp rax, 1
jne 0x1400084a5
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x1400084a5
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x1400084a0
mov ebp, eax
cmp eax, 3
je 0x14000847f
cmp ebp, 1
ja 0x1400084a0
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140099684
cmp rax, rsi
jne 0x1400084a0
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x140008408
jmp 0x1400083e1
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140099684
cmp rax, 1
je 0x1400083e1
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140083c20
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140008510
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x140008545
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140099684
xor ebx, ebx
test rsi, rsi
jle 0x14000856b
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14000856b
inc rbx
cmp rsi, rbx
jne 0x14000854c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140008580
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov word [rsp + 0x56], 0xaaaa
cmp dx, 0xffff
je 0x1400085f2
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x140008602
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.140099684
mov di, 0xffff
cmp rax, 1
jne 0x1400086b6
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x1400086b6
lea r15, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rbx, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x1400086b2
mov ebp, eax
cmp eax, 3
je 0x140008691
cmp ebp, 1
ja 0x1400086b2
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140099684
cmp rax, rbx
jne 0x1400086b2
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x14000861a
jmp 0x1400085f2
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.140099684
cmp rax, 1
je 0x1400085f2
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140083c20
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140022a10
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400d7618]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400dad30], 0
je 0x140022a35
xor esi, esi
jmp 0x140022ae5
mov ecx, 0x60
call fcn.1400837ac
mov rsi, rax
mov ecx, 0x18
call fcn.1400837ac
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x28], 0
lea rax, [rsi + 0x38]
movups xmmword [rsi + 0x38], xmm0
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov dword [rsi + 0x50], 0
mov qword [rsi + 0x58], 0
mov qword [0x1400dad30], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140022ace
cmp word [rax], 0
je 0x140022ace
xor ecx, ecx
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140022ac0
jmp 0x140022ad0
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140022b00
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140083c20
mov eax, esi
add rsp, 0x40
pop rsi
ret