joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a4a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x14004b830]
test rbx, rbx
je 0x14003a6ed
lea rdx, [rbx + 0x368]
movaps xmmword [rsp + 0x90], xmm6
call fcn.14003c420
lea rdx, [rbx + 0x370]
movaps xmm6, xmm0
call fcn.14003c420
addss xmm0, dword [0x140044524]
comiss xmm0, xmm6
jb 0x14003a6e5
mov r8d, 0x6d
movaps xmmword [rsp + 0x80], xmm7
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140039060
movups xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call fcn.140038c10
movsd xmm6, qword [rsp + 0x20]
xorps xmm4, xmm4
ucomisd xmm6, xmm4
movss xmm7, dword [0x14004b044]
xorps xmm3, xmm3
xorps xmm2, xmm2
jp 0x14003a55b
je 0x14003a5c2
mov eax, dword [0x14004b8a8]
movd xmm5, eax
cvtdq2pd xmm5, xmm5
comisd xmm6, xmm5
jbe 0x14003a59e
movaps xmm3, xmm5
add eax, eax
subsd xmm3, xmm6
cvtps2pd xmm0, xmm7
xorps xmm3, xmmword [0x140044a90]
divsd xmm3, xmm0
movd xmm0, eax
movaps xmm1, xmm3
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm5
comisd xmm1, xmm0
jbe 0x14003a59e
xorps xmm3, xmm3
comisd xmm5, xmm6
jbe 0x14003a5c2
movaps xmm3, xmm6
cvtps2pd xmm0, xmm7
subsd xmm3, xmm5
divsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm5
comisd xmm4, xmm0
jbe 0x14003a5c2
xorps xmm3, xmm3
movsd xmm5, qword [rsp + 0x28]
ucomisd xmm5, xmm4
jp 0x14003a5d0
je 0x14003a637
mov eax, dword [0x14004b8b0]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
comisd xmm5, xmm6
jbe 0x14003a613
movaps xmm2, xmm6
add eax, eax
subsd xmm2, xmm5
cvtps2pd xmm0, xmm7
xorps xmm2, xmmword [0x140044a90]
divsd xmm2, xmm0
movd xmm0, eax
movaps xmm1, xmm2
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm6
comisd xmm1, xmm0
jbe 0x14003a613
xorps xmm2, xmm2
comisd xmm6, xmm5
jbe 0x14003a637
movaps xmm2, xmm5
cvtps2pd xmm0, xmm7
subsd xmm2, xmm6
divsd xmm2, xmm0
movaps xmm0, xmm2
addsd xmm0, xmm6
comisd xmm4, xmm0
jbe 0x14003a637
xorps xmm2, xmm2
xor eax, eax
mov qword [rsp + 0x54], 0x4001
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x5c], rax
mov edx, 0x1000
mov dword [rsp + 0x64], eax
mov r8d, edx
mov dword [rsp + 0x50], eax
cvttsd2si eax, xmm3
lea r9d, [rcx + 0x40]
mov dword [rsp + 0x48], eax
cvttsd2si eax, xmm2
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm7, xmmword [rsp + 0x80]
mov rbx, rax
test rax, rax
je 0x14003a6e5
movups xmm0, xmmword [0x14004b7f0]
mov r8d, 0x28
lea rdx, [rsp + 0x40]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14004b800]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x14004b808]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14004b80c]
mov word [rax + 0x1c], cx
lea ecx, [r8 - 0x27]
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movaps xmm6, xmmword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0xa0
pop rbx
ret
Function at 0x14003c2f0
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [r11 - 0x38]
cmp byte [0x14004b6f9], cl
lea r8, [r11 - 0x30]
mov qword [r11 - 0x40], rcx
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x14004b728]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x38], rcx
mov rcx, qword [0x14004b720]
mov qword [r11 - 0x18], 8
mov dword [rsp + 0x48], eax
jne 0x14003c35f
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0x78
ret

Function at 0x14003c380
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [r11 - 0x38]
cmp byte [0x14004b6f9], cl
lea r8, [r11 - 0x30]
mov qword [r11 - 0x40], rcx
xorps xmm0, xmm0
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x14004b728]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov rcx, qword [0x14004b720]
mov qword [r11 - 0x18], 8
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
jne 0x14003c3f4
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movsd xmm0, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0x78
ret

Function at 0x14003c420
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov dword [rsp + 0x40], 0
cmp byte [0x14004b6f9], cl
lea rax, [r11 - 0x38]
mov qword [r11 - 0x40], rcx
lea r8, [r11 - 0x30]
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x14004b728]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov rcx, qword [0x14004b720]
mov qword [r11 - 0x18], 4
mov dword [rsp + 0x48], eax
jne 0x14003c493
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm0, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0x78
ret
Function at 0x14003c4c0
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ecx, ecx
mov qword [rsp + 0x48], r8
xor eax, eax
mov qword [rsp + 0x38], rcx
cmp byte [0x14004b6f9], cl
lea r8, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x44], ecx
mov rbx, rdx
movups xmmword [rsp + 0x70], xmm0
mov dword [r11 - 0x40], eax
lea r9d, [rcx + 0x20]
mov dword [r11 - 0x20], eax
xorps xmm1, xmm1
lea rax, [r11 - 0x78]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x50], rax
mov edx, 0x222404
mov eax, dword [0x14004b728]
mov qword [r11 - 0x80], 0x60
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x14004b720]
mov dword [rsp + 0x40], eax
movsd qword [r11 - 0x48], xmm1
movsd qword [r11 - 0x28], xmm1
movaps xmmword [r11 - 0x58], xmm0
movaps xmmword [r11 - 0x38], xmm0
jne 0x14003c56b
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movaps xmm0, xmmword [rsp + 0x60]
mov rax, rbx
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0xd0
pop rbx
ret

Function at 0x14003c630
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [r11 - 0x38]
cmp byte [0x14004b6f9], cl
lea r8, [r11 - 0x30]
mov qword [r11 - 0x40], rcx
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x14004b728]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov dword [rsp + 0x40], ecx
mov rcx, qword [0x14004b720]
mov qword [r11 - 0x18], 4
mov dword [rsp + 0x48], eax
jne 0x14003c69f
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003c8a0
add rsp, 0x78
ret

Function at 0x14003d298
Capabilities:
Parse pe header

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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov rax, qword [rcx + 8]
lock inc dword [rax + 0x30]
test r9b, r9b
je 0x1400500b4
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400a0058]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x140050157
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x14005013a
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov ebp, 1
lea r9, [rsp + 0x3c]
mov rdx, r8
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov r14, qword [rdi + 8]
test ebx, ebx
je 0x14005019b
cmp ecx, 0x3e5
je 0x14005019b
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0x30], 1
lea rdx, [0x1400a0058]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x1400501ab
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400a0058]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140050235
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x1400501eb
mov qword [rax + 0x20], rsi
jmp 0x1400501f2
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ebp
cmp eax, 1
jne 0x140050235
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140050235
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
mov rax, qword [r14 + 0x98]
test rax, rax
je 0x140050215
mov qword [rax + 0x20], rsi
jmp 0x14005021c
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [r14 + 0x90], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400705c0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
xor esi, esi
test rcx, rcx
je 0x140070710
mov rdi, rcx
lea rcx, str.INTEL_ISA_DISABLE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140070710
mov rdx, rax
movzx eax, byte [rax]
xor esi, esi
test al, al
je 0x140070710
lea r8, [0x1400a8660]
xor r9d, r9d
mov rcx, rdx
inc rdx
mov r10d, 1
xor r11d, r11d
cmp al, 0x2c
jne 0x140070633
nop
movzx eax, byte [rcx + r11 + 1]
inc r11
dec r10
inc rdx
cmp al, 0x2c
je 0x140070620
movzx eax, al
test eax, eax
je 0x140070710
nop
mov rax, rdx
movzx ebx, byte [rdx]
inc rdx
cmp ebx, 0x2c
je 0x140070660
test ebx, ebx
je 0x140070660
mov r9, rax
jmp 0x140070640
mov rax, r9
sub rax, rcx
inc rax
dec rdx
cmp rax, r11
jne 0x14007067d
movzx eax, byte [rdx]
test al, al
jne 0x14007060b
jmp 0x140070710
cmp byte [0x1400a8650], 0
jne 0x14007068b
call fcn.14006fb00
mov rax, rcx
neg rax
lea rbx, [rcx + r11]
sub rcx, r9
add r11, rcx
dec r11
mov ecx, 1
jmp 0x1400706b9
inc rcx
cmp rcx, 0x47
je 0x140070671
lea r14, [rcx + rcx*2]
mov r14, qword [r8 + r14*8 + 0x10]
test r14, r14
je 0x1400706b0
xor r15d, r15d
nop word [rax + rax]
movzx ebp, byte [rbx + r15]
cmp bpl, byte [r14 + r15]
jne 0x1400706b0
inc r15
mov r12, r11
add r12, r15
jne 0x1400706d0
add r14, r9
add r14, rax
cmp byte [r10 + r14], 0
jne 0x1400706b0
cmp ecx, 2
jb 0x140070671
mov rax, rdi
call fcn.140070560
cmp eax, 1
adc rsi, 0
jmp 0x140070671
mov eax, esi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14007513c
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 0x140075176
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007517b
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 0x1400751c4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140079010]
cmp byte [rcx + rax], 0
je 0x1400751c4
dec r8
sub rdx, 1
jne 0x1400751aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400758cc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x140026168
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x1400261a0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x1400261a0
test rcx, rcx
js 0x140026180
mov r9, qword [rax + 0x58]
mov r8, rcx
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400261f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x14002621c
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140026270
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x140026270
mov r8, qword [rdx]
test r9, r9
js 0x140026258
cmp r8, r9
jle 0x140026258
add rcx, 1
jo 0x14002627c
sub rcx, r9
jo 0x14002627c
test rcx, rcx
js 0x140026290
mov rdx, qword [rdx + 8]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov r9, qword [rax + 0x58]
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140026264
Function at 0x140030ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140031712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140052688]
test eax, eax
je 0x1400317aa
lea rax, [0x140052660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140052690]
mov qword [rbp - 8], rax
jmp 0x14003178e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140031782
cmp qword [rbp - 0x10], 0
je 0x140031782
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140031748
lea rax, [0x140052660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400317ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400318b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400318d8
mov eax, 0
jmp 0x140031926
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140031901
mov eax, 0
jmp 0x140031926
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140031921
mov eax, 0
jmp 0x140031926
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003192c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400319aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400319a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400319a1
mov rax, qword [rbp - 8]
jmp 0x1400319bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140031974
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140039454
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14003959e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140039591
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140039547
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14003955d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140039543
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14003957c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14003959f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14003a5bb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400449c0], eax
mov eax, dword [0x1400449c0]
cmp eax, 0xffffffff
jne 0x14003a5e2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140053110]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400449c0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14003a7e8
mov rax, qword [rbp - 0x10]
jmp 0x14003a948
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14003a804
cmp qword [rbp - 0x10], 0
jne 0x14003a80e
mov eax, 0
jmp 0x14003a948
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14003a8e9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400449c0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14003a944
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret