joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b72c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x14003b77d
cmp dword [rsp + 0x30], 0x80000005
jne 0x14003b783
mov eax, dword [rsp + 0x34]
jmp 0x14003b785
xor eax, eax
add rsp, 0x48
ret

Function at 0x14003b914
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140054ae8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x14003b96d
cmp dword [rsp + 0x90], 0x7c
jge 0x14003b96d
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x140053770]
call fcn.14003be98
lea rcx, [rsp + 0x50]
call fcn.14002f398
nop
cmp qword [rsp + 0x30], 0
jne 0x14003b993
lea rdx, [0x14004bf90]
lea rcx, [rsp + 0x50]
call fcn.1400305ec
jmp 0x14003b9a2
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400305ec
cmp dword [rsp + 0xa0], 1
jne 0x14003b9bd
lea rdx, [0x14004bfa0]
lea rcx, [rsp + 0x50]
call fcn.1400305ec
movss xmm2, dword [0x14004ae38]
movss xmm1, dword [0x14004c7ec]
lea rcx, [rsp + 0x48]
call fcn.14002f948
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.14003f148
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140023604
movzx eax, al
test eax, eax
je 0x14003ba32
cmp dword [rsp + 0xa0], 0
jne 0x14003ba32
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.140030004
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140042f80
add rsp, 0x88
ret
Function at 0x14003bcd4
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, [0x14004aea0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004ae90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd5d
lea rcx, [0x14004aeb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserSendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd5d
lea rcx, [0x14004aecc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd5d
xor al, al
jmp 0x14003be0f
lea rcx, str.win32u
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004aed8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bddf
lea rcx, [0x14004af10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserGetAsyncKeyState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bddf
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14004af18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bddf
xor al, al
jmp 0x14003be0f
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
lea rcx, [0x1400558b0]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1e
mov rdx, qword [rsp + 0x28]
lea rcx, [0x1400558d0]
call sub.VCRUNTIME140.dll_memcpy
mov al, 1
add rsp, 0x38
ret

Function at 0x14003caec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003cb1e
xor eax, eax
jmp 0x14003cb74
mov r8d, 0x1e
lea rdx, [0x1400558d0]
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14003d8e4
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x44], 0xc0000001
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0x240
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14003d9ba
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14003d9aa
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x14003da4c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14003da41
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x14003da41
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov al, byte [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x14003f7ac
Capabilities:
Delete file
Execute command

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x140054ae8]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x30]
call fcn.14002f398
nop
lea rcx, [0x14004b200]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, [0x14004aeef]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c554
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14002c158
lea rdx, [0x14004b094]
lea rcx, [rsp + 0x30]
call fcn.14002c95c
movzx eax, al
test eax, eax
jne 0x14003f867
lea rdx, [0x14004b0a4]
lea rcx, [rsp + 0x30]
call fcn.14002c95c
movzx eax, al
test eax, eax
jne 0x14003f867
lea rdx, [0x14004b0b4]
lea rcx, [rsp + 0x30]
call fcn.14002c95c
movzx eax, al
test eax, eax
jne 0x14003f867
lea rdx, [0x14004b0c4]
lea rcx, [rsp + 0x30]
call fcn.14002c95c
movzx eax, al
test eax, eax
je 0x14003f9cd
lea rcx, [0x14004b0d4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x20]
call fcn.140030824
mov rcx, rax
call fcn.14003069c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x21]
call fcn.1400308d0
mov rcx, rax
call fcn.14003069c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x22]
call fcn.140030948
mov rcx, rax
call fcn.14003067c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rsp + 0x23]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x23]
call fcn.14003091c
mov rcx, rax
call fcn.14003065c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x24]
call fcn.1400308a4
mov rcx, rax
call fcn.14003065c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x25]
call fcn.1400308fc
mov rcx, rax
call fcn.14003063c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 0x1f4
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
xor r9d, r9d
lea r8, [0x14004b210]
lea rdx, str.Loaded
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x30]
call fcn.140030004
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140042f80
add rsp, 0x240
pop rdi
ret
Function at 0x14004168c
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14003d284]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x14003d78c]
mov qword [rsp + 0x78], rax
lea rax, [0x14004b770]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x140041744
lea rdx, str._n_n_notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c554
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, [0x14004b790]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140055928], rax
mov edx, 5
mov rcx, qword [0x140055928]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x14004b748]
mov rcx, qword [0x140055928]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x140055928]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140055928]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400425d4
Capabilities:
Create thread
Execute command
Set console window title

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140054ae8]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rcx, [0x14004b520]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004b016]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rdx, str._n_________________________n__Y_______________________n________OREO.WTF____QQ__n_____________________n______________________________________________________________________________________________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002c554
mov dl, 0xa
mov rcx, rax
call fcn.14002c184
lea rcx, str.color_F0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.___Load_Driver__Y_N_:__n
call fcn.1400427f8
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14003f7ac
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x30], rax
call fcn.14003bcd4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14003ca90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dx, 4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, 0x12c
mov ecx, 0x145
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.___Waiting_for_Fortnite.._n
call fcn.14003bed8
cmp qword [0x140055338], 0
jne 0x140042701
lea rdx, [0x14004b6a8]
lea rcx, [rsp + 0x68]
call fcn.14002ebd4
lea rcx, [rsp + 0x68]
call fcn.14003f5a0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140055338], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400426bd
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
cmp qword [0x140055338], 0
jne 0x140042756
lea rdx, str.Fortnite
lea rcx, [rsp + 0x78]
call fcn.14002ebd4
lea rcx, [rsp + 0x78]
call fcn.14003f5a0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140055338], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140042712
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [0x14004b6c8]
mov rcx, qword [rsp + 0x38]
call fcn.14002f320
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14003e134
mov dword [0x140055340], eax
xor edx, edx
mov rcx, qword [0x140055858]
call fcn.14003ba54
movzx eax, al
test eax, eax
je 0x1400427c7
mov edx, dword [0x140055340]
mov rcx, qword [0x140055858]
call fcn.140030c7c
lea rdx, str.FortniteClient_Win64_Shipping.exe
mov rcx, qword [0x140055858]
call fcn.14003b78c
mov qword [0x140055330], rax
call fcn.14004168c
call fcn.140041818
call fcn.140042154
call fcn.1400424bc
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140042f80
add rsp, 0x98
ret
Function at 0x140001074
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14003e2f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x34], esi
mov rcx, rbp
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001135
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rsp + reloc.OLEAUT32.dll_GetRecordInfoFromTypeInfo], bl
jne 0x140001104
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140001135
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140001125
mov al, byte [rcx + rdi]
test al, al
je 0x140001125
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x140001107
test rsi, rsi
lea rdx, [rdi - 1]
cmovne rdx, rdi
mov byte [rdx], bl
setne bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400231c0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400202d8
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov bl, r8b
mov r14d, edx
mov rdi, rcx
xor esi, esi
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
test bl, bl
je 0x140020323
lea rdx, [rbp + 0x38]
mov ecx, r14d
call fcn.140020ca8
test al, al
jne 0x1400203da
and qword [rbp - 0x10], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, r14d
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400203aa
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140020376
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x1400203aa
mov ecx, r14d
call fcn.140020948
mov r8, rax
mov r9, rsi
lea rdx, str._s__s
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CPtrList::FreeNode
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1400203c5
mov ecx, r14d
call fcn.140020948
mov r8, rax
lea rdx, [0x140028308]
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CPtrList::FreeNode
mov r8, qword [rbp + 0x38]
lea rdx, str.HRtoString__s
mov ecx, 4
call fcn.140020a74
lea rdx, [rbp + 0x38]
mov rcx, rdi
call sub.MFC42u.dll_CControlBar::CControlBar
nop
lea rcx, [rbp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x140020a74
Capabilities:
Print debug messages

Disassembly:
test ecx, ecx
jne 0x140020bf8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x890
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14003e2f0]
xor rax, rsp
mov qword [rsp + 0x880], rax
xor esi, esi
sub ecx, 1
je 0x140020ae5
sub ecx, 1
je 0x140020adc
sub ecx, 1
je 0x140020ad3
cmp ecx, 1
jne 0x140020bde
lea rbx, str.TRACE
jmp 0x140020aec
lea rbx, str.INFO
jmp 0x140020aec
lea rbx, str.WARNING
jmp 0x140020aec
lea rbx, str.ERROR
mov edi, CString::CopyBeforeWrite
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edx, word [rsp + 0x66]
movzx r8d, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r10d, word [rsp + 0x60]
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r10d
lea r9, [0x140033520]
lea r8, str._s:__02u:_02u:_02u._03u_tid_x:__s:
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140021260
lea r9, [rsp + 0x8c0]
mov edx, 0x7fffffff
mov r8d, edx
lea rax, [rsp + 0x70]
cmp word [rax], si
je 0x140020b85
add rax, 2
sub r8, 1
jne 0x140020b76
mov rax, r8
sub edx, r8d
neg rax
sbb ecx, ecx
and ecx, edx
neg r8
sbb eax, eax
and eax, ecx
cdqe
add rax, rax
sub rdi, rax
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8, qword [rsp + 0x8b8]
mov rdx, rdi
call fcn.1400212e0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140033498]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__putws]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1400231c0
add rsp, 0x890
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021368
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x850
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14003e2f0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, rcx
xor edx, edx
mov r8d, CString::CopyBeforeWrite
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x868]
mov r8, rbx
mov edx, CString::CopyBeforeWrite
lea rcx, [rsp + 0x30]
call fcn.1400212e0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140033498]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__putws]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400231c0
add rsp, 0x850
pop rbx
ret
Function at 0x140022d00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14003f7c8], rbx
je 0x140022d67
cmp rax, rbx
jne 0x140022d5a
mov ebx, 1
mov esi, ebx
jmp 0x140022d6c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140022d3f
mov ebx, 1
mov eax, dword [0x14003f7d0]
cmp eax, ebx
jne 0x140022d84
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140022df0
mov eax, dword [0x14003f7d0]
test eax, eax
jne 0x140022de5
mov dword [0x14003f7d0], ebx
lea r15, [0x140025b70]
lea rdi, [0x140025b58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140022dd7
test eax, eax
jne 0x140022ddb
cmp qword [rdi], r14
je 0x140022dcc
mov rax, qword [rdi]
mov rcx, qword [0x140025b28]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140022dae
test eax, eax
je 0x140022deb
mov eax, 0xff
jmp 0x140022f46
mov dword [0x14003f1f8], ebx
mov edi, 0x1f
mov eax, dword [0x14003f7d0]
cmp eax, ebx
jne 0x140022e17
lea rdx, [0x140025b50]
lea rcx, [0x140025b30]
call sub.msvcrt.dll__initterm
mov dword [0x14003f7d0], 2
test esi, esi
jne 0x140022e25
mov rax, r14
xchg qword [0x14003f7c8], rax
cmp qword [0x14003f7e8], r14
je 0x140022e58
lea rcx, [0x14003f7e8]
call fcn.1400237c0
test eax, eax
je 0x140022e58
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003f7e8]
mov r9, qword [0x140025b28]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140022e71
mov eax, 0xff
jmp 0x140022f46
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140022ef7
test ax, ax
je 0x140022e8c
test edx, edx
jne 0x140022ef7
sub ax, bx
cmp ax, di
ja 0x140022ea2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140022e8c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400239ac
mov dword [0x14003f1f4], eax
cmp dword [0x14003f218], r14d
jne 0x140022ee0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003f1f8], r14d
jne 0x140022ef5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003f1f4]
jmp 0x140022f46
cmp ax, 0x22
jne 0x140022f0b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140022e7a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400d2000
add rsp, 0x28
jmp 0x140022d00
Function at 0x1400236bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140023708
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023700
cmp dword [rcx + 0x3c], edx
jl 0x140023700
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140023700
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140023708
mov rax, rdx
add rsp, 0x18
ret