joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002070
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x2090
call fcn.1400073a0
sub rsp, rax
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x2070], rax
cmp byte [rcx + 0x28], 0
mov rdi, rcx
je 0x14000221a
lea rcx, str.C:_tmp_
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000221a
mov qword [rsp + 0x2088], rbx
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x2080], rsi
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsp + 0x20a8]
lea rax, [rsp + 0x20b0]
mov edx, 0x800
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.140001330
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
lea rcx, [rsp + 0x1070]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
movzx ecx, word [rsp + 0x6c]
lea rsi, [rsp + 0x70]
movzx r8d, word [rsp + 0x6a]
mov edx, 0x800
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x66]
movzx ebx, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x1070]
mov dword [rsp + 0x38], r8d
lea r8, str._04d__02d__02d__02d:_02d:_02d._03d___s_n
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call fcn.1400012e0
cmp qword [rdi + 0x20], 8
lea rbx, [rdi + 8]
mov rcx, rbx
jb 0x14000219d
mov rcx, qword [rbx]
mov r8d, 0x40
lea rdx, [0x140008aa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rsi, rax
test rax, rax
je 0x14000220a
lea r8, [rsp + 0x1070]
mov rcx, rax
lea rdx, [0x140008aa8]
call fcn.1400010d0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [rdi + 0x2c]
inc eax
mov dword [rdi + 0x2c], eax
cmp eax, 0x1400
jl 0x14000220a
mov dword [rdi + 0x2c], 0
cmp qword [rbx + 0x18], 8
jb 0x140002201
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x2088]
mov rsi, qword [rsp + 0x2080]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.140006280
add rsp, 0x2090
pop rdi
ret
Function at 0x1400032b0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx edi, dl
mov rbx, rcx
mov r8, rcx
lea rdx, str.RemoveQsTrayIcon_1__hWnd0x_X__bHideCmd_d
mov r9d, edi
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140002f00
test dil, dil
je 0x140003342
lea rdx, str.RemoveQsTrayIcon_2______RemoveRegAutoStartup
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor eax, eax
cmp ax, word [str.LenovoVantageToolbar]
je 0x140003334
lea r8, str.LenovoVantageToolbar
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
xor ecx, ecx
call fcn.140003f80
xor ecx, ecx
call fcn.1400038d0
mov rcx, qword [0x14000d098]
mov byte [0x14000d0a0], 1
test rcx, rcx
je 0x14000335b
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rax, str.QuickSetting.exe
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, str.QuickSettingEx.exe
mov qword [rsp + 0x28], rax
call fcn.1400019d0
lea rdx, str.RemoveQsTrayIcon_3__end
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400038d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp - 0x10], rax
movzx edi, cl
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
xor r8d, r8d
lea rdx, [0x140008918]
lea rcx, [rbp - 0x30]
call fcn.140005220
nop
lea rdx, [rbp - 0x30]
lea rcx, str.ToolbarPinIcon.exe
call fcn.140003ac0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
jne 0x140003989
lea rbx, [rbp - 0x30]
mov rcx, qword [rbp - 0x18]
cmp rcx, 8
jb 0x14000395e
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x140003991
cmp word [rbx], 0
je 0x14000397d
call fcn.140005f50
mov rdx, qword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x14000397d
mov rcx, rbx
call rax
test eax, eax
je 0x1400039a4
mov rcx, rbx
call fcn.1400022d0
test al, al
jne 0x1400039a4
mov rcx, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x30]
lea rax, [rbp - 0x30]
cmp rcx, 8
cmovae rax, rbx
mov qword [rbp - 0x20], rsi
mov word [rax], si
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
lea rdx, str.Toolbar_PinIcon_path____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x20], 0
ja 0x1400039f1
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
lea rdx, str.get_toolbar_pinIcon_path_failed:_path____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor bl, bl
jmp 0x140003a4c
lea rax, str.NotifyShowBatteryGauge
lea rbx, str.NotifyHideBatteryGauge
test dil, dil
cmovne rbx, rax
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
mov r8, rbx
lea rdx, str.Launch_to_notify_PinStatus:_CmdLine____s___FilePath____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140003a8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400062a0
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140006280
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140003f80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx edi, cl
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWARELenovoBatteryGauge
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140004008
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
lea rdx, str.SOFTWARELenovoBatteryGauge
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140004046
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ShowInTaskbar
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004056
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140004580
Capabilities:
Find taskbar
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400045f6
xor r9d, r9d
lea r8, str.TrayNotifyWnd
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x1400045f6
xor r9d, r9d
lea r8, str.SysPager
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x1400045f6
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call fcn.140004080
xor edx, edx
lea rcx, str.NotifyIconOverflowWindow
mov edi, eax
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140004629
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call fcn.140004080
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, str.SOFTWARELenovoBatteryGauge
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000469a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
cmp edi, 1
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
sete bl
lea rdx, str.ShowShareIcon
xor r8d, r8d
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400046aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400046d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov dword [rcx], 0xffffffff
lea rax, [rsp + 0x30]
xor ebx, ebx
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARELenovoBatteryGauge
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004767
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ShowShareIcon
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004767
cmp dword [rsp + 0x3c], ebx
setne bl
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140004777
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004a40
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Refresh_TrayArea_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140002070
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
xor r9d, r9d
lea r8, str.TrayNotifyWnd
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExW]
xor r9d, r9d
lea r8, str.SysPager
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExW]
lea r9, str.User_Promoted_Notification_Area
xor edx, edx
mov rcx, rax
lea r8, str.ToolbarWindow32
mov rbx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
test rax, rax
jne 0x140004ad2
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rdi, rax
xor edx, edx
lea rcx, str.NotifyIconOverflowWindow
call qword [sym.imp.USER32.dll_FindWindowW]
lea r9, str.Overflow_Notification_Area
xor edx, edx
mov rcx, rax
lea r8, str.ToolbarWindow32
mov rbx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
jne 0x140004b17
xor r9d, r9d
lea r8, str.ToolbarWindow32
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rcx, rax
call 0x140004b40
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140004b40
test rcx, rcx
je 0x140004c15
push rbp
sub rsp, 0x40
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x60], rsi
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [rsp + 0x28]
mov eax, 0x320
xor esi, esi
cmp edx, eax
cmovl eax, edx
test eax, eax
jle 0x140004bfe
mov eax, 0x320
mov qword [rsp + 0x58], rbx
cmp dword [rsp + 0x2c], eax
mov qword [rsp + 0x68], rdi
cmovl eax, dword [rsp + 0x2c]
nop dword [rax]
xor edi, edi
test eax, eax
jle 0x140004be3
mov ebx, esi
nop dword [rax + rax]
movsxd r9, ebx
xor r8d, r8d
mov edx, 0x200
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x320
add edi, 5
add ebx, 0x50000
cmp dword [rsp + 0x2c], eax
cmovl eax, dword [rsp + 0x2c]
cmp edi, eax
jl 0x140004bb0
mov edx, dword [rsp + 0x28]
add esi, 5
mov ecx, 0x320
cmp edx, ecx
cmovl ecx, edx
cmp esi, ecx
jl 0x140004ba0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006280
add rsp, 0x40
pop rbp
ret
Function at 0x140004e80
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx edi, cl
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000001
mov byte [0x14000d8d1], dil
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], 0
lea rdx, str.SOFTWARELenovoBatteryGauge
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f4e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x30]
lea rdx, str.DelayShowRemainTime
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov r9d, 4
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x140004f1e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test edi, edi
sete dil
test rbx, rbx
je 0x140004f32
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
movzx eax, dil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006280
add rsp, 0x40
pop rdi
ret
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006280
add rsp, 0x40
pop rdi
ret
Function at 0x140006d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006dd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006dd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006dd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006dd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140006dd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006dd4
xor al, al
add rsp, 0x28
ret
Function at 0x140023540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14002356d
xor al, al
jmp 0x1400236cf
mov rax, qword [0x1400436c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400436c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400436d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400436d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400436e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400436e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400436f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400436f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140043700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400236c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140023619
mov r11d, 2
jmp 0x14002363d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140023633
mov r11d, 1
jmp 0x14002363d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400236e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140023682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14002369a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400236aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400236b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140023600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400236ca
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
adc eax, 0x367fedf1
mov bh, 0x37
jmp 0x1b67f92f6
Function at 0x140006760
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006790
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000678f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006795
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000678f
mov eax, 0
jmp 0x14000678f

Function at 0x140006e10
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140006dc0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010420
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140018f60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140018f60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010490
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14049d814]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010620
mov rax, qword [0x14049d818]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400104dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010565
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400104c0
mov rcx, rdi
call fcn.140010ff0
test rax, rax
mov r12, rax
je 0x140010672
mov rax, qword [0x14049d818]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011130
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14049d818]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010655
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001055e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400105d0
add dword [0x14049d814], 1
cmp ebx, 8
jae 0x140010591
test bl, 4
jne 0x140010630
test ebx, ebx
je 0x140010586
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010644
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010586
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400105aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14049d818]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001055e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010420
xor esi, esi
jmp 0x1400104e7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010586
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010586
mov rax, qword [0x14049d818]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010420
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010420
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140010c40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14049d880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14049d860]
test rbx, rbx
je 0x140010c94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140010c8b
test rsi, rsi
je 0x140010c8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010c70
lea rcx, [0x14049d880]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140010ff0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140498490]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001105f
mov rcx, r9
call fcn.140010ec0
test eax, eax
je 0x14001105f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001105d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011054
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001105f
add rdx, 0x28
cmp rdx, r9
jne 0x140011040
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret