joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014a60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005fb80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005fb60]
test rbx, rbx
je 0x140014abc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014ab3
test rsi, rsi
je 0x140014ab3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014a98
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 0x140014df0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140014e70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14005a1e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e8f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e98
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e8f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014f30
Capabilities:
Parse pe header

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

Function at 0x140015200
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x14005fc00], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14005fc08], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140015250
lea rdx, [0x140015110]
mov ecx, eax
mov dword [0x14005fbf8], eax
call fcn.14001abc0
test eax, eax
jne 0x140015258
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015247
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140015260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14005a170]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140015298
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140015300
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140015310
mov esi, dword [0x14005fbf8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140015380
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x1400153c8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140015287
mov rcx, rbx
call fcn.140015160
mov qword [rsi + r12*8 + 8], rax
jmp 0x140015287
call fcn.140015160
mov qword [rbx + 0x10], rax
jmp 0x140015287
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001542a
mov r9d, dword [0x14001b560]
test r9d, r9d
je 0x140015458
lock add dword [0x14005fc00], 1
jne 0x14001548c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140015437
mov eax, dword [rsi]
test eax, eax
je 0x1400152a1
lock sub dword [0x14005fc00], 1
js 0x1400152a1
mov rcx, qword [0x14005fc08]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x1400152a1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x1400154b3
mov qword [rax], rdi
mov ecx, dword [0x14005fbf8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400152db
call r13
jmp 0x1400152db
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x1400154b3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x1400153a3
call fcn.140015200
mov dword [0x14001b560], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001532c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x1400152a1
mov rax, qword [0x14005fbf0]
lea r12, [rax + 1]
mov qword [0x14005fbf0], r12
mov qword [rbx + 0x10], r12
jmp 0x140015347
lock add dword [0x14001b564], 1
je 0x140015411
mov r8d, dword [0x14001b560]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14001b560]
test r8d, r8d
jne 0x140015420
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140015480
jmp 0x140015420
mov rcx, qword [0x14005fc08]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001533a
lock sub dword [0x14005fc00], 1
jmp 0x14001533a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x1400154d0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x1400154da
mov qword [rcx + 8], r8
test r9, r9
je 0x1400154e4
cmp qword [rcx], rdx
je 0x1400154e8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14139b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14139b1df
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 0x14139b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14139b06f
add dl, dl
jne 0x14139b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14139b0f6
xor eax, eax
add dl, dl
jne 0x14139b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14139b1ad
add dl, dl
jne 0x14139b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14139b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14139b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14139b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14139b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14139b07e
mov eax, 1
add dl, dl
jne 0x14139b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14139b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14139b0fb
sub eax, ebx
mov ebx, 1
jne 0x14139b14c
mov ecx, 1
add dl, dl
jne 0x14139b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14139b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14139b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14139b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14139b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14139b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14139b15d
cmp eax, 0x7d00
jae 0x14139b19b
cmp eax, 0x500
jb 0x14139b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14139b07e
cmp eax, 0x7f
ja 0x14139b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14139b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14139b1d2
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 0x14139b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x11d9c
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x40]
mov rdi, rdx
mov rsi, rcx
test rax, rax
je 0x11e2a
mov rcx, qword [rax]
test rcx, rcx
je 0x11e2a
mov rax, qword [rdx + 0xb8]
cmp byte [rax], 0xc
jne 0x11e1a
cmp byte [rax + 1], 1
jne 0x11e1a
lea rbx, [rax - 0x48]
mov rdx, rax
mov r8d, 0x38
mov rcx, rbx
call fcn.00013260
mov byte [rbx + 3], 0
mov rax, qword [rdi + 0xb8]
and qword [rax - 8], 0
lea rcx, [0x00011d6c]
mov byte [rax - 0x45], 0xe0
mov qword [rax - 0x10], rcx
mov rcx, qword [rsi + 0x40]
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x11e40
inc byte [rdx + 0x43]
add rax, 0x48
mov qword [rdx + 0xb8], rax
jmp 0x11e12
and qword [rdx + 0x38], 0
and dword [rdx + 0x30], 0
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x11f8c
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov r12, qword [0x00017a00]
lea rdx, [0x00013780]
lea rcx, [rsp + 0x40]
xor esi, esi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rcx, qword [rax]
lea r11, [0x00017a18]
lea edx, [rsi + 0x40]
mov qword [rsp + 0x38], r11
and qword [rsp + 0x30], rsi
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
je 0x12000
mov eax, 0xc0000001
jmp 0x12163
mov rcx, qword [0x00017a18]
lea r9, [0x00017a20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_IoEnumerateDeviceObjectList]
cmp eax, 0xc0000023
jne 0x12079
mov edx, dword [0x00017a20]
xor ecx, ecx
mov r8d, 0x58585255
shl rdx, 3
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [0x00017a20]
xor edx, edx
shl r8, 3
mov rcx, rax
mov rbx, rax
mov qword [0x00017a28], rax
call fcn.000135b0
mov r8d, dword [0x00017a20]
mov rcx, qword [0x00017a18]
lea r9, [0x00017a20]
shl r8d, 3
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_IoEnumerateDeviceObjectList]
cmp qword [0x00017a28], rsi
je 0x12161
cmp dword [0x00017a20], esi
jbe 0x12161
xor edi, edi
mov rax, qword [0x00017a28]
mov rbx, qword [rdi + rax]
test rbx, rbx
je 0x1214f
cmp dword [rbx + 0x48], 8
jne 0x1214f
mov rax, qword [rbx + 0x18]
jmp 0x120cd
cmp qword [rax + 8], r12
jne 0x120c9
cmp qword [rax + 0x40], 0
jne 0x1214f
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x120b8
lea rax, [rsp + 0x78]
mov r9d, 8
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, r9d
mov rcx, r12
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jne 0x1214f
mov rax, qword [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [rax + 0x40]
and qword [rcx], 0
mov eax, dword [rbx + 0x30]
mov rcx, qword [rsp + 0x78]
and eax, 0x40014
or dword [rcx + 0x30], eax
mov eax, dword [rbx + 0x34]
and eax, 0x100
or dword [rcx + 0x34], eax
mov rcx, qword [rsp + 0x78]
mov rbp, qword [rcx + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
test rax, rax
je 0x12144
mov qword [rbp], rax
jmp 0x1214f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
inc esi
add rdi, 8
cmp esi, dword [0x00017a20]
jb 0x12094
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x12610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov rbp, rcx
add rax, rcx
jne 0x12637
mov ebx, 0xc0000001
jmp 0x12829
mov edi, dword [rax + 0x90]
add rdi, rcx
xor ebx, ebx
mov eax, dword [rdi + 0xc]
cmp eax, ebx
je 0x12829
mov r12d, eax
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x110
mov dword [rsp + 0x70], ebx
mov r15, rbx
add r12, rbp
call qword [0x00017a50]
cmp eax, ebx
jl 0x12824
mov edx, dword [rsp + 0x70]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
cmp rax, rbx
je 0x12824
lea rcx, [rsp + 0x70]
mov r8, rax
mov edx, 0x110
call qword [0x00017a50]
cmp eax, ebx
jl 0x12731
mov ecx, dword [rsp + 0x70]
movabs rax, 0xf0f0f0f0f0f0f0f1
mov r13d, ebx
mov r8, rbx
mul rcx
shr rdx, 8
cmp rdx, rbx
jbe 0x12731
mov rcx, rbx
lea r9, [rsi + 0xc]
movzx eax, word [r9]
add rax, rcx
lea r10, [rax + rsi + 0xe]
mov al, byte [r12]
xor al, byte [r10]
test al, 0xdf
jne 0x12708
mov r11b, byte [r12]
mov r14, r12
cmp r11b, bl
je 0x12726
inc r14
inc r10
mov r11b, byte [r14]
mov al, r11b
xor al, byte [r10]
test al, 0xdf
je 0x126f0
inc r13d
inc r8
add rcx, 0x110
mov eax, r13d
add r9, 0x110
cmp rax, rdx
jae 0x12731
jmp 0x126d2
imul r8, r8, 0x110
mov r15, qword [r8 + rsi]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp r15, rbx
je 0x12824
mov esi, dword [rdi]
mov r12d, dword [rdi + 0x10]
add rsi, rbp
add r12, rbp
jmp 0x127f6
mov r13d, dword [rsi]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dl, 1
mov rcx, r15
mov dword [rsp + 0x78], ebx
add r13, rbp
call qword [0x00017a58]
mov r10d, ebx
mov edx, dword [rax + 0x20]
mov ecx, dword [rax + 0x1c]
mov r14d, dword [rax + 0x24]
mov r11d, dword [rax + 0x18]
add rdx, r15
add rcx, r15
add r14, r15
mov r9, rbx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], rcx
cmp r11d, ebx
jbe 0x127e2
add r13, 2
mov ecx, dword [rdx + r9*4]
mov rax, r13
add rcx, r15
sub rcx, r13
movzx edx, byte [rax]
movzx r8d, byte [rax + rcx]
sub edx, r8d
jne 0x127cb
inc rax
test r8d, r8d
jne 0x127b6
cmp edx, ebx
je 0x12808
mov rdx, qword [rsp + 0x80]
inc r10d
inc r9
cmp r10d, r11d
jb 0x127a9
mov rcx, rbx
cmp rcx, rbx
je 0x1281d
mov qword [r12], rcx
add rsi, 8
add r12, 8
cmp qword [rsi], rbx
jne 0x12756
add rdi, 0x14
jmp 0x12642
movzx eax, word [r14 + r9*2]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + rax*4]
add rcx, r15
jmp 0x127e5
mov ebx, 0xc000007a
jmp 0x12829
mov ebx, 0xc000026c
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x19064
Capabilities:
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00019008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00012228
Function at 0x140083650
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 0x140083672
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 0x1400836ec
mov rdi, r14
mov rcx, rbx
call fcn.1400878e0
test rax, rax
jle 0x1400836c4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1402de2b0
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 0x1400836dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400836e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140083686
sub r14, rdi
jmp 0x1400837cf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140083703
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140083705
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140083737
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1402de2b0
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 0x1400837cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140083772
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 0x1400837ad
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1402b7b68
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400837cc
cmp rbp, rax
ja 0x140083780
test rbp, rbp
je 0x1400837cc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1402b7b68
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 0x140088f00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x30
mov rax, qword [0x1403c85c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r14, rcx
lea r8, [0x140389900]
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call fcn.1402b5f60
mov rbp, qword [rsp + 0x20]
test rbp, rbp
jne 0x140088f45
lea eax, [rbx - 3]
jmp 0x140089007
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 2]
call fcn.1402aee40
test eax, eax
je 0x140088f61
mov ebx, 0xfffffffd
jmp 0x140088ffb
mov rcx, rbp
mov qword [rsp + 0x60], rsi
call fcn.1402aa890
movsxd rsi, eax
test eax, eax
jns 0x140088f7c
mov ebx, 0xfffffffd
jmp 0x140088ff6
je 0x140088ff6
lea eax, [rsi + 1]
mov qword [rsp + 0x68], rdi
movsxd rcx, eax
lea rdx, [0x1403772c8]
call fcn.14029a79c
mov rdi, rax
test rax, rax
jne 0x140088fa2
lea ebx, [rax - 2]
jmp 0x140088ff1
xor r8d, r8d
mov byte [rsi + rax], bl
xor edx, edx
mov rcx, rbp
call fcn.1402aee40
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1402b7b68
cmp rax, rsi
je 0x140088fd9
mov rcx, rdi
call fcn.14029a2f0
mov ebx, 0xfffffffd
jmp 0x140088ff1
mov r8, rax
mov rdx, rdi
mov rcx, r14
call fcn.14008cf50
mov rcx, rdi
mov ebx, eax
call fcn.14029a2f0
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call fcn.1402aeaa0
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14029a090
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret

Function at 0x140089880
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403c85c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, 0x40
mov ebx, ecx
lea rax, [rsp + 0x38]
mov edx, ecx
mov rcx, qword [0x1403d5380]
movss dword [rsp + 0x30], xmm1
lea r8d, [r9 - 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x1403d5380]
lea r8, [rsp + 0x30]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x38]
mov r8d, 4
mov rcx, qword [0x1403d5380]
mov edx, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14029a090
add rsp, 0x50
pop rbx
ret
Function at 0x14009edc0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1403c85c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor r14d, r14d
mov qword [r11 - 0x38], r14
mov eax, dword [0x1403d560c]
cmp eax, 2
jne 0x14009ee33
lea rax, [r11 - 0x48]
mov qword [r11 - 0x68], rax
lea edx, [r14 + 0xa]
mov r9d, 0x20000000
mov r8d, 0x18000000
lea rcx, [0x1403c9a58]
call fcn.1400f9ea0
mov eax, dword [0x1403d560c]
dec eax
test eax, 0xfffffffd
jne 0x14009ee63
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov edx, 0xa
mov r9d, 0x20000000
mov r8d, 0x5000000
lea rcx, [0x1403c9a68]
call fcn.1400f9ea0
mov rbp, qword [rsp + 0x58]
mov rax, rbp
mov rbx, qword [rsp + 0x50]
sub rax, rbx
cmp rax, 8
jb 0x14009ef9f
mov rax, qword [0x140407328]
cmp rax, qword [0x140407330]
je 0x14009ee94
mov qword [0x140407330], rax
cmp rbx, rbp
je 0x14009ef9f
nop dword [rax]
mov rsi, qword [rbx]
mov qword [rsp + 0x40], rsi
lea eax, [rsi + 0xc]
mov edi, eax
mov qword [rsp + 0x20], r14
mov r9d, 1
lea r8, [rsp + 0x48]
mov edx, eax
mov rcx, qword [0x1403d5380]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx edx, byte [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14005ded0
nop
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0xf
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x140392e1c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x20], r14
mov r9d, 1
lea r8, [rsp + 0x49]
mov edx, edi
mov rcx, qword [0x1403d5380]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x49], 0xbc
jne 0x14009ef51
mov rdx, qword [0x140407330]
cmp rdx, qword [0x140407338]
je 0x14009ef46
mov qword [rdx], rsi
add qword [0x140407330], 8
jmp 0x14009ef51
lea r8, [rsp + 0x40]
call fcn.1400ab420
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x14009ef8d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009ef88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009f007
call fcn.14029a2f0
add rbx, 8
cmp rbx, rbp
jne 0x14009eea0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14009efd9
mov rdx, qword [rsp + 0x60]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x14009efd1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009f00d
mov rcx, rbx
call fcn.14029a2f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14029a090
lea r11, [rsp + 0x90]
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
call fcn.1402a9edc
nop
call fcn.1402a9edc
int3
Function at 0x14009f5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
sub rsp, 0x48
mov rax, qword [0x1403c85c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
xor ebp, ebp
mov rsi, qword [rdx + 8]
mov rdi, rdx
sub rsi, qword [rdx]
mov eax, ecx
mov rcx, qword [0x1403d5590]
test rcx, rcx
jne 0x14009f5ec
call fcn.1400f9dc0
mov r8d, eax
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x14009f652
mov qword [rsp + 0x70], rbx
mov r9d, 0x40
mov rbx, rax
mov r8, rsi
lea rax, [rsp + 0x30]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, qword [rdi]
mov r9, rsi
mov rcx, qword [0x1403d5590]
mov rdx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
mov rcx, qword [0x1403d5590]
mov r8, rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rdi]
mov rsi, qword [rsp + 0x40]
test rcx, rcx
je 0x14009f697
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14009f687
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14009f6ab
mov rcx, r8
call fcn.14029a2f0
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14029a090
add rsp, 0x48
pop rdi
pop rbp
ret
call fcn.1402a9edc
int3