joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055710
Capabilities:
Hash data using fnv

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140055816
mov rax, qword [rsi + 0x38]
shr rax, 3
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], rdi
cmp rax, rcx
jbe 0x1400558b7
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x30], r14
mov r14, qword [rsi + 8]
mov rbp, qword [r14]
cmp rbp, r14
je 0x140055802
movzx ecx, byte [rbp + 0x10]
movabs rax, 0xcbf29ce484222325
mov rdx, qword [rsi + 0x18]
xor rcx, rax
movzx eax, byte [rbp + 0x11]
movabs r8, 0x100000001b3
imul rcx, r8
mov qword [r11 - 0x20], r12
mov rbx, rbp
mov r12, qword [rbp + 8]
xor rcx, rax
imul rcx, r8
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x38], r15
mov r15, qword [rsi + 0x30]
and r15, rcx
mov qword [rsp + 0x68], rdx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov r13, qword [r15 + 8]
mov qword [rsp + 0x60], rax
nop dword [rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140074c44
dec qword [rsi + 0x10]
cmp rdi, r13
je 0x14005581c
cmp rbx, r14
jne 0x1400557c0
cmp qword [rsp + 0x60], rbp
jne 0x1400557eb
mov qword [r15], rbx
mov r13, qword [rsp + 0x30]
mov r15, qword [rsp + 0x20]
mov qword [r12], rbx
mov qword [rbx + 8], r12
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
add rsp, 0x50
pop rsi
ret
cmp qword [rsp + 0x60], rbp
jne 0x14005582b
mov qword [r15], r14
mov rax, r14
jmp 0x14005582e
mov rax, r12
mov qword [r15 + 8], rax
cmp rbx, r14
je 0x1400557eb
mov r13, qword [rsp + 0x68]
nop dword [rax]
movzx ecx, byte [rbx + 0x10]
movabs rax, 0xcbf29ce484222325
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [rbx + 0x11]
movabs rdx, 0x100000001b3
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r15, rcx
shl r15, 4
add r15, r13
mov rbp, qword [r15 + 8]
nop dword [rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.140074c44
dec qword [rsi + 0x10]
cmp rdi, rbp
je 0x1400558a6
cmp rbx, r14
jne 0x140055880
jmp 0x1400557e8
mov qword [r15], r14
mov qword [r15 + 8], r14
cmp rbx, r14
jne 0x140055840
jmp 0x1400557eb
mov rcx, qword [rsi + 8]
xor edi, edi
mov rax, qword [rcx + 8]
mov qword [rax], rdi
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400558e5
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140074c44
mov rcx, rbx
test rbx, rbx
jne 0x1400558d0
mov rax, qword [rsi + 8]
lea r8, [rsp + 0x60]
mov qword [rax], rax
mov rax, qword [rsi + 8]
mov qword [rax + 8], rax
mov qword [rsi + 0x10], rdi
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
mov qword [rsp + 0x60], rax
call fcn.1400193d0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
add rsp, 0x50
pop rsi
ret
Function at 0x140055e90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140055eca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140055ecf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140055f18
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400aafd0]
cmp byte [rcx + rax], 0
je 0x140055f18
dec r8
sub rdx, 1
jne 0x140055efe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140059b50
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov qword [rcx], rdx
lea rbx, [rcx + 8]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rdi, rcx
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
and qword [rbx + 0x18], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], eax
test dword [0x1400d036c], 0x80000000
je 0x140059ba5
mov ecx, dword [0x1400d7078]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140059baa
call fcn.140060e04
mov qword [rbx], rax
mov r8b, 1
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.140059d9c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140059c00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov edi, edx
mov rbx, rcx
call fcn.14005d498
mov r8d, dword [rbx + 0x10]
mov ecx, eax
shr r8d, 2
test r8b, 1
jne 0x140059ca2
mov r8d, dword [rbx + 0x10]
shr r8d, 1
test r8b, 1
je 0x140059c3e
mov eax, dword [rbx + 0x10]
shr eax, 3
shr edi, 3
sub eax, edi
jmp 0x140059c43
mov eax, 1
lea r8d, [rcx + 2]
cmp eax, r8d
ja 0x140059ca2
dec eax
mov qword [rsp + 0x20], 0
imul eax, dword [0x1400d0358]
lea rcx, [0x14005b050]
xor edx, edx
mov qword [rsp + 0x30], rcx
div r8d
add eax, dword [0x1400d0358]
jne 0x140059c81
mov dword [rsp + 0x28], 4
jmp 0x140059c8d
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 1
mov eax, dword [rbx + 0x10]
test al, 1
je 0x140059ca2
lea rcx, [rsp + 0x20]
call fcn.14005a190
test al, al
jne 0x140059c8d
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.14005b248
Function at 0x14005a5d4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x10], 0
mov r14d, 1
test dword [0x1400d036c], 0x80000000
mov rbx, rcx
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x18], r14d
mov dword [rbp - 8], 0
mov dword [rbp - 4], 0
je 0x14005a62f
mov ecx, dword [0x1400d7078]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x14005a634
call fcn.140060e04
mov qword [rbp - 0x28], rax
cmp rax, qword [rbx]
je 0x14005a73d
lea rdi, [rbp - 0x28]
xchg qword [rbx + 0x28], rdi
test rdi, rdi
jne 0x14005a6bf
prefetchw byte [rbx + 0x40]
mov eax, dword [rbx + 0x40]
lea edx, [rdi + 4]
mov ecx, eax
or ecx, edx
lock cmpxchg dword [rbx + 0x40], ecx
jne 0x14005a658
test al, 3
jne 0x14005a6ef
lock xadd dword [rbx + 0x40], edx
and dl, 3
cmp dl, r14b
jne 0x14005a67d
lock or dword [rbx + 0x40], 2
xor ecx, ecx
lea rax, [rbp - 0x28]
xchg qword [rbx + 0x28], rcx
cmp rcx, rax
jne 0x14005a69a
mov eax, dword [rcx + 0x10]
and eax, 0xfffffffe
mov dword [rcx + 0x10], eax
jmp 0x14005a727
xor eax, eax
lock cmpxchg dword [rcx + 0x20], r14d
jne 0x14005a6ef
mov eax, dword [rcx + 0x10]
and eax, 0xfffffffe
mov dword [rcx + 0x10], eax
mov rcx, qword [rcx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400611e2.0]
jmp 0x14005a6ef
mov eax, dword [rdi + 0x10]
test r14b, al
je 0x14005a6ef
mov eax, dword [rdi + 0x10]
shr eax, 2
test r14b, al
jne 0x14005a6e6
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400611e2.0]
test al, al
je 0x14005a6ef
mov eax, dword [rbp - 0x18]
or eax, 4
mov dword [rbp - 0x18], eax
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.140059c00
test rdi, rdi
je 0x14005a727
lock add dword [rbx + 0x40], 8
xor eax, eax
lock cmpxchg dword [rdi + 0x20], r14d
jne 0x14005a727
mov eax, dword [rdi + 0x10]
mov rcx, qword [rdi]
and eax, 0xfffffffe
mov dword [rdi + 0x10], eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400611e2.0]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, str.Lock_already_taken_as_a_writer
lea rcx, [rbp - 0x40]
call fcn.14005b0b0
lea rdx, [0x1400cdb50]
lea rcx, [rbp - 0x40]
call fcn.1400760c4
int3

Function at 0x14005abe8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005abfb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14005b218
lea rdx, [0x1400cdbb0]
lea rcx, [rsp + 0x20]
call fcn.1400760c4
int3
Function at 0x1400611ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rdx
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [rdx + r10]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 4
jb 0x140061204
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14006124e
mov ecx, dword [r11]
cmp dword [rax + 8], ecx
je 0x140061256
mov rax, qword [rax]
test rax, rax
jne 0x140061241
xor eax, eax
mov rbx, qword [rsp + 8]
ret
test rax, rax
je 0x14006124e
test r8, r8
je 0x140061250
mov ecx, dword [rax + 0xc]
mov dword [r8], ecx
jmp 0x140061250

Function at 0x140062618
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
movabs r9, 0xcbf29ce484222325
movzx eax, byte [rdi + rcx]
movabs rdx, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rdx
cmp rcx, 4
jb 0x140062642
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rsi, edx
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x14006268a
mov eax, dword [rdi]
cmp dword [rcx + 8], eax
je 0x1400626b4
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14006267d
mov ecx, 0x10
call fcn.140074c08
mov qword [rsp + 0x30], rax
mov r8, rax
test rax, rax
je 0x1400626bd
and qword [rax], 0
mov eax, dword [rdi]
mov dword [r8 + 8], eax
mov eax, dword [r14]
mov dword [r8 + 0xc], eax
jmp 0x1400626c0
test rcx, rcx
je 0x14006268a
xor eax, eax
jmp 0x1400626d9
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov rax, r8
mov rdx, qword [rcx + rsi*8]
mov qword [r8], rdx
mov rcx, qword [rbx + 8]
mov qword [rcx + rsi*8], r8
inc dword [rbx + 4]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140064e24
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400d7078]
xor edx, edx
jmp fcn.14005abe8

Function at 0x1400650dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r11, rcx
movabs r9, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [rdx + r10]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 8
jb 0x1400650f9
movsxd rcx, dword [r11]
xor edx, edx
mov rdi, qword [r11 + 8]
mov rax, r9
div rcx
movsxd r10, edx
xor edx, edx
mov rcx, qword [rdi + r10*8]
test rcx, rcx
je 0x14006514c
mov r9, qword [rbx]
mov rax, qword [rcx]
cmp qword [rcx + 8], r9
je 0x140065159
mov rdx, rcx
mov rcx, rax
test rax, rax
jne 0x140065138
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rdx, rdx
jne 0x140065164
mov qword [rdi + r10*8], rax
jmp 0x140065167
mov qword [rdx], rax
dec dword [r11 + 4]
test rcx, rcx
je 0x14006514c
test r8, r8
je 0x14006517c
mov rdx, qword [rcx + 0x10]
mov qword [r8], rdx
mov edx, 0x18
call fcn.140074c44
mov al, 1
jmp 0x14006514e
Function at 0x140065798
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400d7078]
jmp fcn.14005abe8

Function at 0x140065c94
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r15
sub rsp, 0x20
mov bpl, r8b
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [rcx], r15
or dword [rcx + 8], 0xfffffff
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov dword [rcx + 0x20], r15d
mov dword [rcx + 0x24], 0x80000000
mov qword [rcx + 0x28], r15
mov dword [rcx + 0x58], r15d
add rcx, 0x60
call fcn.140071158
nop
mov rax, qword [rsi + 0xa8]
mov qword [rbx + 0xa8], rax
mov qword [rbx + 0xb8], r15
mov dword [rbx + 0xc8], r15d
mov dword [rbx + 0xd4], r15d
mov qword [rbx + 0xd8], r15
test dword [0x1400d036c], 0x80000000
je 0x140065d2c
mov ecx, dword [0x1400d7078]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x140065d31
call fcn.140060e04
mov qword [rbx + 0x18], rax
mov rax, qword [rax + 0x60]
mov qword [rbx], rax
mov rax, qword [rsi + 0x10]
mov qword [rbx + 0x10], rax
test rax, 0xfffffffffffffffd
je 0x140065d50
lock inc dword [rax + 8]
mov dword [rbx + 0x50], r15d
mov dword [rbx + 0x54], r15d
mov dword [rbx + 0xcc], r15d
mov qword [rbx + 0x30], r15
lea rcx, [rbx + 0x38]
call fcn.140059a90
lea rcx, [rbx + 0x60]
call fcn.1400716e4
test bpl, bpl
je 0x140065dbb
mov rcx, qword [rbx + 0xa8]
mov rax, qword [rcx + 0xb0]
mov qword [rbx + 0xb0], rax
lock cmpxchg qword [rcx + 0xb0], rbx
je 0x140065dd1
mov rdx, rax
mov qword [rbx + 0xb0], rax
mov rcx, qword [rbx + 0xa8]
lock cmpxchg qword [rcx + 0xb0], rbx
cmp rax, rdx
jne 0x140065d9a
jmp 0x140065dd1
mov eax, dword [rbx + 0xc8]
or eax, 1
mov dword [rbx + 0xc8], eax
mov qword [rbx + 0xb0], r15
call fcn.140060f8c
mov rdi, rax
cmp qword [rax + 0x40], r15
jne 0x140065de7
mov rcx, rax
call fcn.140064e34
mov rax, qword [rdi + 0x40]
mov ecx, dword [rax + 0xa0]
mov dword [rbx + 0xd0], ecx
and dword [rbx + 8], 0xfffffff
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret

Function at 0x1400660ac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rdx
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [rdx + r10]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 8
jb 0x1400660c4
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14006610f
mov rcx, qword [r11]
cmp qword [rax + 8], rcx
je 0x140066117
mov rax, qword [rax]
test rax, rax
jne 0x140066101
xor eax, eax
mov rbx, qword [rsp + 8]
ret
test rax, rax
je 0x14006610f
test r8, r8
je 0x140066111
mov rcx, qword [rax + 0x10]
mov qword [r8], rcx
jmp 0x140066111
Function at 0x1400661b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
movabs r9, 0xcbf29ce484222325
movzx eax, byte [rdi + rcx]
movabs rdx, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rdx
cmp rcx, 8
jb 0x1400661da
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rsi, edx
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x140066224
mov rax, qword [rdi]
cmp qword [rcx + 8], rax
je 0x14006624f
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140066216
mov ecx, 0x18
call fcn.140074c08
mov qword [rsp + 0x30], rax
mov r8, rax
test rax, rax
je 0x140066258
and qword [rax], 0
mov rax, qword [rdi]
mov qword [r8 + 8], rax
mov rax, qword [r14]
mov qword [r8 + 0x10], rax
jmp 0x14006625b
test rcx, rcx
je 0x140066224
xor eax, eax
jmp 0x140066274
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov rax, r8
mov rdx, qword [rcx + rsi*8]
mov qword [r8], rdx
mov rcx, qword [rbx + 8]
mov qword [rcx + rsi*8], r8
inc dword [rbx + 4]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400678f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ebx, dword [rdx + 0xa8]
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov rdx, rdi
mov qword [rdi + 0x38], rax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005abe8

Function at 0x140068c74
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
xor ebx, ebx
mov ecx, dword [rax + 0xa8]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140068c96
test al, 3
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140069268
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rax + 0xa8]
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
je 0x1400692cc
and eax, 3
je 0x1400692b2
cmp rax, 1
jne 0x1400692cc
and rbx, 0xfffffffffffffffe
mov rbx, qword [rbx + 0x20]
add rbx, 0x10
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x1400692b2
cmp byte [rax + 0x70], 0
jne 0x1400692cc
mov rcx, rbx
call fcn.140067734
test rbx, rbx
je 0x1400692cc
mov rdx, rbx
mov rcx, rdi
call fcn.140068d08
jmp 0x1400692ce
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140069d38
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
xor edx, edx
mov r8d, 0x800
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140069da7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140069e4e
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140069e4e
lea rdx, str.RegisterTraceGuidsW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx], rax
lea rdx, str.UnregisterTraceGuids
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx + 8], rax
lea rdx, str.TraceEvent
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx + 0x10], rax
lea rdx, str.GetTraceLoggerHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx + 0x18], rax
lea rdx, str.GetTraceEnableLevel
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx + 0x20], rax
lea rdx, str.GetTraceEnableFlags
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14005ac60
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140070b18
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140070bd4]
mov r9, qword [r9 + 8]
jmp fcn.1400627f8

Function at 0x140070bac
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140070be4]
mov r9, qword [r9 + 8]
jmp fcn.1400627f8

Function at 0x1400724c4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xa8]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x14007250c
mov dl, r8b
and dl, 3
cmp dl, 1
jne 0x14007250c
and r8, 0xfffffffffffffffe
je 0x14007250c
mov rax, qword [rbx + 0x80]
cmp r8, rax
jne 0x14007250c
and qword [r8 + 0x20], 0
jmp 0x14007254b
and dword [rsp + 0x20], 0
lea rax, [0x14005b010]
and dword [rsp + 0x24], 0
and dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
jmp 0x14007253f
mov rax, qword [rbx + 0x88]
test rax, rax
jne 0x14007254b
lea rcx, [rsp + 0x20]
call fcn.14005a0dc
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x140072529
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x40]
add rsp, 0x40
pop rbx
jmp qword [case.0x1400611e2.0]

Function at 0x140075c40
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400750d0
sub rsp, rax
mov rax, qword [0x1400d0400]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008e1d0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400810e7
mov rax, rbp
jmp 0x1400811ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd7c80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008f484
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xd7c80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400811eb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400811eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008f484
test rax, rax
js 0x1400811eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400811eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400811dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400811dd
cmp byte [rcx], 0xd
jne 0x1400811c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400811d2
cmp byte [rcx + 1], 0xa
jne 0x1400811d2
inc rcx
jmp 0x1400811d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd0800]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400811a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400811ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140074d60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14008a474
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14008a4e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008a4e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008a4e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008a4e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008a4e3
cmp dword [rcx + 0x84], 0xe
jbe 0x14008a4e3
cmp dword [rcx + 0xf8], 0
je 0x14008a4e3
mov ecx, ebx
call fcn.14008a5a0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14008a370
nop
cmp dword [rbp + 0x20], 0
je 0x14008a531
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008a53c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14008a474