joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027cd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140039450
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140039450
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400289a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004d028]
test eax, eax
je 0x140028a3a
lea rax, [0x14004d000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004d030]
mov qword [rbp - 8], rax
jmp 0x140028a1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140028a12
cmp qword [rbp - 0x10], 0
je 0x140028a12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400289d8
lea rax, [0x14004d000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140028a3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140028b40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140028b68
mov eax, 0
jmp 0x140028bb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140028b91
mov eax, 0
jmp 0x140028bb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140028bb1
mov eax, 0
jmp 0x140028bb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140028bbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140028c3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140028c31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140028c31
mov rax, qword [rbp - 8]
jmp 0x140028c4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140028c04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013950
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112e4
Capabilities:
Execute command

Disassembly:
jmp 0x140012340
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140024066]
call fcn.1400113fc
nop
lea rax, str._n________start_____Q3Elite_XQ3E_OpenGL.x64.exe__set_fs_basepath___dp0__set_com_hunkMegs_512_set_com_zoneMegs_256_set_com_soundMegs_256_set_vm_rtChecks_0_set_fs_game_osp_r_gamma_1.5_set_r_ext_multisample_1_set_r_ambientScale_2_set_r_renderScale_0_set_con_Scale_1.25_set_cg_CrosshairSize_18_set_cg_gunX_6.5_wait_100_play__music_Menu.wav__wait_100_play__sound_feedback_intro_01.wav__play__sound_misc_nightmare.wav__wait_10_clear_echo__1__echo____echo__1___7Mus1n1.7github1.7io1_____echo____echo__1__n
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400123aa
lea rdx, str.Command_execution_failed_with_error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
mov edx, dword [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ca0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014cc0
xor al, al
jmp 0x140014d41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014cd3
xor al, al
jmp 0x140014d41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014cfd
xor al, al
jmp 0x140014d41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014d11
xor al, al
jmp 0x140014d41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014d23
xor al, al
jmp 0x140014d41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d3f
xor al, al
jmp 0x140014d41
mov al, 1
add rsp, 0x38
ret
Function at 0x1400129f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011424
movzx eax, al
test eax, eax
jne 0x140012a10
mov ecx, 7
call fcn.140011398
nop
mov byte [rsp + 0x20], 0
call fcn.1400113ac
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012a34
mov ecx, 7
call fcn.140011398
nop
jmp 0x140012a8c
cmp dword [0x14001e868], 0
jne 0x140012a87
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111f9
test eax, eax
je 0x140012a68
mov eax, 0xff
jmp 0x140012b91
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.1400113a2
mov dword [0x14001e868], 2
jmp 0x140012a8c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011384
call fcn.140011316
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012ae9
mov rcx, qword [rsp + 0x30]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140012ae9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011348
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012b1d
mov rcx, qword [rsp + 0x38]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140012b1d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113e3
nop
call fcn.140012c40
mov dword [rsp + 0x28], eax
call fcn.1400112ee
movzx eax, al
test eax, eax
jne 0x140012b3c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012b4b
call fcn.1400113ed
nop
xor edx, edx
mov cl, 1
call fcn.140011190
mov eax, dword [rsp + 0x28]
jmp 0x140012b91
add rsp, 0x68
ret
Function at 0x140bc6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140bc61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140bc6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc606f
add dl, dl
jne 0x140bc6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc60f6
xor eax, eax
add dl, dl
jne 0x140bc60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc61ad
add dl, dl
jne 0x140bc60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bc60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bc607e
mov eax, 1
add dl, dl
jne 0x140bc6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc60fb
sub eax, ebx
mov ebx, 1
jne 0x140bc614c
mov ecx, 1
add dl, dl
jne 0x140bc612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bc613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bc6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bc6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc615d
cmp eax, 0x7d00
jae 0x140bc619b
cmp eax, 0x500
jb 0x140bc6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc607e
cmp eax, 0x7f
ja 0x140bc619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bc61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140bc607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401290
Capabilities:
Extract cabinet on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea r9, [sym.cabinet_read]
lea r8, [sym.cabinet_open]
xor r14d, r14d
lea rax, [rsp + 0x54]
mov dword [rsp + 0x38], 0
mov rsi, rcx
mov rbx, rdx
mov qword [rsp + 0x40], rax
lea rax, [sym.cabinet_seek]
lea rdx, [sym.cabinet_free]
mov qword [rsp + 0x30], rax
lea rax, [sym.cabinet_close]
lea rcx, [sym.cabinet_alloc]
mov qword [rsp + 0x28], rax
lea rax, [sym.cabinet_write]
mov qword [rsp + 0x20], rax
call sym.FDICreate
mov r12, rax
test rax, rax
je 0x4013cc
test rsi, rsi
je 0x4013e0
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov rdi, qword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
mov ecx, eax
mov r14, rcx
call qword [sym.imp.ucrtbase.dll_malloc]
mov r13, rax
test rax, rax
je 0x4013e0
mov dword [rsp + 0x28], r14d
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rdi
lea rax, [sym.cabinet_notify]
mov rcx, r12
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sym.FDICopy
mov rcx, r13
mov r14d, eax
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, r12
call sym.FDIDestroy
mov eax, r14d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x4013c4
Function at 0x401ab0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push r12
push rdi
push rbx
sub rsp, 0x300
xor eax, eax
mov ecx, 0xd
mov edx, 0x104
lea rbx, [rsp + 0x80]
lea r12, [rsp + 0xf0]
mov dword [rsp + 0x54], 1
mov rdi, rbx
rep stosq qword [rdi], rax
mov rcx, r12
mov dword [rsp + 0x80], 0x68
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea rdx, str.wusa.exe
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_wcscat]
lea rcx, [rsp + 0x58]
call qword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
call qword [sym.imp.kernel32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov rdx, rax
lea rax, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x401bb6
test byte [section..data], 8
jne 0x401c00
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x54]
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [sym.imp.kernel32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x68]
call rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x401ba1
or edx, 0xffffffff
mov rcx, r12
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x68]
call sym.wine_dbgstr_wn
lea r9, str.Failed_to_restart_64_bit__s__err__lu_n
mov ecx, 1
lea r8, str.restart_as_x86_64
mov dword [rsp + 0x28], ebx
lea rdx, section..data
mov qword [rsp + 0x20], rax
call sym.wine_dbg_log.constprop.0
jmp 0x401ba1
or edx, 0xffffffff
mov rcx, r12
call sym.wine_dbgstr_wn
lea r9, str.Restarting__s_n
mov ecx, 3
lea r8, str.restart_as_x86_64
mov qword [rsp + 0x20], rax
lea rdx, section..data
call sym.wine_dbg_log.constprop.0
jmp 0x401b6e

Function at 0x401c40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c68
test al, 0x10
je 0x401c68
mov eax, 1
add rsp, 0x20
pop r12
ret
xor edx, edx
mov rcx, r12
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x401c58
mov rax, qword gs:[0x30]
cmp dword [rax + 0x68], 0xb7
sete al
movzx eax, al
add rsp, 0x20
pop r12
ret
Function at 0x401ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
call qword [sym.imp.ucrtbase.dll__wcsdup]
mov r12, rax
test rax, rax
je 0x401d59
mov rcx, rax
call qword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401ce8
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r13d
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r12
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401d00
mov r13d, 1
test al, 0x10
jne 0x401ccb
movzx eax, word [r12]
mov rbx, r12
test ax, ax
jne 0x401d1d
jmp 0x401d49
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x401d49
cmp ax, 0x5c
jne 0x401d10
xor edx, edx
mov rcx, r12
mov word [rbx], dx
call sym.create_directory
test eax, eax
je 0x401cc8
mov eax, 0x5c
add rbx, 2
mov word [rbx - 2], ax
movzx eax, word [rbx]
test ax, ax
jne 0x401d1d
mov rcx, r12
call sym.create_directory
mov r13d, eax
jmp 0x401ccb
xor r13d, r13d
jmp 0x401cd4

Function at 0x401ea0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov r12, rcx
test rcx, rcx
je 0x401f7f
lea rdx, [0x0040b072]
call sym.path_combine.part.0
mov r14, rax
test rax, rax
je 0x401f7f
lea rdi, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_FindFirstFileW]
mov rcx, r14
mov r14, qword [sym.imp.ucrtbase.dll_free]
mov r13, rax
call r14
cmp r13, 0xffffffffffffffff
je 0x401f75
mov rsi, qword [sym.imp.ucrtbase.dll_wcscmp]
lea rbx, [rsp + 0x5c]
lea rbp, [0x0040b076]
lea r15, [0x0040b07a]
mov rdx, rbp
mov rcx, rbx
call rsi
test eax, eax
je 0x401f5c
mov rdx, r15
mov rcx, rbx
call rsi
test eax, eax
je 0x401f5c
mov rcx, r12
mov rdx, rbx
call sym.path_combine.part.0
mov rcx, rax
test rax, rax
je 0x401f5c
test byte [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
je 0x401f98
call sym.delete_directory.isra.0
mov rcx, qword [rsp + 0x28]
call r14
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x401f18
mov rcx, r13
call qword [sym.imp.kernel32.dll_FindClose]
mov rcx, r12
call qword [sym.imp.kernel32.dll_RemoveDirectoryW]
nop
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x28]
jmp 0x401f59
Function at 0x402980
Capabilities:
Set registry value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov r13, rdx
mov rdx, qword [r8 + 0x20]
mov rsi, r8
mov ebx, r9d
call sym.expand_expression
cmp qword [rsi + 0x20], 0
mov r12, rax
je 0x402a00
test rax, rax
je 0x402ab0
cmp word [r12], 0
mov rax, r12
je 0x402ac8
nop
add rax, 2
cmp word [rax], 0
jne 0x4029c0
sub rax, r12
sar rax, 1
lea eax, [rax + rax + 2]
mov edx, dword [rsp + 0x80]
test edx, edx
je 0x402a12
mov r13d, 1
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
test rax, rax
jne 0x4029af
mov edx, dword [rsp + 0x80]
xor eax, eax
test edx, edx
jne 0x4029df
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, qword [rsi + 0x10]
mov r9d, ebx
mov qword [rsp + 0x20], r12
mov rcx, r13
call qword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
je 0x4029df
xor r13d, r13d
test byte [section..data], 2
je 0x4029e5
mov r13, qword [rsi + 0x10]
lea rax, [0x0040b00e]
test r13, r13
je 0x402a83
mov rax, r13
shr rax, 0x10
je 0x402ad2
mov rdx, 0xffffffffffffffff
mov rcx, r13
call qword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov r8d, eax
lea rax, [0x0040b015]
test r8d, r8d
jne 0x402a83
mov edx, 0xffffffff
mov rcx, r13
call sym.wine_dbgstr_wn.part.0
mov qword [rsp + 0x20], rax
mov ecx, 1
xor r13d, r13d
lea r9, str.Failed_to_set_registry_key__s_n
lea r8, str.install_registry_string
lea rdx, section..data
call sym.wine_dbg_log.constprop.0
jmp 0x4029e5
xor r13d, r13d
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
mov eax, 2
jmp 0x4029d4
movzx edx, r13w
lea rcx, [0x0040b008]
call sym.wine_dbg_sprintf.constprop.0
jmp 0x402a83
Function at 0x4087e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x408833
cmp byte [r12 + rbx - 1], 0xa
je 0x40880e
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x00410144], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x408df0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x110
cmp qword [0x00410160], 0
mov ebx, ecx
mov rsi, rdx
mov rdi, r8
je 0x409060
mov rcx, rsi
call qword [0x00410160]
movzx eax, al
bt eax, ebx
jae 0x4090f8
mov ecx, dword [0x00410144]
xor eax, eax
mov rdx, qword gs:[0x30]
cmp dword [rdx + 0x48], ecx
je 0x408ec2
test byte [0x0040a030], 8
jne 0x408fc8
test byte [0x0040a040], 8
jne 0x408f10
lea r12, [rsp + 0x40]
mov rbp, r12
test byte [0x0040a050], 8
jne 0x408f78
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
lea rdx, str._04x:
mov rcx, rbp
call sym.sprintf
test rdi, rdi
je 0x408e97
cmp ebx, 3
jbe 0x408ed0
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, r12
mov rbx, rax
call qword [sym.imp.ucrtbase.dll_strlen]
mov r9, rbx
mov edx, 1
mov rcx, r12
mov r8, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cdqe
add rsi, 1
mov qword [rsp + 0x28], rdi
lea r8, str._s:_s:_s
lea rcx, [rbp + rax]
mov rax, r12
mov qword [rsp + 0x20], rsi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x408e97
cmp qword [0x00410160], 0
je 0x409080
lea rcx, [0x0040a040]
call qword [0x00410160]
test al, 8
je 0x408e5c
call qword [sym.imp.kernel32.dll_GetTickCount]
lea r12, [rsp + 0x40]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, r12
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x408e64
cmp qword [0x00410160], 0
je 0x4090a0
lea rcx, [0x0040a050]
call qword [0x00410160]
test al, 8
je 0x408e71
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
mov rcx, rbp
lea rdx, str._04x:
call sym.sprintf
cdqe
add rbp, rax
jmp 0x408e71
cmp qword [0x00410160], 0
je 0x4090c0
lea rcx, [0x0040a030]
call qword [0x00410160]
test al, 8
je 0x408e4f
cmp qword [0x00410020], 0
je 0x4090e0
lea rcx, [rsp + 0x38]
lea r12, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov rcx, r12
imul rax, qword [rsp + 0x38], 0xf4240
cqo
idiv qword [0x00410020]
movabs rdx, 0x431bde82d7b634db
mov r9, rax
imul rdx
mov rax, r9
sar rax, 0x3f
sar rdx, 0x12
mov r8, rdx
lea rdx, str._3u._06u:
sub r8, rax
imul rax, r8, 0xf4240
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x408e64
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
lea rcx, [0x00410160]
call sym.load_func.part.0
jmp 0x408e13
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
lea rcx, [0x00410160]
call sym.load_func.part.0
jmp 0x408f1e
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
lea rcx, [0x00410160]
call sym.load_func.part.0
jmp 0x408f86
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
lea rcx, [0x00410160]
call sym.load_func.part.0
jmp 0x408fd6
lea rcx, [0x00410020]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
jmp 0x408ff9
mov eax, 0xffffffff
jmp 0x408ec2
Function at 0x409420
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sym._configure_wide_argv
call sym._initialize_wide_environment
call sym.__p___argc
mov r12d, dword [rax]
call sym.__p___wargv
mov r13, qword [rax]
call sym._get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sym._set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call sym.wmain
mov ecx, eax
call sym.exit
nop
nop
nop
nop