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

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
xor r15d, r15d
lea r12, [0x140000000]
movzx eax, byte [r15 + r12 + 0x64e90]
mov edi, eax
mov r8d, eax
shr edi, 5
mov r11d, eax
shr r8d, 6
mov ebp, edi
lea edx, [rax + rax]
shr r11d, 7
xor edx, eax
and ebp, 4
mov r10d, edi
mov r9d, r8d
and edi, 1
and r10d, 2
imul ecx, edi, 0x1b000000
and r8d, 1
lea ebx, [rdx + rdx]
and r9d, 2
lea edx, [rdx*4]
xor ebx, eax
xor edx, eax
shl ebx, 0x19
shl edx, 8
mov esi, eax
xor rbx, rcx
mov r14d, eax
imul ecx, r10d, 0x1b000000
xor rbx, rcx
imul ecx, r8d, 0x1b000000
xor rbx, rcx
imul ecx, r9d, 0x1b000000
xor rbx, rcx
imul ecx, ebp, 0x1b000000
xor rbx, rcx
imul ecx, r11d, 0x1b000000
xor rbx, rcx
imul ecx, edi, 0x11b00
xor rdx, rcx
imul ecx, r10d, 0x11b00
xor rdx, rcx
imul ecx, r8d, 0x11b00
xor rdx, rcx
imul ecx, r9d, 0x11b00
xor rdx, rcx
imul ecx, ebp, 0x11b00
xor rdx, rcx
imul ecx, edi, 0x11b0000
or rbx, rdx
lea edx, [rax*8]
xor edx, eax
lea eax, [rax*4]
shl edx, 0x10
xor eax, r14d
xor rdx, rcx
imul ecx, r10d, 0x11b0000
xor rdx, rcx
imul ecx, ebp, 0x11b0000
xor rdx, rcx
imul ecx, edi, 0x11b
or rbx, rdx
lea edx, [rax + rax]
xor rdx, rcx
imul ecx, r10d, 0x11b
xor rdx, rcx
imul ecx, ebp, 0x11b
xor rdx, rcx
imul ecx, r11d, 0x11b
xor rdx, rcx
xor rdx, rsi
or rdx, rbx
shl rdx, 0x20
or rdx, rbx
or rdx, rsi
mov qword [r12 + r15*8 + 0x1c0da0], rdx
inc r15
cmp r15, 0x100
jl 0x14004e3b7
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov byte [0x1401c15a1], 1
pop r15
pop r14
pop r12
ret

Function at 0x14004e520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
lea rbx, [0x140000000]
movzx r9d, byte [r11 + rbx + 0x64d90]
mov edx, r9d
shr edx, 7
imul r10d, edx, 0x1b000000
lea r8d, [r9 + r9]
imul ecx, edx, 0x11b
mov eax, r8d
shl eax, 0x18
xor r10, rax
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [rbx + r11*8 + 0x1c0590], rcx
inc r11
cmp r11, 0x100
jl 0x14004e52f
and qword [0x1401c0d98], 0
and qword [0x1401c0d90], 0
mov rbx, qword [rsp + 8]
mov byte [0x1401c15a0], 1
ret
Function at 0x14004ffe4
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140079180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1401c16a0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1401c15b0], ecx
jg 0x1400500c6
mov eax, ebx
cmp rbx, rax
jne 0x140050088
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x140050088
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x1401c15a8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140050109
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400585d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140008a40
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004fd14
lea rdx, [0x140075518]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x1401c15b0]
call fcn.1400583ec
cmp dword [0x1401c15b0], 0xffffffff
jne 0x140050030
lea rcx, [0x1401c15a8]
call fcn.14004fc28
lea rcx, [0x14005b810]
call fcn.14005832c
nop
lea rcx, [0x1401c15b0]
call fcn.140058380
jmp 0x140050030
mov ecx, eax
call fcn.14005014c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140063908]
lea rcx, [rsp + 0x20]
call fcn.140008a40
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004fd14
lea rdx, [0x140075518]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140051550
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x1400515c3
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x140051582
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x140051605
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x1400515f1
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140051620
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1400516e6
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x1400516b1
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x140051666
test rbx, rbx
je 0x1400516ce
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x1400516bc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400516e8
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140051795
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14005176d
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x140051725
test rbx, rbx
je 0x140051783
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x140051775
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400576b4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x140057703
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x1400576da
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140058bc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140058c0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140058c0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140058c0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140058c0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140058c0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140058c10
xor al, al
add rsp, 0x28
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001900
Capabilities:
Resolve function by parsing pe exports

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
push r15
movsxd rax, dword [rcx + 0x3c]
mov r8, rcx
mov ecx, 0x8664
mov rbp, rdx
cmp word [rax + r8 + 4], cx
jne 0x140001938
mov ecx, dword [rax + r8 + 0x88]
jmp 0x14000193d
mov ecx, dword [rax + r8 + 0x78]
mov r9d, ecx
xor r10d, r10d
mov r14d, dword [r9 + r8 + 0x20]
mov edi, dword [r9 + r8 + 0x24]
add r14, r8
mov ecx, dword [r9 + r8 + 0x18]
add rdi, r8
dec ecx
lea r11d, [rcx + r10]
shr r11d, 1
mov edx, dword [r14 + r11*4]
add rdx, r8
cmp rbp, rdx
je 0x1400019a9
test rbp, rbp
je 0x1400019a0
test rdx, rdx
je 0x14000199a
mov rax, rbp
sub rax, rdx
movsx ebx, byte [rax + rdx]
movsx esi, byte [rdx]
inc rdx
test bl, bl
je 0x140001990
cmp bl, sil
je 0x14000197d
mov edx, ebx
sub edx, esi
js 0x1400019a0
test edx, edx
jle 0x1400019a9
lea r10d, [r11 + 1]
jmp 0x1400019a4
lea ecx, [r11 - 1]
cmp ecx, r10d
jae 0x14000195a
cmp ecx, r10d
jb 0x1400019cf
movzx eax, word [rdi + r11*2]
cmp eax, dword [r9 + r8 + 0x14]
jae 0x1400019cf
mov eax, dword [r9 + r8 + 0x1c]
movzx ecx, word [rdi + r11*2]
add rax, r8
mov eax, dword [rax + rcx*4]
add rax, r8
jmp 0x1400019d1
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140001d4c
Capabilities:
Bypass uac via rpc

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x150
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor edx, edx
mov sil, dl
mov qword [rax + 0x30], rdx
mov dword [rax + 0x40], edx
mov rbx, qword [rsp + 0x1b8]
test rbx, rbx
je 0x140001d9c
mov qword [rbx], rdx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], rdx
lea rdi, [rsp + 0x88]
xor eax, eax
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x110]
lea ecx, [rax + 0x38]
rep stosb byte [rdi], al
mov dword [rsp + 0x134], 1
mov word [rsp + 0x138], dx
lea rdi, [rsp + 0xa0]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
lea rdx, [rsp + 0x1b8]
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
call fcn.14001042c
test eax, eax
jne 0x140001f7e
lea edx, [rax + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140001e3b
mov dword [rsp + 0xcc], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0xd0], rax
test rax, rax
jne 0x140001e3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140001f7e
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rax
or dword [rsp + 0x60], 0xffffffff
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x50], rax
lea rax, str.WinSta0Default
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x1b8]
lea r8, [rsp + 0xa0]
lea rdx, [0x140022eb2]
lea rcx, [0x140022e10]
call qword [sym.imp.RPCRT4.dll_NdrAsyncClientCall]
or edi, 0xffffffff
mov edx, edi
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x140001ee6
or ecx, 0xffffffff
call qword [sym.imp.RPCRT4.dll_RpcRaiseException]
lea rdx, [rsp + 0x198]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncCompleteCall]
test eax, eax
jne 0x140001f46
cmp qword [rsp + 0x198], 0
jne 0x140001f46
test rbx, rbx
je 0x140001f3b
mov rax, qword [rsp + 0x88]
mov qword [rbx], rax
mov rax, qword [rsp + 0x90]
mov qword [rbx + 8], rax
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x9c]
mov dword [rbx + 0x14], eax
mov sil, 1
mov byte [rsp + 0x80], sil
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140001f62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140001f7e
mov al, sil
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140002744
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4c0
xor r12d, r12d
mov r15, r9
mov rbx, rcx
mov r14d, r12d
mov ebp, r12d
mov rax, rcx
test rcx, rcx
jne 0x14000277f
mov eax, r12d
jmp 0x140002795
cmp word [rcx], r12w
je 0x14000278f
add rax, 2
cmp word [rax], r12w
jne 0x140002785
sub rax, rbx
sar rax, 1
lea r13, [0x1400266a8]
mov rcx, r13
add rcx, 2
cmp word [rcx], r12w
jne 0x14000279f
sub rcx, r13
mov edx, 8
sar rcx, 1
lea rdi, [rcx + 2]
mov rcx, qword [0x14002ea90]
add rdi, rax
mov rcx, qword [rcx + 0x18]
lea r8, [rdi + rdi]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x140002875
mov rdx, rbx
mov rcx, rax
call fcn.140001af4
mov r8, rdi
mov rdx, r13
call fcn.140010570
lea rdx, [rsp + 0x270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov r13d, 1
cmp rax, 0xffffffffffffffff
je 0x14000284c
mov r8, r15
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.14000298c
test eax, eax
jne 0x140002840
lea rdx, [rsp + 0x270]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002812
jmp 0x140002843
mov ebp, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002ea90]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebp, ebp
je 0x14000286e
mov eax, r13d
jmp 0x14000296a
lea r13, [0x1400266a8]
mov rax, rbx
test rbx, rbx
jne 0x140002882
mov rax, r12
jmp 0x140002898
cmp word [rbx], r12w
je 0x140002892
add rax, 2
cmp word [rax], r12w
jne 0x140002888
sub rax, rbx
sar rax, 1
mov rcx, qword [0x14002ea90]
lea rsi, [rax + 0x108]
lea r8, [rsi + rsi]
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000296a
mov rdx, rbx
mov rcx, rdi
call fcn.140001af4
mov r8, rsi
lea rdx, [0x1400263f8]
call fcn.140010570
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002951
test byte [rsp + 0x20], 0x10
je 0x140002936
cmp word [rsp + 0x4c], 0x2e
je 0x140002936
mov rdx, rbx
mov rcx, rdi
call fcn.140001af4
lea rdx, [rsp + 0x4c]
call fcn.140001ab8
lea r8, [fcn.14000298c]
mov rdx, r13
mov rcx, rdi
mov r9, r15
call fcn.140002744
mov r14d, eax
test eax, eax
jne 0x140002948
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400028f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002ea90]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, r14d
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000314c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
cmp dword [rcx], 0x44504355
je 0x140003184
cmp dword [rcx], 0x55504355
je 0x140003184
cmp dword [rcx], 0x43504355
je 0x140003184
cmp dword [rcx], 0x4b504355
je 0x140003184
xor eax, eax
jmp 0x1400031d7
mov ebx, dword [rcx + 0xc]
and dword [rcx + 0xc], 0
mov r8d, 0x20
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlComputeCrc32]
cmp eax, ebx
je 0x1400031a4
xor eax, eax
jmp 0x1400031d7
mov eax, dword [rdi + 4]
test eax, eax
je 0x1400031d1
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x1400031d1
cmp eax, esi
jbe 0x1400031ba
xor eax, eax
jmp 0x1400031d7
cmp ecx, esi
jbe 0x1400031c2
xor eax, eax
jmp 0x1400031d7
cmp ecx, eax
jbe 0x1400031ca
xor eax, eax
jmp 0x1400031d7
mov eax, 1
jmp 0x1400031d7
xor eax, eax
jmp 0x1400031d7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000391c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xfa8]
mov eax, 0x1080
call fcn.1400166e0
sub rsp, rax
mov rbx, rcx
lea rdi, [rsp + 0x30]
xor esi, esi
lea rdx, [rsp + 0x50]
xor eax, eax
mov dword [rbp + 0xfc0], esi
mov dword [rbp + 0xfb8], esi
mov r15d, 0x1000
lea ecx, [rsi + 0x10]
rep stosb byte [rdi], al
mov eax, dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov dword [rsp + 0x3c], eax
lea ecx, [rsi + 0x38]
xor eax, eax
mov dword [rsp + 0x30], 0x30b0005
rep stosb byte [rdi], al
lea r14d, [rsi + 1]
mov dword [rsp + 0x34], InitCommonControls
lea rcx, str.367abb81_9844_35f1_ad32_98f038001003
mov dword [rsp + 0x38], 0x48
lea r12d, [rsi + 5]
mov qword [rsp + 0x40], 0x10001000
mov byte [rsp + 0x48], r14b
mov dword [rsp + 0x4c], 0x10000
mov dword [rsp + 0x74], 2
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003acb
lea rdx, [rsp + 0x64]
mov dword [rsp + 0x60], 2
lea rcx, str.8a885d04_1ceb_11c9_9fe8_08002b104860
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x140003acb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003acb
mov rcx, qword [rbx]
lea r9, [rbp + 0xfc0]
lea r8d, [rsi + 0x38]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003acb
add dword [rbx + 8], r14d
lea rdi, [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x20], rsi
mov ecx, r15d
lea r9, [rbp + 0xfb8]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rbp - 0x80]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003acb
cmp word [rbp - 0x80], r12w
jne 0x140003acb
cmp byte [rbp - 0x7e], 0xc
jne 0x140003acb
cmp byte [rbp - 0x7d], 3
jne 0x140003acb
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x140003acb
mov eax, 0x100
cmp word [rbp - 0x68], ax
ja 0x140003acb
movzx edx, word [rbp - 0x68]
lea rcx, [rdx + 5]
and rcx, 0xfffffffffffffffc
sub rcx, rdx
sub rcx, 2
mov ecx, ecx
add rcx, rdx
cmp dword [rbp + rcx - 0x66], r14d
jne 0x140003acb
cmp word [rbp + rcx - 0x62], si
jne 0x140003acb
mov eax, r14d
jmp 0x140003acd
xor eax, eax
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003aec
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.1400166e0
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov dword [rbp + 0xf70], esi
mov dword [rbp + 0xf80], esi
cmp dword [rcx + 0x10], esi
je 0x140003c86
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140003c86
xor eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 0x10]
mov ecx, r8d
lea rdi, [rsp + 0x30]
rep stosb byte [rdi], al
movzx eax, word [rbx + 0x814]
lea rdi, [rbp + 0xf88]
add ax, 0x18
mov dword [rsp + 0x30], 0x3000005
mov word [rsp + 0x38], ax
lea ecx, [rsi + 8]
mov eax, dword [rbx + 8]
lea r9, [rbp + 0xf70]
mov dword [rsp + 0x3c], eax
lea r14d, [rsi + 5]
xor eax, eax
mov dword [rsp + 0x34], r8d
rep stosb byte [rdi], al
mov rcx, qword [rbx]
mov word [rbp + 0xf8e], dx
lea rdx, [rsp + 0x30]
mov word [rsp + 0x3a], si
mov dword [rbp + 0xf88], esi
mov word [rbp + 0xf8c], si
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c86
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
lea r8d, [rsi + 8]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xf88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c86
mov r8d, dword [rbx + 0x814]
lea rdx, [rbx + 0x14]
mov rcx, qword [rbx]
lea r9, [rbp + 0xf70]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003c86
inc dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rsi
mov ecx, r8d
lea r9, [rbp + 0xf80]
xor eax, eax
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c86
cmp word [rsp + 0x40], r14w
jne 0x140003c86
cmp byte [rsp + 0x42], 2
jne 0x140003c86
cmp byte [rsp + 0x43], 3
jne 0x140003c86
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140003c86
cmp word [rsp + 0x54], si
jne 0x140003c86
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140003c86
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.140019b90
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140003c88
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005888
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
lea rax, [rsp + 0x78]
mov r9d, 0x24
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov ecx, 1
cmovne ecx, dword [rsp + 0x34]
mov eax, ecx
add rsp, 0x68
ret

Function at 0x1400058bc
Capabilities:
Start service

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 rdi, rcx
lea rdx, str.ServicesActive
xor ebx, ebx
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140005991
lea r8d, [rbx + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140005988
mov rcx, rax
call fcn.140005888
mov edi, eax
cmp eax, 4
je 0x14000597d
cmp eax, 6
je 0x14000592a
cmp eax, 3
jne 0x14000594e
mov ebp, 5
mov rcx, rsi
call fcn.140005888
mov edi, eax
cmp eax, 4
je 0x14000597d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xffffffff
jne 0x14000592f
cmp edi, 1
jne 0x14000597f
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14000597f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.140005888
cmp eax, 4
jne 0x14000597f
mov bl, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret