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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x14000d208]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x34], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x400
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1400015f5
mov rax, qword [rax]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001667
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001662
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001662
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005368
test ebx, ebx
jne 0x14000170a
cmp dword [rsp + 0x3c], 1
jne 0x1400016a0
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
jmp 0x140001704
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, str.Registry_value__1_is_not_a_string
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rbx, rax
mov dl, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140005480
add rsp, 0x498
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14000d208]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov rbp, rcx
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rsi, r9
mov rbx, r8
xor dil, dil
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001ba2
mov rdx, qword [rax]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001bb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x48]
mov ebx, eax
cmp rdx, 8
jb 0x140001c25
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c20
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005368
test ebx, ebx
jne 0x140001c2e
mov dil, 1
jmp 0x140001c38
mov rdx, rsi
mov ecx, ebx
call fcn.140001260
movzx eax, dil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005480
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002750
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1060
call fcn.1400054b0
sub rsp, rax
mov rax, qword [0x14000d208]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400027f4
lea r8d, [rax - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140005480
add rsp, 0x1060
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002820
Capabilities:
Delete registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r8, rcx
lea rcx, [rsp + 0xc8]
call fcn.140002a90
movzx ebx, al
test al, al
je 0x140002972
mov qword [rsp + 0xb0], rbp
lea rcx, str.kernel32
xor ebp, ebp
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xb8], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400028b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0xb8]
call rsi
test eax, eax
je 0x1400028b0
mov eax, ebp
cmp dword [rsp + 0xb8], eax
setne al
jmp 0x1400028b2
mov eax, ebp
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x38], rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
shl eax, 8
xor r8d, r8d
add eax, 0xf003f
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb0]
test rsi, rsi
je 0x140002943
lea rdx, str.Shell
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov rcx, rsi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140002943
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.140001260
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
movzx eax, bl
add rsp, 0x98
pop rdi
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov bl, 1
call fcn.140004d90
test al, al
je 0x140003b17
mov rcx, rdi
call fcn.140005000
movzx ebx, al
test al, al
je 0x140003b53
mov rcx, rdi
call fcn.140001730
test al, al
je 0x140003b32
mov rcx, rdi
call fcn.140001a00
movzx ebx, al
test al, al
je 0x140003b53
mov rcx, rdi
call fcn.140001f80
test al, al
je 0x140003b50
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140002820
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002a90
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000d208]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov rsi, r8
mov dword [rsp + 0x20], ebp
mov rbx, rdx
lea r8, [0x140008748]
mov rdi, rcx
lea rdx, [0x140008f34]
lea r9d, [rbp + 2]
lea rcx, [0x140008740]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x140002b79
call fcn.140002a20
test al, al
je 0x140002b3c
lea r8, [0x140008740]
lea edx, [rbp + 8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rbx], 0x38
lea rax, [rsp + 0x30]
mov qword [rbx + 0x10], rbp
mov rdx, rbx
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rbp
mov qword [rbx + 8], rax
mov rcx, qword [rdi]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x140002b6e
mov al, 1
jmp 0x140002b8b
mov r9d, 0xffffffff
lea rdx, str.Failed_to_setup_privileges
xor r8d, r8d
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002b89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rsi
call fcn.140001260
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005480
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003af0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r8, rcx
lea rcx, [rsp + 0xc8]
call fcn.140002a90
movzx ebx, al
test al, al
je 0x140002972
mov qword [rsp + 0xb0], rbp
lea rcx, str.kernel32
xor ebp, ebp
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0xb8], ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1400028b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0xb8]
call rsi
test eax, eax
je 0x1400028b0
mov eax, ebp
cmp dword [rsp + 0xb8], eax
setne al
jmp 0x1400028b2
mov eax, ebp
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x38], rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinLogon
mov rcx, qword [rsp + 0x80]
xor r9d, r9d
shl eax, 8
xor r8d, r8d
add eax, 0xf003f
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb0]
test rsi, rsi
je 0x140002943
lea rdx, str.Shell
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov rcx, rsi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140002943
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rdi
call fcn.140001260
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
movzx eax, bl
add rsp, 0x98
pop rdi
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov bl, 1
call fcn.140004d90
test al, al
je 0x140003b17
mov rcx, rdi
call fcn.140005000
movzx ebx, al
test al, al
je 0x140003b53
mov rcx, rdi
call fcn.140001730
test al, al
je 0x140003b32
mov rcx, rdi
call fcn.140001a00
movzx ebx, al
test al, al
je 0x140003b53
mov rcx, rdi
call fcn.140001f80
test al, al
je 0x140003b50
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140002820
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004c50
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
xor bl, bl
mov dword [r11 + 0x20], r12d
mov rsi, r8
mov dword [r11 + 0x18], r12d
mov r15d, edx
mov r14, rcx
test r8, r8
je 0x140004d80
lea rax, [r11 - 0x38]
mov rdx, rcx
mov qword [r11 - 0x48], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 0x18]
xor r8d, r8d
mov qword [r11 - 0x50], rax
xor ecx, ecx
mov qword [r11 - 0x58], r12
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140004d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004d80
mov ecx, dword [rsp + 0x98]
mov qword [rsp + 0x88], rdi
call fcn.140004bb0
mov rdi, rax
test rax, rax
je 0x140004d7b
mov ecx, dword [rsp + 0x90]
mov qword [rsp + 0x80], rbp
call fcn.140004be0
mov rbp, rax
test rax, rax
je 0x140004d5b
lea rax, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x98]
lea rax, [rsp + 0x90]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140004d53
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004d48
cmp dword [rsp + 0x40], r15d
jne 0x140004d48
mov qword [rsi], rdi
mov bl, 1
jmp 0x140004d53
mov rcx, rdi
mov qword [rsi], r12
call fcn.140004c20
mov rcx, rbp
call fcn.140004c20
mov rbp, qword [rsp + 0x80]
movzx eax, bl
mov rdi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
movzx eax, bl
jmp 0x140004d66
movzx eax, bl
add rsp, 0x50
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x140005000
Capabilities:
Delete user account

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
xor sil, sil
xor ebx, ebx
mov qword [rax + 0x18], rbx
lea r8, [rax + 0x18]
lea edx, [rbx + 1]
lea rcx, [0x140009200]
call fcn.140004c50
test al, al
je 0x14000509b
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x14000508a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DeleteProfileW]
test eax, eax
je 0x14000507f
lea rdx, [0x140009200]
xor ecx, ecx
call sub.NETAPI32.dll_NetUserDel
test eax, eax
je 0x14000507c
cmp eax, 0x8ad
jne 0x14000507f
mov sil, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call fcn.140004c20
test sil, sil
jne 0x140005145
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, str.An_error_occurred_while_deleting_the__1_user
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rdi, rax
mov dl, 0x20
lea rcx, [rsp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx ebx, word [rax]
mov edx, 3
lea rcx, [0x1400090dc]
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.cpncfg.dll_class_QString___cdecl_CfgTransform::applicationName_class_QString_]
nop
mov word [rsp + 0x20], bx
xor r9d, r9d
mov r8, rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
movzx eax, sil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009810]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009820]
mov dword [rax], 1
mov rax, qword [0x140009830]
mov dword [rax], 1
mov rax, qword [0x1400097c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009800]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400098e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400098c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140009770]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001a30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140001bd0
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ad0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bf2
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b80
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001af8
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400021dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400021d3
test eax, eax
jne 0x1400021d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002408
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002410
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002420
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000246d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002464
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000246f
add rax, 0x28
cmp rax, r9
jne 0x140002450
xor eax, eax
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002500
mov rdx, qword [0x1400097c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ee
cmp word [rax + 0x18], 0x20b
jne 0x1400024ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002500
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002500
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002510
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400097c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002530
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000258d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002530
add rax, 0x28
cmp rax, r9
jne 0x140002570
xor eax, eax
ret

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400097c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400025d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002640
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002637
test rcx, rcx
je 0x1400025f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002628
xor eax, eax
ret