joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18066c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18066c1df
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 0x18066c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066c06f
add dl, dl
jne 0x18066c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066c0f6
xor eax, eax
add dl, dl
jne 0x18066c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066c1ad
add dl, dl
jne 0x18066c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18066c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18066c07e
mov eax, 1
add dl, dl
jne 0x18066c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066c0fb
sub eax, ebx
mov ebx, 1
jne 0x18066c14c
mov ecx, 1
add dl, dl
jne 0x18066c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18066c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066c15d
cmp eax, 0x7d00
jae 0x18066c19b
cmp eax, 0x500
jb 0x18066c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066c07e
cmp eax, 0x7f
ja 0x18066c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18066c1d2
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 0x18066c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002e00
Capabilities:
Reference http user-agent string

Disassembly:
xorps xmm0, xmm0
lea r10, [rcx + 0x84]
movups xmmword [rcx], xmm0
xor eax, eax
lea r11, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_99.0.4844.74_Safari_537.36_Edg_99.0.1150.46
movups xmmword [rcx + 0x10], xmm0
xor r9d, r9d
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm0
mov dword [rcx + 0x80], eax
nop dword [rax + rax]
movsx eax, byte [r9 + r11]
lea r10, [r10 + 4]
inc r9
lea r8d, [rax*2 + 1]
mov eax, 0x81020409
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov dword [r10 - 4], r8d
cmp r9, 0x83
jl 0x180002e40
mov rax, rcx
ret
Function at 0x180003300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
movsxd r12, dword [rcx + 0x3c]
xor r15d, r15d
mov rbp, rdx
mov rdi, rcx
mov r11d, r15d
mov ebx, dword [r12 + rcx + 0x88]
add rbx, rcx
mov r14d, dword [rbx + 0x24]
mov r10d, dword [rbx + 0x20]
add r14, rcx
add r10, rcx
cmp rdx, 0x10000
jae 0x18000337d
mov r8d, dword [rbx + 0x10]
movzx edx, bp
cmp edx, r8d
jb 0x1800034fb
mov ecx, dword [rbx + 0x14]
add ecx, r8d
cmp edx, ecx
jae 0x1800034fb
mov ecx, dword [rbx + 0x1c]
sub edx, r8d
add rcx, rdi
mov r11, qword [rcx + rdx*8]
jmp 0x1800033d7
mov esi, dword [rbx + 0x18]
mov r9d, r15d
test esi, esi
je 0x1800033da
nop word [rax + rax]
mov r8d, dword [r10]
mov rax, rbp
add r8, rdi
sub r8, rbp
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800033b3
inc rax
test ecx, ecx
jne 0x1800033a0
test edx, edx
je 0x1800033c5
inc r9d
add r10, 4
cmp r9d, esi
jb 0x180003390
jmp 0x1800033da
mov ecx, dword [rbx + 0x1c]
mov eax, r9d
add rcx, rdi
movzx edx, word [r14 + rax*2]
mov r11d, dword [rcx + rdx*4]
add r11, rdi
cmp r11, rbx
jb 0x1800034d9
mov eax, dword [r12 + rdi + 0x8c]
add rax, rbx
cmp r11, rax
jae 0x1800034d9
mov rcx, r11
call fcn.180046704
mov rbp, rax
test rax, rax
je 0x1800034fb
mov edx, 0x2e
mov rcx, rax
call fcn.18004164c
movdqa xmm0, xmmword [0x180078100]
mov r14, rax
movdqa xmm1, xmmword [0x1800782f0]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x180077e50]
mov byte [rax], r15b
xor eax, eax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x2c], al
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
mov rsi, qword gs:[0x60]
test rsi, rsi
je 0x18000349b
mov rax, qword [rsi + 0x18]
mov rdi, qword [rax + 0x20]
mov rbx, rdi
mov rcx, qword [rdi + 0x50]
lea rdx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180003497
mov rbx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rdi, qword [rbx]
cmp rbx, qword [rax + 0x20]
jne 0x180003470
jmp 0x18000349b
mov r15, qword [rdi + 0x20]
lea rcx, [rsp + 0x20]
call fcn.180005330
mov rdx, rax
mov rcx, r15
call fcn.180003300
test rax, rax
je 0x1800034fb
mov rcx, rbp
call rax
mov rcx, rbp
mov rbx, rax
call fcn.18004677c
test rbx, rbx
je 0x1800034fb
lea rdx, [r14 + 1]
mov rcx, rbx
call fcn.180003300
mov r11, rax
mov rax, r11
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
xor eax, eax
jmp 0x1800034dc
Function at 0x180017e10
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180017e3e
xor eax, eax
jmp 0x180017f24
cmp qword [rcx + 0x68], 0
je 0x180017e4f
call fcn.180017f40
jmp 0x180017f24
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180017e66
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180017e68
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180017e9a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180067fa0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180017f1e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180017ed1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180017efa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18004b24c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180017f1e
cmp rsi, rbx
ja 0x180017ed8
test rsi, rsi
je 0x180017f1e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18004b24c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180034bf4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180020d32
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180020d15
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180020d00
Function at 0x18005ba48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180040030
sub rsp, rax
mov rax, qword [0x180083040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180058c64
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18005ba97
mov rax, rbp
jmp 0x18005bb9f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x860d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005cb68
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x860d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18005bb9b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005bb9b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005cb68
test rax, rax
js 0x18005bb9b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18005bb9b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18005bb8d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18005bb8d
cmp byte [rcx], 0xd
jne 0x18005bb73
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18005bb82
cmp byte [rcx + 1], 0xa
jne 0x18005bb82
inc rcx
jmp 0x18005bb82
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x83630]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18005bb55
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18005bb9f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003f6a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18005bdc0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005bdd6
mov al, 1
jmp 0x18005be36
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005bde7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005be34
mov ecx, dword [rcx + 0x18]
nop
call fcn.180064b64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005be34
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005be34
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005be34
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005be36
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18005bf08
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, [0x1800860d0]
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 0x18005bf5f
cmp word [rdx], r13w
jne 0x18005bf5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005bf64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005c089
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005c0aa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005bf9d
mov rdx, r9
mov word [rbx], cx
jmp 0x18005bfc4
cmp r9, r8
jae 0x18005bfd4
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 0x18005bf7e
jmp 0x18005c089
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 0x18005c07e
cmp dword [rsp + 0x80], esi
je 0x18005c07e
lea r8, [0x1800860d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005c056
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005c026
mov word [rbx], r13w
jmp 0x18005c086
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 0x18005c033
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005c086
cmp word [rsp + 0x70], r13w
jne 0x18005c063
cmp rbx, r14
je 0x18005c020
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005cb70
cmp word [rsp + 0x70], r13w
je 0x18005c089
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, [0x1800860d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005c083
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005c089
Function at 0x18005fdc4
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 0x18005fdf4
xor eax, eax
jmp 0x18005feb7
mov rbp, rbx
cmp word [rax], si
je 0x18005fe19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005fe00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005fdfc
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.18005e4fc
movsxd r14, eax
test eax, eax
jne 0x18005fe57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005fded
mov rcx, r14
call fcn.180057ae0
mov rdi, rax
test rax, rax
jne 0x18005fe70
xor ecx, ecx
call fcn.180056958
jmp 0x18005fe4c
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.18005e4fc
test eax, eax
jne 0x18005fea1
mov rcx, rdi
call fcn.180056958
jmp 0x18005feab
xor ecx, ecx
call fcn.180056958
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 0x18005fed4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18005ff5b
mov rsi, rbx
cmp word [rax], bp
je 0x18005ff1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005ff04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005ff00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180057ae0
mov rdi, rax
test rax, rax
je 0x18005ff48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180067fa0
mov rbp, rdi
xor ecx, ecx
call fcn.180056958
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180062c00
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180054d78
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180062ca1
cmp ebx, dword [rsp + 0x30]
je 0x180062c9a
test esi, esi
je 0x180062c9a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180062c75
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180062c82
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180062c5f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180062c86
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180062ca3
mov eax, 1
jmp 0x180062ca3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800676a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800676c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800676c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003400
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
cmp qword [0x140021728], 0
jne 0x140003415
xor eax, eax
add rsp, 0x68
ret
lea r9, str.ATK_NOTIFICATION_EVENT
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x140021730], rax
jne 0x14000345c
mov rcx, qword [0x140021728]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
xor eax, eax
mov qword [0x140021728], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
mov rcx, qword [0x140021728]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r9d, [rbx + 8]
mov edx, 0x222400
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x70], 8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400034e4
mov rcx, qword [0x140021728]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140021730]
mov qword [0x140021728], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140021730], rbx
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
ret
lea r8, [0x1400032c0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [0x140021724], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x68
ret

Function at 0x1400035a0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0xf0
mov rax, qword [0x1400201b0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
lea r8, str.PEGAGFN
lea rcx, [rsp + 0x40]
lea edx, [rsi + 0x50]
call fcn.140009e60
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbp, rax
jne 0x1400035f7
mov eax, 0x80000001
jmp 0x1400036c1
lea rdx, [rsp + 0x40]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x108], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400036a9
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000364f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80000002
jmp 0x1400036b9
mov qword [rsp + 0x100], rbx
mov ebx, esi
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x24], 1
je 0x14000368d
add ebx, 1
cmp ebx, 0xa
jl 0x140003660
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x100]
jmp 0x1400036ae
mov esi, 0x80000004
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rdi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140009d20
mov rbp, qword [rsp + 0x110]
add rsp, 0xf0
pop rsi
ret
Function at 0x140006560
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x140
mov rax, qword [0x1400201b0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r8
mov r13, rdx
mov r12, rcx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov ebp, r9d
mov rdi, rbx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1400066c3
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0xa0
call fcn.14000b1d0
test ebp, ebp
je 0x1400065f0
lea r9, str.PEGAGFN
lea r8, [0x140019940]
lea edx, [rbx + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14000b190
lea rdi, [rsp + 0x90]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rbx
lea rax, str.ShellSvcGroup
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 1
mov r8, r13
mov rdx, r12
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rdi, rax
je 0x1400066c3
lea r8, [rsp + 0x70]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x74], 4
je 0x1400066c7
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400066b1
nop
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x70]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400066a9
cmp dword [rsp + 0x74], 4
je 0x1400066c7
add ebx, 1
cmp ebx, 0xa
jl 0x140006680
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400066de
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140009d20
add rsp, 0x140
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006700
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
jne 0x140006730
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x140006796
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [rsp + 0x24], 1
je 0x1400067e1
test eax, eax
je 0x1400067e1
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400067a8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
xor ebx, ebx
nop
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400067e1
cmp dword [rsp + 0x24], 1
je 0x1400067e1
add ebx, 1
cmp ebx, 0xa
jl 0x1400067b0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140006796
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rsi
ret