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

Disassembly:
sub rsp, 0x18
cmp word [rcx + 0xe], 0
mov r10, rcx
je 0x18001587f
xor r8d, r8d
cmp dword [0x18001d090], 2
jl 0x18001583c
movdqa xmm2, xmmword [0x180019ef0]
mov rax, rcx
movdqa xmm4, xmmword [0x18001a0e0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x180019f00]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x18001a0d0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180019f10]
psubd xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm6
punpckldq xmm1, xmm2
pmuldq xmm1, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180019f20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x180019f30]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movq qword [rcx], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180019f10]
psubd xmm3, xmm0
movdqa xmm1, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm6
punpckldq xmm1, xmm3
pmuldq xmm1, xmm6
movaps xmm6, xmmword [rsp]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180019f20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx + 8]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x180019f30]
xorps xmm2, xmm0
movq qword [rcx + 8], xmm2
add rsp, 0x18
ret
mov r9, r10
nop
mov ecx, r8d
lea r9, [r9 + 2]
mov eax, 0x51eb851f
mul r8d
inc r8d
shr edx, 4
imul eax, edx, 0x32
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x34
sub ecx, eax
add cx, 0x36
xor word [r9 - 2], cx
cmp r8d, 8
jl 0x180015840
mov rax, r10
add rsp, 0x18
ret
Function at 0x180015890
Capabilities:
Encode data using xor

Disassembly:
cmp word [rcx + 6], 0
mov r10, rcx
je 0x1800159af
xor r8d, r8d
cmp dword [0x18001d090], 2
jl 0x180015966
movdqa xmm4, xmmword [0x180019ef0]
mov rax, rcx
movdqa xmm2, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmmword [0x18001a0e0]
punpckldq xmm2, xmm4
pmuldq xmm2, xmmword [0x18001a0e0]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x180019f10]
psubd xmm4, xmm0
movdqa xmm1, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmmword [0x18001a0d0]
punpckldq xmm1, xmm4
pmuldq xmm1, xmmword [0x18001a0d0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180019f20]
psubd xmm4, xmm0
pshuflw xmm0, xmm4, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x180019f30]
xorps xmm2, xmm0
movq qword [rcx], xmm2
ret
mov r9, r10
nop dword [rax]
mov ecx, r8d
lea r9, [r9 + 2]
mov eax, 0x51eb851f
mul r8d
inc r8d
shr edx, 4
imul eax, edx, 0x32
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x34
sub ecx, eax
add cx, 0x36
xor word [r9 - 2], cx
cmp r8d, 4
jl 0x180015970
mov rax, r10
ret
Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.140001148
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001148
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x1400022e4]
mov qword [rsp + 0x38], rax
lea rax, [0x1400022e8]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x14009133e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xbea9bea8
stosb byte [rdi], al
adc ebp, ebp
test eax, 0xed13aabe
xor dword [rcx], edi
push rbx
jp 0x140091341
cmp al, 0x6b
xor dword [rcx + rax], edx
test al, 0x21
sbb byte [rsi], dl
test dword [rdi], esi
jge 0x1400913ba
mov esp, 0xd7d832c4
cmp dword [rdx], edi
add edi, dword [rdx + 0x15d22562]
pop rdx
xchg esp, eax
sub edx, dword [rbx]
sbb byte [rdx - 2], 0x1f
lahf
adc dword [rax - 0x8ac05af], esp
test byte [rdi - 0x3bef3adf], cl
invalid
invalid
Function at 0x14076a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14076a1df
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 0x14076a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076a06f
add dl, dl
jne 0x14076a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076a0f6
xor eax, eax
add dl, dl
jne 0x14076a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076a1ad
add dl, dl
jne 0x14076a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14076a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14076a07e
mov eax, 1
add dl, dl
jne 0x14076a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076a0fb
sub eax, ebx
mov ebx, 1
jne 0x14076a14c
mov ecx, 1
add dl, dl
jne 0x14076a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14076a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076a15d
cmp eax, 0x7d00
jae 0x14076a19b
cmp eax, 0x500
jb 0x14076a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076a07e
cmp eax, 0x7f
ja 0x14076a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14076a1d2
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 0x14076a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001975
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001975
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001965
nop
cmp rbx, rcx
jae 0x140001975
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001950
cmp rbx, rcx
jae 0x140001975
cmp word [rbx], 0
je 0x140001975
mov rax, rbx
jmp 0x140001977
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003060
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], r8
xor ebp, ebp
mov dword [rsp + 0x38], ebp
call fcn.140001a60
mov rcx, rax
test rax, rax
je 0x1400032a0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rdx, [0x140024dc0]
lea rsi, [rbp - 1]
cmp rdx, 0x10000
jae 0x1400030dd
movzx edx, dx
mov rcx, r14
call fcn.140004f50
jmp 0x1400030f6
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400030e0
mov r8d, eax
mov rcx, r14
call fcn.1400051c0
nop
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x400
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000325b
mov ecx, dword [rsp + 0x30]
lea eax, [rcx - 1]
mov ebx, 0x200
lea rdi, [0x140025474]
cmp eax, 1
jbe 0x14000315f
cmp ecx, 7
jne 0x1400031ee
mov eax, dword [rsp + 0x34]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x14000317c
mov rax, rsi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003170
jmp 0x1400031da
mov rdx, rbx
mov r8, rdi
lea rax, [rsp + 0x50]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffdfe]
test rax, rax
je 0x1400031b3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400031b3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003190
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], bp
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400031d0
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400051c0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x14000325b
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
sub rdi, rax
nop
lea rax, [rbx + 0x7ffffdfe]
test rax, rax
je 0x140003222
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140003222
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140003200
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], bp
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003240
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400051c0
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140003276
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, r14
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140006060
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400018c0
int3
Function at 0x1400046e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x83c0]
mov eax, 0x84c0
call fcn.14001b140
sub rsp, rax
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rbp + 0x83a0], rax
mov r12, qword [rbp + 0x8420]
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x84b8], rsi
mov rsi, r8
lea rcx, [rbp + 0x190]
mov r8d, 0x208
xor edx, edx
mov r15, r9
call fcn.140007fc0
lea rax, [rbp - 0x78]
mov dword [rsp + 0x68], 0x104
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x74]
xor r13d, r13d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x190]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x7c]
mov rcx, rdi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140004830
mov ebx, r13d
lea rax, [rbp - 0x78]
mov dword [rsp + 0x6c], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x30], r13
lea r8, [rbp - 0x70]
mov qword [rsp + 0x28], r13
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140004826
lea edx, [rbx + 1]
lea r8, [rbp - 0x70]
lea rcx, str.__d___ws_n
call fcn.140005be0
mov eax, ebx
lea r8, [rbp - 0x70]
imul rcx, rax, 0x1fe
mov edx, 0xff
add rcx, rsi
call fcn.14000d57c
mov eax, dword [rsp + 0x60]
inc ebx
cmp ebx, eax
jb 0x1400047c1
mov ecx, dword [rsp + 0x64]
mov rsi, qword [rsp + 0x84b8]
test ecx, ecx
je 0x1400048d0
mov ebx, r13d
nop word [rax + rax]
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0x3a0]
mov qword [rsp + 0x28], r13
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x70], 0x3fff
mov word [rbp + 0x3a0], r13w
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400048c2
lea edx, [rbx + 1]
lea r8, [rbp + 0x3a0]
lea rcx, str.__d___ws_n
call fcn.140005be0
mov eax, ebx
lea r8, [rbp + 0x3a0]
imul rcx, rax, 0x1fe
mov edx, 0xff
add rcx, r12
call fcn.14000d57c
mov ecx, dword [rsp + 0x64]
inc ebx
cmp ebx, ecx
jb 0x140004850
mov eax, dword [rsp + 0x60]
mov dword [r14], eax
mov dword [r15], ecx
mov rcx, qword [rbp + 0x83a0]
xor rcx, rsp
call fcn.140006060
add rsp, 0x84c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x140005a30
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xorps xmm0, xmm0
xor edx, edx
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140005a95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140001320
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006060
add rsp, 0x50
pop rdi
ret
mov r8d, 0x10024
mov qword [rsp + 0x60], rbx
lea rdx, str.ETDService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140005ad4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140001320
mov rcx, rdi
jmp 0x140005bb7
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140005b75
lea rdx, str.ETDService
lea rcx, str.Stopping__s.
call fcn.140001320
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140005b52
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140005b56
lea rcx, [0x1400264b4]
call fcn.140001320
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140005b20
mov eax, dword [rsp + 0x24]
lea rdx, str.ETDService
lea rcx, [0x1400264b8]
cmp eax, 1
je 0x140005b70
lea rcx, str._n_s_failed_to_stop._n
call fcn.140001320
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140005b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140001320
jmp 0x140005bab
lea rdx, str.ETDService
lea rcx, str._s_is_removed._n
call fcn.140001320
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006060
add rsp, 0x50
pop rdi
ret
Function at 0x1800047a0
Capabilities:
Self delete

Disassembly:
sub rsp, 0x28
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, str.hello1
lea rdx, [0x180039948]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1800039b0
xor r9d, r9d
lea r8, str.hello2
lea rdx, str.circuit_after
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, str.del_decoded.exe
add rsp, 0x28
jmp 0x1800124d8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x18003f080]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
lea r8, str.COMSPEC
xor edi, edi
lea rcx, [rbp - 0x30]
xor edx, edx
mov qword [rbp - 0x30], rdi
call fcn.18001b788
cmp eax, 0x16
je 0x18001260a
test rbx, rbx
jne 0x18001254b
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1800125e5
xor edx, edx
call fcn.18001c300
mov rcx, qword [rbp - 0x30]
mov ebx, eax
call fcn.180017074
test ebx, ebx
sete dil
jmp 0x1800125ea
mov rax, qword [rbp - 0x30]
lea rcx, [0x180030ad8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
test rax, rax
je 0x1800125c5
call fcn.180014824
mov ebx, dword [rax]
call fcn.180014824
xor r9d, r9d
lea r8, [rbp - 0x28]
xor ecx, ecx
mov dword [rax], edi
mov rdx, qword [rbp - 0x28]
call fcn.18001bee8
mov rdi, rax
cmp eax, 0xffffffff
je 0x18001259c
call fcn.180014824
mov dword [rax], ebx
jmp 0x1800125e1
call fcn.180014824
cmp dword [rax], 2
je 0x1800125be
call fcn.180014824
cmp dword [rax], 0xd
je 0x1800125be
mov rcx, qword [rbp - 0x30]
call fcn.180017074
or edi, 0xffffffff
jmp 0x1800125ea
call fcn.180014824
mov dword [rax], ebx
lea rdx, str.cmd.exe
xor r9d, r9d
lea r8, [rbp - 0x28]
mov qword [rbp - 0x28], rdx
xor ecx, ecx
call fcn.18001c24c
mov rdi, rax
mov rcx, qword [rbp - 0x30]
call fcn.180017074
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180008e00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180011f7c
int3

Function at 0x180004800
Capabilities:
Self delete

Disassembly:
sub rsp, 0x28
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, str.hello1
lea rdx, [0x180039948]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1800039b0
xor r9d, r9d
lea r8, str.hello2
lea rdx, str.circuit_after
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, str.del_decoded.exe
add rsp, 0x28
jmp 0x1800124d8
Function at 0x180004d40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180004d62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180004ddc
mov rdi, r14
mov rcx, rbx
call fcn.1800068d0
test rax, rax
jle 0x180004db4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18002ba60
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180004dcc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180004dd4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180004d76
sub r14, rdi
jmp 0x180004ebf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180004df3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180004df5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180004e27
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18002ba60
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180004ebc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180004e62
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
cmp rbp, 0xfff
jbe 0x180004e9d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001370c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180004ebc
cmp rbp, rax
ja 0x180004e70
test rbp, rbp
je 0x180004ebc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001370c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x18001b454
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001b46a
mov al, 1
jmp 0x18001b4ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001b47b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001b4c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.180022e40
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001b4c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001b4c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001b4c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001b4ca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18001d804
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.180009670
sub rsp, rax
mov rax, qword [0x18003f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800190c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001d853
mov rax, rbp
jmp 0x18001d95b
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 + 0x415e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001d440
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x415e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001d957
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 0x18001d957
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001d440
test rax, rax
js 0x18001d957
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001d957
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001d949
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001d949
cmp byte [rcx], 0xd
jne 0x18001d92f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001d93e
cmp byte [rcx + 1], 0xa
jne 0x18001d93e
inc rcx
jmp 0x18001d93e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001d911
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001d95b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180008e00
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret