joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001d40
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x18002f948]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001d9d
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.180015ae4
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001ea8
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
cmp edx, 0x20
mov ebp, r8d
mov rbx, rcx
jb 0x180002016
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180002016
add qword [rcx], rcx
add qword [rcx + 8], rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x18000200f
mov eax, dword [0x18002fa18]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x18002fa10]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x88]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.180012e0c
test eax, eax
mov edi, eax
jne 0x18000201b
cmp dword [rbx + 0x18], eax
je 0x180001fcc
mov ecx, 0xd80
call fcn.180014ac0
test rax, rax
mov rsi, rax
je 0x180001fcc
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001dac
test eax, eax
jne 0x180001fba
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001dac
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180001fba
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x18000201b
mov rcx, qword [rsp + 0x88]
lea rdx, [0x180033192]
xor r9d, r9d
xor r8d, r8d
call fcn.180017710
test rax, rax
je 0x180002008
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x180002008
lea rcx, [0x18002f130]
xor edx, edx
call rax
jmp 0x18000201b
mov edi, 0x7f
jmp 0x18000201b
mov edi, 0xb
jmp 0x18000201b
mov edi, 0x57
mov rcx, qword [0x18002f7f8]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x1800331c5]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.18000f470
mov rcx, qword [0x18002f7f8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180002424
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x18002f7f8]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x1800024c4
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, 1
test eax, eax
jne 0x180002478
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014a70
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1800024a0
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014a70
lea rcx, [0x18003249b]
mov edx, ebx
call fcn.18000208c
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800024c9
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002bb4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
cmp r8, rbx
mov r13, rcx
mov ebp, ebx
je 0x180002be9
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x18002f7f8]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180002c73
cmp ebp, ebx
mov qword [rax], r13
mov qword [rax + 8], r12
je 0x180002c22
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002c25
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002b58]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x180002c57
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002c78
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180002d8c
Capabilities:
Create directory

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 r12
push r13
push r14
sub rsp, 0x30
mov r12d, r8d
mov r13d, edx
mov r14, rcx
mov rbx, qword [0x18002f888]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
test rbx, rbx
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
bswap r11d
mov byte [rsp + 0x28], r12b
bswap eax
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], eax
je 0x180002df2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x180002df4
xor edi, edi
mov rcx, qword [0x18002f7f8]
lea ebp, [rdi + 1]
xor edx, edx
mov r8d, ebp
add r8, 0x13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180002eab
test rbx, rbx
je 0x180002e69
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call fcn.180014084
test rax, rax
mov rbx, rax
je 0x180002e61
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002e4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18002f7f8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov edi, ebp
mov byte [rax + rsi], 0x5c
mov ebx, edi
lea rcx, [rsp + 0x20]
mov edx, 9
add rbx, rsi
mov r8, rbx
call fcn.180016c2c
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
mov rcx, rsi
mov byte [rbx + 0x12], 0
call fcn.1800143d8
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002eb0
mov ebx, 8
cmp ebx, 0x50
je 0x180002db2
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1800045b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rax + 0x20], 0
mov r12, rcx
mov rcx, qword [0x18002f928]
mov rsi, r8
mov rbp, rdx
lea r8, [rax - 0x28]
xor edx, edx
call fcn.180004524
test eax, eax
mov ebx, eax
jne 0x180004685
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x18000467a
mov r8d, dword [rsi]
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180004675
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x180004661
mov qword [rbp], rdi
jmp 0x18000467a
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000467a
mov ebx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x18000469c
Capabilities:
Delete registry value
Set registry value

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 r12
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x18002f928]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.180004524
test eax, eax
mov ebx, eax
jne 0x180004714
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x180004701
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180004707
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x180004734
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x30
mov rcx, qword [0x18002f928]
mov edi, dword [0x18002e138]
lea r8, [rsp + 0x60]
mov edx, 1
mov dword [rsp + 0x50], 0x28
call fcn.180004524
lea r13, [0x18002e138]
test eax, eax
mov ebx, eax
jne 0x18000480a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800321d1]
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebx, eax
jne 0x1800047b0
cmp dword [rsp + 0x50], 0x28
je 0x1800047bc
lea rcx, [0x18002e140]
call fcn.18001eb90
movzx eax, word [0x18002e13c]
bt ax, 0xf
jb 0x1800047ff
mov rcx, qword [rsp + 0x60]
or ax, 0x8048
lea rdx, [0x1800321d1]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov word [0x18002e13c], ax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x18002e138], 0
jne 0x180004849
test edi, edi
mov dword [0x18002e138], edi
je 0x18000483f
mov r9d, 3
lea rcx, [0x1800321d1]
mov rdx, r13
lea r8d, [r9 + 0x25]
call fcn.18000469c
cmp dword [0x18002e138], 0
jne 0x180004849
mov dword [0x18002e138], 0x3e8
cmp qword [0x18002faf0], 0
jne 0x1800048ae
mov rcx, qword [0x18002f7f8]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [0x18002faf0], rax
je 0x1800048ae
mov edx, dword [0x18002e14c]
mov ecx, dword [0x18002e148]
mov r9d, dword [0x18002e144]
mov r8d, dword [0x18002e140]
bswap edx
bswap ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x180032415]
bswap r9d
bswap r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, ebx
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret

Function at 0x1800048bc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test ecx, ecx
movzx edi, r8w
mov eax, ecx
mov ebx, 0x57
jne 0x1800048e2
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
test eax, eax
je 0x180004945
mov rcx, qword [0x18002f928]
lea r8, [rsp + 0x30]
mov edx, 1
mov dword [0x18002e138], eax
mov word [0x18002e13c], di
call fcn.180004524
test eax, eax
mov ebx, eax
jne 0x180004945
mov rcx, qword [rsp + 0x30]
lea rax, [0x18002e138]
lea r9d, [rbx + 3]
lea rdx, [0x1800321d1]
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180004954
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor ebx, ebx
cmp edx, 8
mov r14, r8
mov edi, edx
mov rbp, rcx
jbe 0x180004b3e
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x180004b3e
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
lea r15d, [rbx + 1]
mov edx, edi
mov r8d, r15d
mov rcx, rbp
call fcn.18001e3d4
cmp eax, ebx
je 0x180004b15
mov r13d, dword [rbp]
mov rcx, qword [0x18002f7f8]
xor edx, edx
lea r8d, [r13 + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rsi, rax
je 0x180004b2c
lea rcx, [rbp + 4]
mov rdx, rax
call fcn.1800221b0
cmp eax, r13d
jne 0x180004b01
lea rdx, [0x1800331f1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
jne 0x180004a29
mov edx, edi
mov rcx, r12
call fcn.180022cd4
not eax
mov dword [0x18002f82c], eax
lea rcx, [0x18002fba0]
mov r9d, r13d
mov r8, rsi
mov rdx, r14
call fcn.18000691c
mov rcx, qword [0x18002f940]
lea r8, [rsp + 0xc8]
mov edx, r15d
call fcn.180004524
cmp eax, ebx
jne 0x180004a90
mov rcx, qword [rsp + 0xc8]
mov r9d, 3
xor r8d, r8d
mov rdx, r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0xc8]
cmp eax, ebx
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov r8d, 6
lea rax, [rdi + 4]
mov edi, dword [rdi]
mov dword [rcx], edi
mov qword [rdx], rax
add rdi, rax
add rcx, 4
add rdx, 8
sub r8, r15
jne 0x180004aa3
cmp dword [rsp + 0x30], r15d
jb 0x180004b01
mov edx, dword [rsp + 0x34]
cmp edx, r15d
jbe 0x180004a93
mov rcx, qword [rsp + 0x50]
add edx, 0xffffffff
call fcn.180022cd4
xor eax, dword [0x18002fa58]
cmp eax, 0xdd2effe2
jne 0x180004a93
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
xor r9d, r9d
mov ecx, 0x102
call fcn.18000f470
jmp 0x180004a93
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004b2c
mov rcx, qword [0x18002faf8]
lea rdx, [0x18002e13e]
add rcx, 8
call fcn.18001dde0
mov rcx, qword [0x18002f7f8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004b64
Capabilities:
Delete file
Initialize winsock library

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1d0
mov ecx, 0xf00
xor ebx, ebx
call fcn.180014ac0
test rax, rax
mov rdi, rax
je 0x180004c9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, rdi
lea ecx, [rax - 1]
mov dword [rsp + 0x1f0], eax
mov byte [rcx + rdi], bl
mov esi, ecx
lea rcx, [0x180032e28]
call fcn.180008c3c
test eax, eax
jne 0x180004c8b
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x200]
mov rcx, rdi
mov byte [rsi + rdi], 0x31
call fcn.180014214
test eax, eax
jne 0x180004c82
mov edx, dword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x200]
lea r9, [rsp + 0x1f8]
lea r8, [0x180032e59]
call fcn.18001799c
test rax, rax
je 0x180004c6b
mov edx, dword [rsp + 0x1f0]
mov rsi, rax
sub eax, dword [rsp + 0x200]
add eax, dword [rsp + 0x1f8]
lea r9, [rsp + 0x1f8]
lea r8, [0x180032e59]
mov ecx, eax
sub edx, eax
add rcx, qword [rsp + 0x200]
call fcn.18001799c
test rax, rax
jne 0x180004c02
test rsi, rsi
je 0x180004c6b
mov eax, dword [rsp + 0x1f8]
lea rdx, str._s:_r
mov rcx, rsi
mov byte [rax + rsi], bl
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
xor edx, edx
mov rcx, rsi
call fcn.180016cf4
mov rbx, rax
mov r8, qword [rsp + 0x200]
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
mov qword [rsp + 0x1f8], rbx
je 0x180004d55
lea rdx, [rsp + 0x30]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180004cd3
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call fcn.180017064
jmp 0x180004cd5
xor eax, eax
test eax, eax
je 0x180004d34
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x180004d34
movzx edx, cl
cmp edx, 0xa
je 0x180004d34
movzx r8d, cx
cmp r8d, 0xa8c0
je 0x180004d34
mov eax, ecx
and eax, 0xfff
cmp eax, 0x10ac
je 0x180004d34
cmp edx, 0x7f
je 0x180004d34
test cl, cl
je 0x180004d34
cmp r8d, 0xfea9
je 0x180004d34
mov eax, ecx
and eax, 0x7fff
cmp eax, 0x12c6
je 0x180004d34
cmp ecx, 0x8080808
je 0x180004d34
cmp ecx, 0xdede43d0
jne 0x180004d50
mov rcx, qword [0x18002f7f8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov qword [rsp + 0x1f8], rbx
test rbx, rbx
jne 0x180004dc6
mov rcx, qword [0x18002f0e0]
test rcx, rcx
je 0x180004dc6
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x1f8]
xor r9d, r9d
call fcn.1800043fc
test eax, eax
jne 0x180004dad
mov rbx, qword [rsp + 0x1f8]
lea rdx, str.__t_r_n
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 7
jb 0x180004da8
cmp eax, 0xf
jbe 0x180004dc6
mov r8, rbx
jmp 0x180004db5
mov r8, qword [rsp + 0x1f8]
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rax, rbx
add rsp, 0x1d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005004
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov r13, r8
mov r14, rdx
lea r8, [rax - 0x38]
xor edx, edx
mov r12d, r9d
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x40], r15d
call fcn.180004524
cmp eax, r15d
mov ebx, eax
jne 0x1800051d4
mov rcx, qword [0x18002f7f8]
mov edi, 0x105
xor edx, edx
mov r8, rdi
lea ebx, [r15 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rsi, rax
je 0x1800051c9
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
je 0x1800051b7
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov r8, rsi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x105
mov dword [rsp + 0x40], ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov ebx, eax
jne 0x180005137
cmp dword [rsp + 0x48], 0x105
jbe 0x1800050f6
add dword [rsp + 0x44], 1
mov ebx, r15d
jmp 0x180005180
cmp dword [rsp + 0x40], ebp
jbe 0x1800051a5
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x18002f7f8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
jne 0x1800050ee
mov ebx, 8
jmp 0x1800051a5
cmp eax, r15d
jne 0x18000519b
cmp r12d, r15d
je 0x180005157
mov r8d, dword [0x18002fa24]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.180022c40
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call r14
cmp eax, r15d
mov ebx, eax
jne 0x18000519b
mov rcx, qword [0x18002fa38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800051a5
jmp 0x180005095
cmp ebx, 0x103
cmove ebx, r15d
mov rcx, qword [0x18002f7f8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180005f14
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000f470
mov rcx, qword [0x18002fa38]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18002f938]
lea rdx, [0x180005a08]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005004
Function at 0x1800072e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x180032065]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov rbx, rax
je 0x180007325
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x18002e6f4], eax
je 0x18000731d
lea rdx, [0x180032201]
mov rcx, rbx
call fcn.180006f84
jmp 0x180007340
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180007340
mov edx, 1
lea r8, [0x18002ede0]
lea rcx, [0x18002edc8]
mov r9d, edx
call fcn.18000e8c8
add rsp, 0x20
pop rbx
ret
Function at 0x180007c94
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
call fcn.180004264
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [0x180033238]
lea rcx, [0x180032820]
xor r9d, r9d
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], ebp
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rax
call fcn.180014450
test eax, eax
je 0x180007d61
mov rbx, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
lea rcx, [rbx + 0x28]
mov rsi, rbx
call fcn.180014118
test eax, eax
jne 0x180007d34
mov rcx, qword [rsp + 0x68]
lea rdx, [0x1800331fe]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180007d34
lea r9d, [rax + 2]
lea r8d, [rax + 0x30]
lea rdx, [0x1800331fe]
lea rcx, [rbx + 0x28]
call fcn.18001427c
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rbx, qword [rbx]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, qword [0x18002f7f8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
cmp rbx, r11
jne 0x180007ceb
movzx ebx, byte [0x18002fa1c]
movzx edi, byte [0x18002fa1d]
cmp ebx, 6
jb 0x180007df0
and dword [rsp + 0x68], ebp
lea r8, [rsp + 0x70]
lea rdx, [0x1800327d3]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180007dc8
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
lea rdx, [0x1800329b2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 6
ja 0x180007dd2
cmp edi, 2
jb 0x180007df0
mov r9d, 1
lea r8, [0x18002ed88]
lea rcx, [0x18002ed70]
mov edx, r9d
call fcn.18000e8c8
mov ebp, eax
xor ebx, ebx
mov dword [rsp + 0x60], 0x10000
test rbx, rbx
je 0x180007e11
mov rcx, qword [0x18002f7f8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [0x18002f7f8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180007e50
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
mov edi, eax
jne 0x180007e55
jmp 0x180007dfa
mov edi, 0xc000009a
test edi, edi
js 0x180007e7f
lea rdx, [0x18002f9b0]
mov rcx, rbx
call fcn.180007c00
cmp dword [rbx], 0
je 0x180007e74
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x180007e76
xor ebx, ebx
test rbx, rbx
je 0x180007e7f
test eax, eax
jne 0x180007e59
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x78]
mov eax, ebp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret