joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0xcc], 4
mov qword [rsp + 0xc0], 0
movzx r8d, byte [rsp + 0x30]
lea rdx, [0x1402a47a0]
lea rcx, [rsp + 0x60]
call fcn.140014880
mov rcx, rax
call fcn.140012b80
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140012aef
xor eax, eax
jmp 0x140012b63
movzx r8d, byte [rsp + 0x31]
lea rdx, [0x1402a4800]
lea rcx, [rsp + 0x40]
call fcn.140014f20
mov rcx, rax
call fcn.140012c20
lea rcx, [rsp + 0xcc]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 0
je 0x140012b5c
xor eax, eax
jmp 0x140012b63
mov eax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14013a450
add rsp, 0xe8
ret
Function at 0x140012e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x210], rax
cmp qword [rsp + 0x230], 0
je 0x140012e62
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x230]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x140012e69
xor eax, eax
jmp 0x1400130ac
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140012ea4
xor eax, eax
jmp 0x1400130ac
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140012f1d
mov dword [rsp + 0x80], 0x64
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0
jmp 0x140012f39
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x60], eax
jae 0x14001309d
mov r9d, dword [rsp + 0x60]
lea r8, [0x1402a48d0]
mov edx, gethostbyname
lea rcx, [rsp + 0x90]
call fcn.140015100
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140012f9d
jmp 0x140012f2f
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x84], 0x104
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140012ffe
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012f2f
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140013028
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012f2f
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x84], 4
lea rax, [rsp + 0x84]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [0x1402a48e0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x68], 0
jne 0x140013098
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x64], eax
jmp 0x14001309d
jmp 0x140012f2f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x228
ret
Function at 0x140013220
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x90]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x54], 0
lea rdx, [rsp + 0x54]
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
je 0x14001326c
xor eax, eax
jmp 0x14001344b
mov eax, dword [rsp + 0x54]
mov ecx, eax
call fcn.140221c10
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14001328b
xor eax, eax
jmp 0x14001344b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x1400132ba
mov rcx, qword [rsp + 0x48]
call fcn.140226d80
xor eax, eax
jmp 0x14001344b
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x28], 0
je 0x14001343d
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x194], 6
jb 0x14001342b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x194], 8
ja 0x14001342b
mov rax, qword [rsp + 0x28]
add rax, 0xc
mov rcx, rax
call fcn.140012e20
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
and eax, 4
cmp eax, 4
jne 0x140013325
mov dword [rsp + 0x38], 1
jmp 0x14001332d
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
cmp dword [rsp + 0x34], 0
je 0x140013358
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140013358
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x1400132ca
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14001339a
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1a4]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 6
je 0x140013388
cmp dword [rsp + 0x3c], 0x47
je 0x140013392
jmp 0x14001339a
mov dword [rsp + 0x30], 3
jmp 0x14001339a
mov dword [rsp + 0x30], 2
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jge 0x14001342b
mov rax, qword [rsp + 0x28]
add rax, 0xc
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400130d0
test eax, eax
je 0x1400133d4
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
jmp 0x14001340b
mov rdi, qword [rsp + 0x90]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x194]
mov rcx, qword [rsp + 0x28]
add rcx, 0x198
mov rdi, qword [rsp + 0x90]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x194]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 3
jne 0x14001342b
jmp 0x14001343d
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x1400132ca
mov rcx, qword [rsp + 0x48]
call fcn.140226d80
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x140013810
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.14000f250
nop
mov qword [rsp + 0x48], 0xffffffff80000002
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x1402a49b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400138b6
lea rdx, [0x1402a4614]
mov rcx, qword [rsp + 0x90]
call fcn.14000f200
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.14000f150
mov rax, qword [rsp + 0x90]
jmp 0x14001394c
mov dword [rsp + 0x50], 0x400
mov eax, dword [rsp + 0x50]
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14000f040
mov dword [rsp + 0x54], 1
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14000f0e0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, [0x1402a40bc]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.14000f180
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.14000f150
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x88
ret
Function at 0x140013970
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov dword [rsp + 0x20], 0
lea rdx, [0x1402a401a]
lea rcx, [rsp + 0xa8]
call fcn.14000f200
nop
mov edx, Ordinal_26
lea rcx, [rsp + 0x90]
call fcn.140004bc0
mov edx, 6
lea rcx, [rsp + 0x90]
call fcn.14006e7e0
nop
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140013a3b
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x370]
call fcn.14006eb80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.14006eef0
nop
lea rcx, [rsp + 0xa8]
call fcn.14000f150
mov rax, qword [rsp + 0x370]
jmp 0x140013bfa
mov dword [rsp + 0x110], 0x238
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140013ab0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x370]
call fcn.14006eb80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
call fcn.14006eef0
nop
lea rcx, [rsp + 0xa8]
call fcn.14000f150
mov rax, qword [rsp + 0x370]
jmp 0x140013bfa
mov dword [rsp + 0x24], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x13c]
mov rcx, qword [rsp + 0x38]
call fcn.14000ab90
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xc8]
call fcn.14000d1e0
nop
xor r8d, r8d
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xa8]
call fcn.140013d60
cmp rax, 0xffffffffffffffff
jne 0x140013b60
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x58]
call fcn.14006ea90
nop
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.14006f9c0
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call fcn.14006f080
nop
lea rcx, [rsp + 0x58]
call fcn.14006eef0
nop
lea rcx, [rsp + 0xc8]
call fcn.14000f150
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140013ab8
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x90]
call fcn.1400705d0
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x370]
call fcn.14006eb80
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0xe8]
call fcn.14000f150
nop
lea rcx, [rsp + 0x90]
call fcn.14006eef0
nop
lea rcx, [rsp + 0xa8]
call fcn.14000f150
mov rax, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x368
ret
Function at 0x140013c20
Capabilities:
Query service status

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r8d, 0xf003f
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140013cbf
mov r8d, 0xf01ff
lea rdx, str.PrinterM
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140013cb4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140013ca9
mov eax, dword [rsp + 0x4c]
jmp 0x140013cc4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x88
ret

Function at 0x140015880
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov edx, 0x88
lea rcx, [rsp + 0x40]
call fcn.140004bc0
lea rcx, [rsp + 0x40]
call fcn.1400ce610
nop
mov dword [rsp + 0x28], 0
xor r9d, r9d
mov r8d, 0x27
lea rdx, [rsp + 0xd0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140015936
mov r8d, 0xffffffff
lea rdx, [0x1402a40cc]
mov rcx, qword [rsp + 0x300]
call fcn.1400ce5e8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.1400ce724
mov rax, qword [rsp + 0x300]
jmp 0x1400159ac
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.1400ce80c
mov dx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1400cf5d0
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
call fcn.1400cee88
dec eax
cmp dword [rsp + 0x28], eax
je 0x14001597d
lea rdx, [0x1402a411c]
lea rcx, [rsp + 0x40]
call fcn.1400ce980
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x300]
call fcn.1400ce5b8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x40]
call fcn.1400ce724
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x2f8
ret
Function at 0x140016480
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, 0xffffffff
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.1400ce5e8
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x250
pop rdi
ret

Function at 0x1400168d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x338
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov edx, 0x88
lea rcx, [rsp + 0x200]
call fcn.140004bc0
lea rcx, [rsp + 0x200]
call fcn.1400ce610
nop
mov edx, 0x88
lea rcx, [rsp + 0x290]
call fcn.140004bc0
lea rcx, [rsp + 0x290]
call fcn.1400ce610
nop
mov edx, 0x88
lea rcx, [rsp + 0x170]
call fcn.140004bc0
lea rcx, [rsp + 0x170]
call fcn.1400ce610
nop
mov rdx, qword [rsp + 0x340]
lea rcx, [rsp + 0x170]
call fcn.1400ce80c
lea rcx, [rsp + 0x170]
call fcn.1400cf128
movzx eax, al
test eax, eax
je 0x1400169b8
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x170]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x290]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x200]
call fcn.1400ce724
movzx eax, byte [rsp + 0x20]
jmp 0x140016b0d
xor eax, eax
cmp eax, 1
je 0x140016ada
xor r8d, r8d
lea rdx, [0x1402a53d4]
lea rcx, [rsp + 0x170]
call fcn.1400cec14
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140016a85
mov eax, dword [rsp + 0x24]
inc eax
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x170]
call fcn.1400cf168
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x200]
call fcn.1400ce958
nop
lea rcx, [rsp + 0x50]
call fcn.1400ce724
mov eax, dword [rsp + 0x24]
inc eax
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x170]
call fcn.1400cf1c4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x170]
call fcn.1400ce7e0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400ce724
jmp 0x140016aa7
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x200]
call fcn.1400ce958
lea rcx, [rsp + 0x170]
call fcn.1400cebb8
lea rcx, [rsp + 0x200]
call fcn.1400ce874
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x170]
call fcn.1400cf128
movzx eax, al
test eax, eax
je 0x140016ad5
jmp 0x140016ada
jmp 0x1400169b8
mov byte [rsp + 0x21], 1
lea rcx, [rsp + 0x170]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x290]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x200]
call fcn.1400ce724
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x338
ret
Function at 0x140016b30
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3d8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov edx, 0x88
lea rcx, [rsp + 0x2a0]
call fcn.140004bc0
lea rcx, [rsp + 0x2a0]
call fcn.1400ce610
nop
mov edx, 0x88
lea rcx, [rsp + 0x330]
call fcn.140004bc0
lea rcx, [rsp + 0x330]
call fcn.1400ce610
nop
mov edx, 0x88
lea rcx, [rsp + 0x210]
call fcn.140004bc0
lea rcx, [rsp + 0x210]
call fcn.1400ce610
nop
mov rdx, qword [rsp + 0x3e0]
lea rcx, [rsp + 0x210]
call fcn.1400ce80c
lea rcx, [rsp + 0x210]
call fcn.1400cf128
movzx eax, al
test eax, eax
je 0x140016c18
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x210]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x330]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400ce724
movzx eax, byte [rsp + 0x20]
jmp 0x140016e0e
mov dx, 0x5c
lea rcx, [rsp + 0x210]
call fcn.1400cf5d0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x140016c6c
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x210]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x330]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400ce724
movzx eax, byte [rsp + 0x21]
jmp 0x140016e0e
mov eax, dword [rsp + 0x24]
inc eax
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x210]
call fcn.1400cf168
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x210]
call fcn.1400ce7e0
nop
lea rcx, [rsp + 0x60]
call fcn.1400ce724
xor eax, eax
cmp eax, 1
je 0x140016ddb
xor r8d, r8d
lea rdx, [0x1402a5404]
lea rcx, [rsp + 0x210]
call fcn.1400cec14
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140016d86
mov eax, dword [rsp + 0x24]
inc eax
mov r8d, eax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x210]
call fcn.1400cf168
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
call fcn.1400ce958
nop
lea rcx, [rsp + 0xf0]
call fcn.1400ce724
mov eax, dword [rsp + 0x24]
inc eax
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x210]
call fcn.1400cf1c4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x210]
call fcn.1400ce7e0
nop
lea rcx, [rsp + 0x180]
call fcn.1400ce724
jmp 0x140016da8
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x2a0]
call fcn.1400ce958
lea rcx, [rsp + 0x210]
call fcn.1400cebb8
lea rcx, [rsp + 0x2a0]
call fcn.1400ce874
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x210]
call fcn.1400cf128
movzx eax, al
test eax, eax
je 0x140016dd6
jmp 0x140016ddb
jmp 0x140016cb3
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x210]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x330]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x2a0]
call fcn.1400ce724
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x3d8
ret
Function at 0x140018790
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call fcn.1400051a0
nop
mov edx, 0x88
lea rcx, [rsp + 0x50]
call fcn.140004bc0
lea rcx, [rsp + 0x50]
call fcn.1400ce610
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x110], 0x11c
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140018857
xor edx, edx
mov rcx, qword [rsp + 0x250]
call fcn.14000ab90
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x30]
call fcn.1400050f0
mov rax, qword [rsp + 0x250]
jmp 0x1400188ba
mov r9d, dword [rsp + 0x118]
mov r8d, dword [rsp + 0x114]
lea rdx, str._d._d
lea rcx, [rsp + 0x50]
call fcn.1400ceddc
lea rcx, [rsp + 0x50]
call fcn.1400ce874
mov rdx, rax
mov rcx, qword [rsp + 0x250]
call fcn.14000ab90
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.1400ce724
nop
lea rcx, [rsp + 0x30]
call fcn.1400050f0
mov rax, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x248
ret

Function at 0x1400189e0
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x114
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 5
jb 0x140018a3e
cmp dword [rsp + 0x34], 5
jne 0x140018a34
cmp dword [rsp + 0x38], 1
jbe 0x140018a3e
mov dword [rsp + 0x24], 0
jmp 0x140018a46
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140018a5c
mov byte [rsp + 0x20], 1
jmp 0x140018a61
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x160
pop rdi
ret

Function at 0x140018a80
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8, qword [rsp + 0x30]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140018ac9
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140018acb
xor al, al
add rsp, 0x28
ret
Function at 0x140018ad0
Capabilities:
Acquire debug privileges

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x68
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x38], 1
mov eax, reloc.WS2_32.dll_inet_ntoa
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + rax + 0x3c], rcx
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x140018b4b
mov eax, reloc.WS2_32.dll_inet_ntoa
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
jmp 0x140018b5c
mov eax, reloc.WS2_32.dll_inet_ntoa
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x68
ret