joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401343f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, rdx
mov rdi, rcx
movabs r14, 0x5851f42d4c957f2d
movzx ecx, byte [rcx + 0x24]
xor rcx, qword [rdx]
mov rdx, r14
call fcn.14015f270
mov rbx, rax
mov qword [r12], rax
cmp dword [rdi + 0x18], 1
jne 0x1401344f1
movabs r13, 0x8000000000000000
movabs rsi, 0x7ff0000000000000
movabs r15, 0xfffffffffffff
xor rbx, 1
mov rcx, rbx
mov rdx, r14
call fcn.14015f270
mov rbx, rax
mov qword [r12], rax
movss xmm0, dword [rdi + 0x1c]
ucomiss xmm0, xmm0
jp 0x140134624
call fcn.140149fb0
test rax, rax
je 0x14013449e
mov rcx, rdx
shr rdx, 0x10
xor ebp, ebp
test dl, dl
cmovg rbp, r13
shld rcx, rax, 0x34
and rax, r15
and rcx, rsi
or rcx, rax
or rcx, rbp
jmp 0x1401344a0
xor ecx, ecx
xor rcx, rbx
mov rdx, r14
call fcn.14015f270
mov rbx, rax
mov qword [r12], rax
movss xmm0, dword [rdi + 0x20]
ucomiss xmm0, xmm0
jp 0x140134639
call fcn.140149fb0
test rax, rax
je 0x1401344ec
mov rcx, rdx
shr rcx, 0x10
xor ebp, ebp
test cl, cl
cmovg rbp, r13
shld rdx, rax, 0x34
and r15, rax
and rdx, rsi
or rdx, r15
or rdx, rbp
jmp 0x1401344ee
xor edx, edx
xor rbx, rdx
mov rcx, rbx
mov rdx, r14
call fcn.14015f270
mov rbx, rax
mov rsi, qword [rdi]
mov rdi, qword [rdi + 0x10]
add rbx, rdi
imul rbx, r14
mov qword [r12], rbx
cmp rdi, 8
jbe 0x140134593
cmp rdi, 0x10
jbe 0x1401345a7
mov r15, qword [r12 + 0x10]
mov r13, qword [r12 + 0x18]
mov rcx, qword [rdi + rsi - 0x10]
xor rcx, r15
mov rdx, qword [rdi + rsi - 8]
xor rdx, r13
call fcn.14015f270
mov rbp, qword [r12 + 8]
add rbx, rbp
xor rbx, rax
rol rbx, 0x17
mov qword [r12], rbx
nop word cs:[rax + rax]
nop dword [rax]
lea r14, [rsi + 0x10]
add rdi, 0xfffffffffffffff0
mov rcx, qword [rsi]
xor rcx, r15
mov rdx, qword [rsi + 8]
xor rdx, r13
call fcn.14015f270
add rbx, rbp
xor rbx, rax
rol rbx, 0x17
mov qword [r12], rbx
mov rsi, r14
cmp rdi, 0x10
ja 0x140134560
jmp 0x1401345f6
cmp rdi, 1
jbe 0x1401345bb
cmp rdi, 3
jbe 0x1401345c9
mov ecx, dword [rsi]
mov edx, dword [rdi + rsi - 4]
jmp 0x1401345d7
mov rcx, qword [r12 + 0x10]
mov rdx, qword [r12 + 0x18]
xor rcx, qword [rsi]
xor rdx, qword [rdi + rsi - 8]
jmp 0x1401345e1
cmp rdi, 1
jne 0x1401345d3
movzx edx, byte [rsi]
mov rcx, rdx
jmp 0x1401345d7
movzx ecx, word [rsi]
movzx edx, byte [rdi + rsi - 1]
jmp 0x1401345d7
xor edx, edx
xor ecx, ecx
xor rcx, qword [r12 + 0x10]
xor rdx, qword [r12 + 0x18]
call fcn.14015f270
add rbx, qword [r12 + 8]
xor rbx, rax
rol rbx, 0x17
mov qword [r12], rbx
xor rbx, 0xff
mov rcx, rbx
movabs rdx, 0x5851f42d4c957f2d
call fcn.14015f270
mov qword [r12], rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rax, 0x7ff8000000000000
xor rbx, rax
mov rcx, rbx
jmp 0x1401344a3
movabs rax, 0x7ff8000000000000
xor rbx, rax
jmp 0x1401344f1
Function at 0x14015f280
Capabilities:
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
test rdx, rdx
je 0x14015f2da
mov rdx, rcx
mov ebx, 0xffffffff
xor r14d, r14d
nop dword [rax]
test rdi, rdi
je 0x14015f2dd
cmp rdi, rbx
mov r8d, 0xffffffff
cmovb r8, rdi
lea rsi, [rdx + r8]
sub rdi, r8
xor ecx, ecx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
mov rdx, rsi
cmp eax, 0xc0000000
jb 0x14015f2a0
xor eax, 0x80000000
mov r14d, eax
jmp 0x14015f2dd
xor r14d, r14d
mov eax, r14d
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401654f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14016555b
movaps xmm0, xmmword [rbp - 0x20]
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x88], 1
movups xmmword [rax + 0x90], xmm0
lea rax, [rax + 0x90]
add rsp, 0x90
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov qword [rbp - 8], rax
mov qword [rbp], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140167c80]
mov qword [rbp - 0x28], rax
lea rax, str.couldnt_generate_random_bytes:_p
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14019e180
ud2
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x88], 1
jne 0x140171787
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x90]
ret
jmp 0x1401654f0
Function at 0x140165f10
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov qword [rbp + 0x3d8], rcx
xor ebx, ebx
lea rcx, [rbp - 0x58]
mov r8d, 0x400
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r13, qword [0x1402e8458]
mov qword [rbp + 0x3c0], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov esi, 0x200
cmp rsi, 0x201
jae 0x140165f95
jmp 0x140165fe0
cmp rsi, r15
mov rsi, r15
ja 0x14016603d
cmp rsi, 0x201
jb 0x140165fe0
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x140165fc0
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.14019da50
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r12, r13
mov r14, rsi
mov rdi, r13
jmp 0x140165fed
lea rdi, [rbp - 0x58]
mov r12, rdi
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140166010
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140166088
mov r15d, edi
cmp rsi, r15
jne 0x140165f80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140165f80
add rsi, rsi
cmp rsi, 0x201
jae 0x140165f95
jmp 0x140165fe0
cmp r14, r15
jb 0x1401660e8
lea rcx, [rbp + 0x3a8]
mov rdx, r12
mov r8, r15
call fcn.14016aef0
mov rax, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp + 0x3a8]
movups xmmword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
jne 0x1401660b9
jmp 0x1401660d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov eax, 1
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
je 0x1401660d1
test r13, r13
je 0x1401660d1
add rdx, rdx
je 0x1401660d1
mov r8d, 2
mov rcx, r13
call fcn.1400012f0
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r14
call fcn.14019e630
ud2
Function at 0x140166f30
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140166f85
mov eax, dword [rsp + 0x34]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140166fb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, eax
call fcn.140173380
cmp al, 8
jne 0x140166fa0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140166fb7
shl rdi, 0x20
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], 0
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140166fd0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x2c], 0
mov edx, 0xffffffff
cmp r9, rdx
mov r8d, 0xffffffff
cmovb r8d, r9d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14016701f
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14016703a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140169890
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r13, r8
mov r12, rdx
mov qword [rbp - 0x10], rcx
mov rbx, qword [r8 + 0x10]
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], rbx
mov esi, 0xffffffff
lea r15, [rbp - 4]
mov r14, rbx
mov qword [rbp - 0x18], rbx
nop word cs:[rax + rax]
nop dword [rax]
cmp rbx, r14
jne 0x14016991a
mov rdx, qword [r13 + 8]
mov rax, rdx
sub rax, r14
cmp rax, 0x1f
ja 0x14016990a
mov r8d, 0x20
mov rcx, r13
mov rdx, r14
call fcn.14019dbd0
mov rdx, qword [r13 + 8]
mov qword [r13 + 0x10], rdx
cmp rdx, r14
jb 0x140169a38
mov r14, rdx
mov rdi, r14
sub rdi, rbx
jb 0x140169a0a
mov rdx, qword [r13]
add rdx, rbx
mov dword [rbp - 4], 0
cmp rdi, rsi
mov r8d, 0xffffffff
cmovb r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140169970
mov eax, dword [rbp - 4]
mov rdx, rax
shr rdx, 8
mov ecx, eax
and ecx, 0xffff0000
jmp 0x14016998e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, eax
call fcn.140173380
cmp al, 8
jne 0x1401699b4
xor eax, eax
xor edx, edx
xor ecx, ecx
mov esi, 0xffffffff
shl edx, 8
movzx edx, dx
movzx eax, al
or rax, rcx
or rax, rdx
je 0x1401699c6
cmp rax, rdi
ja 0x140169a1e
add rbx, rax
mov qword [rbp - 0x20], rbx
mov r14, qword [r13 + 0x10]
jmp 0x1401698e0
cmp al, 0xf
jne 0x1401699ef
mov esi, 0xffffffff
mov r14, qword [r13 + 0x10]
jmp 0x1401698e0
mov rax, rbx
sub rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rax
xor eax, eax
mov qword [rcx], rax
mov qword [r13 + 0x10], rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
shl rsi, 0x20
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], 0
mov eax, 1
jmp 0x1401699d7
lea r8, [0x1402e8d10]
mov rcx, rbx
mov rdx, r14
call fcn.14019e5b0
jmp 0x140169a47
lea rcx, str.assertion_failed:_n___buf.len__
lea r8, [0x1402e8d48]
mov edx, 0x20
call fcn.14019e390
jmp 0x140169a47
lea r8, [0x1402e8cf8]
mov rcx, r14
call fcn.14019e5b0
ud2
Function at 0x14016e590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [0x14031f3f0]
test rcx, rcx
je 0x14016e5fe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14016e618
mov rcx, qword [0x14031f3f0]
test rcx, rcx
je 0x14016e674
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rax + 8]
je 0x14016e688
mov rax, qword [rbx]
mov rcx, rdx
shl rcx, 4
mov qword [rax + rcx], rdi
mov qword [rax + rcx + 8], rsi
add rdx, 1
mov qword [rbx + 0x10], rdx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14031f3f0]
call fcn.14016e850
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14016e5b4
mov ecx, 0x18
mov edx, 8
call fcn.1400012e0
test rax, rax
je 0x14016e699
mov rbx, rax
mov rax, qword [0x1402e8448]
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
mov rcx, qword [0x14031f3f0]
test rcx, rcx
jne 0x14016e65b
lea rcx, [0x14031f3f0]
call fcn.14016e850
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14031f3f0]
test rcx, rcx
jne 0x14016e5c4
lea rcx, [0x14031f3f0]
call fcn.14016e850
mov rcx, rax
jmp 0x14016e5c4
mov rcx, rbx
call fcn.14019db10
mov rdx, qword [rbx + 0x10]
jmp 0x14016e5db
mov ecx, 0x18
mov edx, 8
call fcn.14019e1f0
ud2
Function at 0x14016e850
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [0x14031f928]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov qword [rbp + 0x20], rdi
mov rbx, qword [rsi]
test rbx, rbx
jne 0x14016e8eb
mov rbx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14016e904
mov edi, eax
test rbx, rbx
je 0x14016e8df
mov ecx, 0x18
mov edx, 8
call fcn.1400012e0
test rax, rax
je 0x14016e9b0
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x14031f970]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x14031f970], rcx
jne 0x14016e8d0
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x14016e91e
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
lea r8, [0x1402ea140]
mov edx, 0x2e
call fcn.14019e390
ud2
lea rax, str.assertion_failed:_key___0
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, str._rustc_6d820866a27b1949e237be79b9c8c0145fe728b7librarycore_src_strpattern.rs
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x60]
mov qword [rbp], rax
lea rax, [0x140182930]
mov qword [rbp + 8], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x20], 0
mov rax, rbp
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x30]
call fcn.14016a600
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdx
lea rcx, [rbp + 0x10]
call fcn.140163860
mov ecx, 7
int 0x29
ud2
mov ecx, 0x18
mov edx, 8
call fcn.14019e1f0
ud2
Function at 0x140171750
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14016555b
movaps xmm0, xmmword [rbp - 0x20]
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x88], 1
movups xmmword [rax + 0x90], xmm0
lea rax, [rax + 0x90]
add rsp, 0x90
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov qword [rbp - 8], rax
mov qword [rbp], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140167c80]
mov qword [rbp - 0x28], rax
lea rax, str.couldnt_generate_random_bytes:_p
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14019e180
ud2
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x88], 1
jne 0x140171787
mov eax, dword [0x14031fa34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x90]
ret
jmp 0x1401654f0

Function at 0x1401729e0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov ecx, 0x10
mov edx, 8
call fcn.1400012e0
test rax, rax
je 0x140172ad3
mov rbx, rax
mov qword [rax], rsi
mov qword [rax + 8], r15
add rdi, 0xfffe
and rdi, 0xffffffffffff0001
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140172b30]
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140172a68
mov qword [r14 + 8], rax
xor eax, eax
jmp 0x140172ac0
mov rcx, qword [rbx]
mov qword [rbp - 8], rbx
mov rax, qword [rbx + 8]
call qword [rax]
mov rsi, qword [rbp - 8]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140172a92
mov rcx, qword [rsi]
mov r8, qword [rax + 0x10]
call fcn.1400012f0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.1400012f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], 0
mov eax, 1
mov qword [r14], rax
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 0x10
mov edx, 8
call fcn.14019e1f0
ud2
Function at 0x140198e50
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140198eb6
mov rsi, rax
lea rdx, [0x1401ccae1]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140198eb6
mov rbx, rax
lea rdx, [0x1401ccaef]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140198eb6
mov rsi, rax
mov r15d, 1
jmp 0x140198f3f
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140198faa
mov rbx, rax
lea rdx, [0x1401ccb0d]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140198faa
mov rdi, rax
lea rdx, [0x1401ccb20]
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140198faa
mov rsi, rax
lea rdx, [0x1401ccb34]
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140198faa
mov r14, rax
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x140198faa
mov rbx, qword [rbp - 0x20]
mov qword [rbp - 0x10], rsi
xor r15d, r15d
mov ecx, 0x20
mov edx, 8
call fcn.1400012e0
test rax, rax
je 0x140198fcc
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
xor eax, eax
lock cmpxchg qword [0x14031f7f0], rdi
je 0x140198f9a
mov rsi, rax
cmp qword [rdi], 0
jne 0x140198f84
mov rcx, qword [rdi + 8]
call fcn.14018dc70
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call fcn.1400012f0
mov rdi, rsi
mov rax, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp - 0x10], 0
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823parking_lot_core_0.8.3_src_thread_parkerwindowsmod.rs
lea r8, [0x1401ccaa8]
mov edx, 0x5b
call fcn.140199010
ud2
mov ecx, 0x20
mov edx, 8
call fcn.14019e1f0
ud2

Function at 0x14019f040
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x20
call fcn.140001010
mov r8, qword [0x14019f0d0]
test r8, r8
je 0x14019f0c5
mov rsi, qword [0x14019f0d8]
cmp r8, 1
jne 0x14019f069
xor ecx, ecx
xor edx, edx
jmp 0x14019f0b2
mov r9, r8
and r9, 0xfffffffffffffffe
xor r10d, r10d
lea r11, [0x14019f0e0]
xor ecx, ecx
xor edx, edx
nop
movzx eax, byte [rcx + r11]
xor byte [rsi + rdx], al
lea rax, [rcx + 1]
cmp rcx, 0xe
cmova rax, r10
movzx ecx, byte [rax + r11]
xor byte [rsi + rdx + 1], cl
add rdx, 2
lea rcx, [rax + 1]
cmp rax, 0xe
cmova rcx, r10
cmp r9, rdx
jne 0x14019f080
test r8b, 1
je 0x14019f0c5
lea rax, [0x14019f0e0]
mov al, byte [rcx + rax]
xor byte [rsi + rdx], al
add rsp, 0x20
pop rsi
ret
Function at 0x140003e30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003e64
cmp word [rcx], 0x5a4d
jne 0x140003e64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003e64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003d70
test eax, eax
jne 0x140003e80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003de0
test rax, rax
je 0x140003e75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004623
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004530
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400044d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004994
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140986838]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140986834]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400049e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400049da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004ac9
inc ebx
add rax, 0x28
jmp 0x1400049ba
mov rcx, r12
call fcn.1400051c1
mov rbp, rax
test rax, rax
jne 0x140004a01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004930
movsxd rbx, ebx
mov rax, qword [0x140986838]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000526f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140986838]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004a63
mov rax, qword [0x140986838]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004ac3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004ac3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140986838]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004930
inc dword [0x140986834]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ef0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409868a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140986880]
test rbx, rbx
je 0x140004f3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004f36
test eax, eax
jne 0x140004f36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004f0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400050f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005113
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005113
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005114
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000514e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005145
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005150
inc r8d
add rax, 0x28
jmp 0x14000512c
xor eax, eax
ret

Function at 0x1400051c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140982890]
mov r8, rcx
mov rcx, r9
call fcn.1400050f0
test eax, eax
je 0x1400051ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005114
xor eax, eax
add rsp, 0x28
ret