joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c6874
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 0x1400c68a4
xor eax, eax
jmp 0x1400c6967
mov rbp, rbx
cmp word [rax], si
je 0x1400c68c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c68b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c68ac
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.1400becac
movsxd r14, eax
test eax, eax
jne 0x1400c6907
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c689d
mov rcx, r14
call fcn.1400b96c8
mov rdi, rax
test rax, rax
jne 0x1400c6920
xor ecx, ecx
call fcn.1400b968c
jmp 0x1400c68fc
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.1400becac
test eax, eax
jne 0x1400c6951
mov rcx, rdi
call fcn.1400b968c
jmp 0x1400c695b
xor ecx, ecx
call fcn.1400b968c
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 0x1400c6984
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 0x1400c6a0b
mov rsi, rbx
cmp word [rax], bp
je 0x1400c69ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c69b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c69b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b96c8
mov rdi, rax
test rax, rax
je 0x1400c69f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009da40
mov rbp, rdi
xor ecx, ecx
call fcn.1400b968c
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 0x1400ca1c8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400afee8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ca252
cmp byte [rbp - 0x21], r15b
je 0x1400ca24d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ca288
call fcn.1400bc0b0
test eax, eax
jne 0x1400ca274
cmp byte [rbp - 0x21], r15b
je 0x1400ca26c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ca288
cmp byte [rbp - 0x21], r15b
je 0x1400ca285
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400b78a0
test eax, eax
jne 0x1400ca328
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400afee8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ca2c7
cmp byte [rbp - 0x21], r15b
je 0x1400ca2fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ca2fc
call fcn.1400bc0b0
test eax, eax
jne 0x1400ca2e8
cmp byte [rbp - 0x21], r15b
je 0x1400ca2e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ca2fc
cmp byte [rbp - 0x21], r15b
je 0x1400ca2f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400b78a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ca328
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ca32b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ca339
mov rcx, rdi
call fcn.1400b968c
cmp byte [rbp + 0x3f], r15b
je 0x1400ca348
mov rcx, qword [rbp + 0x27]
call fcn.1400b968c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cb4b0
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.1400bda38
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bda38
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400cb600
cmp rax, 0xffffffffffffffff
je 0x1400cb600
xor edi, edi
test rbp, rbp
jle 0x1400cb5ab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400bb648
mov rbx, rax
test rax, rax
jne 0x1400cb538
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400cb5a1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b93bc
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.1400bd4b0
cmp eax, 0xffffffff
je 0x1400cb581
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400cb548
mov edx, r15d
mov ecx, r14d
call fcn.1400b93bc
jmp 0x1400cb5a1
cmp byte [rsi + 0x38], dil
je 0x1400cb598
cmp dword [rsi + 0x34], 5
jne 0x1400cb598
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1400cb5a1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b968c
jmp 0x1400cb614
jns 0x1400cb614
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bda38
cmp rax, 0xffffffffffffffff
jne 0x1400cb5cc
cmp byte [rsi + 0x30], dil
je 0x1400cb614
mov edi, dword [rsi + 0x2c]
jmp 0x1400cb614
mov ecx, r14d
call fcn.1400c6fd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400cb614
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x1400cb614
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400cb60d
mov eax, dword [rsi + 0x2c]
jmp 0x1400cb612
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bda38
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 0x1400d4a90
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14009c040
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400e0040
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1400e00ac
movzx ecx, byte [rcx]
test cl, cl
je 0x1400e00ac
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x1400e0060
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x1400e0170
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.14009c040
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1400e0203
movzx eax, byte [rcx]
test al, al
je 0x1400e0203
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1400dd2a0
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x1400e01a0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400e86a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14009c040
sub rsp, rax
lea rcx, [0x140254f68]
add rsp, 0x28
jmp fcn.1400d48f0
Function at 0x14011b220
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.14009c040
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x14011b25f
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.1400d31c0
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x14011b272
mov dword [rdx], r8d
cmp r9, 1
jne 0x14011b294
test r11, r11
je 0x14011b28a
movzx eax, byte [r10]
test r8d, r8d
je 0x14011b288
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x14011b2b1
mov eax, 1
mov ebx, eax
jmp 0x14011b35f
cmp cl, 0xff
jne 0x14011b39d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x14011b34f
cmp rcx, 8
jb 0x14011b340
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
movd xmm1, dword [rax + r10]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r10 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x14011b2e3
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14011b34f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14011b340
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x14011b39d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x14011b39d
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, recv
lea r8d, [rdx - 5]
call fcn.1400d31c0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x14011b3f1
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x14011b3ec
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x14011b3d0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret
Function at 0x1401a2980
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx + 0x30]
mov edi, edx
mov r8, rcx
mov rbx, rsi
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x1401a29d7
nop word [rax + rax]
cmp dword [rax + 0x20], edi
jae 0x1401a29cb
mov rax, qword [rax + 0x10]
jmp 0x1401a29d1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401a29c0
cmp byte [rbx + 0x19], 0
jne 0x1401a2a00
cmp edi, dword [rbx + 0x20]
jb 0x1401a2a00
cmp rbx, rsi
je 0x1401a2a03
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x10]
shr ecx, 2
test cl, 1
jne 0x1401a2a03
jmp 0x1401a2a4b
mov rbx, rsi
cmp byte [r8 + 0x29], 0
je 0x1401a2a49
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14009e170
lea rax, str.Log_not_open_____d_n
cmp rbx, rsi
lea rdx, str.Log_in_bad_state_____d_n
mov r8d, edi
cmove rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140090870
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14009b490
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1401a3f30
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1401a3fd0
cmp qword [rax + 0x18], 8
jb 0x1401a3f4d
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x1401a3f96
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a3f91
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a3f9e
call fcn.14009b9d4
mov eax, ebx
add rsp, 0x40
pop rbx
ret
call fcn.1400a8b08
int3
Function at 0x1401a4950
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov rsi, qword [rcx + 0x10]
test rsi, rsi
jne 0x1401a498f
test rdx, rdx
je 0x1401a4ae9
mov dword [rdx], esi
jmp 0x1401a4ae9
mov rbp, qword [rcx + 0x18]
cmp rbp, 8
jb 0x1401a499c
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 2
mov r8, 0xffffffffffffffff
mov rdx, rsi
call fcn.140090ce0
mov r9, rax
cmp rax, 0xffffffffffffffff
jne 0x1401a49cf
test rbx, rbx
je 0x1401a4ae9
xor esi, esi
mov dword [rbx], esi
jmp 0x1401a4ae9
lea rax, [rsi - 1]
cmp r9, rax
je 0x1401a4a09
inc r9
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140090ac0
mov rdx, rbx
mov rcx, rax
call fcn.1401a4950
movzx ebx, al
mov rcx, rdi
call fcn.1400873f0
movzx eax, bl
jmp 0x1401a4af3
cmp rsi, rax
jb 0x1401a4b10
mov qword [rdi + 0x10], rax
mov rcx, rdi
cmp rbp, 8
jb 0x1401a4a22
mov rcx, qword [rdi]
xor esi, esi
mov word [rcx + rax*2], si
mov rcx, rdi
call fcn.1401a3f30
cmp eax, 0xffffffff
jne 0x1401a4ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1401a4a51
test rbx, rbx
je 0x1401a4ad0
mov dword [rbx], eax
jmp 0x1401a4ad0
mov rdx, qword [rdi + 0x10]
lea r8, [rdx - 2]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401a4a66
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 2
call fcn.140090ce0
cmp rax, 0xffffffffffffffff
je 0x1401a4a9d
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140090ac0
mov rdx, rbx
mov rcx, rax
call fcn.1401a4950
test al, al
je 0x1401a4adc
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401a4aaa
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete bl
mov rcx, rdi
call fcn.1400873f0
movzx eax, bl
jmp 0x1401a4af3
test al, 0x10
je 0x1401a4adc
test rbx, rbx
je 0x1401a4ad0
mov dword [rbx], esi
mov rcx, rdi
call fcn.1400873f0
mov al, 1
jmp 0x1401a4af3
test rbx, rbx
je 0x1401a4ae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, rdi
call fcn.1400873f0
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14009b490
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.14008d650
nop
int3
Function at 0x1401a4f00
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, edx
mov rbx, r8
mov rdx, r8
mov rbp, rcx
call fcn.1401a4fd0
test al, al
je 0x1401a4fa4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
cmp dword [rbx + 4], edi
jne 0x1401a4fa0
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
jae 0x1401a4fa4
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov dword [rbx + 0x20], eax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1401a4fa4
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
mov r9d, 0x24
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1401a4fa4
cmp dword [rbx + 4], edi
je 0x1401a4f45
mov al, 1
jmp 0x1401a4fa6
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009b490
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1401a4fd0
Capabilities:
Query service status

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
mov dword [rdx + 0x20], eax
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1401a5032
mov dword [rsp + 0x30], eax
mov r8, rdx
lea rax, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1401a5032
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009b490
add rsp, 0x48
ret
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009b490
add rsp, 0x48
ret
Function at 0x1401a5050
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov rbp, rdx
mov r14, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1401a509b
test r8, r8
je 0x1401a511f
mov dword [r8], 6
xor al, al
jmp 0x1401a5237
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], eax
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x24]
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1401a50e9
test rsi, rsi
je 0x1401a511f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
xor al, al
jmp 0x1401a5237
mov eax, dword [rsp + 0x54]
cmp eax, 1
je 0x1401a5126
cmp eax, 3
je 0x1401a50fe
mov al, 1
jmp 0x1401a5237
lea r8, [rsp + 0x50]
mov edx, 3
mov rcx, r14
call fcn.1401a4f00
test al, al
jne 0x1401a5126
test rsi, rsi
je 0x1401a511f
mov dword [rsi], 0x5b4
xor al, al
jmp 0x1401a5237
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov rdi, r15
mov qword [rsp + 0x48], r15
mov rbx, qword [rbp]
mov rbp, qword [rbp + 8]
mov rax, qword [rsp + 0x40]
cmp rbx, rbp
je 0x1401a5194
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401a5156
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rcx
cmp rax, rdi
je 0x1401a5172
mov qword [rax], rcx
add rax, 8
mov qword [rsp + 0x40], rax
add rbx, 0x20
jmp 0x1401a5144
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400928a0
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
add rbx, 0x20
jmp 0x1401a5144
mov rbx, qword [rsp + 0x38]
mov r8, rbx
cmp rbx, rax
cmove r8, r15
sub rax, rbx
sar rax, 3
mov edx, eax
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401a51cc
test rsi, rsi
je 0x1401a51ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
xor sil, sil
jmp 0x1401a51fb
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, r14
call fcn.1401a4f00
test al, al
jne 0x1401a51f2
test rsi, rsi
je 0x1401a51ed
mov dword [rsi], 0x5b4
xor sil, sil
jmp 0x1401a51fb
cmp dword [rsp + 0x54], 4
sete sil
test rbx, rbx
je 0x1401a5233
sub rdi, rbx
and rdi, 0xfffffffffffffff8
mov rax, rbx
cmp rdi, 0x1000
jb 0x1401a5228
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a525b
mov rdx, rdi
mov rcx, rbx
call fcn.14009b9d4
movzx eax, sil
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009b490
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a8b08
int3
Function at 0x1401a7d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov qword [rsp + 0x28], rcx
lea rax, vtable.Esg::Encoders::AESImpl.0
mov qword [rcx], rax
mov dword [rcx + 8], 0x1a
add rcx, 0x10
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov eax, dword [r14 + 8]
test al, 8
je 0x1401a7dc9
lea edx, [rdi + 0x20]
jmp 0x1401a7dd2
test al, 4
je 0x1401a7dd8
mov edx, reloc.WS2_32.dll_recv
call fcn.1400934e0
nop
lea rax, vtable.Esg::Encoders::AESLegacy.0
mov qword [r14], rax
cmp byte [0x1402556cc], 0
jne 0x1401a7f11
mov bl, 1
call fcn.1401b3790
test al, al
cmove ebx, edi
call fcn.1401b3550
movzx ebx, bl
test al, al
cmove ebx, edi
call fcn.1401b3790
test al, al
jne 0x1401a7e16
xor bpl, bpl
jmp 0x1401a7e6e
call fcn.1401b3550
test al, al
jne 0x1401a7e24
xor bpl, bpl
jmp 0x1401a7e6e
mov edx, edi
movzx r9d, byte [0x14025aa50]
lea r8, [0x14025ab50]
lea r10, [0x14025aa50]
nop dword [rax]
mov eax, edi
cmp r9d, edx
je 0x1401a7e5b
nop word [rax + rax]
inc eax
movzx ecx, byte [rax + r10]
cmp ecx, edx
jne 0x1401a7e50
mov byte [r8], al
inc edx
inc r8
cmp edx, 0xff
jbe 0x1401a7e40
mov bpl, 1
and bpl, bl
mov r9b, 1
mov dword [0x14025ac50], edi
mov edi, 1
lea rsi, [0x14025ac54]
nop word [rax + rax]
movzx eax, r9b
mov dword [rsi], eax
mov r10b, 2
movzx r8d, r9b
xor bl, bl
mov r11d, 8
nop word [rax + rax]
movzx ecx, r10b
movzx eax, bl
xor al, r8b
movzx r9d, al
movzx eax, bl
and cl, 1
cmove r9d, eax
movzx eax, r8b
add al, al
movzx edx, al
shr r10b, 1
movzx ebx, r9b
movzx ecx, r8b
movzx eax, dl
xor al, 0x1b
movzx r8d, al
test cl, cl
cmovns r8d, edx
sub r11d, 1
jne 0x1401a7eb0
inc edi
add rsi, 4
cmp edi, 0x3b
jb 0x1401a7e90
call fcn.1401b3850
test al, al
je 0x1401a7f27
mov byte [0x1402556cc], bpl
test bpl, bpl
je 0x1401a7f2d
mov rax, r14
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov byte [0x1402556cc], al
lea rax, str.Tables_failed_to_initialize
mov qword [rsp + 0x20], rax
lea rdx, [0x14024aab8]
lea rcx, [rsp + 0x20]
call fcn.14009d944
int3