joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ffd8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180042460]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002002f
cmp word [rdx], r13w
jne 0x18002002f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180020034
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180020159
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002017a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002006d
mov rdx, r9
mov word [rbx], cx
jmp 0x180020094
cmp r9, r8
jae 0x1800200a4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002004e
jmp 0x180020159
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002014e
cmp dword [rsp + 0x80], esi
je 0x18002014e
lea r8, [0x180042460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180020126
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800200f6
mov word [rbx], r13w
jmp 0x180020156
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180020103
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180020156
cmp word [rsp + 0x70], r13w
jne 0x180020133
cmp rbx, r14
je 0x1800200f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180020c40
cmp word [rsp + 0x70], r13w
je 0x180020159
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180042460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180020153
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180020159
Function at 0x180023dec
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 0x180023e1c
xor eax, eax
jmp 0x180023edf
mov rbp, rbx
cmp word [rax], si
je 0x180023e41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180023e28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180023e24
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.1800224d0
movsxd r14, eax
test eax, eax
jne 0x180023e7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180023e15
mov rcx, r14
call fcn.18001a8bc
mov rdi, rax
test rax, rax
jne 0x180023e98
xor ecx, ecx
call fcn.180019bb4
jmp 0x180023e74
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.1800224d0
test eax, eax
jne 0x180023ec9
mov rcx, rdi
call fcn.180019bb4
jmp 0x180023ed3
xor ecx, ecx
call fcn.180019bb4
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 0x1800283cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18001c068
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18002846d
cmp ebx, dword [rsp + 0x30]
je 0x180028466
test esi, esi
je 0x180028466
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180028441
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002844e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002842b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180028452
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002846f
mov eax, 1
jmp 0x18002846f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18002ae90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002aeb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002aeb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800010d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, rcx
mov ecx, 0x201
mov eax, 2
mov r12, 0xffffffffffffffff
mov esi, 0x200
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov r8, qword [rbp + 8]
mov edx, esi
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea ecx, [rax + 2]
cmp ecx, esi
jb 0x180001170
nop dword [rax]
mov rcx, rdi
add esi, 0x200
call fcn.180016e6c
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov r8, qword [rbp + 8]
mov edx, esi
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
add eax, 2
cmp eax, esi
jae 0x180001130
mov rcx, rdi
call fcn.180016e6c
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret

Function at 0x1800011a0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x201
mov eax, 2
mov r12, 0xffffffffffffffff
mov edi, 0x200
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov r8, qword [rsi + 8]
mov edx, edi
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
add eax, 2
cmp eax, edi
jb 0x180001240
nop dword [rax]
mov rcx, rbp
add edi, 0x200
call fcn.180016e6c
lea ecx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov r8, qword [rsi + 8]
mov edx, edi
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
add eax, 2
cmp eax, edi
jae 0x180001200
mov rcx, rbp
call fcn.180016e6c
add ebx, 2
jne 0x180001251
xor eax, eax
jmp 0x1800012a2
lea edx, [rbx + 1]
mov eax, 2
mul rdx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov rdi, rax
test rax, rax
jne 0x18000127a
mov rcx, rsi
call fcn.1800010d0
jmp 0x180001289
mov r8, qword [rsi + 8]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov rcx, rdi
call fcn.1800013d0
xor ebx, ebx
mov rcx, rdi
test eax, eax
sete bl
call fcn.180016e6c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1800012c0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rbp, rcx
mov ecx, 0x201
mov rsi, rdx
mov eax, 2
mov r12, 0xffffffffffffffff
mov edi, 0x200
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
mov rcx, qword [rbp + 8]
test rsi, rsi
mov rbx, rax
mov qword [rsp + 0x28], rcx
lea rax, [0x180029ed8]
cmove rsi, rax
lea rdx, str.work_directory
lea rcx, str.basic
mov r9, rbx
mov r8, rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jb 0x1800013a5
nop word [rax + rax]
mov rcx, rbx
add edi, 0x200
call fcn.180016e6c
lea ecx, [rdi + 1]
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180016e64
lea rdx, str.work_directory
lea rcx, str.basic
mov rbx, rax
mov rax, qword [rbp + 8]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov r9, rbx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, edi
jae 0x180001350
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret
Function at 0x180013830
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov r15, r9
mov r12, r8
mov r14, rdx
mov rbx, rcx
cmp r8, 0xffffffffffffffff
jne 0x18001386e
mov dword [rcx + 0x10], edi
mov dword [rcx], 1
mov qword [rcx + 8], rdi
mov rax, rcx
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
xor edx, edx
mov rcx, r8
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], edi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test rsi, rsi
jns 0x18001389e
mov dword [rbx + 0x10], edi
mov dword [rbx], 2
mov qword [rbx + 8], rdi
jmp 0x180013952
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x88], r13
lea r13, [rsi + 1]
mov rcx, r13
call qword [0x1800334c0]
mov rbp, rax
test rax, rax
jne 0x1800138cf
mov dword [rbx + 0x10], edi
mov dword [rbx], 3
mov qword [rbx + 8], rdi
jmp 0x180013945
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x80]
mov rcx, rbp
cmp r11, rsi
je 0x180013910
call qword [0x1800334c8]
mov dword [rbx + 0x10], edi
mov dword [rbx], 2
mov qword [rbx + 8], rdi
jmp 0x180013945
mov rdx, rsi
call fcn.180012390
cmp eax, 1
jne 0x180013923
mov byte [rsi + rbp], dil
jmp 0x180013926
mov r13, rsi
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov r9, rbp
mov r8, r14
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.1800136e0
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret

Function at 0x1800154b0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x180031020]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.180018b30
xor edx, edx
lea r8, str.Global3E03F8F9_DB26_4111_AADB_8F7EFF68F7BD
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x18001559f
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
mov qword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x180015596
lea rcx, [rsp + 0x30]
mov r8, rax
mov edx, 0x104
call fcn.180018100
xor r11d, r11d
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], r11d
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18001558d
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x30]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18001558d
mov eax, 1
jmp 0x1800155a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180016630
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180018164
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x18001818e
call fcn.180018ab4
and dword [rax], 0
call fcn.180018a94
mov ebx, 0x16
mov dword [rax], ebx
call fcn.180018a2c
mov eax, ebx
jmp 0x1800181de
test edx, 0xfffffff9
jne 0x180018171
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800181b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180018ad4
call fcn.180018a94
mov eax, dword [rax]
jmp 0x1800181de
test al, 0x10
jne 0x1800181dc
test al, 1
je 0x1800181dc
test bl, 2
je 0x1800181dc
call fcn.180018ab4
mov dword [rax], 5
call fcn.180018a94
mov dword [rax], ntohl
jmp 0x1800181ae
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800185ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180031020]
jne 0x18001664a
rol rcx, 0x10
test cx, 0xffff
jne 0x180016646
repz ret
ror rcx, 0x10
jmp 0x180018558
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180033620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180033718]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800185dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180033620]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800185ff
mov rax, qword [rsp + 0x88]
mov qword [0x180033718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800336b8], rax
mov rax, qword [0x180033718]
mov qword [0x180033590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800336a0], rax
mov dword [0x180033580], 0xc0000409
mov dword [0x180033584], 1
mov rax, qword [0x180031020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180031028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180033618], eax
mov ecx, 1
call fcn.18001d50c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180027400]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180033618], 0
jne 0x180018686
mov ecx, 1
call fcn.18001d50c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180020c84
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180031020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180019978
xor ebx, ebx
cmp qword [0x1800345d8], rbx
mov rdi, rax
jne 0x180020d97
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180020e6e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180020e6e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800345d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800345e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800345e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800345f8], rax
test rax, rax
je 0x180020d8e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800345f0], rax
jmp 0x180020d9e
mov rax, qword [0x1800345f0]
jmp 0x180020da5
mov rax, qword [0x1800345f0]
mov r11, qword [0x1800345f8]
cmp rax, rdi
je 0x180020e0c
cmp r11, rdi
je 0x180020e0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800345f8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180020e0c
test rax, rax
je 0x180020e0c
call rsi
test rax, rax
je 0x180020e06
lea rcx, [rsp + 0x30]
mov r9d, ntohl
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180020e06
test byte [rsp + 0x40], 1
jne 0x180020e0c
bts ebp, 0x15
jmp 0x180020e4c
mov rcx, qword [0x1800345e0]
cmp rcx, rdi
je 0x180020e4c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180020e4c
call rax
mov rbx, rax
test rax, rax
je 0x180020e4c
mov rcx, qword [0x1800345e8]
cmp rcx, rdi
je 0x180020e4c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180020e4c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800345d8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180020e6e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180020e70
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180016630
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002730
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x50], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp rdi, 0xffffffffffffffff
je 0x14000295f
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140002956
mov r15d, eax
lea rdx, [rsp + 0x7c]
lea rcx, [rbp + 0x3f0]
call fcn.140006214
nop
xor r14b, r14b
mov rax, qword [rsi]
mov rbx, qword [rax]
jmp 0x14000280f
lea rcx, [rbx + 0x10]
lea rdx, [rbp + 0x3f8]
call fcn.140001cf0
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x14000293e
mov rcx, qword [rbp + 0x3f0]
call fcn.140159ed0
test eax, eax
sete r12b
mov rdx, qword [rbp + 0x3f8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002804
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test r12b, r12b
jne 0x14000281b
mov rbx, qword [rbx]
mov rax, qword [rsi]
cmp rbx, rax
mov qword [rsp + 0x20], rax
jne 0x1400027b4
jmp 0x14000281e
mov r14b, 1
test r14b, r14b
jne 0x140002906
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.14011d670
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140002881
mov dword [rbp + 0x3e8], 0x104
lea r9, [rbp + 0x3e8]
lea r8, [rbp + 0x190]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x3f0]
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x28]
call fcn.140006214
nop
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006214
nop
lea rdx, [0x14069df38]
lea rcx, [rsp + 0x38]
call fcn.140006214
nop
mov rbx, qword [rsi]
lea r9, [rsp + 0x28]
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.140009eb0
mov rcx, rax
mov rdx, qword [rsi + 8]
movabs rax, 0x666666666666665
sub rax, rdx
cmp rax, 1
jb 0x140002949
lea rax, [rdx + 1]
mov qword [rsi + 8], rax
mov qword [rbx + 8], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rcx
lea rcx, [rsp + 0x28]
call fcn.140002bac
nop
mov rdx, qword [rbp + 0x3f0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002927
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140002956
jmp 0x140002797
mov ecx, 0x80004005
call fcn.14000b9ec
nop
lea rcx, str.list_T__too_long
call fcn.1400bc800
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003338
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor ebx, ebx
mov rdx, rcx
mov rcx, rdi
lea r8d, [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003383
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
lea ecx, [rbx + 1]
cmovne ebx, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000371c
Capabilities:
Query service status

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x48], 0xfffffffffffffffe
xor dil, dil
and qword [rbp - 0x40], 0
and qword [rbp - 0x38], 0
xor r8d, r8d
xor edx, edx
call fcn.1400085b4
mov qword [rbp - 0x40], rax
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x140003763
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x30], rax
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x140003789
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rdx, [0x14069df38]
lea rcx, [rbp + 0x40]
call fcn.140006214
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
mov ecx, 1
call fcn.140002c20
test al, al
jne 0x1400037cb
xor dil, dil
jmp 0x14000383f
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14000383f
mov r8d, 4
mov rdx, qword [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003835
and dword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_41
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000382c
cmp dword [rbp - 0x2c], 4
sete dil
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140003861
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140003881
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
lea rcx, [rbp - 0x40]
call fcn.140007718
mov edx, 1
lea r8d, [rdx + 0x17]
mov rcx, qword [rbp - 0x40]
call fcn.14000ce04
mov al, dil
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret