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

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002f1c5
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002f1c5
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14002f1c5
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x1400324a0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov r14, rcx
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1401f3fe0]
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
lea rdx, [0x1401f638a]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3bb
call fcn.140007ba0
lea rcx, [rsp + 0x280]
mov rdx, rdi
xor r8d, r8d
call fcn.14001ce10
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401e0c20
mov word [rsp + 0x70], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1400325bf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1401809b8
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005b20
lea rsi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.140006c00
mov rcx, r14
mov rdx, rsi
call fcn.140005c70
mov rcx, rsi
call fcn.140005c00
mov rcx, rbx
call fcn.140005c00
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x280]
call fcn.14001ce20
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140173230
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140032600
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401f3fe0]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401f639f]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3cb
call fcn.140007ba0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14001ce10
cmp qword [rsi + 0x18], 8
jb 0x140032692
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14001ce20
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140173230
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140033560
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140270080]
cmp ecx, 0xffffffff
je 0x140033582
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
jmp 0x140033584
xor eax, eax
add rsp, 0x28
ret

Function at 0x140033590
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140270080]
cmp ecx, 0xffffffff
je 0x1400335c5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400335ca
call fcn.140033770
mov eax, dword [0x1402803c8]
mov ecx, dword [0x1402829b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x14003371d
mov rbx, qword [0x1402803c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033710
mov rcx, qword [0x14027ebb0]
inc rcx
mov edx, 0x100
lea rax, [0x14027ebc0]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003364a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003364a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140033620
jmp 0x14003366f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14027ebb0], rdi
mov qword [r15], rdi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rsi, qword [r15]
cmp rsi, 0x100
jb 0x1400336f6
mov ecx, 0x100
call fcn.140011770
mov rdi, rax
mov rcx, rsi
call fcn.140011770
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140011c60
cmp qword [rsp + 0x30], 0
je 0x1400336f6
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1c7
call fcn.1400084b0
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140173230
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140019440
jmp 0x140033607
lea rcx, [0x1402803c8]
call fcn.1401730a0
cmp dword [0x1402803c8], 0xffffffff
jne 0x1400335ef
mov ecx, 8
call fcn.140172d74
mov rbx, rax
mov rcx, rax
call fcn.140019430
mov qword [0x1402803c0], rbx
lea rcx, [0x1402803c8]
call fcn.140173034
jmp 0x1400335ef

Function at 0x140033950
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140270080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140033980
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140033980
mov rax, qword [rax + rcx]
jmp 0x140033982
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140033990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140270080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400339ce
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1400339c7
call fcn.140033770
jmp 0x1400339ae

Function at 0x140036770
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140280458]
mov ecx, dword [0x1402829b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x1400367a5
lea rcx, [0x140280448]
add rsp, 0x28
jmp fcn.140033950
lea rcx, [0x140280458]
call fcn.1401730a0
cmp dword [0x140280458], 0xffffffff
jne 0x140036795
xorps xmm0, xmm0
movups xmmword [0x140280448], xmm0
lea rcx, [0x140280448]
xor edx, edx
call fcn.1400339e0
lea rcx, [0x140280458]
call fcn.140173034
jmp 0x140036795

Function at 0x140039e50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14003d5f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r12, rcx
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rdx]
mov qword [rsp + 0x30], 0
movaps xmm0, xmmword [0x1401f3fb0]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rcx, rdi
call fcn.14017aef0
mov rbx, rax
cmp rax, 0xf
jbe 0x14003d652
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.140007bd0
jmp 0x14003d66c
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.1401e0580
mov byte [rsp + rbx + 0x30], 0
movabs rbp, 0xcbf29ce484222325
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, 0x10
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmovae rbx, rax
test r14, r14
je 0x14003d6ba
movabs rax, 0x100000001b3
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x14003d6bf
xor esi, esi
jmp 0x14003d708
mov rdx, rbp
jmp 0x14003d736
mov rdi, r14
and rdi, 0xfffffffffffffffc
xor esi, esi
nop dword [rax + rax]
movzx edx, byte [rbx + rsi]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 1]
xor rbp, rdx
imul rbp, rax
movzx edx, byte [rbx + rsi + 2]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 3]
xor rbp, rdx
imul rbp, rax
add rsi, 4
cmp rdi, rsi
jne 0x14003d6d0
mov rdx, rbp
test rcx, rcx
je 0x14003d736
add rsi, rbx
xor edi, edi
nop word cs:[rax + rax]
movzx edx, byte [rsi + rdi]
xor rdx, rbp
imul rdx, rax
inc rdi
mov rbp, rdx
cmp rcx, rdi
jne 0x14003d720
and rdx, qword [r12 + 0x30]
mov r13, qword [r12 + 8]
mov rax, qword [r12 + 0x18]
mov rcx, rdx
shl rcx, 4
mov rsi, qword [rax + rcx + 8]
cmp rsi, r13
je 0x14003d7b1
add rdx, rdx
mov rdi, qword [rax + rdx*8]
cmp r14, qword [rsi + 0x20]
jne 0x14003d793
nop word cs:[rax + rax]
cmp qword [rsi + 0x28], 0x10
jb 0x14003d780
mov rdx, qword [rsi + 0x10]
jmp 0x14003d784
lea rdx, [rsi + 0x10]
mov rcx, rbx
mov r8, r14
call fcn.1401e0fc0
test eax, eax
je 0x14003d7a4
cmp rsi, rdi
je 0x14003d7b1
mov rsi, qword [rsi + 8]
cmp r14, qword [rsi + 0x20]
je 0x14003d770
jmp 0x14003d793
test rsi, rsi
je 0x14003d7b1
cmp r15, 0x10
jae 0x14003d7ba
jmp 0x14003d7f3
mov rsi, r13
cmp r15, 0x10
jb 0x14003d7f3
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14003d7e9
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14003d819
add r15, 0x28
mov rdx, r15
mov rcx, rax
jmp 0x14003d7ee
mov rcx, qword [rsp + 0x28]
call fcn.140172db0
cmp rsi, r13
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140173230
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14017a8e4
int3
Function at 0x140042fa0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x1400430f7
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140042ffd
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140042ffd
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x14004313a
cmp qword [rdi + 0x80], 0
je 0x1400430fb
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140043037
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140043102
movaps xmm0, xmmword [0x1401f3fe0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x5f], sil
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbp
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [case.0x1401ad3ca.0]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x14004311a
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x1400430e7
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.1401859ac
cmp rbx, rax
jne 0x140043138
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x140043133
xor esi, esi
jmp 0x14004313a
mov esi, 0xffffffff
jmp 0x14004313a
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.140185a48
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x14004313a
cmp eax, 3
jne 0x140043138
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.140185a48
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140173230
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400435d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
jle 0x14004366f
mov r14, r8
mov rdi, rdx
mov r12, rcx
cmp qword [rcx + 0x68], 0
je 0x140043677
mov rbx, r14
jmp 0x14004362c
cmp rbx, rsi
cmovb rsi, rbx
mov rcx, rdi
mov r8, rsi
call fcn.1401e0580
add rdi, rsi
sub rbx, rsi
mov rax, qword [r12 + 0x50]
sub dword [rax], esi
mov rax, qword [r12 + 0x38]
add qword [rax], rsi
test rbx, rbx
jle 0x140043667
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043644
mov rax, qword [r12 + 0x50]
mov esi, dword [rax]
test esi, esi
jg 0x140043600
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
mov rcx, r12
call qword [case.0x1401ad3ca.0]
cmp eax, 0xffffffff
je 0x140043667
mov byte [rdi], al
inc rdi
dec rbx
test rbx, rbx
jg 0x14004362c
sub r14, rbx
jmp 0x14004377b
xor r14d, r14d
jmp 0x14004377b
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400436cf
mov rax, qword [r12 + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1400436cf
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.1401e0580
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [r12 + 0x50]
sub dword [rax], r15d
mov rax, qword [r12 + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [r12 + 0x80], 0
jne 0x1400436e1
jmp 0x140043778
mov rsi, r14
cmp qword [r12 + 0x80], 0
je 0x140043778
mov rax, qword [r12 + 0x18]
lea rcx, [r12 + 0x70]
cmp qword [rax], rcx
jne 0x140043720
mov ecx, dword [r12 + 0x90]
mov rdx, qword [r12 + 0x88]
mov qword [rax], rdx
mov rax, qword [r12 + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [r12 + 0x50]
mov dword [rax], ecx
nop word cs:[rax + rax]
cmp rsi, 0x1000
jb 0x140043754
mov r9, qword [r12 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.140184e48
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x140043720
jmp 0x140043778
test rsi, rsi
je 0x140043776
mov r9, qword [r12 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call fcn.140184e48
sub rsi, rax
jmp 0x140043778
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140043790
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r15, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14004382a
mov rsi, r14
test r14, r14
jle 0x14004389b
mov rsi, r14
jmp 0x1400437ee
cmp rsi, rdi
cmovb rdi, rsi
mov rdx, r15
mov r8, rdi
call fcn.1401e0580
add r15, rdi
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jle 0x14004389b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140043804
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jg 0x1400437c0
movzx edx, byte [r15]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [case.0x1401ad3ca.0]
cmp eax, 0xffffffff
je 0x14004389b
inc r15
dec rsi
test rsi, rsi
jg 0x1400437ee
jmp 0x14004389b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140043874
test r14, r14
jle 0x140043874
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jle 0x140043874
cmp rdi, r14
cmovae rdi, r14
mov rdx, r15
mov r8, rdi
call fcn.1401e0580
add r15, rdi
mov rsi, r14
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jg 0x14004387c
jmp 0x14004389b
mov rsi, r14
test rsi, rsi
jle 0x14004389b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14004389b
mov edx, 1
mov rcx, r15
mov r8, rsi
call fcn.1401859ac
sub rsi, rax
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140043c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x140043d6f
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140043d6f
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x1401ad3ca.0]
cmp eax, 0xffffffff
je 0x140043d6d
movaps xmm0, xmmword [0x1401f3fe0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x1401ad3ca.0]
cmp eax, 3
je 0x140043d86
cmp eax, 1
je 0x140043d3d
test eax, eax
jne 0x140043d6d
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140043d63
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.1401859ac
cmp rbx, rax
jne 0x140043d6d
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x140043d6f
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140173230
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x140043d6f

Function at 0x140046670
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140046685
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400467f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140280560]
mov ecx, dword [0x1402829b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x14]
jg 0x140046825
lea rcx, [0x140280550]
add rsp, 0x28
jmp fcn.140033950
lea rcx, [0x140280560]
call fcn.1401730a0
cmp dword [0x140280560], 0xffffffff
jne 0x140046815
xorps xmm0, xmm0
movups xmmword [0x140280550], xmm0
lea rcx, [0x140280550]
xor edx, edx
call fcn.1400339e0
lea rcx, [0x140280560]
call fcn.140173034
jmp 0x140046815

Function at 0x14004858c
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140048624
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14004cd10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov eax, ecx
test r8, r8
je 0x14004cd8c
cmp r8, 1
jne 0x14004cd22
xor ecx, ecx
jmp 0x14004cd6e
mov r9, r8
and r9, 0xfffffffffffffffe
xor ecx, ecx
lea r10, [0x1401f7720]
nop word cs:[rax + rax]
movzx r11d, al
movzx esi, byte [rdx + rcx]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
movzx r11d, al
movzx esi, byte [rdx + rcx + 1]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
add rcx, 2
cmp r9, rcx
jne 0x14004cd40
test r8b, 1
je 0x14004cd8c
movzx r8d, al
movzx ecx, byte [rdx + rcx]
xor ecx, r8d
lea rdx, [0x1401f7720]
shr eax, 8
xor eax, dword [rdx + rcx*4]
pop rsi
ret
Function at 0x1400566f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
call fcn.140052d88
add rbx, 0xfffffffffffffff8
mov rdi, qword [rbx]
cmp dword [rax + 8], 0
ja 0x140056786
mov rcx, rbx
mov rax, qword [rdi + 0x10]
call qword [case.0x1401ad3ca.0]
call fcn.140079970
call fcn.1400c7df4
test al, al
jne 0x140056886
cmp qword [0x1402816b0], 0
je 0x140056886
and dword [rbp - 9], 0
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140053940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x140056886
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
and qword [rbp + 0x37], 0
mov r14d, 0xf
mov qword [rbp + 0x3f], r14
xor r8d, r8d
lea rdx, [0x1401f3765]
lea rcx, [rbp + 0x27]
call fcn.1401e0580
nop
mov byte [rbp + 0x27], 0
lea r9d, [r14 - 0xe]
lea r8, [rbp + 0x27]
lea rdx, [rbp - 9]
mov rcx, rbx
mov rax, qword [rdi + 0x50]
call qword [case.0x1401ad3ca.0]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, r14
jbe 0x140056809
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400568ab
call fcn.140172db0
nop
and qword [rbp + 0x37], 0
mov qword [rbp + 0x3f], r14
mov byte [rbp + 0x27], 0
mov rax, qword [rbp - 9]
test rax, rax
jne 0x140056864
call fcn.140052a54
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
and qword [rbp + 0xf], 0
mov qword [rbp + 0x17], r14
xor r8d, r8d
lea rdx, [0x1401f3765]
lea rcx, [rbp - 1]
call fcn.1401e0580
nop
mov byte [rbp - 1], 0
lea r8, [rbp - 1]
mov edx, 1
mov rcx, rbx
call fcn.1400e4fb8
mov rax, qword [rbp - 9]
test rax, rax
je 0x140056886
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rax, 8
add rcx, rax
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1401ad3ca.0]
nop
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140173230
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14017a8e4
nop
int3
Function at 0x1400599a8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140059a20
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140059a20
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140059a20
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140059a14
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140059a32
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140059a02
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140059a22

Function at 0x1400c0ac0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1402708c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400c0b9e
movsd xmm6, qword [0x1401febe0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x28]
divsd xmm6, xmm0
xorps xmm0, xmm0
comisd xmm0, xmm6
jae 0x1400c0b9e
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400c0b46
nop dword [rax]
inc ebx
cmp ebx, 3
ja 0x1400c0b7c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400c0b30
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
mulsd xmm0, xmm6
cvttsd2si rax, xmm0
mov qword [rdi], rax
mov rbx, qword [rsp + 0x68]
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140173230
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
mov r8d, 0x34
lea rdx, str.D:TImportsOpen_boost_boostchronodetailinlinedwinchrono.hpp
lea rcx, str.0___Boost::Chrono___QueryPerformanceCounter_Internal_Error_
call fcn.140186b60
mov qword [rdi], 0
jmp 0x1400c0b5c
mov r8d, 0x2c
lea rdx, str.D:TImportsOpen_boost_boostchronodetailinlinedwinchrono.hpp
lea rcx, str.0___Boost::Chrono___get_nanosecs_per_tic_Internal_Error_
call fcn.140186b60
mov qword [rdi], 0
jmp 0x1400c0b61