joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov ebx, edx
mov r11, rcx
test rcx, rcx
je 0x140001b52
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add r10, rcx
mov r8d, dword [r8 + 0x18]
add rsi, rcx
test r8d, r8d
je 0x140001b52
nop dword [rax]
mov eax, dword [r10]
mov ecx, 0x562aded
add rax, r11
movsx edx, byte [rax]
inc rax
test edx, edx
je 0x140001b21
nop word [rax + rax]
imul ecx, ecx, 0x21
lea rax, [rax + 1]
add ecx, edx
movsx edx, byte [rax - 1]
test edx, edx
jne 0x140001b10
cmp ecx, ebx
je 0x140001b43
inc r9d
add r10, 4
cmp r9d, r8d
jb 0x140001af0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
movsxd rax, r9d
movzx ecx, word [rsi + rax*2]
mov eax, dword [rdi + rcx*4]
add rax, r11
jmp 0x140001b54
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140001b70
Capabilities:
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor ebx, ebx
lea rcx, str.c:windows_system32_ntdll.dll
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [rbx + 4]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r9, rax
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x88]
add rdx, rax
mov r11d, dword [rdx + 0x1c]
mov r8d, dword [rdx + 0x20]
add r11, rax
mov edi, dword [rdx + 0x24]
add r8, rax
mov r10d, dword [rdx + 0x18]
add rdi, rax
test r10d, r10d
je 0x140001ced
nop
mov eax, dword [r8]
mov ecx, 0x562aded
add rax, r9
movsx edx, byte [rax]
inc rax
test edx, edx
je 0x140001c59
nop word [rax + rax]
imul ecx, ecx, 0x21
lea rax, [rax + 1]
add ecx, edx
movsx edx, byte [rax - 1]
test edx, edx
jne 0x140001c40
cmp ecx, 0x59a4ea4a
je 0x140001c69
inc ebx
add r8, 4
cmp ebx, r10d
jb 0x140001c20
jmp 0x140001ced
mov eax, ebx
movzx ecx, word [rdi + rax*2]
mov ebx, dword [r11 + rcx*4]
add rbx, r9
je 0x140001ced
lea rdx, str.c:windows_system32_ntdll.dll
lea rcx, [rsp + 0x40]
call fcn.140001fc0
mov rcx, rax
call fcn.140001350
test rax, rax
je 0x140001ced
mov edx, 0x59a4ea4a
mov rcx, rax
call fcn.140001aa0
mov rdi, rax
mov rcx, qword [rax]
cmp rcx, qword [rbx]
jne 0x140001cb8
mov rcx, qword [rax + 8]
cmp rcx, qword [rbx + 8]
je 0x140001ced
mov edx, 0x10
lea r9, [rsp + 0x60]
mov rcx, rdi
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movups xmm0, xmmword [rbx]
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov edx, 0x10
mov rcx, rdi
movups xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140002310
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140001d10
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xc0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetCursorPos]
movsd xmm8, qword [0x140004450]
xorps xmm7, xmm7
movsd xmm9, qword [0x140004458]
nop dword [rax + rax]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x5c]
movaps xmm1, xmm8
sub eax, dword [rsp + 0x64]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mov eax, dword [rsp + 0x58]
movaps xmm6, xmm0
sub eax, dword [rsp + 0x60]
movaps xmm1, xmm8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm6, xmm0
xorps xmm1, xmm1
ucomisd xmm1, xmm6
ja 0x140001dc6
xorps xmm0, xmm0
sqrtsd xmm0, xmm6
jmp 0x140001dce
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
mov ecx, 0x64
addsd xmm7, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
comisd xmm7, xmm9
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
jbe 0x140001d70
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400020e0
movzx eax, byte [0x140004418]
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x40], 9
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], 0xf
movsd xmm0, qword [str.ntdll.dll]
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x38], al
mov byte [rsp + 0x39], 0
call fcn.140001350
mov edx, 0x59a4ea4a
mov rcx, rax
mov rbx, rax
call fcn.140001aa0
mov edx, 0x7507132
mov rcx, rbx
mov rbp, rax
call fcn.140001aa0
mov edx, 0x24da3863
mov rcx, rbx
mov rsi, rax
call fcn.140001aa0
mov rdi, rax
nop
call fcn.140001b70
call rdi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], 0xffffffffff676980
xor ecx, ecx
mov ebx, eax
call rsi
call rdi
sub eax, ebx
cmp eax, 0x3e8
jae 0x140001ea1
mov dword [0], 0x2794
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
lea r8, [rsp + 0x50]
mov rcx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1b]
call rbp
test eax, eax
js 0x140001e70
cmp dword [rsp + 0x50], 0
jne 0x140001e70
xor r9d, r9d
lea r8, [0x140004440]
lea rdx, str.Found
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140001e70

Function at 0x140002ca4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002cee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002cee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002cee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002cee
cmp dword [rcx + 0x84], 0xe
jbe 0x140002cee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002cf0
xor al, al
add rsp, 0x28
ret
Function at 0x140002710
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002738
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000275e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002760
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400027b9
test ecx, ecx
jle 0x140002799
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400027b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400027b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400027e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002802
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002818
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002834
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002836
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002872
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000290e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400028ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400028ee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000290e
cmp rbx, rax
ja 0x1400028c0
test rbx, rbx
je 0x14000290e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002d9d
xor eax, eax
jmp 0x140002f09
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002dd7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002dd7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002f09
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002efc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002e1a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002e45
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f01
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002eb4
sub eax, 1
je 0x140002eb4
cmp eax, 2
jne 0x140002efc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f01
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002ee2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002efc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f01
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004570
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003463
cmp byte [rcx + 0x71], 0
je 0x140003463
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000345f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003424
sub eax, 1
je 0x140003428
cmp eax, 2
jne 0x14000345f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004570
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003456
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000345f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000340c
xor al, al
jmp 0x14000340c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004570
add rsp, 0x60
pop rbx
ret

Function at 0x140004fc0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000500a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000500a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000500a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000500a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000500a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000500c
xor al, al
add rsp, 0x28
ret
Function at 0x6168bf50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.616934d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.616934d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x6168bfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x61b355e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6168c168
mov rax, qword [0x61b355e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6168c00c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6168c097
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6168bff0
mov rcx, r12
call fcn.6168ccc0
mov rbp, rax
test rax, rax
je 0x6168c1a2
mov rax, qword [0x61b355e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6168cdf0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x61b355e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6168c1b1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6168c090
sub eax, 4
and eax, 0xfffffffb
jne 0x6168c120
add dword [0x61b355e4], 1
cmp ebx, 8
jae 0x6168c0c8
test bl, 4
jne 0x6168c170
test ebx, ebx
je 0x6168c0b9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6168c190
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6168c0b9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6168c0fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x61b355e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6168c090
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6168bf50
nop dword [rax]
xor edi, edi
jmp 0x6168c017
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6168c0b9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6168c0b9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6168bf50
mov rax, qword [0x61b355e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6168bf50
nop
nop dword [rax]
Function at 0x6168c930
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x61b358c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x61b358a0]
test rbx, rbx
je 0x6168c984
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6168c97b
test r12, r12
je 0x6168c97b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6168c960
lea rcx, [0x61b358c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6168ccc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x616d7a50]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6168cd39
mov rcx, r10
call fcn.6168cb90
test eax, eax
je 0x6168cd39
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6168cd36
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6168cd2d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6168cd39
add r8, 0x28
cmp r8, r9
jne 0x6168cd18
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x6168d040
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x61b358a8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x6168c9c0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x6168ca13
mov dword [rax], edi
lea rcx, [0x61b358c0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x61b358a0]
lea rcx, [0x61b358c0]
mov qword [0x61b358a0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x6168c9b6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6168d070
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x61693660
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x61693670
xor eax, eax
ret
jmp 0x6168c9a0

Function at 0x6168d0b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x6168d0f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6168d108
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x61695980
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
movups xmmword [rsp + 0x80], xmm6
movups xmmword [rsp + 0x90], xmm7
movups xmmword [rsp + 0xa0], xmm8
pxor xmm7, xmm7
mov rsi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movupd xmm6, xmm1
lea rdi, [rsp + 0x30]
mov rbx, rcx
mov rcx, rdi
call rsi
comisd xmm7, xmm6
mov rdx, qword [rbx]
mov rax, qword [rsp + 0x30]
movsd xmm1, qword [rbx + 0x18]
movsd xmm2, qword [rdx]
ja 0x61695ba0
comisd xmm6, xmm7
je 0x61695aa0
pxor xmm0, xmm0
subsd xmm6, qword [0x616d4e80]
cvtsi2sd xmm0, rax
divsd xmm0, xmm2
subsd xmm0, xmm1
addsd xmm6, xmm0
comisd xmm0, xmm6
jae 0x61695b90
mov r14, qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov r15, qword [sym.imp.USER32.dll_WaitMessage]
lea r13, [rbx + 0x20]
lea rbp, [rbx + 0x28]
movsd xmm8, qword [0x616d4e88]
jmp 0x61695a8c
mulsd xmm3, xmm8
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0x4bf
cvttsd2si r9, xmm3
call r14
mov rdx, rbp
mov rcx, r13
call fcn.616b4520
mov r12d, eax
test eax, eax
jne 0x61695ab0
mov rcx, rdi
call rsi
mov rcx, qword [rbx]
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
divsd xmm0, qword [rcx]
subsd xmm0, qword [rbx + 0x18]
comisd xmm0, xmm6
jae 0x61695b90
movupd xmm3, xmm6
subsd xmm3, xmm0
comisd xmm7, xmm3
jbe 0x61695a38
call r15
jmp 0x61695a54
lea rdx, [rbx + 0x28]
lea rcx, [rbx + 0x20]
call fcn.616b4520
mov r12d, eax
xor esi, esi
cmp qword [rbx + 0x20], 0
mov r13, qword [sym.imp.USER32.dll_UpdateWindow]
je 0x61695ae6
mov r8, qword [rbx + 0x28]
mov rax, qword [r8 + rsi*8]
cmp byte [rax + 0xb0], 0
jne 0x61695b20
mov r10, qword [rax + 0x10]
add rsi, 1
mov rcx, qword [r10 + 0x30]
call r13
cmp qword [rbx + 0x20], rsi
ja 0x61695ac0
movups xmm6, xmmword [rsp + 0x80]
movups xmm7, xmmword [rsp + 0x90]
mov eax, r12d
movups xmm8, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x30], 0
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x30], 6
call qword [rax + 0x20]
mov r9, qword [rbx + 0x28]
mov rax, qword [r9 + rsi*8]
jmp 0x61695ad1
xor r12d, r12d
jmp 0x61695ab0
call qword [sym.imp.USER32.dll_WaitMessage]
lea rdx, [rbx + 0x28]
lea rcx, [rbx + 0x20]
call fcn.616b4520
mov r12d, eax
jmp 0x61695ab0