joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ff460
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ff4a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ff4e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ff542
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ff500
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ff583
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140117ea2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140117ea3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ff550
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14010050c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140100556
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140100556
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140100556
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140100556
cmp dword [rcx + 0x84], 0xe
jbe 0x140100556
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140100558
xor al, al
add rsp, 0x28
ret
Function at 0x1401007e8
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 0x140100822
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140100827
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 0x140100870
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140100870
dec r8
sub rdx, 1
jne 0x140100856
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004940
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400049e0
jmp 0x1400049cf
jae 0x140004aa0
cmp r8, 0x201
jae 0x1400049e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140004a38
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140004a0f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001a890
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004a61
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004b08
mov r8d, r14d
cmp r15, r8
jne 0x1400049c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004b35
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400049cf
jmp 0x1400049e0
cmp rsi, r8
jb 0x140004b4f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400068f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140004af1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002220
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140004ad9
jmp 0x140004af1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b2a0
jmp 0x140004b64
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b6f0
ud2
Function at 0x14000aa60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14001e088]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000aaa4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000ab0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000ab41
test eax, eax
js 0x14000ab1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000ab34
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006630
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002c60
mov ecx, 7
int 0x29
ud2
Function at 0x1400186b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001872a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140018720
cmp r11, r10
ja 0x1400187c1
cmp r10, rdx
ja 0x1400187d3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018722
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018700
jmp 0x140018797
ja 0x14001872a
mov r11, r10
cmp rax, r8
jne 0x1400186d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001879b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018770
mov r8, r10
sub ecx, r9d
jns 0x14001878e
jmp 0x14001879d
cmp r10, rdx
je 0x1400187a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001879d
xor al, 1
cmp r8, rdx
jne 0x140018750
jmp 0x14001879d
xor eax, eax
jmp 0x14001879d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14001feeb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b2a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b770
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b6f0
int3

Function at 0x140019cd0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov qword [rsp + 8], 0
jmp 0x18000e4af
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 8
jae 0x18000e4f3
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp]
xor rcx, rax
mov rax, rcx
mov qword [rsp], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp]
imul rcx, rax
mov rax, rcx
mov qword [rsp], rax
jmp 0x18000e4a2
mov rax, qword [rsp]
add rsp, 0x18
ret
Function at 0x180050264
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180050294
xor eax, eax
jmp 0x180050357
mov rbp, rbx
cmp word [rax], si
je 0x1800502b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800502a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005029c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180050184
movsxd r14, eax
test eax, eax
jne 0x1800502f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005028d
mov rcx, r14
call fcn.18004dfd0
mov rdi, rax
test rax, rax
jne 0x180050310
xor ecx, ecx
call fcn.18004b7b8
jmp 0x1800502ec
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180050184
test eax, eax
jne 0x180050341
mov rcx, rdi
call fcn.18004b7b8
jmp 0x18005034b
xor ecx, ecx
call fcn.18004b7b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180052b6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800bda30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180052bc3
cmp word [rdx], r13w
jne 0x180052bc3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180052bc8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180052ced
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180052d0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180052c01
mov rdx, r9
mov word [rbx], cx
jmp 0x180052c28
cmp r9, r8
jae 0x180052c38
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180052be2
jmp 0x180052ced
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180052ce2
cmp dword [rsp + 0x80], esi
je 0x180052ce2
lea r8, [0x1800bda30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180052cba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180052c8a
mov word [rbx], r13w
jmp 0x180052cea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180052c97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180052cea
cmp word [rsp + 0x70], r13w
jne 0x180052cc7
cmp rbx, r14
je 0x180052c84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800528a4
cmp word [rsp + 0x70], r13w
je 0x180052ced
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800bda30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180052ce7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180052ced
Function at 0x180054094
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800528a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800528a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800541e4
cmp rax, 0xffffffffffffffff
je 0x1800541e4
xor edi, edi
test rbp, rbp
jle 0x18005418f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004b740
mov rbx, rax
test rax, rax
jne 0x18005411c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180054185
mov edx, 0x8000
mov ecx, r14d
call fcn.180053f18
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18004dcc8
cmp eax, 0xffffffff
je 0x180054165
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18005412c
mov edx, r15d
mov ecx, r14d
call fcn.180053f18
jmp 0x180054185
cmp byte [rsi + 0x38], dil
je 0x18005417c
cmp dword [rsi + 0x34], 5
jne 0x18005417c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180054185
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18004b7b8
jmp 0x1800541f8
jns 0x1800541f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800528a4
cmp rax, 0xffffffffffffffff
jne 0x1800541b0
cmp byte [rsi + 0x30], dil
je 0x1800541f8
mov edi, dword [rsi + 0x2c]
jmp 0x1800541f8
mov ecx, r14d
call fcn.180050acc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800541f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800541f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800541f1
mov eax, dword [rsi + 0x2c]
jmp 0x1800541f6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800528a4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180054d00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180054d28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180054d28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x141328058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413281df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141328089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14132806f
add dl, dl
jne 0x141328096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413280f6
xor eax, eax
add dl, dl
jne 0x1413280a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413281ad
add dl, dl
jne 0x1413280b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413280c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413280d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413280dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413280ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14132807e
mov eax, 1
add dl, dl
jne 0x141328106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141328113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413280fb
sub eax, ebx
mov ebx, 1
jne 0x14132814c
mov ecx, 1
add dl, dl
jne 0x14132812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14132813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141328123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14132807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141328168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141328175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14132815d
cmp eax, 0x7d00
jae 0x14132819b
cmp eax, 0x500
jb 0x141328196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14132807e
cmp eax, 0x7f
ja 0x14132819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14132807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413281d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14132807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Resume thread

Disassembly:
mov rcx, qword [0x140018f60]
mov dword [0x140018f68], 0
jmp qword [sym.imp.KERNEL32.dll_ResumeThread]

Function at 0x140001020
Capabilities:
Suspend thread

Disassembly:
mov rcx, qword [0x140018f60]
mov dword [0x140018f68], 1
jmp qword [sym.imp.KERNEL32.dll_SuspendThread]

Function at 0x140001290
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rax, [0x140015010]
lea rcx, str.SDLService
nop
cmp dword [rax], edx
je 0x1400012bd
add rax, 0x10
cmp rax, rcx
jl 0x1400012b0
lea r8, [0x140010834]
lea rdx, str.server.log
lea rcx, [0x140016700]
call fcn.140003080
mov rcx, qword [0x140016700]
lea rdx, str._s_failed__error_code___d_n
mov r9d, ebx
mov r8, rdi
call fcn.140002d40
mov rcx, qword [0x140016700]
call fcn.140002ca0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001380
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x40
call qword [sym.imp.rtkio.dll_UnloadPhyMemDriver]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
jne 0x1400013b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager
mov edx, eax
call fcn.140001290
int3
mov rdx, qword [str.SDLService]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
jne 0x1400013ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService
mov edx, eax
call fcn.140001290
int3
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140001416
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140010988]
mov edx, eax
call fcn.140001290
int3
cmp dword [rsp + 0x24], 1
je 0x140001454
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140001449
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140010978]
mov edx, eax
call fcn.140001290
int3
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000148c
lea rcx, str.Service_Uninstalled_n
call fcn.1400030f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov al, 1
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140010950]
mov edx, eax
call fcn.140001290
int3
Function at 0x1400014b0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rdx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov r11d, dword [rsp + 0x34]
add r11d, 0xffffffff
cmp r11d, 6
ja case.default.0x1400014ec
lea rdx, [0x140000000]
mov ecx, dword [rdx + r11*4 + 0x15b4]
add rcx, rdx
jmp rcx
lea rcx, str.Service_RUNNING_n
mov ebx, 4
call fcn.1400030f0
lea edi, [rbx - 3]
jmp 0x14000158e
lea rcx, str.Service_STOPPED._n
call fcn.1400030f0
mov eax, 2
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea rcx, str.Service_PAUSED._n
mov ebx, 7
call fcn.1400030f0
lea edi, [rbx - 4]
jmp 0x14000158e
lea rcx, str.Service_is_resuming..._n
mov ebx, 5
call fcn.1400030f0
jmp 0x14000158e
lea rcx, str.Service_is_pausing..._n
mov ebx, 6
call fcn.1400030f0
jmp 0x14000158e
lea rcx, str.Service_is_starting..._n
mov ebx, 2
call fcn.1400030f0
jmp 0x14000158e
lea rcx, str.Service_is_stopping..._n
mov ebx, 3
call fcn.1400030f0
jmp 0x14000158e
mov ebx, dword [rsp + 0x68]
cmp ebx, 1
je 0x1400015a5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov dword [rsp + 0x20], 0
call fcn.140001060
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400015d0
Capabilities:
Query service configuration

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
jne 0x140001603
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager
mov edx, eax
call fcn.140001290
int3
mov rdx, qword [str.SDLService]
mov r8d, 1
mov rcx, rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rdi, rax
jne 0x14000163b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService
mov edx, eax
call fcn.140001290
int3
mov edx, 0x1000
mov ecx, 0x40
mov qword [rsp + 0x38], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x140001683
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.QueryServiceConfig
mov edx, eax
call fcn.140001290
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001b30
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140015140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x94
xor ebx, ebx
call fcn.1400037c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140001b85
cmp dword [rsp + 0x24], 6
mov eax, 1
cmovae ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400036b0
add rsp, 0xd0
pop rbx
ret