joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140466a70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140466aa0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x140466c80
movzx edi, byte [rcx]
test dil, dil
jne 0x140466b40
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll__stat64
mov edi, eax
cmp edi, 0xffffffff
je 0x140466bc9
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rsp + 0x40]
mov qword [rbx], rax
mov eax, dword [rsp + 0x28]
movups xmmword [rbx + 0x18], xmm0
mov dword [rbx + 8], eax
movzx eax, word [rsp + 0x2c]
mov word [rbx + 0xc], ax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x38]
mov dword [rbx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x28], rax
mov eax, edi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.msvcrt.dll_strlen
cmp eax, 1
jle 0x140466ae1
lea edx, [rax - 2]
cmp edx, 1
jbe 0x140466be8
cmp dil, 0x5c
je 0x140466c00
cmp dil, 0x2f
je 0x140466c00
movsxd rdi, eax
movzx eax, byte [rsi + rdi - 1]
lea r12, [rdi - 1]
cmp al, 0x2f
je 0x140466b82
cmp al, 0x5c
jne 0x140466ae1
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov r8, r12
mov rdx, rsi
mov rbp, rax
mov rcx, rax
call fcn.1404754a8
mov byte [rbp + rdi - 1], 0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.msvcrt.dll__stat64
mov edi, eax
cmp rsi, rbp
je 0x140466af0
mov rcx, rbp
call fcn.140475440
cmp edi, 0xffffffff
jne 0x140466af9
pxor xmm0, xmm0
mov eax, edi
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rsi + 1], 0x3a
jne 0x140466b56
jmp 0x140466ae1
movzx edx, byte [rsi + 1]
cmp dl, 0x5c
je 0x140466c12
cmp dl, 0x2f
jne 0x140466b6a
movzx ecx, byte [rsi + 2]
lea rdx, [rsi + 2]
cmp cl, 0x5c
je 0x140466c98
test cl, cl
jne 0x140466c39
jmp 0x140466c42
movzx ecx, byte [rdx + 1]
add rdx, 1
test cl, cl
je 0x140466c42
cmp cl, 0x5c
je 0x140466c98
cmp cl, 0x2f
jne 0x140466c28
add rdx, 1
movzx ecx, byte [rdx]
test cl, cl
je 0x140466ae1
cmp cl, 0x5c
jne 0x140466c69
jmp 0x140466c6e
movzx ecx, byte [rdx + 1]
add rdx, 1
test cl, cl
je 0x140466c72
cmp cl, 0x5c
je 0x140466ca0
cmp cl, 0x2f
jne 0x140466c58
add rdx, 1
cmp byte [rdx], 0
jne 0x140466b6a
jmp 0x140466ae1
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.msvcrt.dll__stat64
mov edi, eax
jmp 0x140466af0
test cl, cl
je 0x140466c42
jmp 0x140466c3e
test cl, cl
je 0x140466c72
jmp 0x140466c6e
Function at 0x140477b10
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140ae13a0], 1
je 0x140477bb0
lea rdi, [0x140ae13a0]
mov rcx, rdi
call fcn.1404774b0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140476dc0
mov esi, dword [0x140ae13a0]
test esi, esi
jne 0x140477b88
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140604638], eax
cmp eax, 0xffffffff
je 0x1405f7ce6
mov dword [0x140ae13a0], 1
mov rcx, rbp
call fcn.140477090
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140477790
cmp esi, 1
je 0x140477b6c
mov ecx, 2
call qword [fcn.140474cd0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140477b6c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x140477bc0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1404778a0
mov rbx, rax
test rax, rax
je 0x140477cbc
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1404773a0
cmp eax, 1
je 0x140477cc8
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1405f7cec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140604638]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1405f7cec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140477700
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140477cf0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140477bc0
Function at 0x140478370
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x14072af60]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x1404783ce
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1404783ce
xor edx, edx
nop dword [rax]
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x1404783b8
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x1404783e0
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.140466a70
nop
nop word cs:[rax + rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x14072af60]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14047847f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1404784a0
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x140478462
test al, 1
je 0x140478462
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x140478450
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x1404784a6
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x140478470
call fcn.140466a70
nop
nop dword [rax]
Function at 0x1404783f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x14072af60]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x1404783ce
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1404783ce
xor edx, edx
nop dword [rax]
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x1404783b8
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x1404783e0
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.140466a70
nop
nop word cs:[rax + rax]
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x14072af60]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14047847f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1404784a0
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x140478462
test al, 1
je 0x140478462
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x140478450
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x1404784a6
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x140478470
call fcn.140466a70
nop
nop dword [rax]
Function at 0x1404784b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x14072af60]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140478610
cmp eax, 1
je 0x140478515
call fcn.1404774b0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140476dc0
mov ebp, dword [rbx]
test ebp, ebp
je 0x140478538
cmp ebp, 1
jne 0x1404785d8
mov rcx, r13
call fcn.140477090
mov rcx, rdi
call fcn.140477790
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14047865b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140477870]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140477b10
mov ecx, dword [0x140604638]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140478648
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140477b10
mov ecx, dword [0x140604638]
call rbp
test rax, rax
je 0x140478630
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140477b10
mov ecx, dword [0x140604638]
call rbp
test rax, rax
je 0x140478620
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140477090
mov rcx, rdi
call fcn.140477790
jmp 0x140478515
mov ecx, 2
call qword [fcn.140474cd0]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140477090
mov rcx, rdi
call fcn.140477790
jmp 0x140478515
mov eax, 0x16
jmp 0x140478517
call fcn.140477bc0
test rax, rax
jne 0x1404785ae
jmp 0x1405f7d1e
call fcn.140477bc0
test rax, rax
jne 0x14047858b
jmp 0x1405f7d0f
call fcn.140477bc0
test rax, rax
jne 0x140478566
jmp 0x1405f7d05
call fcn.140466a70
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x1404788e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478958
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1404773b0
cmp esi, dword [rbx + 0x48]
jae 0x140478933
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140478933
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140477400
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140477bc0
mov rbx, rax
jmp 0x14047890d
Function at 0x140478970
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478a68
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1404773b0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140478a33
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140478a75
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140478a75
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call fcn.1404754b8
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call fcn.1404754b8
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140477400
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140477bc0
mov rbx, rax
jmp 0x1404789aa
mov rcx, r13
call fcn.140477400
mov eax, 0xc
jmp 0x140478a51

Function at 0x140478b10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478b38
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140477bc0
test rax, rax
jne 0x140478b2a
add rsp, 0x28
ret

Function at 0x140478ba0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478bc8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140477bc0
test rax, rax
jne 0x140478bba
jmp 0x140478bbe

Function at 0x140478ce0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140ae13a8]
test eax, eax
jne 0x140478cf8
xor eax, eax
add rsp, 0x28
ret
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478d28
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140478cee
test byte [rax + 0x40], 3
je 0x140478cee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140478cf0
call fcn.140477bc0
test rax, rax
je 0x140478cee
jmp 0x140478d0e

Function at 0x140478d40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478d80
test ebx, ebx
jle 0x140478d70
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140477bc0
test rax, rax
jne 0x140478d5d
add rsp, 0x20
pop rbx
ret
Function at 0x140478e70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478ee8
test byte [rbx + 0x40], 0xc
jne 0x140478e9f
mov eax, dword [0x140ae13a8]
test eax, eax
jne 0x140478eb0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140476dc0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140478ed3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140478ed3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140478efc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140477090
call fcn.140477bc0
mov rbx, rax
test rax, rax
jne 0x140478e8f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140478f1a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140477090
call fcn.140478d90
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140478f98
call fcn.140476a80
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478fe0
test rsi, rsi
je 0x140478fae
call fcn.140478e70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140478fd0
mov edx, edi
call fcn.140476b50
call fcn.140478e70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478ff0
call fcn.140478e70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140478e70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140478f86
call fcn.140477bc0
mov rbx, rax
jmp 0x140478f6c
call fcn.140477bc0
jmp 0x140478fae
Function at 0x140478f30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478ee8
test byte [rbx + 0x40], 0xc
jne 0x140478e9f
mov eax, dword [0x140ae13a8]
test eax, eax
jne 0x140478eb0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140476dc0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140478ed3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140478ed3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140478efc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140477090
call fcn.140477bc0
mov rbx, rax
test rax, rax
jne 0x140478e8f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140478f1a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140477090
call fcn.140478d90
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140478f98
call fcn.140476a80
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478fe0
test rsi, rsi
je 0x140478fae
call fcn.140478e70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140478fd0
mov edx, edi
call fcn.140476b50
call fcn.140478e70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140478ff0
call fcn.140478e70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140478e70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140478f86
call fcn.140477bc0
mov rbx, rax
jmp 0x140478f6c
call fcn.140477bc0
jmp 0x140478fae

Function at 0x140479000
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140479070
test esi, esi
je 0x140479050
call fcn.140478e70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140479080
mov edx, esi
call fcn.140476b50
call fcn.140478e70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140478e70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140478e70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140477bc0
mov rbx, rax
jmp 0x140479021
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14047903a
Function at 0x14047bcb0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
mov rax, qword [0x140729730]
movdqu xmm0, xmmword [rcx]
movdqu xmm4, xmmword [rax + 0xb0]
movdqu xmm8, xmmword [rax + 0xf0]
movdqu xmm12, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqu xmm5, xmmword [rax + 0xc0]
aesenc xmm12, xmm4
movdqu xmm9, xmmword [rax + 0x100]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqu xmm6, xmmword [rax + 0xd0]
aesdec xmm0, xmm5
movdqu xmm10, xmmword [rax + 0x110]
aesenc xmm12, xmm5
movdqu xmm7, xmmword [rax + 0xe0]
aesdec xmm2, xmm9
movdqu xmm11, xmmword [rax + 0x120]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movups xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movups xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movups xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movups xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movups xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movups xmmword [r8 - 0x30], xmm12
movups xmmword [r8 - 0x20], xmm2
movups xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x14047beed
mov rax, 0xffffffffff0707ff
movq xmm3, rax
punpcklqdq xmm3, xmm3
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movups xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movups xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movups xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movups xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x14047be48
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmm10, xmmword [rsp + 0x40]
movups xmm11, xmmword [rsp + 0x50]
movups xmm12, xmmword [rsp + 0x60]
movups xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x140729730]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x20]
lea edx, [rdx*8 + 0x80]
jmp 0x14047bcb0
Function at 0x14047e180
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm0, xmmword [str._f__nc]
movdqu xmm1, xmmword [0x140658f90]
movdqu xmm2, xmmword [0x140658fa0]
movdqu xmm3, xmmword [0x140658fb0]
add rdx, rcx
cmp rcx, rdx
jae 0x14047e1d0
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rcx, rdx
jb 0x14047e1b0
movdqu xmm4, xmmword [0x140659000]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqu xmm4, xmmword [0x140659010]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movups xmmword [r8], xmm3
movups xmmword [r8 + 0x10], xmm2
movups xmmword [r8 + 0x20], xmm1
movups xmmword [r8 + 0x30], xmm0
ret