joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050f70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rbp
sub rsp, 0x60
lea r9, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rbx, rcx
mov rbp, rdx
mov r8, qword [0x1400b8bc0]
xor r8, rsp
mov qword [rsp + 0x58], r8
mov qword [rbx], r9
cmp qword [rbx + 0x80], 0
je 0x140050fb1
mov rsi, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp rdx, qword [rsi]
je 0x14005114b
cmp byte [rbx + 0x7c], 0
je 0x1400510c7
cmp qword [rbx + 0x80], 0
je 0x140051069
mov rsi, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp rdx, qword [rsi]
je 0x14005111f
cmp qword [rbx + 0x68], 0
je 0x14005105c
cmp byte [rbx + 0x71], 0
je 0x14005105c
mov rsi, qword [rbx]
mov rcx, rbx
mov edx, 0xffffffff
call qword [rsi + 0x18]
cmp eax, 0xffffffff
je 0x14005105c
mov rcx, qword [rbx + 0x68]
mov r11, rsp
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
mov rsi, qword [rcx]
lea r9, [rsp + 0x58]
lea r10, [rsp + 0x30]
mov qword [r11 + 0x20], r10
call qword [rsi + 0x40]
test eax, eax
je 0x140051032
cmp eax, 1
je 0x140051036
cmp eax, 3
jne 0x14005105c
mov byte [rbx + 0x71], 0
jmp 0x14005105c
mov byte [rbx + 0x71], 0
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
sub r8, rdx
je 0x14005105c
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
lea r10, [rbx + 8]
mov byte [rbx + 0x7c], al
lea rsi, [rbx + 0x10]
mov byte [rbx + 0x71], al
lea r11, [rbx + 0x28]
mov qword [rbx + 0x18], r10
lea r8, [rbx + 0x30]
mov qword [rbx + 0x20], rsi
lea rcx, [rbx + 0x48]
mov qword [rbx + 0x38], r11
lea r9, [rbx + 0x4c]
mov qword [rbx + 0x40], r8
xor edx, edx
mov qword [rsi], rdx
mov qword [r8], rdx
mov dword [r9], eax
mov qword [r10], rdx
mov qword [r11], rdx
mov dword [rcx], eax
mov rsi, qword [0x1400c5500]
mov qword [rbx + 0x50], rcx
mov qword [rbx + 0x58], r9
mov qword [rcx + 0x38], rdx
mov qword [rbx + 0x74], rsi
mov qword [rbx + 0x68], rdx
mov rdx, qword [sym.imp.MSVCP140.dll_const_std::basic_streambuf_char__struct_std::char_traits_char__::vftable]
mov rcx, qword [rbx + 0x60]
mov qword [rbx], rdx
test rcx, rcx
je 0x1400510e4
mov edx, 1
call fcn.1400533c0
test rbp, 1
je 0x1400510fa
mov rcx, rbx
mov edx, 0x98
call fcn.140097260
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
xor rcx, rsp
cmp rcx, qword [0x1400b8bc0]
jne 0x140051146
mov rax, rbx
add rsp, 0x60
pop rbp
pop rsi
pop rbx
ret
mov rdx, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rsi], rdx
sub r8, rdx
mov rsi, qword [rbx + 0x38]
mov qword [rsi], rdx
mov r9, qword [rbx + 0x50]
mov dword [r9], r8d
jmp 0x140050fda
call fcn.140097240
mov rdx, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rsi], rdx
sub r8, rdx
mov rsi, qword [rbx + 0x38]
mov qword [rsi], rdx
mov r9, qword [rbx + 0x50]
mov dword [r9], r8d
jmp 0x140050fb1
Function at 0x140052130
Capabilities:
Read file on windows

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x20
mov r12, r8
mov rbp, rdx
mov r13, rcx
test r12, r12
jle 0x1400522dc
cmp qword [r13 + 0x68], 0
jne 0x140052208
mov rdx, qword [r13 + 0x38]
mov r15, r12
mov rdx, qword [rdx]
test rdx, rdx
je 0x140052172
mov r9, qword [r13 + 0x50]
movsxd r14, dword [r9]
jmp 0x140052175
xor r14d, r14d
test r14, r14
ja 0x1400522ab
cmp qword [r13 + 0x80], 0
je 0x1400521f4
mov r9, qword [r13 + 0x18]
lea rdx, [r13 + 0x70]
cmp rdx, qword [r9]
je 0x140052284
cmp r15, 0xfff
jbe 0x1400521d4
mov r9, qword [r13 + 0x80]
mov rcx, rbp
mov edx, 1
mov r8d, 0xfff
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add rbp, rax
sub r15, rax
cmp rax, 0xfff
jne 0x1400521f4
cmp r15, 0xfff
ja 0x1400521a2
test r15, r15
jbe 0x1400521f4
mov r9, qword [r13 + 0x80]
mov rcx, rbp
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r15, rax
sub r12, r15
mov rax, r12
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov r15, r12
mov rdx, qword [r13 + 0x38]
mov rdx, qword [rdx]
test rdx, rdx
je 0x140052220
mov r8, qword [r13 + 0x50]
movsxd r14, dword [r8]
jmp 0x140052223
xor r14d, r14d
test r14, r14
jle 0x140052253
cmp r15, r14
mov rcx, rbp
cmovl r14, r15
mov r8, r14
call fcn.1400913f0
mov rdx, qword [r13 + 0x50]
add rbp, r14
sub r15, r14
movsxd r8, r14d
sub dword [rdx], r14d
mov r9, qword [r13 + 0x38]
add qword [r9], r8
jmp 0x14005226b
mov rdx, qword [r13]
mov rcx, r13
call qword [rdx + 0x38]
cmp eax, 0xffffffff
je 0x140052270
mov byte [rbp], al
inc rbp
dec r15
test r15, r15
jg 0x14005220b
sub r12, r15
mov rax, r12
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov rdx, qword [r13 + 0x88]
mov r10, qword [r13 + 0x90]
mov qword [r9], rdx
sub r10, rdx
mov r9, qword [r13 + 0x38]
mov qword [r9], rdx
mov r11, qword [r13 + 0x50]
mov dword [r11], r10d
jmp 0x140052199
cmp r14, r12
mov rcx, rbp
cmovae r14, r12
mov r8, r14
call fcn.1400913f0
mov rdx, qword [r13 + 0x50]
mov r15, r12
add rbp, r14
sub r15, r14
movsxd r9, r14d
sub dword [rdx], r14d
mov r10, qword [r13 + 0x38]
add qword [r10], r9
jmp 0x14005217e
xor eax, eax
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1400522f0
Capabilities:
Write file on windows

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x20
mov r13, rcx
mov rbp, r8
mov r12, rdx
cmp qword [r13 + 0x68], 0
je 0x140052395
mov r15, rbp
test rbp, rbp
jle 0x140052381
mov r9, qword [r13 + 0x40]
mov rcx, qword [r9]
test rcx, rcx
je 0x14005232e
mov r9, qword [r13 + 0x58]
movsxd r14, dword [r9]
jmp 0x140052331
xor r14d, r14d
test r14, r14
jle 0x140052361
cmp r15, r14
mov rdx, r12
cmovl r14, r15
mov r8, r14
call fcn.1400913f0
mov r9, qword [r13 + 0x58]
add r12, r14
sub r15, r14
movsxd r10, r14d
sub dword [r9], r14d
mov r11, qword [r13 + 0x40]
add qword [r11], r10
jmp 0x14005237c
mov r9, qword [r13]
mov rcx, r13
movzx edx, byte [r12]
call qword [r9 + 0x18]
cmp eax, 0xffffffff
je 0x140052381
inc r12
dec r15
test r15, r15
jg 0x140052319
sub rbp, r15
mov rax, rbp
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
mov r9, qword [r13 + 0x40]
mov r15, rbp
mov rcx, qword [r9]
test rcx, rcx
je 0x1400523ad
mov r9, qword [r13 + 0x58]
movsxd r14, dword [r9]
jmp 0x1400523b0
xor r14d, r14d
test rbp, rbp
jle 0x140052408
test r14, r14
jle 0x1400523e8
cmp rbp, r14
mov rdx, r12
cmovl r14, rbp
mov r8, r14
call fcn.1400913f0
mov r9, qword [r13 + 0x58]
add r12, r14
movsxd r10, r14d
sub rbp, r14
sub dword [r9], r14d
mov r11, qword [r13 + 0x40]
add qword [r11], r10
test rbp, rbp
jle 0x140052408
mov r9, qword [r13 + 0x80]
test r9, r9
je 0x140052408
mov rcx, r12
mov edx, 1
mov r8, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbp, rax
sub r15, rbp
mov rax, r15
add rsp, 0x20
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140052420
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x68
mov rdi, rcx
mov r10, qword [0x1400b8bc0]
mov r14d, r9d
xor r10, rsp
mov r13, r8
mov qword [rsp + 0x60], r10
mov r12, rdx
mov r11, qword [rdi + 0x38]
lea rbp, [rdi + 0x70]
cmp rbp, qword [r11]
je 0x1400525e8
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140052547
cmp qword [rdi + 0x68], 0
je 0x140052516
cmp byte [rdi + 0x71], 0
je 0x140052516
mov r9, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [r9 + 0x18]
cmp eax, 0xffffffff
je 0x140052547
mov rcx, qword [rdi + 0x68]
mov r15, rsp
lea rdx, [rdi + 0x74]
lea r8, [rsp + 0x40]
mov r10, qword [rcx]
lea r9, [rsp + 0x60]
lea r11, [rsp + 0x30]
mov qword [r15 + 0x20], r11
call qword [r10 + 0x40]
test eax, eax
je 0x1400524d7
cmp eax, 1
je 0x1400524db
cmp eax, 3
jne 0x140052547
mov byte [rdi + 0x71], 0
mov rcx, qword [rdi + 0x80]
jmp 0x140052516
mov byte [rdi + 0x71], 0
mov r15, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
sub r15, r9
je 0x140052509
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x140052547
cmp byte [rdi + 0x71], 0
jne 0x140052547
mov rcx, qword [rdi + 0x80]
test r13, r13
jne 0x140052521
cmp r14d, 1
je 0x140052538
mov rdx, r13
mov r8d, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x140052547
mov rcx, qword [rdi + 0x80]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
test eax, eax
je 0x140052587
xor edx, edx
mov qword [r12], 0xffffffffffffffff
mov qword [r12 + 8], rdx
mov qword [r12 + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
xor rcx, rsp
cmp rcx, qword [0x1400b8bc0]
jne 0x1400525bf
mov rax, r12
add rsp, 0x68
pop rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rdx, qword [rdi + 0x18]
cmp rbp, qword [rdx]
je 0x1400525c4
mov rcx, qword [rdi + 0x74]
xor ebp, ebp
mov rdx, qword [rsp + 0x38]
mov qword [r12], rdx
mov qword [r12 + 8], rbp
mov qword [r12 + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbp
xor rcx, rsp
cmp rcx, qword [0x1400b8bc0]
je 0x140052575
call fcn.140097240
mov rbp, qword [rdi + 0x88]
mov r8, qword [rdi + 0x90]
mov qword [rdx], rbp
sub r8, rbp
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rbp
mov r9, qword [rdi + 0x50]
mov dword [r9], r8d
jmp 0x140052590
cmp r14d, 1
jne 0x14005245a
cmp qword [rdi + 0x68], 1
sbb r13, 0
jmp 0x14005245a
Function at 0x140052600
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
push rbp
sub rsp, 0x68
mov r14, r8
mov rbx, rcx
mov rbp, rdx
mov r10, qword [0x1400b8bc0]
xor r10, rsp
mov r11, qword [r14]
add r11, qword [r14 + 8]
mov qword [rsp + 0x60], r10
mov rcx, qword [rbx + 0x80]
mov qword [rsp + 0x38], r11
test rcx, rcx
je 0x1400526f9
cmp qword [rbx + 0x68], 0
je 0x1400526ea
cmp byte [rbx + 0x71], 0
je 0x1400526ea
mov r8, qword [rbx]
mov rcx, rbx
mov edx, 0xffffffff
call qword [r8 + 0x18]
cmp eax, 0xffffffff
je 0x1400526f9
mov rcx, qword [rbx + 0x68]
mov r15, rsp
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x40]
mov r10, qword [rcx]
lea r9, [rsp + 0x60]
lea r11, [rsp + 0x30]
mov qword [r15 + 0x20], r11
call qword [r10 + 0x40]
test eax, eax
je 0x1400526ab
cmp eax, 1
je 0x1400526af
cmp eax, 3
jne 0x1400526f9
mov byte [rbx + 0x71], 0
mov rcx, qword [rbx + 0x80]
jmp 0x1400526ea
mov byte [rbx + 0x71], 0
mov r15, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r15, rdx
je 0x1400526dd
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x1400526f9
cmp byte [rbx + 0x71], 0
jne 0x1400526f9
mov rcx, qword [rbx + 0x80]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
test eax, eax
je 0x140052738
xor edx, edx
mov qword [rbp], 0xffffffffffffffff
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], rdx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
xor rcx, rsp
cmp rcx, qword [0x1400b8bc0]
jne 0x140052733
mov rax, rbp
add rsp, 0x68
pop rbp
pop r15
pop r14
pop rbx
ret
call fcn.140097240
mov rdx, qword [r14 + 0x10]
lea r8, [rbx + 0x70]
mov qword [rbx + 0x74], rdx
mov rdx, qword [rbx + 0x18]
cmp r8, qword [rdx]
je 0x14005277c
mov rcx, qword [rbx + 0x74]
xor ebx, ebx
mov rdx, qword [rsp + 0x38]
mov qword [rbp], rdx
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x60], rbx
xor rcx, rsp
cmp rcx, qword [0x1400b8bc0]
jne 0x140052733
jmp 0x140052725
mov r8, qword [rbx + 0x88]
mov r9, qword [rbx + 0x90]
mov qword [rdx], r8
sub r9, r8
mov rdx, qword [rbx + 0x38]
mov qword [rdx], r8
mov r10, qword [rbx + 0x50]
mov dword [r10], r9d
jmp 0x14005274d
Function at 0x140098080
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400980ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400980ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400980ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400980ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400980ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400980cc
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a20
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 rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400026f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000278a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000276e
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 0x140002762
cmp qword [rbp - 0x10], 0
je 0x140002762
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 0x140002728
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000278b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002890
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 0x1400028b8
mov eax, 0
jmp 0x140002906
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 0x1400028e1
mov eax, 0
jmp 0x140002906
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 0x140002901
mov eax, 0
jmp 0x140002906
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000290c
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 0x14000298a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002981
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 0x140002981
mov rax, qword [rbp - 8]
jmp 0x14000299f
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 0x140002954
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005420]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b40
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 rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002812
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400028aa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000288e
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 0x140002882
cmp qword [rbp - 0x10], 0
je 0x140002882
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 0x140002848
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400028ab
nop
add rsp, 0x30
pop rbp
ret
Function at 0x180001000
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x22]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.180031f40
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x20]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.1800105e0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x180001070
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
mov eax, ebx
jmp 0x18000107e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800300f0
add rsp, 0x240
pop rbx
ret

Function at 0x1800011b0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x268
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r8d, 1
lea rdx, [0x1800d12a0]
lea rcx, [rsp + 0x20]
call fcn.1800240d0
nop
cmp dword [0x1800d6b50], 0
je 0x180001212
lea r9, str.CAgentSwitchMgr::IsNoSDAgentVerMutex
lea r8, str.AgentSwitchMgr
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800d6a98]
call fcn.1800157c0
xor eax, eax
mov word [rsp + 0x40], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.180031f40
mov r8d, 1
lea rdx, [rsp + 0x40]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT_VERMODE
call fcn.1800105e0
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x180001274
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180001266
jmp 0x18000127e
lea rcx, [rsp + 0x20]
call fcn.180024110
xor eax, eax
jmp 0x18000128d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x20]
call fcn.180024110
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800300f0
add rsp, 0x268
ret
Function at 0x180003f60
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800bd650]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 0xc0000000
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x180004088
lea r8d, [rsi + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18000407f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004076
lea rdx, str.QueryServiceStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180004076
xor ecx, ecx
lea r9d, [rsi + 0x24]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rsi
call rax
test eax, eax
je 0x180004076
mov ebx, dword [rsp + 0x3c]
cmp ebx, 4
je 0x180004046
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
cmp dword [0x1800d6b50], 0
je 0x180004076
lea r9, str.CheckAndStartService___d____d_
lea r8, str.Inject
lea rcx, [0x1800d6a98]
mov edx, reloc.WS2_32.dll_ntohs
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
call fcn.1800157c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800300f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret