joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041470
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x4c], 0
mov rax, qword [r8]
test rax, rax
je 0x1400415c5
mov rbx, r8
mov rcx, qword [r8 + 8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], r8
lea r15, [rsp + 0x50]
mov qword [rsp + 0x38], r15
lea rdx, str.c:_programs_odin_core_thread_thread_windows.odin
mov qword [rsp + 0x30], rdx
movups xmmword [rsp + 0x20], xmm0
xor r12d, r12d
mov r8d, 0xf8
mov r9d, 8
xor edx, edx
call rax
test al, al
jne 0x1400415c8
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x1400415c8
movups xmm0, xmmword [rbx]
movups xmmword [r14 + 0xe8], xmm0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r8, [0x14005d630]
xor ecx, ecx
xor edx, edx
mov r9, r14
call sub.KERNEL32.dll_CreateThread
test rax, rax
je 0x14004157c
lea rcx, [0x14005db10]
mov qword [r14 + 0x28], rcx
mov qword [r14], rax
mov ecx, dword [rsp + 0x4c]
mov dword [r14 + 8], ecx
mov rcx, rax
mov edx, 2
call sub.KERNEL32.dll_SetThreadPriority
mov r12, r14
cmp eax, 1
je 0x1400415c8
mov rax, qword [rbx + 0x20]
test rax, rax
lea r10, [0x14000d6e0]
cmovne r10, rax
lea rcx, str.runtime_assertion
lea rdx, [0x14008e9a8]
lea r8, str.c:_programs_odin_core_thread_thread_windows.odin
mov r9, rbx
call r10
mov rax, qword [r14 + 0xe8]
test rax, rax
je 0x1400415c5
mov rcx, qword [r14 + 0xf0]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r15
lea rdx, str.c:_programs_odin_core_thread_thread_windows.odin
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], 0
mov dl, 1
xor r8d, r8d
xor r9d, r9d
call rax
xor r12d, r12d
mov qword [r12 + 0x30], rdi
or byte [r12 + 0x18], 8
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmm3, xmmword [rsi + 0x30]
movups xmm4, xmmword [rsi + 0x40]
movups xmm5, xmmword [rsi + 0x50]
mov rax, qword [rsi + 0x60]
mov qword [r12 + 0xe0], rax
movups xmmword [r12 + 0xd0], xmm5
movups xmmword [r12 + 0xc0], xmm4
movups xmmword [r12 + 0xb0], xmm3
movups xmmword [r12 + 0xa0], xmm2
movups xmmword [r12 + 0x90], xmm1
movups xmmword [r12 + 0x80], xmm0
lea rsi, [r12 + 0x10]
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
or byte [r12 + 0x18], 1
mov rcx, qword [r12]
call sub.KERNEL32.dll_ResumeThread
mov rcx, rsi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400437d0
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
mov rsi, rdx
mov rdx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
cmp qword [rsi + 0x18], rax
jne 0x1400438cc
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14004386c
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rax
lea rax, str.c:_programs_odin_core_os_file_windows.odin
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x2a
movabs rax, 0x20000015c
mov qword [rsp + 0xc0], rax
lea rax, str.exists
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 6
lea r8, [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov r9, rsi
call fcn.1400350a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140043971
cmp qword [rsp + 0x38], 0
je 0x14004399d
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0xb0]
mov r8, rsi
call fcn.140056d50
mov eax, ebx
add rsp, 0xd8
pop rbx
pop rsi
ret
mov qword [rsp + 0x20], 0
lea rcx, str.c:_programs_odin_core_sys_windows_util.odin
mov edx, 0x39
mov r8d, 0xf
xor r9d, r9d
call fcn.14005d190
int3
Function at 0x1400439d0
Capabilities:
Access peb ldr_data
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0xd8
mov rsi, rdx
mov rdx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
cmp qword [rsi + 0x18], rax
jne 0x140043acc
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140043a6c
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
mov eax, dword [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rax
lea rax, str.c:_programs_odin_core_os_file_windows.odin
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], 0x2a
movabs rax, 0x200000164
mov qword [rsp + 0xc0], rax
lea rax, str.is_file
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 7
lea r8, [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov r9, rsi
call fcn.1400350a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140043b71
cmp qword [rsp + 0x38], 0
je 0x140043b9c
call sub.KERNEL32.dll_GetFileAttributesW
test al, 0x10
sete bl
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0xb0]
mov r8, rsi
call fcn.140056d50
mov eax, ebx
add rsp, 0xd8
pop rbx
pop rsi
ret
mov qword [rsp + 0x20], 0
lea rcx, str.c:_programs_odin_core_sys_windows_util.odin
mov edx, 0x39
mov r8d, 0xf
xor r9d, r9d
call fcn.14005d190
int3
Function at 0x14005fc40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x14008eb50]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x14005fcb9
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x14005fc60
test r8, r8
je 0x14005fcdd
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x14005fcc0
not ecx
mov eax, ecx
ret
Function at 0x140064368
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400643b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400643b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400643b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400643b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400643b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400643b4
xor al, al
add rsp, 0x28
ret

Function at 0x140069cec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140069ae8
Function at 0x1400730a8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400730d8
xor eax, eax
jmp 0x14007319b
mov rbp, rbx
cmp word [rax], si
je 0x1400730fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400730e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400730e0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140072fc8
movsxd r14, eax
test eax, eax
jne 0x14007313b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400730d1
mov rcx, r14
call fcn.140071018
mov rdi, rax
test rax, rax
jne 0x140073154
xor ecx, ecx
call fcn.140070fdc
jmp 0x140073130
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140072fc8
test eax, eax
jne 0x140073185
mov rcx, rdi
call fcn.140070fdc
jmp 0x14007318f
xor ecx, ecx
call fcn.140070fdc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400731b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14007323f
mov rsi, rbx
cmp word [rax], bp
je 0x1400731fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400731e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400731e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140071018
mov rdi, rax
test rax, rax
je 0x14007322c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007d380
mov rbp, rdi
xor ecx, ecx
call fcn.140070fdc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140078600
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14006e950
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007868a
cmp byte [rbp - 0x21], r15b
je 0x140078685
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400786c0
call fcn.14006f890
test eax, eax
jne 0x1400786ac
cmp byte [rbp - 0x21], r15b
je 0x1400786a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400786c0
cmp byte [rbp - 0x21], r15b
je 0x1400786bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140071954
test eax, eax
jne 0x140078760
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14006e950
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400786ff
cmp byte [rbp - 0x21], r15b
je 0x140078734
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140078734
call fcn.14006f890
test eax, eax
jne 0x140078720
cmp byte [rbp - 0x21], r15b
je 0x140078719
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140078734
cmp byte [rbp - 0x21], r15b
je 0x140078731
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140071954
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140078760
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140078763
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140078771
mov rcx, rdi
call fcn.140070fdc
cmp byte [rbp + 0x3f], r15b
je 0x140078780
mov rcx, qword [rbp + 0x27]
call fcn.140070fdc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14007a6b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007a6ce
mov al, 1
jmp 0x14007a72e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007a6df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007a72c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140073f6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007a72c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007a72c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007a72c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007a72e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14007cfa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007cfc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007cfc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000f8b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
test edx, edx
je 0x18000fa4a
cmp edx, 1
jne 0x18000fa2f
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x18000f850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [rbx + 0x38]
call fcn.180041140
mov rsi, rax
mov qword [rsp + 0x58], rax
movabs rdx, 0x142373288
mov rdx, qword [rdx]
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov byte [rax + 0x28], 1
mov qword [rax + 0x30], rbx
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov qword [rsi + 0x30], rdx
cmp qword [rsi + 8], rax
jne 0x18000f957
mov rax, qword [rdx + 0xd0]
mov qword [rsi + 8], rax
mov qword [0x18007cd80], rsi
cmp byte [rsi + 0x29], bl
jne 0x18000f984
mov ecx, 8
call fcn.180041140
mov qword [rsp + 0x58], rax
mov rsi, qword [0x18007cd80]
mov qword [rax], rsi
mov qword [rsi + 0x10], rax
mov byte [rsi + 0x29], 1
mov ecx, 0x20
call fcn.180041140
mov r14, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax + 0xf0]
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
mov qword [r14], rcx
mov rax, qword [rcx]
cmp qword [rax], 0
je 0x18000f9d1
nop dword [rax]
inc rbx
mov qword [r14 + 0x18], rbx
mov rax, qword [rcx]
cmp qword [rax + rbx*8], 0
jne 0x18000f9c0
lea rdi, [rbx*8]
mov qword [r14 + 0x10], rax
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800414f4
mov qword [r14 + 8], rax
mov r8, rdi
mov rdx, qword [r14 + 0x10]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14]
mov rax, qword [r14 + 8]
mov qword [rcx], rax
mov qword [rsi + 0x20], r14
cmp qword [r14 + 0x18], 4
jb 0x18000fa2f
mov rax, qword [r14 + 8]
lea rcx, [0x18000f2c0]
mov qword [rax + 0x20], rcx
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
call fcn.1800120b0
call fcn.18000f290
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1800120f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18007c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18001213f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18007d030]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001217d
cmp rsi, r14
jb 0x180012175
cmp rsi, r15
jae 0x180012175
cmp qword [rsi + 8], 0
jne 0x180012347
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180012160
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180012212
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180012209
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 0x180012209
cmp dword [rsp + 0x40], 0x10000
je 0x18001228b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180012209
sub rbx, rbp
cmp rbx, r14
jae 0x1800121d0
test rsi, rsi
jne 0x1800122f0
cmp rdi, r15
ja 0x18001232f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18001232f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001232f
cmp dword [rsp + 0x40], 0x10000
je 0x1800122c1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180012242
jmp 0x18001232f
test rbx, rbx
je 0x180012209
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800122f0
cmp rbx, r14
jae 0x1800121b0
jmp 0x180012212
test rdi, rdi
je 0x18001232f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800122f0
cmp rdi, r15
jbe 0x180012220
jmp 0x18001232f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180012300
mov rax, qword [0x18007d030]
mov qword [rsi], rax
mov qword [0x18007d030], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180041120
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180012cc0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18007c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180012deb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180012de2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180012dc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180012dc4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180012dc4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180012d82
mov rcx, qword [0x18007cdf8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180012de2
jmp 0x180012db7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180012db7
mov rcx, qword [0x18007cdf8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180012de2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180012d30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180012e43
cmp dword [rbx + 0xc], esi
jbe 0x180012e43
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180012e3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180012b10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180012e00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180041120
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180012e70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18007c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18007d020]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180012ee3
mov eax, 0xa
jmp 0x180012f76
test esi, esi
je 0x180012f05
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180012f28
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180012f28
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180012f21
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180012f28
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180041120
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret