joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a880
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x90], 0
je 0x18000a8d0
cmp dword [rsp + 0x98], 0x20
jg 0x18000a8d5
jmp 0x18000aa61
mov rax, qword [rsp + 0x90]
mov byte [rax], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18000a907
jmp 0x18000aa61
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x18000a930
jmp 0x18000aa61
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x18000a957
jmp 0x18000aa61
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18000a985
jmp 0x18000a98a
jmp 0x18000aa61
mov ecx, dword [rsp + 0x4c]
call fcn.18004f654
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000a9af
jmp 0x18000aa61
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8, qword [rsp + 0x30]
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18000aa4d
mov eax, dword [rsp + 0x98]
add eax, 1
cdq
sub eax, edx
sar eax, 1
cmp dword [rsp + 0x4c], eax
jb 0x18000a9ec
jmp 0x18000aa61
mov dword [rsp + 0x50], 0
jmp 0x18000aa01
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x50], eax
jae 0x18000aa4b
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
movzx r9d, byte [rax + rcx]
mov ecx, dword [rsp + 0x50]
shl ecx, 1
mov eax, dword [rsp + 0x98]
sub eax, ecx
mov edx, eax
mov eax, dword [rsp + 0x50]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x90]
add rcx, rax
lea r8, [0x180074e44]
call fcn.180050654
jmp 0x18000a9f6
jmp 0x18000aa4f
jmp 0x18000aa61
mov dword [rsp + 0x48], 1
xor eax, eax
test eax, eax
jne 0x18000a8bb
cmp qword [rsp + 0x30], 0
je 0x18000aa7d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18004f750
cmp qword [rsp + 0x38], 0
je 0x18000aa90
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x40], 0
je 0x18000aaa5
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x18000ab10
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4d0
mov qword [rsp + 0x4a0], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
cmp qword [rsp + 0x4e8], 0
je 0x18000ab5a
cmp dword [rsp + 0x4f0], 0
jne 0x18000ab61
xor eax, eax
jmp 0x18000add2
xor ecx, ecx
mov rax, qword [rsp + 0x4e8]
mov word [rax], cx
mov eax, dword [0x1800a0520]
and eax, 1
test eax, eax
jne 0x18000abae
mov eax, dword [0x1800a0520]
or eax, 1
mov dword [0x1800a0520], eax
lea rcx, [0x180074e70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x180074e50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800a0518], rax
cmp qword [0x1800a0518], 0
je 0x18000abe2
mov eax, dword [rsp + 0x4f0]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x20]
mov r8, qword [rsp + 0x4e8]
xor edx, edx
mov rcx, qword [rsp + 0x4e0]
call qword [0x1800a0518]
jmp 0x18000ac05
mov r9d, dword [rsp + 0x4f0]
mov r8, qword [rsp + 0x4e8]
xor edx, edx
mov rcx, qword [rsp + 0x4e0]
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [rsp + 0x24], eax
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x4e8]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test rcx, rcx
je 0x18000ac3b
mov rcx, qword [rsp + 0x4e8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000adcd
mov rcx, qword [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rsp + 0x480], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
lea rdi, [rsp + 0x44]
xor eax, eax
mov ecx, 0x434
rep stosb byte [rdi], al
mov edx, dword [rsp + 0x480]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x18000adcd
cmp qword [rsp + 0x28], 0
je 0x18000adcd
mov dword [rsp + 0x40], 0x438
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x18000adc2
lea rcx, [rsp + 0x488]
call fcn.180001700
nop
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x488]
call fcn.1800017e0
mov r8d, 3
lea rdx, [rsp + 0x498]
lea rcx, [rsp + 0x488]
call fcn.180002d00
mov qword [rsp + 0x4a8], rax
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x4b0], rax
lea rdx, [0x180074e90]
mov rcx, qword [rsp + 0x4b0]
call fcn.180002c80
test eax, eax
jne 0x18000ad37
mov dword [rsp + 0x4b8], 1
jmp 0x18000ad42
mov dword [rsp + 0x4b8], 0
movzx eax, byte [rsp + 0x4b8]
mov byte [rsp + 0x490], al
lea rcx, [rsp + 0x498]
call fcn.1800017c0
movzx edx, byte [rsp + 0x490]
test edx, edx
je 0x18000ad9e
lea rcx, [rsp + 0x488]
call fcn.18000b4f0
mov edx, dword [rsp + 0x4f0]
mov r8, rax
mov rcx, qword [rsp + 0x4e8]
call fcn.180050678
nop
lea rcx, [rsp + 0x488]
call fcn.1800017c0
jmp 0x18000adc2
lea rcx, [rsp + 0x488]
call fcn.1800017c0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x18000acbc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x4d0
pop rdi
ret
Function at 0x18000d6f0
Capabilities:
Patch process command line

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2380
call fcn.180061240
sub rsp, rax
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x2370], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x68], 0
lea rcx, [0x180074c30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x180074c10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18000d998
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x2390]
call qword [rsp + 0x68]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x88], 0
jl 0x18000d998
mov rcx, qword [rsp + 0x23a8]
mov eax, dword [rsp + 0x60]
mov dword [rcx], eax
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x110]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x2390]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18000d822
mov eax, dword [rsp + 0x30]
jmp 0x18000d99c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x2390]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18000d85d
mov eax, dword [rsp + 0x30]
jmp 0x18000d99c
xor eax, eax
mov word [rsp + 0x2150], ax
lea rdi, [rsp + 0x2152]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
movzx eax, word [rsp + 0xf0]
cmp rax, 0x208
jae 0x18000d89a
movzx eax, word [rsp + 0xf0]
mov qword [rsp + 0x2360], rax
jmp 0x18000d8a6
mov qword [rsp + 0x2360], 0x208
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2360]
lea r8, [rsp + 0x2150]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x2390]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18000d8e3
mov eax, dword [rsp + 0x30]
jmp 0x18000d99c
lea rdx, [rsp + 0x2150]
mov rcx, qword [rsp + 0x2398]
call fcn.1800017e0
xor edx, edx
mov word [rsp + 0x140], dx
lea rdi, [rsp + 0x142]
xor eax, eax
mov ecx, 0x2000
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x100]
cmp rax, 0x2000
jae 0x18000d935
movzx eax, word [rsp + 0x100]
mov qword [rsp + 0x2368], rax
jmp 0x18000d941
mov qword [rsp + 0x2368], 0x2000
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2368]
lea r8, [rsp + 0x140]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x2390]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18000d97b
mov eax, dword [rsp + 0x30]
jmp 0x18000d99c
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x23a0]
call fcn.1800017e0
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x2370]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x2380
pop rdi
ret
Function at 0x18000d9c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x18000d9d3
jmp 0x18000da13
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000da08
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x20]
jmp 0x18000da13
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
add rsp, 0x38
ret

Function at 0x18000e820
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18000e888
xor eax, eax
jmp 0x18000e99c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x18000e8c0
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x18000e99c
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x18000e901
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
jmp 0x18000e99c
mov dword [rsp + 0x40], 0x14
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18000e97b
mov dword [rsp + 0x68], 0
jmp 0x18000e944
mov eax, dword [rsp + 0x68]
add eax, 1
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x68], eax
jae 0x18000e979
mov eax, dword [rsp + 0x68]
movzx r8d, byte [rsp + rax + 0x50]
mov eax, dword [rsp + 0x68]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x98]
add rcx, rax
lea rdx, [0x180074af8]
call fcn.1800505b8
jmp 0x18000e939
jmp 0x18000e97f
xor eax, eax
jmp 0x18000e99c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x88
ret
Function at 0x18000edf0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000ef86
mov dword [rsp + 0x30], 0
jmp 0x18000ee58
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jge 0x18000ef7b
lea rcx, [rsp + 0x38]
call fcn.180001700
nop
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call fcn.18000c5d0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800017e0
lea rdx, [0x180073008]
lea rcx, [rsp + 0x38]
call fcn.180002c80
test eax, eax
jne 0x18000eeda
mov eax, dword [rsp + 0x30]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x18000eeda
mov eax, dword [rsp + 0x30]
add eax, 1
cdqe
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x68]
call fcn.1800017e0
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rdx, [0x180073010]
lea rcx, [rsp + 0x38]
call fcn.180002c80
test eax, eax
jne 0x18000ef23
mov eax, dword [rsp + 0x30]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x18000ef23
mov eax, dword [rsp + 0x30]
add eax, 1
cdqe
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x70]
call fcn.1800017e0
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rdx, [0x180073018]
lea rcx, [rsp + 0x38]
call fcn.180002c80
test eax, eax
jne 0x18000ef6c
mov eax, dword [rsp + 0x30]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x18000ef6c
mov eax, dword [rsp + 0x30]
add eax, 1
cdqe
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x78]
call fcn.1800017e0
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x38]
call fcn.1800017c0
jmp 0x18000ee4d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x58
ret
Function at 0x18000f210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1088
call fcn.180061240
sub rsp, rax
mov qword [rsp + 0x1068], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov dword [rsp + 0x1060], 0
lea rcx, [rsp + 0x48]
call fcn.180001700
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x1098]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x18000f2f9
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0xffa
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000f2ee
cmp dword [rsp + 0x50], 0
je 0x18000f2ee
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0x60], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.18001cb50
jmp 0x18000f2a5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x1090]
call fcn.18000b400
mov eax, dword [rsp + 0x1060]
or eax, 1
mov dword [rsp + 0x1060], eax
lea rcx, [rsp + 0x48]
call fcn.1800017c0
mov rax, qword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x1088
ret
Function at 0x18000fbe0
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x180084090]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x30], 0x90
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0x3a98
mov ecx, dword [rsp + 0x50]
call fcn.18004f7d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18000fc60
jmp 0x18000fde0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
xor r8d, r8d
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x48]
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x6f
jne 0x18000fc9f
mov rcx, qword [rsp + 0x38]
call fcn.18004f790
mov qword [rsp + 0x38], 0
jmp 0x18000fca1
jmp 0x18000fca8
cmp dword [rsp + 0x4c], 0x6f
je 0x18000fc45
cmp dword [rsp + 0x4c], 0
jne 0x18000fdc5
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18000fdc5
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x64], 6
je 0x18000fce3
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x64], 0x47
jne 0x18000fdb2
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18000fdb2
mov byte [rsp + 0x70], 0
lea rdi, [rsp + 0x71]
xor eax, eax
mov ecx, 0x81
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x10]
movzx eax, word [rax]
cmp eax, 2
jne 0x18000fd43
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + 0x10]
add rdx, 4
mov r9d, 0x82
lea r8, [rsp + 0x70]
mov ecx, 2
call sub.WS2_32.dll_inet_ntop
lea rcx, [rsp + 0x60]
call fcn.180001700
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.18000b890
lea rcx, [rsp + 0x60]
call fcn.18000b500
test eax, eax
jle 0x18000fd95
lea rdx, str.127.0.0.1
lea rcx, [rsp + 0x60]
call fcn.18001ced0
movzx eax, al
test eax, eax
je 0x18000fd95
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call fcn.18001db70
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.1800017c0
jmp 0x18000fcf1
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov qword [rsp + 0x40], rax
jmp 0x18000fcbd
cmp qword [rsp + 0x38], 0
je 0x18000fde0
mov rcx, qword [rsp + 0x38]
call fcn.18004f790
mov qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.18004f770
add rsp, 0x110
pop rdi
ret
Function at 0x180018bb0
Capabilities:
Modify service
Start service

Disassembly:
sub rsp, 0xa8
mov dword [rsp + 0x60], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180018d72
mov r8d, 0xf01ff
lea rdx, str.UxSms
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x180018d67
mov dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x180018d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180018d48
mov ecx, dword [rsp + 0x78]
call fcn.18004f654
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x180018d2b
mov rax, qword [rsp + 0x80]
cmp dword [rax + 4], 4
jne 0x180018d2b
mov rcx, qword [rsp + 0x80]
add rcx, 0x20
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov r9d, dword [rax + 8]
mov r8d, 2
mov rax, qword [rsp + 0x80]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.18004f750
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x60]
add rsp, 0xa8
ret
Function at 0x180018f70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x2c
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdx, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rdx
xor eax, eax
cmp eax, 1
je 0x1800190c5
lea rdi, [rsp + 0x60]
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x90], 0
mov r8d, 0x30
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jne 0x180019015
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
jmp 0x1800190c5
mov eax, dword [rsp + 0x90]
cmp rax, 0x30
je 0x180019027
jmp 0x1800190c5
cmp qword [rsp + 0x78], 0
jg 0x180019034
jmp 0x1800190c5
cmp dword [rsp + 0x80], 0x10000
jne 0x1800190ae
mov eax, dword [rsp + 0xb8]
cmp qword [rsp + 0x78], rax
jb 0x1800190ae
mov eax, dword [rsp + 0x58]
cmp qword [rsp + 0x78], rax
jb 0x1800190ae
mov eax, dword [rsp + 0x58]
sub eax, 1
mov ecx, eax
mov rax, qword [rsp + 0x20]
add rax, rcx
mov ecx, dword [rsp + 0x58]
xor edx, edx
div rcx
mov ecx, dword [rsp + 0x58]
imul rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0xb8]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800190ae
jmp 0x1800190c5
mov rcx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x180018fb8
mov rax, qword [rsp + 0x28]
add rsp, 0xa0
pop rdi
ret
Function at 0x18001abf0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001ad6d
mov dword [rsp + 0x30], 0
jmp 0x18001ac53
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jge 0x18001ad62
lea rcx, [rsp + 0x38]
call fcn.180001700
nop
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call fcn.18000c5d0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800017e0
lea rdx, [0x180074558]
lea rcx, [rsp + 0x38]
call fcn.180002c80
test eax, eax
jne 0x18001acdb
mov eax, dword [rsp + 0x30]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x18001acdb
mov eax, dword [rsp + 0x30]
add eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call fcn.18004ff68
mov r11d, eax
mov rax, qword [rsp + 0x78]
mov dword [rax], r11d
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rdx, [0x1800745a4]
lea rcx, [rsp + 0x38]
call fcn.180002c80
test eax, eax
jne 0x18001ad53
mov eax, dword [rsp + 0x30]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x18001ad53
mov eax, dword [rsp + 0x30]
add eax, 1
cdqe
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + rax*8]
lea rcx, [rsp + 0x40]
call fcn.180041660
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call fcn.180002bf0
nop
lea rcx, [rsp + 0x40]
call fcn.1800017c0
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x38]
call fcn.1800017c0
jmp 0x18001ac48
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x68
ret