joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012e1a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006e8c5
sub rsp, rax
mov rax, qword [0x140189008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018ba40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012e392
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14012e2e6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14012e2e6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14012e2cb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14012e268
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012e352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012e3b1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14012e38d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012e3b1
jmp 0x14012e23e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14006f7c5
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14012e460
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006e8c5
sub rsp, rax
mov rax, qword [0x140189008]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14018ba40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012e66d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14012e5b9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14012e5b9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14012e599
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14012e528
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14012e62d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012e68c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14012e668
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14012e68c
jmp 0x14012e4fe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14006f7c5
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001908
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 0x140001940
mov ecx, dword [rax + r8 + 0x88]
jmp 0x140001945
mov ecx, dword [rax + r8 + 0x78]
mov r9d, ecx
xor r10d, r10d
mov r14d, dword [r9 + r8 + 0x20]
mov esi, dword [r9 + r8 + 0x24]
add r14, r8
mov ecx, dword [r9 + r8 + 0x18]
add rsi, r8
dec ecx
lea ebx, [rcx + r10]
shr ebx, 1
mov edx, dword [r14 + rbx*4]
add rdx, r8
cmp rbp, rdx
je 0x1400019b2
test rbp, rbp
je 0x1400019aa
test rdx, rdx
je 0x1400019a4
mov rax, rbp
sub rax, rdx
movsx r11d, byte [rax + rdx]
movsx edi, byte [rdx]
inc rdx
test r11b, r11b
je 0x140001999
cmp r11b, dil
je 0x140001984
mov edx, r11d
sub edx, edi
js 0x1400019aa
test edx, edx
jle 0x1400019b2
lea r10d, [rbx + 1]
jmp 0x1400019ad
lea ecx, [rbx - 1]
cmp ecx, r10d
jae 0x140001962
cmp ecx, r10d
jb 0x1400019d6
movzx eax, word [rsi + rbx*2]
cmp eax, dword [r9 + r8 + 0x14]
jae 0x1400019d6
mov eax, dword [r9 + r8 + 0x1c]
movzx ecx, word [rsi + rbx*2]
add rax, r8
mov eax, dword [rax + rcx*4]
add rax, r8
jmp 0x1400019d8
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 0x140001d58
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 0x140001da8
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.1400104b0
test eax, eax
jne 0x140001f8a
lea edx, [rax + 0x70]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.RPCRT4.dll_RpcAsyncInitializeHandle]
mov edi, eax
test eax, eax
jne 0x140001e47
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 0x140001e47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x140001f8a
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, [0x140022e62]
lea rcx, [0x140022dc0]
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 0x140001ef2
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 0x140001f52
cmp qword [rsp + 0x198], 0
jne 0x140001f52
test rbx, rbx
je 0x140001f47
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 0x140001f6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xd0], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
jmp 0x140001f8a
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 0x140002750
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 0x14000278b
mov eax, r12d
jmp 0x1400027a1
cmp word [rcx], r12w
je 0x14000279b
add rax, 2
cmp word [rax], r12w
jne 0x140002791
sub rax, rbx
sar rax, 1
lea r13, [0x140026658]
mov rcx, r13
add rcx, 2
cmp word [rcx], r12w
jne 0x1400027ab
sub rcx, r13
mov edx, 8
sar rcx, 1
lea rdi, [rcx + 2]
mov rcx, qword [0x14002ea10]
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 0x140002881
mov rdx, rbx
mov rcx, rax
call fcn.140001af0
mov r8, rdi
mov rdx, r13
call fcn.1400105f4
lea rdx, [rsp + 0x270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov r13d, 1
cmp rax, 0xffffffffffffffff
je 0x140002858
mov r8, r15
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.140002998
test eax, eax
jne 0x14000284c
lea rdx, [rsp + 0x270]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000284f
jmp 0x14000281e
mov ebp, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002ea10]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebp, ebp
je 0x14000287a
mov eax, r13d
jmp 0x140002976
lea r13, [0x140026658]
mov rax, rbx
test rbx, rbx
jne 0x14000288e
mov rax, r12
jmp 0x1400028a4
cmp word [rbx], r12w
je 0x14000289e
add rax, 2
cmp word [rax], r12w
jne 0x140002894
sub rax, rbx
sar rax, 1
mov rcx, qword [0x14002ea10]
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 0x140002976
mov rdx, rbx
mov rcx, rdi
call fcn.140001af0
mov r8, rsi
lea rdx, [0x1400263a8]
call fcn.1400105f4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000295d
test byte [rsp + 0x20], 0x10
je 0x140002942
cmp word [rsp + 0x4c], 0x2e
je 0x140002942
mov rdx, rbx
mov rcx, rdi
call fcn.140001af0
lea rdx, [rsp + 0x4c]
call fcn.140001ab4
lea r8, [fcn.140002998]
mov rdx, r13
mov rcx, rdi
mov r9, r15
call fcn.140002750
mov r14d, eax
test eax, eax
jne 0x140002954
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002902
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x14002ea10]
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 0x140003158
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 0x140003190
cmp dword [rcx], 0x55504355
je 0x140003190
cmp dword [rcx], 0x43504355
je 0x140003190
cmp dword [rcx], 0x4b504355
je 0x140003190
xor eax, eax
jmp 0x1400031e3
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 0x1400031b0
xor eax, eax
jmp 0x1400031e3
mov eax, dword [rdi + 4]
test eax, eax
je 0x1400031dd
mov ecx, dword [rdi + 8]
test ecx, ecx
je 0x1400031dd
cmp eax, esi
jbe 0x1400031c6
xor eax, eax
jmp 0x1400031e3
cmp ecx, esi
jbe 0x1400031ce
xor eax, eax
jmp 0x1400031e3
cmp ecx, eax
jbe 0x1400031d6
xor eax, eax
jmp 0x1400031e3
mov eax, 1
jmp 0x1400031e3
xor eax, eax
jmp 0x1400031e3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003928
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.140017220
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 0x140003ad7
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 0x140003ad7
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 0x140003ad7
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 0x140003ad7
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 0x140003ad7
cmp word [rbp - 0x80], r12w
jne 0x140003ad7
cmp byte [rbp - 0x7e], 0xc
jne 0x140003ad7
cmp byte [rbp - 0x7d], 3
jne 0x140003ad7
movzx eax, word [rbp - 0x78]
cmp eax, dword [rbp + 0xfb8]
jne 0x140003ad7
mov eax, 0x100
cmp word [rbp - 0x68], ax
ja 0x140003ad7
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 0x140003ad7
cmp word [rbp + rcx - 0x62], si
jne 0x140003ad7
mov eax, r14d
jmp 0x140003ad9
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 0x140003af8
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.140017220
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 0x140003c93
mov dword [rcx + 0x10], esi
cmp dword [rcx + 0xc], esi
jne 0x140003c93
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 0x140003c93
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 0x140003c93
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 0x140003c93
inc dword [rbx + 8]
lea rdi, [rsp + 0x40]
mov edx, 0x1000
mov qword [rsp + 0x20], rsi
mov ecx, edx
lea r9, [rbp + 0xf80]
xor eax, eax
mov r8d, edx
rep stosb byte [rdi], al
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c93
cmp word [rsp + 0x40], r14w
jne 0x140003c93
cmp byte [rsp + 0x42], 2
jne 0x140003c93
cmp byte [rsp + 0x43], 3
jne 0x140003c93
movzx edi, word [rsp + 0x48]
cmp edi, dword [rbp + 0xf80]
jne 0x140003c93
cmp word [rsp + 0x54], si
jne 0x140003c93
add edi, 0xffffffe8
cmp edi, 0x800
ja 0x140003c93
mov r8d, edi
lea rcx, [rbx + 0x818]
lea rdx, [rsp + 0x58]
call fcn.140014fb0
lea eax, [rsi + 1]
mov dword [rbx + 0x1018], edi
jmp 0x140003c95
xor eax, eax
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400058e4
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 0x140005918
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 0x1400059ed
lea r8d, [rbx + 0x14]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400059e4
mov rcx, rax
call fcn.1400058e4
mov edi, eax
cmp eax, 4
je 0x1400059d9
cmp eax, 6
je 0x140005986
cmp eax, 3
jne 0x1400059aa
mov ebp, 5
mov rcx, rsi
call fcn.1400058e4
mov edi, eax
cmp eax, 4
je 0x1400059d9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 0xffffffff
jne 0x14000598b
cmp edi, 1
jne 0x1400059db
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400059db
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400058e4
cmp eax, 4
jne 0x1400059db
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
Function at 0x140005a0c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rdi, rcx
lea rdx, [rbp + 0x180]
xor ebx, ebx
xor ecx, ecx
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x178], rbx
call fcn.14000f988
test eax, eax
js 0x140005bbf
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, str.ms_windows_store
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005ac0
mov rcx, qword [rbp + 0x178]
lea r9d, [rbx + 1]
mov dword [rsp + 0x28], ebx
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ms_windows_store
lea rcx, [rsp + 0x50]
call fcn.140001af0
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001ab4
lea rdx, [0x140026570]
lea rcx, [rsp + 0x50]
call fcn.140001ab4
lea rdx, str.command
lea rcx, [rsp + 0x50]
call fcn.140001ab4
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x178]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005bab
mov rax, rdi
test rdi, rdi
jne 0x140005b4f
mov rax, rbx
jmp 0x140005b63
cmp word [rdi], bx
je 0x140005b5d
add rax, 2
cmp word [rax], bx
jne 0x140005b54
sub rax, rdi
sar rax, 1
mov rcx, qword [rbp + 0x178]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140026728]
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x178]
sub ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xc000014d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005bb0
mov ebx, 0xc000014d
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret