joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14001184c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14001184c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14001184c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1400118f8
cmp byte [rdx], 0xed
jne 0x140011901
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140011901
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x140011891
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x1400119eb
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.14000d480
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140011a10
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x14001199e
test rdi, rdi
je 0x140011990
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140011928
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x140011990
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140011920
cmp r10b, 0xe0
jb 0x14001190a
cmp r10b, 0xed
jne 0x14001195f
cmp r8, rax
je 0x140011990
lea r8, [r9 + 2]
cmp r8, rax
je 0x140011990
cmp byte [r9 + 1], 0x9f
ja 0x14001198c
add r9, 3
mov r8, r9
jmp 0x140011920
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140011920
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140011920
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x1400119be
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.140025d40
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001199b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.140025d40
mov rdx, r15
jmp 0x1400118ac
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.140025d40
mov rbx, qword [rsi + 0x10]
jmp 0x1400118e9
Function at 0x1400250fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140025146
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140025146
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140025146
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140025146
cmp dword [rcx + 0x84], 0xe
jbe 0x140025146
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140025148
xor al, al
add rsp, 0x28
ret
Function at 0x14000b57c
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 0x14000b5b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000b5bb
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 0x14000b604
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000e4a0]
cmp byte [rcx + rax], 0
je 0x14000b604
dec r8
sub rdx, 1
jne 0x14000b5ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000cbe8
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140e2a447
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 0x140e2a2f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a2d7
add dl, dl
jne 0x140e2a2fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a35e
xor eax, eax
add dl, dl
jne 0x140e2a30d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2a415
add dl, dl
jne 0x140e2a31e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a32b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e2a352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2a2e6
mov eax, 1
add dl, dl
jne 0x140e2a36e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2a37b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a363
sub eax, ebx
mov ebx, 1
jne 0x140e2a3b4
mov ecx, 1
add dl, dl
jne 0x140e2a396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a3a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a38b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a2e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e2a3d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2a3dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2a3c5
cmp eax, 0x7d00
jae 0x140e2a403
cmp eax, 0x500
jb 0x140e2a3fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a2e6
cmp eax, 0x7f
ja 0x140e2a406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2a2e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e2a43a
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 0x140e2a2e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005510
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x630
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180005530
mov byte [0x180063cda], 1
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18000554e
cmp byte [0x180063c79], 0
sete byte [0x180063c79]
lea rcx, [rsp + 0x20]
call fcn.1800481b0
mov rbx, rax
mov rdx, qword [rax]
test rdx, rdx
je 0x1800056d2
mov rax, qword [rax + 8]
test rax, rax
jne 0x18000558e
mov rcx, qword [0x180064008]
mov r8, qword [rcx]
call qword [r8 + 0xf8]
mov qword [rbx + 8], rax
test rax, rax
je 0x1800056d2
movzx eax, byte [rbx + 0x3a0]
test al, al
jne 0x18000569c
mov r8, qword [rbx + 0x398]
test r8, r8
jne 0x18000567f
cmp byte [0x180063cf1], r8b
mov qword [rsp + 0x640], rdi
jne 0x180005600
mov rcx, qword [0x180064008]
lea rdx, str.net_minecraftforge_common_ForgeVersion
mov byte [0x180063cf1], 1
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
call r8
test rax, rax
je 0x180005600
mov rcx, qword [0x180064008]
mov rdx, rax
mov r8, qword [rcx]
call qword [r8 + 0xb8]
mov al, 1
mov byte [0x180063cf2], al
jmp 0x180005607
movzx eax, byte [0x180063cf2]
mov r8, qword [rbx]
lea rcx, str.field_71415_G
test al, al
lea rdi, [0x180056acc]
cmovne rdi, rcx
test r8, r8
jne 0x180005627
xor edx, edx
jmp 0x18000564a
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x18000564a
mov rcx, qword [0x180064008]
mov rdx, r8
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [rbx + 8], rax
mov rcx, qword [0x180064008]
lea r9, [0x180056e0c]
mov r8, rdi
mov rax, qword [rcx]
mov r10, qword [rax + 0x2f0]
call r10
mov rdi, qword [rsp + 0x640]
mov r8, rax
mov qword [rbx + 0x398], rax
test rax, rax
je 0x1800056d2
mov rcx, qword [0x180064008]
mov rdx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x300]
mov byte [rbx + 0x3a0], al
test al, al
je 0x1800056d2
mov ecx, 0x55
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800056c8
cmp byte [0x180063c84], 0
sete byte [0x180063c84]
cmp byte [0x180063cd9], 0
sete byte [0x180063cd9]
call fcn.180007b80
call fcn.180007920
add rsp, 0x630
pop rbx
ret
Function at 0x180007920
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x638
cmp byte [0x180063cc0], 0
je 0x180007af4
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180007af4
mov eax, dword [0x1800630c0]
sub eax, dword [0x180063c80]
inc dword [0x180063c80]
test eax, eax
js 0x180007aa2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x640], rbx
call fcn.1800481b0
mov rbx, rax
mov rdx, qword [rax]
test rdx, rdx
je 0x180007a9a
mov rax, qword [rax + 8]
test rax, rax
jne 0x1800079aa
mov rcx, qword [0x180064008]
mov r8, qword [rcx]
call qword [r8 + 0xf8]
mov qword [rbx + 8], rax
test rax, rax
je 0x180007a9a
mov rax, qword [rbx + 0x378]
test rax, rax
jne 0x180007a88
cmp byte [0x180063cf1], al
mov qword [rsp + 0x630], rdi
jne 0x180007a0c
mov rcx, qword [0x180064008]
lea rdx, str.net_minecraftforge_common_ForgeVersion
mov byte [0x180063cf1], 1
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
call r8
test rax, rax
je 0x180007a0c
mov rcx, qword [0x180064008]
mov rdx, rax
mov r8, qword [rcx]
call qword [r8 + 0xb8]
mov al, 1
mov byte [0x180063cf2], al
jmp 0x180007a13
movzx eax, byte [0x180063cf2]
mov r8, qword [rbx]
lea rcx, str.func_147116_af
test al, al
lea rdi, [0x180058790]
cmovne rdi, rcx
test r8, r8
jne 0x180007a33
xor edx, edx
jmp 0x180007a56
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x180007a56
mov rcx, qword [0x180064008]
mov rdx, r8
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [rbx + 8], rax
mov rcx, qword [0x180064008]
lea r9, [0x180056878]
mov r8, rdi
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
call r10
mov rdi, qword [rsp + 0x630]
mov qword [rbx + 0x378], rax
test rax, rax
je 0x180007a9a
mov rdx, qword [rbx]
mov r8, rax
mov rcx, qword [0x180064008]
call fcn.1800473f0
mov rbx, qword [rsp + 0x640]
cmp byte [0x1800630ac], 0
je 0x180007ae1
mov rcx, qword [0x180063ef0]
xor r9d, r9d
mov edx, 0x204
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x180063ef0]
xor r9d, r9d
mov edx, 0x205
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x180063c80], 0x14
jl 0x180007af4
mov dword [0x180063c80], 0
cmp byte [0x180063cd0], 0
je 0x180007b72
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180007b72
mov ecx, dword [0x180063c80]
mov eax, dword [0x1800630bc]
sub eax, ecx
inc ecx
mov dword [0x180063c80], ecx
test eax, eax
js 0x180007b63
mov rcx, qword [0x180063ef0]
xor r9d, r9d
mov edx, 0x204
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x180063ef0]
xor r9d, r9d
mov edx, 0x205
mov r8d, 2
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x180063c80]
cmp ecx, 0x14
jl 0x180007b72
mov dword [0x180063c80], 0
add rsp, 0x638
ret
Function at 0x180007b80
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x808
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x180007d61
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x180007d61
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x180007d61
cmp byte [0x180063cd6], 0
je 0x180007d61
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x180007bf4
mov ecx, 0x45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180007d61
lea rcx, [rsp + 0x1f8]
mov qword [rsp + 0x810], rbx
call fcn.1800481b0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.18004a420
mov rbx, rax
mov rdx, qword [rax + 0x160]
test rdx, rdx
je 0x180007d59
mov rax, qword [rax + 0x168]
test rax, rax
jne 0x180007c55
mov rcx, qword [0x180064008]
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov qword [rbx + 0x168], rax
test rax, rax
je 0x180007d59
mov rax, qword [rbx + 0x1c8]
test rax, rax
jne 0x180007d3d
cmp byte [0x180063cf1], al
mov qword [rsp + 0x800], rdi
jne 0x180007cb7
mov rcx, qword [0x180064008]
lea rdx, str.net_minecraftforge_common_ForgeVersion
mov byte [0x180063cf1], 1
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
call r8
test rax, rax
je 0x180007cb7
mov rcx, qword [0x180064008]
mov rdx, rax
mov r8, qword [rcx]
call qword [r8 + 0xb8]
mov al, 1
mov byte [0x180063cf2], al
jmp 0x180007cbe
movzx eax, byte [0x180063cf2]
mov r8, qword [rbx + 0x160]
lea rcx, str.func_70031_b
test al, al
lea rdi, [0x1800584dc]
cmovne rdi, rcx
test r8, r8
jne 0x180007ce2
xor edx, edx
jmp 0x180007d0b
mov rdx, qword [rbx + 0x168]
test rdx, rdx
jne 0x180007d0b
mov rcx, qword [0x180064008]
mov rdx, r8
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [rbx + 0x168], rax
mov rcx, qword [0x180064008]
lea r9, str._Z_V
mov r8, rdi
mov rax, qword [rcx]
mov r10, qword [rax + 0x108]
call r10
mov rdi, qword [rsp + 0x800]
mov qword [rbx + 0x1c8], rax
test rax, rax
je 0x180007d59
mov rdx, qword [rbx + 0x160]
mov r9d, 1
mov rcx, qword [0x180064008]
mov r8, rax
call fcn.1800473f0
mov rbx, qword [rsp + 0x810]
add rsp, 0x808
ret
Function at 0x18000a940
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13d8
call fcn.18004fbc0
sub rsp, rax
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x34], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x18000a980
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.18000daa0
mov ecx, eax
lea rax, [rcx + rcx*8]
shl rax, 2
cmp eax, 3
ja 0x18000a9d9
lea rcx, [rsp + 0x30]
call fcn.18000daa0
mov ecx, eax
lea rax, [rcx + rcx*8]
shl rax, 2
cmp eax, 4
jb 0x18000a9c0
shr rax, 0x20
test eax, eax
jne 0x18000a9f2
mov ecx, 0x30
cmp eax, 0x1f
jne 0x18000a9fc
mov ecx, 0x76
jmp 0x18000aa48
cmp eax, 1
jne 0x18000aa08
mov ecx, 0x31
cmp eax, 0x20
jne 0x18000aa12
mov ecx, 0x77
jmp 0x18000aa48
cmp eax, 2
jne 0x18000aa1e
mov ecx, 0x32
cmp eax, 0x21
jne 0x18000aa28
mov ecx, 0x78
jmp 0x18000aa48
cmp eax, 3
jne 0x18000aa34
mov ecx, 0x33
cmp eax, 0x22
jne 0x18000aa3e
mov ecx, 0x79
jmp 0x18000aa48
cmp eax, 4
jne 0x18000aa63
mov ecx, 0x34
cmp eax, 0x23
jne 0x18000aa48
mov ecx, 0x7a
movzx eax, cx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.18004ea30
add rsp, 0x13d8
ret
cmp eax, 5
jne 0x18000aa6f
mov ecx, 0x35
jmp 0x18000aa48
cmp eax, 6
jne 0x18000aa7b
mov ecx, 0x36
jmp 0x18000aa48
cmp eax, 7
jne 0x18000aa87
mov ecx, 0x37
jmp 0x18000aa48
cmp eax, 8
jne 0x18000aa93
mov ecx, 0x38
jmp 0x18000aa48
cmp eax, 9
jne 0x18000aa9f
mov ecx, 0x39
jmp 0x18000aa48
movzx ecx, word [rsp + 0x20]
cmp eax, 0xa
jne 0x18000aab0
mov ecx, 0x61
jmp 0x18000aa48
cmp eax, 0xb
jne 0x18000aabc
mov ecx, 0x62
jmp 0x18000aa48
cmp eax, 0xc
jne 0x18000aac8
mov ecx, 0x63
jmp 0x18000aa48
cmp eax, 0xd
jne 0x18000aad7
mov ecx, 0x64
jmp 0x18000aa48
cmp eax, 0xe
jne 0x18000aae6
mov ecx, 0x65
jmp 0x18000aa48
cmp eax, 0xf
jne 0x18000aaf5
mov ecx, 0x66
jmp 0x18000aa48
cmp eax, 0x10
jne 0x18000ab04
mov ecx, 0x67
jmp 0x18000aa48
cmp eax, 0x11
jne 0x18000ab13
mov ecx, 0x68
jmp 0x18000aa48
cmp eax, 0x12
jne 0x18000ab22
mov ecx, 0x69
jmp 0x18000aa48
cmp eax, 0x13
jne 0x18000ab31
mov ecx, 0x6a
jmp 0x18000aa48
cmp eax, 0x14
jne 0x18000ab40
mov ecx, 0x6b
jmp 0x18000aa48
cmp eax, 0x15
jne 0x18000ab4f
mov ecx, 0x6c
jmp 0x18000aa48
cmp eax, 0x16
jne 0x18000ab5e
mov ecx, 0x6d
jmp 0x18000aa48
cmp eax, 0x17
jne 0x18000ab6d
mov ecx, 0x6e
jmp 0x18000aa48
cmp eax, 0x18
jne 0x18000ab7c
mov ecx, 0x6f
jmp 0x18000aa48
cmp eax, 0x19
jne 0x18000ab8b
mov ecx, 0x70
jmp 0x18000aa48
cmp eax, 0x1a
jne 0x18000ab9a
mov ecx, 0x71
jmp 0x18000aa48
cmp eax, 0x1b
jne 0x18000aba9
mov ecx, 0x72
jmp 0x18000aa48
cmp eax, 0x1c
jne 0x18000abb8
mov ecx, 0x73
jmp 0x18000aa48
cmp eax, 0x1d
jne 0x18000abc7
mov ecx, 0x74
jmp 0x18000aa48
cmp eax, 0x1e
jne 0x18000a9e6
mov ecx, 0x75
jmp 0x18000aa48
Function at 0x18000abe0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 4
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xorps xmm0, xmm0
lea r8, [rsp + 0x38]
mov rbx, rax
mov r9d, 0x24
xor eax, eax
xor edx, edx
mov dword [rsp + 0x58], eax
mov rcx, rbx
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18004ea30
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x18000baf0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000bb33
mov qword [0x180063ce0], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18000b640]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000bb33
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000c0e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18000c108
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000c12e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000c130
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000c189
test ecx, ecx
jle 0x18000c169
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18000c189
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000c189
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x18000c1b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000c1d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000c1e8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000c204
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000c206
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000c242
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000c2de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000c27d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000c2be
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000c2de
cmp rbx, rax
ja 0x18000c290
test rbx, rbx
je 0x18000c2de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18000c740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180063040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000c76d
xor eax, eax
jmp 0x18000c8d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000c7a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000c7a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18000c8d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000c8cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000c7ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18000c815
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000c8d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000c884
sub eax, 1
je 0x18000c884
cmp eax, 2
jne 0x18000c8cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000c8d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000c8b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000c8cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000c8d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004ea30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret