joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180086150
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
call fcn.18007e480
mov r11, qword [0x180140ef8]
test r11, r11
je 0x180086194
xor edx, edx
mov r8d, esi
lea ecx, [rdx + 1]
call r11
mov rsi, rax
test rax, rax
jne 0x1800861a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
test eax, eax
jne 0x1800861c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x180086420
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.180043ef0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18002b2f0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x150
pop rbx
ret

Function at 0x180086840
Capabilities:
Suspend thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.18007e480
cmp qword [0x180140ef8], 0
je 0x1800868a6
lea rcx, [rsp + 0x28]
call fcn.1800302e0
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xd0]
mov ebp, eax
test eax, eax
jne 0x1800868aa
lea rcx, [rsp + 0x28]
call fcn.1800302f0
xor eax, eax
jmp 0x180086919
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18008690d
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180140ef8]
mov rbx, rax
test rsi, rsi
jne 0x1800868e1
test rax, rax
je 0x180086900
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x18008690d
jmp 0x1800868c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.1800302f0
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x180086940
Capabilities:
Resume thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.18007e480
cmp qword [0x180140ef8], 0
je 0x1800869a6
lea rcx, [rsp + 0x28]
call fcn.1800302e0
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xd0]
mov ebp, eax
test eax, eax
jne 0x1800869aa
lea rcx, [rsp + 0x28]
call fcn.1800302f0
xor eax, eax
jmp 0x180086a19
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x180086a0d
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180140ef8]
mov rbx, rax
test rsi, rsi
jne 0x1800869e1
test rax, rax
je 0x180086a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x180086a0d
jmp 0x1800869c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.1800302f0
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x180086a40
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov ebx, r9d
mov r13, r8
mov rbp, rdx
mov r12, rcx
lea rcx, [rsp + 0x28]
call fcn.1800302e0
nop
mov rax, qword [r12]
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [rax + 0xb0]
test eax, eax
jne 0x180086aa3
lea rcx, [rsp + 0x28]
call fcn.1800302f0
xor eax, eax
jmp 0x180086b3f
xor esi, esi
mov ebx, esi
cmp dword [rsp + 0x30], ebx
jle 0x180086b30
mov edi, esi
test esi, esi
jne 0x180086ad4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea r8d, [rsi + 1]
lea rdx, str.SeDebugPrivilege
call fcn.18007b470
mov esi, 1
mov rax, qword [rsp + 0x28]
mov r9, qword [r12]
mov r8d, dword [rdi + rax]
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [r9 + 0x80]
nop
mov r8, r13
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.1800867c0
test eax, eax
je 0x180086b1a
mov rax, qword [rsp + 0x28]
mov r8d, dword [rdi + rax]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180030560
nop
lea rcx, [rsp + 0x60]
call fcn.180027bd0
inc ebx
add rdi, 4
cmp ebx, dword [rsp + 0x30]
jl 0x180086ab3
lea rcx, [rsp + 0x28]
call fcn.1800302f0
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180087ce0
Capabilities:
Encode data using base64

Disassembly:
mov rax, r8
mov r8d, edx
mov rdx, rcx
mov rcx, rax
jmp fcn.1800977c0
Function at 0x18008c660
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
jne 0x18008c669
xor eax, eax
jmp 0x18008c6b1
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x18008c677
xor eax, eax
jmp 0x18008c6b1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x18008c68a
xor eax, eax
jmp 0x18008c6b1
cmp word [rax + 0x14], 0
jne 0x18008c695
xor eax, eax
jmp 0x18008c6b1
test edx, edx
je 0x18008c6a8
mov ecx, 0x8664
cmp word [rax + 4], cx
je 0x18008c6a8
xor eax, eax
jmp 0x18008c6b1
mov eax, 1
jmp 0x18008c6b1
repz ret

Function at 0x18008cae0
Capabilities:
Parse pe header

Disassembly:
mov edx, 1
jmp fcn.18008c660

Function at 0x18008dbb0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1801412d4]
test eax, eax
jne 0x18008dbde
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.SeDebugPrivilege
mov r8d, 1
mov ecx, eax
call fcn.18007b470
mov dword [0x1801412d4], eax
add rsp, 0x28
ret

Function at 0x18008e000
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x148
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x130], rax
test rdx, rdx
jne 0x18008e03b
mov eax, 0xf0000001
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret
lea rcx, [0x1800d45c0]
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x140], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.comctl32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rdi, rdi
je 0x18008e119
test rax, rax
je 0x18008e119
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180043ef0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.18008da60
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x49
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ea500]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ea4d8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ea4c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ea4e8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.RemoteLoadDll9x_____Can_not_get_function_address
call fcn.1800c3aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret
Function at 0x18008f6b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rcx
lea rcx, [0x1800ea6a4]
mov rsi, rdx
call fcn.18008f160
mov rbx, rax
test rax, rax
jne 0x18008f6f5
xor eax, eax
jmp 0x18008f7a2
xor eax, eax
lea r8, [rsp + 0x30]
mov rdx, rsi
lea r9d, [rax + 0x40]
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
je 0x18008f6ee
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
jne 0x18008f6ee
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0xf8
call fcn.180043ef0
movsxd rdx, dword [rsp + 0x6c]
lea r8, [rsp + 0x70]
add rdx, rsi
mov r9d, 0xf8
mov rcx, rdi
mov qword [rsp + 0x20], 0
call rbx
test eax, eax
je 0x18008f6ee
cmp dword [rsp + 0x70], 0x4550
jne 0x18008f6ee
movzx eax, word [rsp + 0x86]
not ax
movzx eax, ax
shr eax, 0xd
and eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180043ec0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18008fed0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
test rcx, rcx
mov ebx, 0x10000
je 0x18008fef0
lea rbx, [rcx + 0x10000]
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov esi, 0x5a4d
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18008ff97
cmp dword [rsp + 0x40], 0x1000
jne 0x18008ff99
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x18008ff99
bt eax, 8
jb 0x18008ff99
cmp qword [rsp + 0x38], 0x40
jbe 0x18008ff99
cmp word [rbx], si
jne 0x18008ff99
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
mov rax, rdi
sub rax, rbx
add rax, 4
cmp rax, qword [rsp + 0x38]
jb 0x18008ff88
mov edx, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18008ff99
cmp dword [rdi], 0x4550
jne 0x18008ff99
mov rax, rbx
jmp 0x18008ff97
jmp 0x18008ffa8
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x18008ff20
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18008ffc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x30
mov r9, rcx
test rcx, rcx
jne 0x18008ffdb
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9, rax
mov eax, 0x5a4d
cmp word [r9], ax
je 0x18008fff8
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800900c1
movsxd r10, dword [r9 + 0x3c]
add r10, r9
cmp dword [r10], 0x4550
je 0x18009001a
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800900c1
movzx eax, word [r10 + 0x14]
test ax, ax
jne 0x180090036
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800900c1
movzx eax, ax
lea r11, [rax + r10 + 0x18]
xor edx, edx
mov dword [rsp + 0x20], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x1800900a5
lea rcx, [rdx + rdx*4]
lea r8, [r11 + rcx*8]
lea rdi, str.tdetour
mov rsi, r8
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x1800900a1
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1800900a5
cmp dword [r8 + 0x10], 0
je 0x1800900a5
lea rdi, [r9 + rax]
mov eax, dword [rdi]
cmp eax, 0x40
jb 0x1800900a5
cmp dword [rdi + 4], 0x727444
jne 0x1800900a5
cmp dword [rdi + 8], 0
jne 0x180090094
mov dword [rdi + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x1800900c1
inc edx
jmp 0x180090040
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800900c1
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180090520
Capabilities:
Parse pe header

Disassembly:
push rbp
push r14
sub rsp, 0x28
xor ebp, ebp
mov r14, rcx
test rcx, rcx
je 0x18009064c
xor ecx, ecx
mov qword [rsp + 0x58], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x180090647
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x180090647
movsxd rax, dword [r12 + 0x3c]
add rax, r12
je 0x180090647
cmp dword [rax], 0x4550
jne 0x180090647
mov qword [rsp + 0x40], rbx
mov ebx, dword [rax + 0x90]
add rbx, r12
je 0x180090642
mov ecx, dword [rax + 0x94]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], r13
movabs rax, 0xcccccccccccccccd
mov esi, ebp
mul rcx
mov r13, rdx
shr r13, 4
test r13d, r13d
je 0x180090638
add rbx, 0xc
mov qword [rsp + 0x50], rdi
cmp dword [rbx - 0xc], ebp
jne 0x1800905cf
cmp dword [rbx + 4], ebp
je 0x180090633
mov edi, dword [rbx]
add rdi, r12
je 0x180090633
mov rdx, r14
mov rcx, rdi
call fcn.1800527ac
test eax, eax
je 0x18009062e
mov edx, 0x5c
mov rcx, rdi
call fcn.1800465e4
mov r11, rax
test rax, rax
je 0x180090621
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x180090621
lea rcx, [r11 + 1]
mov rdx, r14
call fcn.1800527ac
test eax, eax
je 0x18009062e
inc esi
add rbx, 0x14
cmp esi, r13d
jb 0x1800905c5
jmp 0x180090633
mov ebp, 1
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov eax, ebp
add rsp, 0x28
pop r14
pop rbp
ret
Function at 0x1800914c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
lea rcx, [0x1800ea6a4]
mov rsi, rdx
call fcn.18008f160
mov rbx, rax
test rax, rax
jne 0x180091505
xor eax, eax
jmp 0x1800915b2
xor eax, eax
lea r8, [rsp + 0x30]
mov rdx, rsi
lea r9d, [rax + 0x40]
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
je 0x1800914fe
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
jne 0x1800914fe
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x108
call fcn.180043ef0
movsxd rdx, dword [rsp + 0x6c]
lea r8, [rsp + 0x70]
add rdx, rsi
mov r9d, 0x108
mov rcx, rdi
mov qword [rsp + 0x20], 0
call rbx
test eax, eax
je 0x1800914fe
cmp dword [rsp + 0x70], 0x4550
jne 0x1800914fe
movzx eax, word [rsp + 0x86]
not ax
movzx eax, ax
shr eax, 0xd
and eax, 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180043ec0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800916a0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0xc0
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r8
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], r8
test rdx, rdx
mov ebx, 0x10000
je 0x1800916e2
lea rbx, [rdx + 0x10000]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov r12d, 0x5a4d
nop dword [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x180091805
mov rcx, qword [rsp + 0x48]
mov rax, rcx
and eax, 0xfff
cmp rax, 0xfff
je 0x180091805
add rcx, qword [rsp + 0x30]
cmp rcx, rbx
jb 0x180091805
cmp dword [rsp + 0x50], 0x1000
jne 0x1800917f6
mov eax, dword [rsp + 0x54]
cmp al, 1
je 0x1800917f6
bt eax, 8
jb 0x1800917f6
mov qword [rsp + 0x20], r13
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800917f6
cmp word [rsp + 0x70], r12w
jne 0x1800917e1
movsxd rcx, dword [rsp + 0xac]
mov eax, ecx
cmp rax, qword [rsp + 0x48]
ja 0x1800917e1
cmp ecx, 0x40
jb 0x1800917e1
lea rdx, [rbx + rcx]
mov qword [rsp + 0x20], r13
mov r9d, 0xf8
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800917f6
cmp dword [rsi], 0x4550
jne 0x1800917f6
mov rax, rbx
jmp 0x180091807
jmp 0x1800917f6
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x30]
jmp 0x180091710
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0xc0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800922c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
test rcx, rcx
mov ebx, 0x10000
je 0x1800922db
lea rbx, [rcx + 0x10000]
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov edi, 0x5a4d
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18009234a
cmp dword [rsp + 0x40], 0x1000
jne 0x18009234c
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x18009234c
bt eax, 8
jb 0x18009234c
cmp word [rbx], di
jne 0x18009234c
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x18009234c
mov rax, rbx
jmp 0x18009234a
jmp 0x180092358
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x180092300
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180092370
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x30
mov r9, rcx
test rcx, rcx
jne 0x18009238b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9, rax
mov eax, 0x5a4d
cmp word [r9], ax
je 0x1800923a8
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180092471
movsxd r10, dword [r9 + 0x3c]
add r10, r9
cmp dword [r10], 0x4550
je 0x1800923ca
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180092471
movzx eax, word [r10 + 0x14]
test ax, ax
jne 0x1800923e6
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180092471
movzx eax, ax
lea r11, [rax + r10 + 0x18]
xor edx, edx
mov dword [rsp + 0x20], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x180092455
lea rcx, [rdx + rdx*4]
lea r8, [r11 + rcx*8]
lea rdi, str.tdetour
mov rsi, r8
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x180092451
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x180092455
cmp dword [r8 + 0x10], 0
je 0x180092455
lea rdi, [r9 + rax]
mov eax, dword [rdi]
cmp eax, 0x40
jb 0x180092455
cmp dword [rdi + 4], 0x727444
jne 0x180092455
cmp dword [rdi + 8], 0
jne 0x180092444
mov dword [rdi + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x180092471
inc edx
jmp 0x1800923f0
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180092471
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800928d0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r14
sub rsp, 0x28
xor ebp, ebp
mov r14, rcx
test rcx, rcx
je 0x1800929fc
xor ecx, ecx
mov qword [rsp + 0x58], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x1800929f7
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x1800929f7
movsxd rax, dword [r12 + 0x3c]
add rax, r12
je 0x1800929f7
cmp dword [rax], 0x4550
jne 0x1800929f7
mov qword [rsp + 0x40], rbx
mov ebx, dword [rax + 0x90]
add rbx, r12
je 0x1800929f2
mov ecx, dword [rax + 0x94]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], r13
movabs rax, 0xcccccccccccccccd
mov esi, ebp
mul rcx
mov r13, rdx
shr r13, 4
test r13d, r13d
je 0x1800929e8
add rbx, 0xc
mov qword [rsp + 0x50], rdi
cmp dword [rbx - 0xc], ebp
jne 0x18009297f
cmp dword [rbx + 4], ebp
je 0x1800929e3
mov edi, dword [rbx]
add rdi, r12
je 0x1800929e3
mov rdx, r14
mov rcx, rdi
call fcn.1800527ac
test eax, eax
je 0x1800929de
mov edx, 0x5c
mov rcx, rdi
call fcn.1800465e4
mov r11, rax
test rax, rax
je 0x1800929d1
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 1
jbe 0x1800929d1
lea rcx, [r11 + 1]
mov rdx, r14
call fcn.1800527ac
test eax, eax
je 0x1800929de
inc esi
add rbx, 0x14
cmp esi, r13d
jb 0x180092975
jmp 0x1800929e3
mov ebp, 1
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov eax, ebp
add rsp, 0x28
pop r14
pop rbp
ret
Function at 0x180093440
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
sub rsp, 0x258
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp eax, 1
jne 0x1800935a5
test rbx, rbx
je 0x1800935a5
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x280], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp ecx, 2
jle 0x18009359d
movzx eax, word [rbx + 2]
cmp ax, 0x3a
jne 0x1800934d2
movabs rax, 0x5c003a0041
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
movzx eax, word [rbx]
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x18009359d
cmp word [rbx], 0x5c
jne 0x18009359d
cmp ax, 0x5c
jne 0x18009359d
mov qword [rsp + 0x278], rbp
mov qword [rsp + 0x250], r12
mov r12d, 0x5c
lea rcx, [rbx + 4]
mov edx, r12d
call fcn.180045ec0
mov rbp, rax
test rax, rax
je 0x18009358d
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.180043ef0
lea rcx, [rbp + 2]
mov edx, r12d
call fcn.180045ec0
test rax, rax
je 0x18009355d
sub rax, rbx
sar rax, 1
lea ecx, [rax + 1]
cmp ecx, 0x104
jge 0x18009358d
movsxd r8, ecx
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180043e60
jmp 0x180093580
lea eax, [rdi + 1]
cmp eax, 0x104
jge 0x18009358d
movsxd rdi, edi
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r8, rdi
call fcn.180043e60
mov word [rsp + rdi*2 + 0x30], r12w
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov rbp, qword [rsp + 0x278]
mov r12, qword [rsp + 0x250]
mov rdi, qword [rsp + 0x280]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x258
pop rsi
pop rbx
ret

Function at 0x180093680
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rdx], eax
test rcx, rcx
je 0x1800936ae
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov r9, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
add rsp, 0x48
ret

Function at 0x180093920
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.18002b560
test rbx, rbx
je 0x1800939b1
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], 0
call fcn.180043ef0
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.180027d50
mov eax, ebx
jmp 0x1800939b3
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180043ec0
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret