joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048e4
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
and qword [r9], 0
mov r12, rcx
xor ecx, ecx
xor edx, edx
mov rsi, r9
mov r15, r8
mov ebp, 1
call fcn.14004cbe4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
mov r8d, ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0xfffffff5
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rbx
mov ecx, edi
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rbx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
call fcn.140004368
mov rdi, rax
test rax, rax
je 0x1400049ab
mov r9, r15
mov rdx, r12
mov rcx, rax
call fcn.14000464c
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400049c4
mov ecx, 2
call fcn.1400153d8
mov rcx, rax
lea rdx, str._Could_not_load_Python_
call fcn.1400037a0
mov rdx, r13
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, qword [rsp + 0x98]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0x1000
cmp eax, edi
jae 0x140004a06
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [rdi + 1]
movsxd rcx, eax
call fcn.1400474b8
xor r15d, r15d
mov qword [rsi], rax
test rax, rax
je 0x140004a5f
xor r9d, r9d
mov dword [rsp + 0x88], r15d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsi]
lea r9, [rsp + 0x88]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x88]
mov rax, qword [rsi]
mov byte [rcx + rax], r15b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x80]
mov eax, ebp
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a8c
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rdx
mov r14, rcx
lea rdx, str.Py_Initialize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_SetProgramName
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Py_Finalize
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyRun_SimpleString
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PyErr_Print
mov rcx, r14
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r15, r15
je 0x140004b4b
test rbx, rbx
je 0x140004b4b
test rdi, rdi
je 0x140004b4b
test rbp, rbp
je 0x140004b4b
test rax, rax
je 0x140004b4b
lea rcx, [0x14008d5a0]
call rbx
call r15
mov rcx, r14
call fcn.1400044ac
mov rcx, r12
call rbp
mov ebx, eax
test eax, eax
je 0x140004b45
call rsi
call rdi
mov eax, ebx
jmp 0x140004b4e
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004b70
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, qword [0x14008d8a8]
xor edx, edx
xor ecx, ecx
call fcn.14004cbe4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000080
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x20], 2
mov r14, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0xfffffff5
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, 0xfffffff4
mov r15, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rsi
mov ecx, ebx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
call fcn.140004368
mov rbx, rax
test rax, rax
jne 0x140004c53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Cant_load_Python_for_pre_install_script___d_
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x50]
call fcn.140003afc
or eax, 0xffffffff
jmp 0x140004d3c
mov rdx, rdi
mov rcx, rbx
call fcn.140004a8c
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, r15
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, r12
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
test ebp, ebp
je 0x140004d28
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, 0x1000
cmp edi, 0xffffffff
cmove edi, eax
lea eax, [rdi + 0x2d]
movsxd rcx, eax
call fcn.1400474b8
mov rbx, rax
test rax, rax
je 0x140004d1c
and dword [rsp + 0x40], 0
lea rdx, str.Running_the_pre_installation_script_failed_r_n
sub rax, rdx
mov cl, byte [rdx]
mov byte [rax + rdx], cl
inc rdx
test cl, cl
jne 0x140004cc7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x2c]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov rcx, rbx
add eax, 0x2c
mov byte [rax + rbx], 0
call fcn.140003afc
mov rcx, rbx
call fcn.1400321c8
jmp 0x140004d28
lea rcx, str.Out_of_memory_
call fcn.140003afc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14000b140
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000500c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, [0x14008da00]
xor r9d, r9d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005059
xor eax, eax
jmp 0x1400050c5
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
mov esi, eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140005055
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov dword [0x14008d8cc], esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000514c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [0x14008d838]
xor ebp, ebp
mov edx, dword [0x14008d8cc]
mov eax, edx
sub edx, dword [rdx + rcx - 6]
sub edx, dword [rax + rcx - 0xa]
sub edx, 0x22
mov qword [0x14008d8a8], rbp
movsxd rbx, edx
add rbx, rcx
mov qword [0x14008eb88], rbp
cmp dword [rax + rcx - 0x16], 0x6054b50
jne 0x1400052d9
cmp dword [rbx], 0x1234567b
je 0x1400051d3
lea rdx, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
xor ecx, ecx
call fcn.140004d70
jmp 0x1400052db
test edx, edx
js 0x1400052d9
movsxd r8, dword [rbx + 8]
test r8d, r8d
je 0x1400051f8
movsxd rax, dword [rbx + 4]
mov rcx, rbx
sub rcx, rax
sub rcx, r8
mov qword [0x14008eb90], rcx
lea r14, [rbx + 4]
mov edi, 0x104
sub edx, dword [r14]
mov ecx, edi
sub edx, r8d
mov dword [0x14008d584], edx
movsxd rax, dword [r14]
sub rbx, rax
call fcn.1400474b8
mov rsi, rax
test rax, rax
je 0x1400052d9
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1400052c5
mov r9, rsi
lea rdx, [0x14007d26c]
xor r8d, r8d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1400052c5
mov r9d, dword [r14]
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rdx, rsi
mov word [rsp + 0x28], bp
mov word [rsp + 0x20], bp
lea ecx, [r8 + 2]
call fcn.1400030f0
mov rdi, rax
test rax, rax
je 0x1400052d9
movsxd r8, dword [r14]
mov rdx, rbx
mov rcx, rax
call fcn.14002ea70
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], bpl
jne 0x140005292
lea rcx, [rbx + 1]
add rcx, rax
call fcn.14004de54
mov rcx, rdi
mov qword [0x14008d8a8], rax
mov qword [0x14008eb88], rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
jmp 0x1400052db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Could_not_create_temporary_file
call fcn.140004d70
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000b140
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140006c48
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x28], 1
lea r9, [0x14007cba2]
and qword [rsp + 0x20], 0
lea r8, [0x14008da00]
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x140006cc0
mov r8d, eax
lea rdx, str.Failed_to_start_elevated_process__ShellExecute_returned__d_
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x10
lea r8, [0x14007da54]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000b140
add rsp, 0xc8
ret
Function at 0x140006ff8
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp - 0x20]
lea rdx, str._s.bat
lea rcx, [rbp + 0xf0]
call fcn.1400038fc
lea rdx, [0x14007db38]
lea rcx, [rbp + 0xf0]
call fcn.1400151f8
lea rdx, str.:Repeat_n
mov rcx, rax
mov rbx, rax
call fcn.1400037a0
lea r8, [rbp - 0x20]
mov rcx, rbx
lea rdx, str.del___s__n
call fcn.1400037a0
lea r8, [rbp - 0x20]
mov rcx, rbx
lea rdx, str.if_exist___s__goto_Repeat_n
call fcn.1400037a0
lea r8, [rbp + 0xf0]
mov rcx, rbx
lea rdx, str.del___s__n
call fcn.1400037a0
mov rcx, rbx
call fcn.14001555c
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call fcn.14000c9e0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0xf0]
xor ebx, ebx
mov dword [rbp - 0x54], 1
lea rax, [rsp + 0x70]
mov word [rbp - 0x50], bx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [0x14007cba0]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140007174
mov rcx, qword [rsp + 0x58]
lea edx, [rbx - 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea edx, [rbx + 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14000b140
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rbp
ret
Function at 0x140007194
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14004de54
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.14000c2b0
mov rdi, rax
test rax, rax
je 0x14000728a
mov edx, 0x5d
lea rcx, [rax + 1]
call fcn.14000c2b0
mov rbx, rax
test rax, rax
je 0x14000728a
mov edx, 0xa
mov byte [rax], 0
lea rcx, [rax + 1]
call fcn.14000c2b0
test rax, rax
je 0x1400071ff
mov byte [rax], 0
mov rcx, qword [0x14008ac48]
lea rax, [rsp + 0x48]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007245
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
lea r8, str.Could_not_open_key
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140007282
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, 0xfffffffd
je 0x140007277
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
lea r8, str.Could_not_delete_key
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.1400321c8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400072a0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14004de54
mov edx, 0x5b
mov rcx, rax
mov rbp, rax
call fcn.14000c2b0
mov rdi, rax
test rax, rax
je 0x14000739a
mov edx, 0x5d
lea rcx, [rax + 1]
call fcn.14000c2b0
mov rbx, rax
test rax, rax
je 0x14000739a
mov edx, 0x3d
mov byte [rax], 0
lea rcx, [rax + 1]
call fcn.14000c2b0
test rax, rax
je 0x14000739a
mov rcx, qword [0x14008ac48]
lea rdx, [rdi + 1]
mov byte [rax], 0
mov r9d, 0x20006
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007355
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
lea r8, str.Could_not_open_key
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140007392
mov rcx, qword [rsp + 0x48]
lea rdx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
je 0x140007387
call qword [sym.imp.USER32.dll_GetFocus]
xor r9d, r9d
lea r8, str.Could_not_delete_value
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbp
call fcn.1400321c8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400073b0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x3a
call fcn.14000c2b0
mov rbx, rax
test rax, rax
jne 0x1400073ce
add rsp, 0x20
pop rbx
ret
inc rbx
movsx ecx, byte [rbx]
call fcn.140032bb0
test eax, eax
jne 0x1400073ce
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileA]
Function at 0x1400073ec
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x3a
call fcn.14000c2b0
mov rbx, rax
test rax, rax
jne 0x14000740a
add rsp, 0x20
pop rbx
ret
inc rbx
movsx ecx, byte [rbx]
call fcn.140032bb0
test eax, eax
jne 0x14000740a
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
Function at 0x14004947c
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400491b4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400491b4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400491b4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400491b4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400491b4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400491b4
cmp dword [rcx + 0xf8], esi
je 0x1400491b4
mov ecx, r14d
call fcn.140049384
mov ecx, 2
call fcn.140053220
nop
cmp byte [0x14008c048], 0
jne 0x14004927e
mov r15d, 1
mov eax, r15d
xchg dword [0x14008c038], eax
test ebx, ebx
jne 0x140049227
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14008c040]
cmp rcx, rax
je 0x14004921e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x14006f5a8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14008c058]
jmp 0x140049233
cmp ebx, r15d
jne 0x140049239
lea rcx, [0x14008c070]
call fcn.14004b844
nop
test ebx, ebx
jne 0x140049250
lea rdx, [0x14006f638]
lea rcx, [0x14006f610]
call fcn.140048fb4
lea rdx, [0x14006f648]
lea rcx, [0x14006f640]
call fcn.140048fb4
movzx eax, byte [0x14008c048]
test esi, esi
cmove eax, r15d
mov byte [0x14008c048], al
jmp 0x14004927e
mov ecx, 2
call fcn.140053274
test esi, esi
jne 0x140049295
mov ecx, r14d
call fcn.1400492b0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140049144
Function at 0x14005dfbc
Capabilities:
Create thread
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.140051fdc
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x14005e00f
test rbx, rbx
je 0x14005e000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x14005e00f
mov edi, 4
jmp 0x14005e0b8
call fcn.140051d84
test al, al
jne 0x14005e02c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x14005e0b8
test bpl, bpl
je 0x14005e08f
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x14005de60]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005e0b8
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x14005e089
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005e0b8
mov edi, dword [rsp + 0x44]
jmp 0x14005e081
call fcn.140051f08
test al, al
jne 0x14005e0a0
bts esi, 0x15
xor ecx, ecx
jmp 0x14005e0a8
call fcn.140051e40
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140051bbc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140069884
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140069656
call fcn.14002f340
mov dword [rax], 0x16
call fcn.14004f904
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140069638
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140069638
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140069688
lock or dword [rax + 0x14], 0x10
jmp 0x140069638
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400696a5
mov rcx, qword [rbp + 0x20]
call fcn.1400699c0
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1400696ba
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1400696c0
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14005267c
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14004e690
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140069713
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140069638
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14006977f
mov rcx, qword [rbp + 0x20]
call fcn.14005267c
cmp eax, 0xffffffff
je 0x140069766
mov rcx, qword [rbp + 0x20]
call fcn.14005267c
cmp eax, 0xfffffffe
je 0x140069766
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14005267c
movsxd rdi, eax
lea r15, [0x14008c240]
mov rcx, rbx
sar rdi, 6
call fcn.14005267c
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14006976d
lea rax, [0x14008a270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006977f
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1400697b5
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400697b1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400697b1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1400697d3
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1400697de
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14006963d
jmp 0x140069604