joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00508660]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00508670]
mov dword [rax], 1
mov rax, qword [0x00508680]
mov dword [rax], 1
mov rax, qword [0x00508650]
mov dword [rax], 1
mov rax, qword [0x00508510]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00508640]
mov dword [0x0053500c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00508600]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00507930]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4016c3
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
setne al
test al, al
je 0x4016f5
mov ebx, 1
jmp 0x4017ab
mov dword [rbp + 0xf4], 0x60
mov eax, dword [rbp + 0xf4]
mov rax, qword gs:[rax]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
add rax, 0xbc
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
mov eax, dword [rax]
and eax, 0x70
test eax, eax
je 0x40173b
mov ebx, 1
jmp 0x4017ab
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x28
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x401773
mov ebx, 1
jmp 0x4017ab
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x50]
mov r8d, 2
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__260___std::filesystem::__cxx11.path__char_const_____260___std::filesystem::__cxx11::path::format_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.copyExecutableToDirectory_std::filesystem::__cxx11::path_const_
call sym.IntegratedFunction__
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.004a3b60
mov eax, ebx
jmp 0x4017c9
add rsp, 0x188
pop rbx
pop rbp
ret
Function at 0x401850
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x40]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x401900
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x48]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.Razer
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x150
pop rbp
ret
Function at 0x401e50
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rcx, str.ConsoleWindowClass
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x402350
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x4023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00535634]
mov r12, rcx
mov rdi, rdx
mov rbx, r8
test esi, esi
jle 0x402540
mov rax, qword [0x00535638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40240c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402491
inc ecx
add rax, 0x28
cmp ecx, esi
jne 0x4023f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x402582
mov rax, qword [0x00535638]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00535638]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402591
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40248b
sub eax, 4
and eax, 0xfffffffb
jne 0x4024f8
inc dword [0x00535634]
cmp ebx, 8
jae 0x4024c0
test bl, 4
jne 0x402550
test ebx, ebx
je 0x4024b3
movzx eax, byte [rdi]
mov byte [r12], al
test bl, 2
jne 0x402570
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
dec ebx
mov rdx, qword [rdi + rax - 8]
mov qword [r12 + rax - 8], rdx
cmp ebx, 8
jb 0x4024b3
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rdi + rdx]
mov qword [r12 + rdx], rcx
cmp eax, ebx
jb 0x4024d8
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 rsi, qword [0x00535638]
mov qword [rsi + 8], rcx
mov r9, rsi
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40248b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x402416
mov eax, dword [rdi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rdi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4024b3
mov ebx, ebx
movzx eax, word [rdi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4024b3
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00535638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
nop
nop dword [rax]

Function at 0x402d70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00535920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00535900]
test rbx, rbx
je 0x402dc4
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 0x402dbb
test r12, r12
je 0x402dbb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402da0
lea rcx, [0x00535920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402ff0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x403000
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x403010
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403055
dec ecx
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40304c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403057
add rax, 0x28
cmp rax, r9
jne 0x403038
xor eax, eax
ret

Function at 0x403100
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00508510]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403171
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403171
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 0x40316e
dec eax
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x403165
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403171
add r8, 0x28
cmp r8, r9
jne 0x403150
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x403250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00508510]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4032bf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4032bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4032bd
dec edx
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4032b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4032c8
add rax, 0x28
cmp rax, r9
jne 0x4032a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4032e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00508510]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x403358
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403358
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x403358
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403358
dec ecx
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop word [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40334c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x403360
add rdx, 0x28
cmp rdx, r10
jne 0x403338
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x40336f
dec r8d
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40337d
mov edx, dword [rax + 0xc]
test edx, edx
je 0x403355
test r8d, r8d
jg 0x403368
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x404aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push r13
push r12
sub rsp, 0x230
mov r12, rcx
call sym._errno
mov dword [rax], 0
test r12, r12
je 0x404c10
cmp word [r12], 0
je 0x404c00
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404c20
test al, 0x10
je 0x404c00
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, r13
call sym._wfullpath
mov rcx, r13
call sym.wcslen
lea rcx, [0x005070e0]
mov r12, rax
call sym.wcslen
lea rcx, [0x005070e4]
add r12, rax
call sym.wcslen
lea rcx, [r12 + rax + 0x229]
add rcx, rcx
call sym.malloc
mov r12, rax
test rax, rax
je 0x404c33
lea r14, [rax + 0x44c]
mov rdx, r13
mov rcx, r14
call sym.wcscpy
cmp word [r12 + 0x44c], 0
jne 0x404bc0
lea rdx, [0x005070e4]
mov rcx, r14
call sym.wcscat
lea rcx, [r12 + 0x238]
mov r8d, 0x208
xor edx, edx
mov qword [r12 + 0x440], 0xffffffffffffffff
mov dword [r12 + 0x448], 0
mov qword [r12 + 0x230], 0
call sym.memset
mov rax, r12
add rsp, 0x230
pop r12
pop r13
pop r14
ret
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x2f
je 0x404b60
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x5c
je 0x404b60
lea rdx, [0x005070e0]
mov rcx, r14
call sym.wcscat
jmp 0x404b60
call sym._errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x404ba8
call sym._errno
mov dword [rax], 0xe
jmp 0x404ba8
call sym._errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x404ba8
call sym._errno
mov dword [rax], 0xc
jmp 0x404ba8
Function at 0x405420
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r13d, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x4054d6
test rdx, rdx
js 0x4054d6
call sym._get_osfhandle
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x405670
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x405670
mov ecx, r13d
call sym._telli64
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x4054d6
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x405670
cmp rbx, qword [rsp + 0x58]
ja 0x405530
xor r9d, r9d
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x64]
mov edx, ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4054f0
cmp dword [rsp + 0x60], 0xffffffff
je 0x4054f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
je 0x405638
mov ecx, 0x16
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x405513
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4054d6
xor r8d, r8d
mov rdx, r15
mov ecx, r13d
call sym._lseeki64
cmp rax, 0xffffffffffffffff
je 0x4054d6
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4054d6
mov edx, 2
mov ecx, 0x33
call sym.calloc
mov edx, 2
mov ecx, 0x106
mov r14, rax
call sym.calloc
mov rsi, rax
test r14, r14
je 0x405670
test rax, rax
je 0x405670
mov edx, 0x32
mov rcx, r14
lea rbp, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, rax
jmp 0x4055aa
mov r8d, 0x32
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x405650
mov dword [rsp + 0x38], 0
mov r9, rbp
mov rdx, rsi
mov r8d, 0x105
mov qword [rsp + 0x30], 0
mov rcx, r14
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x7c], eax
jne 0x405590
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rsi
call sym.free
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r14
mov esi, eax
call sym.free
test esi, esi
je 0x405638
mov rax, rbx
sub rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x50]
jbe 0x4054a1
nop word [rax + rax]
mov ecx, 0x1b
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x405513
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r14
xor r14d, r14d
call sym.free
jmp 0x4055f5
mov ecx, 9
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x405513
Function at 0x410930
Capabilities:
Check for time delay via gettickcount
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, 0x48
lea eax, [rdx - 1]
mov r13, rcx
mov r12d, edx
cmp eax, 0xfffffffd
ja 0x410a60
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea r15, [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x28], rax
call rax
test eax, eax
je 0x410aa0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jle 0x41098d
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x410a70
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov esi, r12d
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbp, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add rsi, rax
jmp 0x4109d8
test rbx, rbx
jle 0x4109c9
lea rcx, [rsp + 0x38]
call r14
test eax, eax
jne 0x410a08
call rbp
mov eax, eax
cmp rsi, rax
jbe 0x410a35
mov r12d, esi
sub r12d, eax
mov edx, r12d
mov rcx, r13
call rdi
mov r12d, eax
cmp eax, 0x102
jne 0x410a35
test rbx, rbx
jne 0x4109b8
mov rax, qword [rsp + 0x28]
mov rcx, r15
call rax
test eax, eax
je 0x410a50
mov rbx, qword [rsp + 0x30]
jmp 0x4109b8
movabs rax, 0x20c49ba5e353f7cf
imul rbx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
cmp rsi, rax
ja 0x4109d2
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x4109c9
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
jmp 0x410a35
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rbx
imul rdx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
jmp 0x410995
mov rbx, 0xffffffffffffffff
jmp 0x41098d
Function at 0x410ab0
Capabilities:
Check for time delay via gettickcount
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, 0x48
lea eax, [r9 - 1]
mov r13d, ecx
mov r14, rdx
mov edi, r8d
cmp eax, 0xfffffffd
ja 0x410c10
lea rax, [rsp + 0x30]
mov dword [rsp + 0xa8], r9d
mov qword [rsp + 0x28], rax
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov qword [rsp + 0x20], rax
call rax
mov r9d, dword [rsp + 0xa8]
test eax, eax
je 0x410c50
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jle 0x410b2e
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r9d, dword [rsp + 0xa8]
test eax, eax
jne 0x410c20
mov dword [rsp + 0xa8], r9d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [rsp + 0xa8]
mov eax, eax
mov esi, r9d
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r15, qword [sym.imp.KERNEL32.dll_GetTickCount]
add rsi, rax
jmp 0x410b84
test rbx, rbx
jle 0x410b74
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x410bb8
call r15
mov eax, eax
cmp rsi, rax
jbe 0x410be5
mov r9d, esi
sub r9d, eax
mov r8d, edi
mov rdx, r14
mov ecx, r13d
call rbp
mov r12d, eax
cmp eax, 0x102
jne 0x410be5
test rbx, rbx
jne 0x410b60
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
call rax
test eax, eax
je 0x410c00
mov rbx, qword [rsp + 0x30]
jmp 0x410b60
movabs rax, 0x20c49ba5e353f7cf
imul rbx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
cmp rsi, rax
ja 0x410b7e
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x410b74
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12d, eax
jmp 0x410be5
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rbx
imul rdx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
jmp 0x410b46
mov rbx, 0xffffffffffffffff
jmp 0x410b2e
Function at 0x411540
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x411651
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x411629
inc rax
cmp rax, 0x6b
je 0x411646
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x411620
cmp edx, 0x6a
je 0x411646
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x41163a
Function at 0x411a50
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00536410], 1
je 0x411afe
lea rcx, [0x00501150]
lea rbx, [0x00536410]
call sym.pthread_spin_lock
mov r12, qword [0x005363c0]
test r12, r12
jne 0x411aa1
jmp 0x411c98
mov rax, qword [r12 + 0x18]
test rax, rax
je 0x411c60
mov r12, rax
cmp qword [r12], rbx
jne 0x411a90
inc dword [r12 + 0x10]
lea r13, [r12 + 8]
lea rcx, [0x00501150]
call sym.pthread_spin_unlock
mov rcx, r13
call sym.pthread_mutex_lock
mov ebx, dword [0x00536410]
test ebx, ebx
jne 0x411b20
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00501168], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x00536410], 1
mov rcx, r13
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.leaveOnceObject.part.0
mov ecx, dword [0x00501168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x411b50
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
cmp ebx, 1
je 0x411aee
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, ebx
lea r8, [0x00536410]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x411aee
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x411b12
test rax, rax
je 0x411b12
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x411cbd
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, r13
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x00501168]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rbx
mov dword [rax + 0x10], 1
mov qword [r12 + 0x18], rax
mov r12, rax
lea r13, [r12 + 8]
xor edx, edx
mov rcx, r13
call sym.pthread_mutex_init
jmp 0x411ab1
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rbx
mov r12, rax
mov dword [rax + 0x10], 1
mov qword [0x005363c0], rax
jmp 0x411c81
call sym.replace_spin_keys.part.0
nop word cs:[rax + rax]
nop dword [rax]