joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a4d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x40]
call fcn.180002040
mov qword [rsp + 0x20], rax
lea r8, [0x18003f54c]
lea rdx, [0x18003f64c]
mov rcx, qword [rsp + 0x20]
call fcn.1800023a0
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
sub eax, 1
movsxd rcx, eax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
movsx eax, byte [rax + rcx]
cmp eax, 0x5c
je 0x18000a53a
lea rdx, [0x18003f74c]
mov rcx, qword [rsp + 0x20]
call fcn.180002330
lea rdx, [0x18003fa0c]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
call fcn.180001000
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000a5d4
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18000a5b0
xor edx, edx
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x18000a5b0
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 8]
lea rcx, [0x18003fb88]
call fcn.180006b50
mov rcx, qword [rsp + 0x20]
call fcn.180001f70
xor eax, eax
jmp 0x18000a5e3
mov rax, qword [rsp + 0x28]
mov byte [rax], 0x5c
mov rcx, qword [rsp + 0x28]
add rcx, 1
lea rdx, [0x18003fa24]
call fcn.180001000
mov qword [rsp + 0x28], rax
jmp 0x18000a554
mov rcx, qword [rsp + 0x20]
call fcn.180001f70
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000a5f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov dword [rsp + 0x70], WSAGetLastError
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
lea rdi, [rsp + 0x58]
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18000a696
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x18000a6e0
cmp qword [rsp + 0x100], 0
je 0x18000a6b3
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xe0], rax
jmp 0x18000a6c2
lea rax, [0x18003a60f]
mov qword [rsp + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0xe0]
mov edx, eax
lea rcx, [0x18003fc48]
call fcn.180006b50
xor eax, eax
add rsp, 0xf0
pop rdi
ret
Function at 0x18000a6f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x390
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x388], rax
mov dword [rsp + 0x274], 0
mov dword [rsp + 0x270], 0
mov qword [rsp + 0x278], 0
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x18000a775
xor eax, eax
jmp 0x18000a81e
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x18000a7aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x380], eax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000a81e
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call fcn.18000cbd0
mov rdx, qword [rsp + 0x3a0]
lea rcx, [rsp + 0x280]
call fcn.1800239a4
test eax, eax
jne 0x18000a7f3
mov eax, dword [rsp + 0x274]
add eax, 1
mov dword [rsp + 0x274], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x270], eax
jmp 0x18000a809
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18000a7aa
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x390
pop rdi
ret
Function at 0x18000a840
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movsx eax, byte [0x18004a870]
test eax, eax
jne 0x18000aa4e
mov edx, 0x100
lea rcx, [0x18004a870]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdi, [0x18004a870]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x18003fc68]
mov ecx, reloc.WS2_32.dll_inet_addr
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x18000a8a1
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x18004a870]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp dword [rsp + 0x20], ecx
jge 0x18000a8e7
movsxd rcx, dword [rsp + 0x20]
lea rax, [0x18004a870]
movsx eax, byte [rax + rcx]
cmp eax, 0x5c
jne 0x18000a8e5
movsxd rcx, dword [rsp + 0x20]
lea rax, [0x18004a870]
mov byte [rax + rcx], 0x2f
jmp 0x18000a896
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x18004a870]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
lea rax, [0x18004a870]
movsx eax, byte [rax + rcx - 1]
cmp eax, 0x2f
je 0x18000a935
lea rdi, [0x18004a870]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x18003fc74]
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x18004a870]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18000aa2a
mov edx, 0x100
lea rcx, [0x18004a870]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdi, [0x18004a870]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, str.System32_
mov ecx, reloc.WS2_32.dll_inet_addr
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x24], 0
jmp 0x18000a996
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x18004a870]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp dword [rsp + 0x24], ecx
jge 0x18000a9dc
movsxd rcx, dword [rsp + 0x24]
lea rax, [0x18004a870]
movsx eax, byte [rax + rcx]
cmp eax, 0x5c
jne 0x18000a9da
movsxd rcx, dword [rsp + 0x24]
lea rax, [0x18004a870]
mov byte [rax + rcx], 0x2f
jmp 0x18000a98b
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [0x18004a870]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
lea rax, [0x18004a870]
movsx eax, byte [rax + rcx - 1]
cmp eax, 0x2f
je 0x18000aa2a
lea rdi, [0x18004a870]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x18003fc84]
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
lea rdi, [0x18004a870]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, str.rundll32.exe
mov ecx, reloc.WS2_32.dll_listen
rep movsb byte [rdi], byte [rsi]
lea rax, [0x18004a870]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18000b990
Capabilities:
Read file via mapping

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, dword [rsp + 0x68]
add ecx, 4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18000b9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x18003fef0]
call fcn.180006b50
xor eax, eax
jmp 0x18000baac
mov eax, dword [rsp + 0x68]
add eax, 4
cdqe
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000ba52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
lea rcx, [0x18003ff10]
call fcn.180006b50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000baac
mov ecx, 0x20
call fcn.180021e2c
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov dword [rax], 0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x30]
add rcx, 4
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x68]
mov dword [rcx + 0x18], eax
mov rax, qword [rsp + 0x40]
jmp 0x18000baac
add rsp, 0x58
ret

Function at 0x18000bcd0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0
cmp qword [0x18004a4a0], 0
je 0x18000bcf3
mov eax, 1
jmp 0x18000bdcb
cmp qword [0x18004a4b0], 0
jne 0x18000bd0e
mov ecx, 0x100
call fcn.180001fd0
mov qword [0x18004a4b0], rax
mov rax, qword [0x18004a4b0]
movsxd rax, dword [rax]
mov rdi, qword [0x18004a4b0]
mov rdi, qword [rdi + 8]
xor ecx, ecx
rep stosb byte [rdi], al
mov rax, qword [0x18004a4b0]
mov edx, dword [rax]
sub edx, 1
mov rcx, qword [0x18004a4b0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_gethostname]
mov rcx, qword [0x18004a4b0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000bda9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x18000bda7
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
call fcn.180002040
mov qword [0x18004a4a0], rax
mov eax, dword [rsp + 0x28]
mov dword [0x18004a394], eax
mov eax, 1
jmp 0x18000bdcb
jmp 0x18000bdc9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
mov rdx, qword [0x18004a4b0]
mov rdx, qword [rdx + 8]
lea rcx, str.gethostbyname_errors__s__d
call fcn.180006b50
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x18000bde0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x160], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000bf10
mov r8, qword [rsp + 0x180]
lea rdx, str._sConnection
lea rcx, [rsp + 0x50]
call fcn.180021d50
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000bf05
mov dword [rsp + 0x3c], 0x104
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.PnpInstanceID
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000befa
mov r8d, 3
lea rdx, [0x180040060]
lea rcx, [rsp + 0x50]
call fcn.180023af0
test eax, eax
jne 0x18000befa
mov dword [rsp + 0x160], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x178
ret
Function at 0x18000bf30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2f0
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x84], 4
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x60], 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_RegOpenKeyExA]
test eax, eax
jne 0x18000c1d9
mov dword [rsp + 0x88], 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 + 0x88]
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_RegQueryInfoKeyA]
mov dword [rsp + 0x6c], 0
jmp 0x18000c035
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x6c], eax
jge 0x18000c1ce
mov dword [rsp + 0x1b0], 0x104
mov byte [rsp + 0xa0], 0
lea rdi, [rsp + 0xa1]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000c1c9
mov byte [rsp + 0x1c0], 0
lea rdi, [rsp + 0x1c1]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x104
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000c1be
mov rdx, qword [rsp + 0x300]
lea rcx, [rsp + 0x1c0]
call fcn.180001000
test rax, rax
je 0x18000c1be
mov dword [rsp + 0x2d0], 4
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2d4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
lea rdx, str.Characteristics
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x2d8], eax
cmp dword [rsp + 0x2d8], 0
jne 0x18000c1bc
mov eax, dword [rsp + 0x2d4]
and eax, 4
cmp eax, 4
jne 0x18000c1bc
mov dword [rsp + 0x80], 1
jmp 0x18000c1ce
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000c02a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x2f0
pop rdi
ret
Function at 0x18000c550
Capabilities:
Get mac address on windows

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x48], 0xffffffff
call fcn.18000bcd0
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov ecx, 0x2c0
call fcn.180021e2c
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x4c], 0x2c0
cmp qword [0x18004a4a8], 0
je 0x18000c5aa
xor eax, eax
jmp 0x18000c7d4
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x18000c5d6
mov rcx, qword [rsp + 0x40]
call fcn.180021dec
mov ecx, dword [rsp + 0x4c]
call fcn.180021e2c
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18000c7be
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18000c7be
mov rcx, qword [rsp + 0x58]
add rcx, 0xc
call fcn.18000bde0
test eax, eax
jne 0x18000c63d
mov rcx, qword [rsp + 0x58]
add rcx, 0xc
call fcn.18000bf30
test eax, eax
jne 0x18000c63d
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
jne 0x18000c7ac
mov rax, qword [rsp + 0x58]
add rax, 0x1b8
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
cmp dword [rsp + 0x60], 0
je 0x18000c69c
cmp qword [rsp + 0x68], 0
je 0x18000c69c
mov rcx, qword [rsp + 0x68]
add rcx, 8
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x74], eax
mov eax, dword [0x18004a394]
cmp dword [rsp + 0x74], eax
jne 0x18000c68d
mov dword [rsp + 0x70], 1
jmp 0x18000c69c
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x18000c65c
cmp dword [rsp + 0x70], 0
jne 0x18000c6b9
cmp dword [rsp + 0x60], 0
je 0x18000c6b9
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
jne 0x18000c7ac
cmp qword [rsp + 0x68], 0
je 0x18000c6f9
cmp qword [0x18004a4a0], 0
jne 0x18000c6e2
mov rcx, qword [rsp + 0x68]
add rcx, 8
call fcn.180002040
mov qword [0x18004a4a0], rax
jmp 0x18000c6f7
mov rdx, qword [rsp + 0x68]
add rdx, 8
mov rcx, qword [0x18004a4a0]
call fcn.1800021c0
jmp 0x18000c735
cmp qword [0x18004a4a0], 0
jne 0x18000c71d
mov rcx, qword [rsp + 0x58]
add rcx, 0x1c0
call fcn.180002040
mov qword [0x18004a4a0], rax
jmp 0x18000c735
mov rdx, qword [rsp + 0x58]
add rdx, 0x1c0
mov rcx, qword [0x18004a4a0]
call fcn.1800021c0
mov rax, qword [rsp + 0x58]
movzx r11d, byte [rax + 0x19d]
mov rax, qword [rsp + 0x58]
movzx r10d, byte [rax + 0x19c]
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax + 0x19b]
mov rax, qword [rsp + 0x58]
movzx r9d, byte [rax + 0x19a]
mov rax, qword [rsp + 0x58]
movzx r8d, byte [rax + 0x199]
mov rax, qword [rsp + 0x58]
movzx edx, byte [rax + 0x198]
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str._02x__02x__02x__02x__02x__02x
call fcn.1800020e0
mov qword [0x18004a4a8], rax
mov dword [rsp + 0x48], 0
jmp 0x18000c7be
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x18000c5fe
cmp qword [rsp + 0x40], 0
je 0x18000c7d0
mov rcx, qword [rsp + 0x40]
call fcn.180021dec
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x18000c8b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [0x18004a97c], 0
jne 0x18000c921
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdi, [rsp + 0x30]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, str.SysWOW64_
mov ecx, reloc.WS2_32.dll_inet_addr
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000c921
mov dword [0x18004a978], 1
mov eax, dword [0x18004a978]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x148
pop rdi
pop rsi
ret

Function at 0x18000c950
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x140], 0xff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSet_servicesDiskEnum
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000ca39
lea rax, [rsp + 0x140]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180040244]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rcx, [rsp + 0x40]
call fcn.180002c10
lea rdx, str.VMWARE
lea rcx, [rsp + 0x40]
call fcn.180001000
test rax, rax
je 0x18000ca06
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x18000ca3b
lea rdx, str.VBOX
lea rcx, [rsp + 0x40]
call fcn.180001000
test rax, rax
je 0x18000ca2e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x18000ca3b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x158
ret
Function at 0x180018e80
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x90], 0
jne 0x180018ec7
xor eax, eax
jmp 0x180019057
cmp qword [rsp + 0xa0], 0
je 0x180018ee8
cmp qword [rsp + 0x98], 0
je 0x180018ee8
cmp qword [rsp + 0xb0], 0
jne 0x180018eef
xor eax, eax
jmp 0x180019057
mov rcx, qword [rsp + 0xa8]
call fcn.180002a80
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x180018f99
mov rcx, qword [rsp + 0x68]
call fcn.1800027e0
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
sub rcx, rdx
movzx eax, byte [rdx]
cmp al, byte [rdx + rcx]
jne 0x180018f3f
add rdx, 1
test al, al
jne 0x180018f2b
xor eax, eax
jmp 0x180018f44
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180018f64
mov rcx, qword [rsp + 0xa8]
call fcn.180002a80
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 1
jmp 0x180018f8f
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0xa8]
call fcn.1800066d0
movzx eax, al
cmp eax, 1
jne 0x180018f8f
mov dword [rsp + 0x70], 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.180001f70
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb8]
lea rcx, [0x18003b090]
call fcn.180006b50
mov r11, qword [rsp + 0x60]
mov qword [rsp + 0x58], r11
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.180018c30
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.1800034b0
mov rax, qword [rsp + 0x90]
add rsp, 0x88
ret
Function at 0x18001cca0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [0x18004a4c8], 0
jne 0x18001cdca
mov ecx, 0x105
call fcn.180001fd0
mov qword [0x18004a4c8], rax
mov rax, qword [0x18004a4c8]
mov eax, dword [rax]
sub eax, 1
movsxd rdi, eax
call fcn.18001da90
mov r8, rdi
mov rdx, rax
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call fcn.1800227d0
mov rdx, qword [0x18004a4c8]
mov eax, dword [rdx]
sub eax, 1
movsxd r8, eax
lea rdx, [0x18003aab4]
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call fcn.1800221f0
mov rdx, qword [0x18004a4c8]
mov eax, dword [rdx]
sub eax, 1
movsxd r8, eax
lea rdx, [0x18003a6a4]
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call fcn.1800221f0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [0x18004a4c8]
mov rdi, qword [rdi + 8]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rax, qword [0x18004a4c8]
mov dword [rax + 4], ecx
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18001cda1
xor edx, edx
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, 6
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [0x18004a4c8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18001cdca
lea rdx, [0x18003aabc]
lea rcx, [0x18003aac8]
call fcn.180006c60
mov rax, qword [0x18004a4c8]
mov rax, qword [rax + 8]
add rsp, 0x20
pop rdi
ret