joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d20
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov r8, rdx
mov rsi, rdx
lea rdx, str.Language_Resource_English
mov qword [rsp + 0x20], rdi
mov rbx, rcx
call fcn.004039a0
xor edi, edi
mov dword [rbx + 0x808], edi
movsxd rax, dword [rbx + 0x808]
shl rax, 4
mov rdx, qword [rax + rbx + 8]
test rdx, rdx
je 0x403d76
lea rcx, str.Primary_Language_Resource
call qword [sym.imp.msvcrt.dll__mbsicmp]
test eax, eax
je 0x403dda
inc dword [rbx + 0x808]
cmp dword [rbx + 0x808], 0x80
jl 0x403d50
mov rdx, rdi
mov r8, rsi
mov rcx, rbx
call fcn.004039a0
mov dword [rbx + 0x808], edi
nop
movsxd rax, dword [rbx + 0x808]
shl rax, 4
mov rdx, qword [rax + rbx + 8]
test rdx, rdx
je 0x403dc6
lea rcx, str.Language_Resource
call qword [sym.imp.msvcrt.dll__mbsicmp]
test eax, eax
je 0x403dee
inc dword [rbx + 0x808]
cmp dword [rbx + 0x808], 0x80
jl 0x403da0
jmp 0x403e00
movsxd rax, dword [rbx + 0x808]
inc rax
shl rax, 4
mov rdx, qword [rax + rbx]
jmp 0x403d8b
movsxd rax, dword [rbx + 0x808]
inc rax
shl rax, 4
mov rdi, qword [rax + rbx]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
jmp fcn.004039a0
Function at 0x404100
Capabilities:
Delete file
Set file attributes

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xc0], rbx
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0xb8], rdi
mov rdi, rcx
mov r8d, 0x4000
mov rcx, rbx
mov byte [rsp + 0x20], 0x88
call qword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x404165
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov rdx, rbx
mov rcx, rdi
call fcn.00403e30
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xc8
ret
Function at 0x405600
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub rsp, 0x1a8
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x198], rbp
mov qword [rsp + 0x190], rsi
mov rsi, rcx
xor ebp, ebp
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x188], rdi
mov rbx, rdx
sub rcx, r8
mov dword [rsp + 0x60], ebp
nop
movzx eax, byte [r8]
inc r8
test al, al
mov byte [rcx + r8 - 1], al
jne 0x405640
xor eax, eax
lea rdi, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x0040d40c]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
xor ecx, ecx
movzx eax, byte [r9 + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x405683
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdi, qword [rsp + 0x188]
test eax, eax
jne 0x4057b6
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4057ab
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x4057ab
nop
nop
nop
mov rcx, qword [rsp + 0x68]
lea edx, [rax - 1]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x64], 0x80
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea r9, [rsp + 0x100]
lea r8, [rsp + 0x80]
mov rdx, rbx
mov rcx, rsi
call fcn.00405600
test eax, eax
jne 0x40579e
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [rsp + 0x60]
add eax, 0xffffffff
mov dword [rsp + 0x60], eax
jne 0x405730
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x198]
mov eax, dword [rsp + 0x60]
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x1a8
ret
Function at 0x405b90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov rbp, rdx
mov r13, rcx
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov r12, rax
je 0x405cde
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0xf01ff
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rsi, rax
je 0x405cbb
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x405c86
mov ebx, 0x64
dec ebx
cmp dword [rsp + 0x24], 1
je 0x405c52
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x405c4b
test ebx, ebx
jne 0x405c21
cmp dword [rsp + 0x24], 1
jne 0x405c5f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405c81
mov edx, 8
mov rcx, r13
call entry0
lea rdx, str.Error:
mov r9, rbp
mov r8, rax
mov rcx, r13
call fcn.004025d0
mov rbx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x405cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov edi, eax
jne 0x405cb0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x405ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x424
cmove edi, r14d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x60]
mov eax, edi
jmp 0x405cee
mov rdx, rbp
mov rcx, r13
call fcn.00401440
mov eax, 0x427
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x4079c0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x5f8
mov qword [rsp + 0x5f0], rbx
mov qword [rsp + 0x5e8], rbp
mov qword [rsp + 0x5e0], rsi
mov rbp, rdx
mov qword [rsp + 0x5d8], rdi
lea rcx, [rsp + 0x24]
mov qword [rsp + 0x5d0], r12
xor r12d, r12d
mov r8d, 0x12c
xor edx, edx
mov dword [rsp + 0x20], r12d
call sub.msvcrt.dll_memset
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x407a28
xor eax, eax
jmp 0x407b38
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407b1d
lea rcx, [rsp + 0x394]
mov r8d, 0x234
xor edx, edx
mov dword [rsp + 0x390], r12d
call sub.msvcrt.dll_memset
jmp 0x407a70
lea rcx, [rsp + 0x154]
mov r8d, 0x234
xor edx, edx
mov edi, r12d
mov dword [rsp + 0x150], r12d
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x28]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x407b08
lea rdx, [rsp + 0x150]
mov rcx, rax
mov dword [rsp + 0x150], 0x238
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x407ae6
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x390]
mov r8d, 0x238
call sub.msvcrt.dll_memcpy
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x407b08
lea rdx, [rsp + 0x3c0]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__mbsicmp]
test eax, eax
je 0x407b58
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407a70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x5d8]
mov rbx, qword [rsp + 0x5f0]
mov r12, qword [rsp + 0x5d0]
mov rsi, qword [rsp + 0x5e0]
mov rbp, qword [rsp + 0x5e8]
add rsp, 0x5f8
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x407b28

Function at 0x407b70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov rdi, rcx
mov rbx, rdx
call fcn.004079c0
test eax, eax
je 0x407bbe
mov r8d, eax
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rbx
mov rcx, rdi
call fcn.00407b70
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
Function at 0x408570
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xb8], rdi
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, rbx
cmp eax, 0x10
jne 0x4085a6
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x408602
lea rdx, [rsp + 0x20]
mov r8d, 0x4000
mov byte [rsp + 0x20], 0x88
call qword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x4085c5
xor eax, eax
jmp 0x408602
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4085fd
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.00405310
or byte [rdi + 0xb48], al
movzx eax, byte [rdi + 0xb48]
jmp 0x408602
mov eax, 1
mov rdi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
add rsp, 0xc8
ret
Function at 0x180001560
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.180012ad0
xor edx, edx
cmp ebx, 3
cmovb edx, ebx
mov r8, qword [rax + rdx*8]
test r8, r8
je 0x1800015db
mov edx, dword [0x18019e0b0]
mov ecx, edx
test edx, edx
je 0x1800015bf
sub ecx, 1
je 0x180001592
sub ecx, 1
cmp edx, 1
jl 0x1800015a0
mov eax, dword [r8 + 0x368]
jmp 0x1800015c6
lea r8, str.Unknown_version
lea rdx, str.djplayer_uiplayer::getTrackBrowserID
lea rcx, [0x18005a520]
add rsp, 0x20
pop rbx
jmp fcn.180007290
mov eax, dword [r8 + 0x3a0]
test eax, eax
je 0x1800015db
mov edx, 1
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.1800080c0
add rsp, 0x20
pop rbx
ret

Function at 0x180002fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x180003068
test r8, r8
jle 0x180003060
nop word [rax + rax]
mov rcx, rdi
call fcn.180004400
test rax, rax
jle 0x18000303e
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.18002b5b0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x180003058
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180003060
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x180003000
sub r14, rbx
mov rax, r14
jmp 0x1800030e6
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x180003081
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180003083
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x1800030db
test ecx, ecx
jle 0x1800030bc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.18002b5b0
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x1800030db
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800030db
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.18003125c
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180003100
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180003122
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000319c
mov rdi, r14
mov rcx, rbx
call fcn.180004420
test rax, rax
jle 0x180003174
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18002b5b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000318c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003194
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180003136
sub r14, rdi
jmp 0x18000327f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800031b3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800031b5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800031e7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18002b5b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000327c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003222
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000325d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180031918
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000327c
cmp rbp, rax
ja 0x180003230
test rbp, rbp
je 0x18000327c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180031918
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1800036b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800036dd
xor eax, eax
jmp 0x180003823
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180003717
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180003717
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180003823
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180003816
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000375a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180003769
movsx ecx, dil
jmp 0x1800037bd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x1800037d7
sub eax, 1
je 0x1800037d7
cmp eax, 2
jne 0x180003816
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.18002fc44
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000381b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180003804
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.18003125c
cmp rsi, rax
jne 0x180003816
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18000381b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180029360
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180005c00
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x1a0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
cmp edx, 1
jne 0x180005d8f
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.18002bc80
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [0x180000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180005c6d
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
jne 0x180005c87
lea r8, str.Failed_to_process_file_path
lea rdx, str.get_dll_path
lea rcx, [0x18005a520]
call fcn.180007290
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x180005ca4
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180004ac0
nop
mov r8d, 8
lea rdx, str.log.txt
lea rcx, [rsp + 0x38]
call fcn.180004440
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], 0
mov rdx, qword [0x18019e108]
cmp rdx, 0x10
jb 0x180005d2b
mov rcx, qword [0x18019e0f0]
inc rdx
cmp rdx, 0x1000
jb 0x180005d26
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180005dbd
mov rcx, r8
call fcn.180029700
movups xmmword [0x18019e0f0], xmm6
movups xmmword [0x18019e100], xmm7
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x180005d72
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005d6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005dc3
call fcn.180029700
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x180005dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180029360
movaps xmm6, xmmword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x180]
add rsp, 0x1a0
pop rbx
ret
call fcn.180031e2c
nop
call fcn.180031e2c
int3
Function at 0x180006380
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18019d060]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp qword [rcx + 0x28], 0
mov rbx, rcx
je 0x1800064c0
cmp qword [rcx + 0x30], 0
je 0x1800064c0
mov qword [rsp + 0x48], rdi
xor edi, edi
mov word [rcx + 0x48], di
call fcn.1800064e0
test al, al
jne 0x1800063cb
lea r8, str.Failed_to_calculate_relocatable_asm_length
jmp 0x1800063ef
mov r8d, dword [rbx + 0x40]
lea rcx, [rbx + 0x10]
mov rdx, qword [rbx + 0x28]
call fcn.180007040
mov rcx, rbx
call fcn.180006860
test al, al
jne 0x18000641c
lea r8, str.Failed_to_allocate_trampoline
lea rdx, str.Hook::install_hook
lea rcx, [0x18005a520]
call fcn.180007290
xor al, al
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180029360
add rsp, 0x30
pop rbx
ret
mov byte [rbx + 0x50], 1
cmp byte [rbx + 0x51], dil
jne 0x1800064b9
mov edx, dword [rbx + 0x40]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x28]
mov r8d, 0x40
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000645a
lea r8, str.Failed_to_unprotect_target_function_for_hook
lea rdx, str.Hook::rehook
jmp 0x1800063f6
mov rcx, qword [rbx + 0x38]
mov edx, 0x90
mov rax, qword [rbx + 0x28]
sub ecx, eax
sub ecx, 5
mov byte [rax], 0xe9
mov dword [rax + 1], ecx
mov r8d, dword [rbx + 0x40]
mov rcx, qword [rbx + 0x28]
sub r8, 5
add rcx, 5
call fcn.18002bc80
mov edx, dword [rbx + 0x40]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800064b5
lea r8, str.Failed_to_restore_protection_on_target_function
lea rdx, str.Hook::rehook
jmp 0x1800063f6
mov byte [rbx + 0x51], 1
mov al, 1
jmp 0x180006404
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180029360
add rsp, 0x30
pop rbx
ret
Function at 0x1800064e0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdx, qword [rcx + 0x28]
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov r9, rdx
mov r8d, 0x400
call fcn.180012e80
mov rbp, qword [rsp + 0x50]
xor dil, dil
cmp word [rbx + 0x48], 0
mov rsi, rax
setne r9b
xor r14d, r14d
xor r8b, r8b
mov r10d, r14d
test rax, rax
je 0x1800065f9
mov ecx, r14d
lea r11d, [r14 + 1]
imul rcx, rcx, 0xf0
add rcx, rbp
test r8b, r8b
je 0x18000655a
cmp byte [rcx + 0x12], 0xcc
jne 0x1800065f4
test dil, dil
jne 0x180006572
movzx eax, word [rcx + 0x10]
add dword [rbx + 0x40], eax
cmp dword [rbx + 0x40], 5
movzx edi, dil
cmovae edi, r11d
movzx eax, word [rcx + 0x10]
cmp ax, r11w
jb 0x1800065a6
movzx edx, byte [rcx + 0x12]
cmp dl, 0xf
jne 0x180006597
cmp ax, r11w
jbe 0x1800065a6
movzx eax, byte [rcx + 0x13]
sub al, 0x80
cmp al, dl
ja 0x1800065a6
jmp 0x1800065a3
lea eax, [rdx - 0x70]
cmp al, 0xf
jbe 0x1800065a3
cmp dl, 0xe3
jne 0x1800065a6
inc dword [rbx + 0x4c]
test r9b, r9b
jne 0x1800065ca
movzx eax, byte [rcx + 0x12]
cmp al, 0xc3
jne 0x1800065ba
mov word [rbx + 0x48], r14w
jmp 0x1800065c6
cmp al, 0xc2
jne 0x1800065ca
movzx eax, word [rcx + 0x13]
mov word [rbx + 0x48], ax
movzx r9d, r11b
test r8b, r8b
jne 0x1800065db
cmp byte [rcx + 0x12], 0xcc
movzx r8d, r8b
cmove r8d, r11d
test dil, dil
je 0x1800065e5
test r9b, r9b
jne 0x180006628
inc r10d
mov ecx, r10d
cmp rcx, rsi
jb 0x180006541
test dil, dil
jne 0x180006628
mov r9d, dword [rbx + 0x40]
lea r8, str.Only_counted__u_bytes_needed__u
lea rdx, str.Hook::calculate_asm_length
mov dword [rsp + 0x20], 5
lea rcx, [0x18005a520]
call fcn.180007290
mov dword [rbx + 0x40], r14d
test rsi, rsi
je 0x180006646
lea rbx, [rbp + 0xe8]
nop
mov rcx, qword [rbx]
call qword [fcn.1800314ec]
lea rbx, [rbx + 0xf0]
sub rsi, 1
jne 0x180006630
mov rcx, rbp
call qword [fcn.1800314ec]
mov rbx, qword [rsp + 0x58]
movzx eax, dil
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret