joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e684f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14010c4d0]
jne 0x1400dc34a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400dc346
repz ret
ror rcx, 0x10
jmp 0x1400e67a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14010fc50]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14010fd48]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400e682d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14010fc50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400e684f
mov rax, qword [rsp + 0x88]
mov qword [0x14010fd48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14010fce8], rax
mov rax, qword [0x14010fd48]
mov qword [0x14010fbc0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14010fcd0], rax
mov dword [0x14010fbb0], 0xc0000409
mov dword [0x14010fbb4], 1
mov rax, qword [0x14010c4d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14010c4d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14010fc48], eax
mov ecx, 1
call fcn.1400e5994
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140101fc0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14010fc48], 0
jne 0x1400e68d6
mov ecx, 1
call fcn.1400e5994
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400e7f08
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400d9904
xor ebx, ebx
mov rdi, rax
cmp qword [0x140110128], rbx
jne 0x1400e800e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400e80e3
lea rdx, [0x140102030]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400e80e3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140102020]
mov rcx, rsi
mov qword [0x140110128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140110130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140110138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140110148], rax
test rax, rax
je 0x1400e8005
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140110140], rax
jmp 0x1400e8015
mov rax, qword [0x140110140]
jmp 0x1400e801c
mov rax, qword [0x140110140]
mov r11, qword [0x140110148]
cmp rax, rdi
je 0x1400e8084
cmp r11, rdi
je 0x1400e8084
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140110148]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400e8084
test rax, rax
je 0x1400e8084
call rsi
test rax, rax
je 0x1400e807e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400e807e
test byte [rsp + 0x38], 1
jne 0x1400e8084
bts ebp, 0x15
jmp 0x1400e80c2
mov rcx, qword [0x140110130]
cmp rcx, rdi
je 0x1400e80c2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400e80c2
call rax
mov rbx, rax
test rax, rax
je 0x1400e80c2
mov rcx, qword [0x140110138]
cmp rcx, rdi
je 0x1400e80c2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400e80c2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140110128]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400e80e3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400e80e5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002040
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18000209c
xor eax, eax
mov qword [rsp + 0x40], rdi
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180001ee0]
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18000208c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180004140
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000419d
lea rbx, [0x180032770]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180004184
cmp r10, 2
jb 0x180004184
cmp byte [r9], r8b
jne 0x180004184
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180004160
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800041df
lea rbx, [0x180032770]
cmp r8b, 0x23
jne 0x1800041c3
cmp byte [r9], r8b
jne 0x1800041c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800041b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180006170
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x180032770]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x180006206
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.180019300
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180012d50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18003f010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18003f990]
mov edi, ecx
cmp byte [rbx + 0x4d4d], 0
jne 0x180012db1
cmp byte [rbx + 0x4d4e], 0
jne 0x180012db1
movsx r9d, word [rbx + 0x5eb8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180004030
test dil, 2
je 0x180012edf
jmp 0x180012e3a
movss xmm1, dword [rbx + 0x39bc]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5eb8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180038b4c]
mulss xmm1, dword [0x180038b44]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe40]
addss xmm1, dword [rbx + 0xe44]
mov qword [rbx + 0x4a18], rax
mov dword [rbx + 0x4a04], 1
movss dword [rbx + 0x4a10], xmm0
movss dword [rbx + 0x4a14], xmm1
movss xmm0, dword [rbx + 0x3a18]
mulss xmm0, dword [0x180038ad8]
or dword [rbx + 0x4a00], 0x41
movss dword [rbx + 0x4a60], xmm0
call fcn.180004030
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180012e90
lea r11, [0x180032770]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180012e73
cmp byte [r8], r9b
jne 0x180012e73
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180012e60
not ecx
call fcn.180009a80
test rax, rax
je 0x180012edf
cmp byte [rax + 0xbe], 0
je 0x180012edf
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5eb8]
movsx r9d, word [rbx + 0x5eb8]
call fcn.180004030
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.18000c790
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18002ff70
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180017a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x180017a93
xor edx, edx
add rcx, 0x6018
call fcn.18001a260
mov r8, rsi
lea rcx, [rbx + 0x6018]
mov rdx, rbp
call fcn.180004840
mov eax, dword [rbx + 0x6018]
xor edx, edx
mov r9, qword [rbx + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x6020]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x18003f988]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180017a9f
add rcx, 0x6018
call fcn.180004840
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180017ef0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18003f990]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180017f53
mov qword [rsp], rbx
lea rbx, [0x180032770]
nop dword [rax]
cmp r9b, 0x23
jne 0x180017f33
cmp byte [r8], r9b
jne 0x180017f33
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180017f20
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x180017f7f
cmp dword [r8 + 8], eax
je 0x180017f86
add r8, 0x48
cmp r8, rcx
jne 0x180017f70
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x1800181d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18003f990]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f6c], ecx
test rbx, rbx
je 0x18001823f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180018250
lea rdx, [0x180037fd4]
mov rcx, rbx
mov rdi, rax
call fcn.1800041f0
mov rbx, rax
test rax, rax
je 0x18001823a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180029ed0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x18003f010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x18003f990]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18002a0ee
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18002a0ee
mov rdx, qword [0x18003f998]
mov ecx, 0x50
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [0x18003f990]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x180029faa
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180029f9f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
test rdi, rdi
je 0x180029fc7
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x180029fca
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x180038778]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x18002a00d
mov rsi, qword [r8 + 0x90]
jmp 0x18002a010
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18002a03b
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x18003f990]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18002a0ae
inc rbx
cmp rbx, 5
jl 0x18002a090
jmp 0x18002a0da
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x18002a0f0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002ff70
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18002a280
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x18003f990]
mov edx, 0x210
call fcn.18000f8e0
cmp byte [rax], 0
je 0x18002a2f6
xor edx, edx
mov ecx, 0x210
call fcn.180011ff0
test al, al
je 0x18002a2f6
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002a2f6
mov rbx, qword [0x18003f990]
cmp byte [rbx + 0x38d1], 0
je 0x18002a2e2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180003c60
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x18003f990]
mov edx, 0x214
call fcn.18000f8e0
cmp byte [rax], 0
je 0x18002a366
xor edx, edx
mov ecx, 0x214
call fcn.180011ff0
test al, al
je 0x18002a366
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002a366
mov rbx, qword [0x18003f990]
cmp byte [rbx + 0x38d1], 0
je 0x18002a352
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180003c60
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x18003f990]
mov edx, 0x212
call fcn.18000f8e0
cmp byte [rax], 0
je 0x18002a3d6
xor edx, edx
mov ecx, 0x212
call fcn.180011ff0
test al, al
je 0x18002a3d6
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002a3d6
mov rbx, qword [0x18003f990]
cmp byte [rbx + 0x38d1], 0
je 0x18002a3c2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180003c60
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x18003f990]
mov edx, 0x216
call fcn.18000f8e0
cmp byte [rax], 0
je 0x18002a446
xor edx, edx
mov ecx, 0x216
call fcn.180011ff0
test al, al
je 0x18002a446
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18002a446
mov rbx, qword [0x18003f990]
cmp byte [rbx + 0x38d1], 0
je 0x18002a432
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180003c60
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x18002ed14
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x18002ed7a
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18002ed6b
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002ed61
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18002ed35
mov r8, qword [rbx]
mov rcx, qword [0x18003f9b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18002ed8c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x40]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18003fa40]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [r8 - 5]
cmove rbp, r8
lea rdi, [r8 - 5]
test al, al
lea r14, [rcx*2 + 5]
cmove rdi, r8
mov rdx, r14
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18002edf7
mov eax, 0xa
jmp 0x18002ee83
test esi, esi
je 0x18002ee19
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18002ee3a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18002ee3a
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18002ee34
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18002ee3a
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18002f294
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18002f2ab
cmp r8b, 0x90
je 0x18002f2ab
cmp r8b, 0xcc
jne 0x18002f2cd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18002f2c9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18002f2cd
add edx, r10d
cmp edx, r9d
jb 0x18002f2b9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18002f634
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18002f67e
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x18003fa30]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x18002f6bb
cmp rbx, rsi
jb 0x18002f6b6
cmp rbx, r15
jae 0x18002f6b6
cmp qword [rbx + 8], 0
jne 0x18002f817
mov rbx, qword [rbx]
jmp 0x18002f69c
mov r14, rdi
cmp rdi, rsi
jb 0x18002f73f
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x18002f736
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002f736
cmp dword [rbp - 0x10], 0x10000
je 0x18002f706
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x18002f736
jmp 0x18002f6d2
test r14, r14
je 0x18002f736
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18002f7d7
cmp r14, rsi
jae 0x18002f6c3
test rbx, rbx
jne 0x18002f7d7
cmp rdi, r15
ja 0x18002f817
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18002f817
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002f817
cmp dword [rbp - 0x10], 0x10000
je 0x18002f7ad
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x18002f766
test rdi, rdi
je 0x18002f817
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18002f739
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18002f7ea
mov rax, qword [0x18003fa30]
mov qword [rbx], rax
mov qword [0x18003fa30], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000d340
Capabilities:
Write file on windows

Disassembly:
cmp dword [rcx + 0x1b0], 1
jne 0x14000d358
mov rcx, qword [rcx + 0x1c8]
xor r9d, r9d
jmp fcn.1400383c0
mov eax, 0xfffffffe
ret
Function at 0x140010280
Capabilities:
Write file on windows

Disassembly:
cmp dword [rcx], 0x19260526
jne 0x1400102a4
cmp byte [rcx + 4], 0
jne 0x14001029e
add dword [rcx + 0x14], r8d
xor r9d, r9d
mov rcx, qword [rcx + 8]
jmp fcn.1400383c0
mov eax, 0xffffffda
ret
mov eax, 0xfffffffd
ret