joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400487c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x140234450]
mov r12, qword [rbp]
mov qword [rsp + 0x28], r12
lea r12, [0x14015b628]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140048900
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140048900
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140048900
test byte [rbx + 0x44], 4
jne 0x140048910
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14015b638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140048940
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140048980
mov edx, dword [rbx + 0xbc]
test edx, edx
jne 0x140048875
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140048920
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14004888d
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x140048958
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140048997
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140048970
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x140048992
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x1400488e0
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x1400488e0
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140048875
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x1400488e0
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
je 0x14004884e
jmp 0x140048847
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1400488b2
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x1400488d6
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x1400488e0
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x14004b450
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x140234450]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp byte [0x14015d740], 0
jne 0x14004b57c
mov byte [0x14015d740], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14004b548
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x24]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x24], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rbp, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sub.msvcrt.dll_fwrite
mov edx, dword [rsp + 0x24]
mov ecx, 2
test edx, edx
je 0x14004b539
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14022e251]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x14004b52a
mov rcx, rbp
call sym.free
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14004b5ab
call sym.__cxa_rethrow
call rsi
mov rcx, rbp
mov rdx, rax
call sym.fputs
jmp 0x14004b4f9
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14004b5ab
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
je 0x14004b577
call dbg.__stack_chk_fail
sub rdx, 1
mov rcx, rax
jne 0x14004b61b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14004b56d
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14004b56d
Function at 0x1400c9540
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x140234450]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x1400c9590
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400c9624
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.msvcrt.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x1400c95f0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400c95b0
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400c9624
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x1400c961b
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x1400c95b0
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400c9624
mov ecx, dword [rax]
lea rdx, str.random_device_could_not_be_read
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r14, qword [sym.imp.msvcrt.dll__errno]
jmp 0x1400c95ff
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400f9cf0
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [0x140234450]
lea rcx, [0x14015bc60]
movabs rbp, 0x2e78786362696c67
movabs r13, 0x6c6f6f705f68652e
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14015bc78], 0
movups xmmword [0x14015bc68], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400f9db5
jmp 0x1400f9e77
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400f9e18
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rbp
jne 0x1400f9da0
cmp qword [rbx + 7], r13
jne 0x1400f9da0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400f9da0
add rbx, 0x10
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x60]
mov rdi, qword [r12]
test rdi, rdi
je 0x1400f9dfc
mov rcx, qword [r12 + 8]
mov r8, rdi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400f9e06
cmp byte [rbx + rdi], 0x3d
je 0x1400f9ead
add r12, 0x18
cmp r14, r12
jne 0x1400f9ddf
jmp 0x1400f9da0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x14015bc78], rbx
jne 0x1400f9e87
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x1400f9ef4
lea rcx, [sym.__tcf_0]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp dbg.atexit
mov qword [0x14015bc78], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14015bc70], rax
test rax, rax
je 0x1400f9ee6
xor edx, edx
mov qword [0x14015bc68], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400f9e4f
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400f9ed4
test dl, dl
jne 0x1400f9da0
test eax, eax
js 0x1400f9da0
mov dword [r12 + 0x10], eax
jmp 0x1400f9da0
xor ecx, ecx
mov qword [0x14015bc78], rcx
jmp 0x1400f9e4f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x1800017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180008040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1800087d8]
lea r9, [rsp + 0x20]
mov rcx, qword [0x1800087c0]
mov edx, 5
mov r8d, 0x40
movzx ebx, byte [rax + 4]
dec bl
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001865
mov rcx, qword [0x1800087c0]
lea r9, [rsp + 0x20]
mov edx, 5
mov r8d, 0x20
mov dword [rcx], 0xb8d18b4c
mov byte [rcx + 4], bl
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800045b0
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800045b0
add rsp, 0x30
pop rbx
ret

Function at 0x180001af0
Capabilities:
Encode data using xor

Disassembly:
push r9
pushfq
movabs r9, 0xf270c1f9c86be91
shr r9, 0x41
or r9w, 0xa71c
movzx r9d, r9w
shr r9, 0x9f
push r9
shl byte [rsp + r9*4], 0xdc
mov r9, qword [rsp + r9*2 + 0x10]
mov qword [rsp + 0x10], 0xffffffffdf0c4e05
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x10]
call fcn.180048650
push 0xffffffffda46dd6c
push rdx
cld
cmc
scasd eax, dword [edi]
invalid

Function at 0x180002b10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180002beb
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x180002b5e
cmp rbx, qword [0x180008008]
ja 0x180002b5e
sub rbx, 0x8000000
jmp 0x180002be2
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002beb
cmp dword [rsp + 0x40], 0x10000
jne 0x180002bc6
cmp qword [rsp + 0x38], 0x10000
jb 0x180002bc6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180002bed
sub rbx, 0x10000
jmp 0x180002be2
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180002b40
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002c00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180002c22
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180002cdd
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x180002c4e
cmp rbx, qword [0x180008008]
ja 0x180002c4e
add rbx, 0x8000000
jmp 0x180002cd4
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002cdd
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180002cb9
cmp rcx, 0x10000
jb 0x180002cb9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180002cdf
add rbx, 0x10000
jmp 0x180002cd4
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180002cd4
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180002c30
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002cf0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180002d12
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180002d2e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180002d45
cmp byte [rcx + 1], 0x25
jne 0x180002d89
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180002d51
cmp al, 0xe9
jne 0x180002d89
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180002d74
cmp rcx, 0xffffffff80000000
jae 0x180002d6b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180002d89
mov rsi, 0xfffffffffff80000
jmp 0x180002d89
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180002d89
mov edi, 0x80000
mov rdx, qword [0x180008168]
mov rax, qword [0x180008160]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180002db0
test rax, rax
je 0x180002dc7
mov rdx, rax
mov qword [0x180008168], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180002dc7
cmp rcx, rdi
jb 0x180002dc7
cmp rcx, rsi
jbe 0x180002f1a
mov qword [0x180008168], rax
mov rdx, rax
test rax, rax
je 0x180002e12
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x180002dfc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x180002dfc
cmp rax, rdi
jb 0x180002dfc
cmp rax, rsi
jbe 0x180002f1a
mov rdx, qword [rdx + 8]
mov qword [0x180008168], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180002de0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x180002e3c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180002b10
mov rdx, rax
test rax, rax
jne 0x180002ec8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180002e62
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180002c00
mov rdx, rax
test rax, rax
jne 0x180002ec8
cmp rbx, 0x40000000
jbe 0x180002e82
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180002c00
mov rdx, rax
test rax, rax
jne 0x180002ec8
cmp rbx, rbp
jae 0x180002e9e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180002b10
mov rdx, rax
test rax, rax
jne 0x180002ec8
mov rdx, rbx
mov rcx, rdi
call fcn.180002b10
mov rdx, rax
test rax, rax
jne 0x180002ec8
mov rdx, rsi
mov rcx, rbx
call fcn.180002c00
mov rdx, rax
test rax, rax
je 0x180002f51
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180008168], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180008160]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180008160], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180002f02
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180002f51
cmp rax, rsi
ja 0x180002f51
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x1800062b0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180002f53
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800031a0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1800031ce
xor al, al
jmp 0x180003210
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800031df
xor al, al
jmp 0x180003210
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180003206
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180003206
mov al, 1
jmp 0x180003210
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x1800036f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180008178], 0
jne 0x180003797
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180008178], ecx
jne 0x180003797
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180008160]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180008190], rdi
mov qword [0x180008188], rdi
mov qword [0x180008180], rdi
test rbx, rbx
je 0x180003780
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180003778
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180003750
jmp 0x180003780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18000817c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180003db0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18000817c]
mov rdi, rcx
test eax, eax
jne 0x180003e55
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180003dda
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1800045d0
mov rbx, rax
test rax, rax
jne 0x180003df8
mov edi, 8
jmp 0x180003e1b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180003e39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180004984
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18000817c], edi
mov qword [0x180008180], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180008188]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180008188], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140001043
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001160
add rsp, 0x70
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x80], rbx
lea rdx, str.EasyAntiCheat_EOS
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000110c
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000111c
cmp dword [rsp + 0x3c], 4
jne 0x1400010f6
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400010f6
cmp dword [rsp + 0x3c], 1
je 0x1400010f6
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400010f6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x3c], 1
jne 0x1400010c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000111c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140001130
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001160
add rsp, 0x70
pop rdi
ret

Function at 0x140001a3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a86
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a88
xor al, al
add rsp, 0x28
ret
Function at 0x1400035d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x70
mov rbp, qword [0x14012aee0]
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm6
mov r14, rbp
movaps xmmword [rsp + 0x50], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm2
lea rax, [rbp + 8]
cmp rax, rcx
je 0x140003627
mov r8d, 0x59a
lea rdx, str.F:ApexVSNew_folderSnakey_Free_Sourceimgui.cpp
lea rcx, str.g.IO__this___Can_only_add_events_to_current_context._
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbp, qword [0x14012aee0]
cmp byte [rbx + 0x37a1], 0
je 0x1400037d1
movss xmm1, dword [0x1400cd58c]
xorps xmm2, xmm2
comiss xmm7, xmm1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
jbe 0x140003674
comiss xmm7, xmm2
cvttss2si eax, xmm7
jae 0x14000366d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
jp 0x14000366b
je 0x14000366d
dec eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
comiss xmm6, xmm1
jbe 0x140003699
comiss xmm6, xmm2
cvttss2si eax, xmm6
jae 0x140003692
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
jp 0x140003690
je 0x140003692
dec eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mov esi, dword [rbp + 0x37c0]
sub esi, 1
movsxd rdi, esi
js 0x1400036ef
lea rbx, [rdi + rdi*2]
shl rbx, 3
nop
cmp esi, dword [rbp + 0x37c0]
jl 0x1400036d2
mov r8d, 0x6fc
lea rdx, str.F:ApexVSNew_folderSnakey_Free_Sourceimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0x37c8]
cmp dword [rbx + rax], 1
je 0x140003779
dec esi
sub rbx, 0x18
sub rdi, 1
jns 0x1400036b0
movsd xmm0, qword [r14 + 0xdfc]
lea rax, [rsp + 0x28]
movsd qword [rsp + 0x28], xmm0
movss xmm0, dword [rax]
ucomiss xmm0, xmm6
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
movss xmm1, dword [rax + 4]
jp 0x14000372e
jne 0x14000372e
ucomiss xmm1, xmm7
jp 0x14000372e
je 0x1400037d1
lea rbx, [r14 + 0x37c0]
movss dword [rsp + 0x38], xmm6
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
movss dword [rsp + 0x3c], xmm7
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 1
cmp ecx, r8d
jne 0x1400037af
inc ecx
test r8d, r8d
je 0x14000379b
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1400037a0
movss xmm0, dword [rbx + rax + 8]
movss xmm1, dword [rbx + rax + 0xc]
lea rax, [rsp + 0x20]
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
jmp 0x140003703
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.14001e970
movsxd rax, dword [rbx]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
inc dword [rbx]
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
movaps xmm7, xmmword [rsp + 0x50]
mov rsp, r11
pop r14
ret