joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005e04
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
mov rdx, rcx
lea r8, [rax - 0x38]
mov rcx, 0xffffffff80000001
mov r12d, r9d
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x40], r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, r15d
mov ebx, eax
jne 0x180005fdd
mov rcx, qword [0x1800266d0]
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 0x180005fd2
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
je 0x180005fc0
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 0x180005f40
cmp dword [rsp + 0x48], 0x105
jbe 0x180005eff
add dword [rsp + 0x44], 1
mov ebx, r15d
jmp 0x180005f89
cmp dword [rsp + 0x40], ebp
jbe 0x180005fae
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x1800266d0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
jne 0x180005ef7
mov ebx, 8
jmp 0x180005fae
cmp eax, r15d
jne 0x180005fa4
cmp r12d, r15d
je 0x180005f60
mov r8d, dword [0x180026800]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.18001b72c
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 0x180005fa4
mov rcx, qword [0x180026890]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180005fae
jmp 0x180005e9e
cmp ebx, 0x103
cmove ebx, r15d
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
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 0x180006c18
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
test byte [0x180025ff4], 4
je 0x180006c37
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x121
call fcn.18000fe04
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000fe04
mov rcx, qword [0x180026890]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180026818]
lea rdx, [0x180006714]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005e04
Function at 0x180007da8
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov r12, rdx
mov rbp, rcx
mov rdi, rbx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbx
mov rsi, rax
jne 0x180007de0
lea ebx, [rdi + 0xb]
jmp 0x180007f68
mov rdx, qword [0x180026808]
lea r8, [rsp + 0x20]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x180007e5b
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.1800045f0
cmp eax, ebx
jne 0x180007e5b
cmp dword [rsp + 0x60], 0xc
jne 0x180007e5b
mov r8, qword [rsp + 0x28]
mov eax, dword [rsi + 0x58]
cmp dword [r8], eax
jne 0x180007e47
cmp qword [r8 + 4], rbx
je 0x180007e47
mov eax, dword [rsi + 0x50]
cmp qword [r8 + 4], rax
jae 0x180007e47
mov rdi, qword [r8 + 4]
add rdi, rbp
mov qword [rsp + 0x68], rdi
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x180007ea4
mov eax, dword [rsi + 0x58]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rbp
mov qword [0x1800266c0], r12
mov qword [0x1800266b4], rbp
mov dword [0x1800266b0], eax
call fcn.180007bbc
cmp eax, ebx
je 0x180007e9f
lea r8, [rsp + 0x68]
mov edx, 1
mov rcx, rbp
call fcn.180007bbc
cmp eax, ebx
jne 0x180007f68
mov rdi, qword [rsp + 0x68]
cmp qword [rdi], 4
jne 0x180007ec6
lea rax, [rdi + 0x10]
mov qword [0x180025e10], rax
lea rax, [rdi + 0x18]
mov qword [0x180025e38], rax
lea rax, [rdi + 8]
jmp 0x180007ee0
lea rax, [rdi + 0x30]
mov qword [0x180025e10], rax
lea rax, [rdi + 0x40]
mov qword [0x180025e38], rax
lea rax, [rdi + 0x48]
lea rcx, [0x180025e08]
xor edx, edx
mov qword [0x180025e60], rax
call fcn.180015190
cmp eax, ebx
jne 0x180007f66
lea rcx, [0x180025e30]
xor edx, edx
call fcn.180015190
cmp eax, ebx
jne 0x180007f66
lea rcx, [0x180025e58]
xor edx, edx
call fcn.180015190
cmp eax, ebx
jne 0x180007f66
mov rax, qword [0x180025e78]
lea rcx, [0x180025ed0]
mov r8, rbp
mov qword [0x180025fc0], rax
mov rax, qword [0x180025e28]
mov edx, 6
mov qword [0x180025fc8], rax
mov rax, qword [0x180025e50]
mov qword [0x180025fd0], rax
mov rax, qword [0x1800267e0]
or dword [rax + 0x34], 1
call fcn.18001540c
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180008888
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.180003f10
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x30]
lea rdx, [0x18002a1e0]
lea rcx, [0x180029760]
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.180014008
test eax, eax
je 0x180008955
mov rbx, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
lea rcx, [rbx + 0x28]
mov rsi, rbx
call fcn.180013cd0
test eax, eax
jne 0x180008928
mov rcx, qword [rsp + 0x68]
lea rdx, [0x18002a199]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x180008928
lea r9d, [rax + 2]
lea r8d, [rax + 0x30]
lea rdx, [0x18002a199]
lea rcx, [rbx + 0x28]
call fcn.180013e34
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 [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x30]
cmp rbx, r11
jne 0x1800088df
movzx ebx, byte [0x180026868]
movzx edi, byte [0x180026869]
cmp ebx, 6
jb 0x1800089e4
and dword [rsp + 0x68], ebp
lea r8, [rsp + 0x70]
lea rdx, [0x1800297e4]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1800089bc
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 4]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
lea rdx, [0x18002992a]
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 0x1800089c6
cmp edi, 2
jb 0x1800089e4
mov r9d, 1
lea r8, [0x180025ca8]
lea rcx, [0x180025c90]
mov edx, r9d
call fcn.18000f27c
mov ebp, eax
xor ebx, ebx
mov dword [rsp + 0x60], 0x10000
test rbx, rbx
je 0x180008a05
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [0x1800266d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180008a44
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 0x180008a49
jmp 0x1800089ee
mov edi, 0xc000009a
test edi, edi
js 0x180008a73
lea rdx, [0x180026a18]
mov rcx, rbx
call fcn.1800087fc
cmp dword [rbx], 0
je 0x180008a68
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x180008a6a
xor ebx, ebx
test rbx, rbx
je 0x180008a73
test eax, eax
jne 0x180008a4d
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
Function at 0x1800090e4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
lea r9, [0x1800268a8]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x1800091e0
lea r9d, [rdi + 1]
lea rdx, [0x1800293d9]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.180016cd4
cmp rax, rdi
mov rbx, rax
je 0x1800091d0
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x1800268a8]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov r12d, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp rax, rdi
je 0x1800091b4
mov rcx, rbx
mov dword [rsi + 0x10], edi
mov qword [rsi], rax
mov dword [rsi + 8], r12d
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsi + 0x14]
mov rdx, rbx
mov dword [rsi + 0xc], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1800091bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800091d5
mov edi, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800091e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180009200
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0xf0
and dword [rax + 0x18], 0
mov rdi, rdx
xor edx, edx
mov r12, rcx
lea rcx, [rax - 0x80]
lea r8d, [rdx + 0x60]
call sub.ntdll.dll_memset
and qword [rsp + 0x50], 0
xor eax, eax
mov rcx, rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x80], 0x68
xor ebx, ebx
call fcn.180013c3c
test rax, rax
mov rsi, rax
je 0x1800092b7
mov rcx, rax
call qword [sym.imp.SHELL32.dll_PathGetShortPath]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800266d0]
xor edx, edx
add eax, 1
mov r8d, eax
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18000929e
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ntdll.dll_wcstombs]
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
cmovne rdi, rbx
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0xc000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18000936a
mov rax, qword [0x180026890]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
mov dword [rsp + 0x120], eax
jne 0x18000933f
mov dword [rsp + 0x120], 0x102
jmp 0x180009352
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009377
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x120], eax
test rbx, rbx
je 0x18000938e
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x120]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800096ec
Capabilities:
Get file attributes

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, 0x20
mov r14, rdx
mov rbx, rcx
mov esi, 8
xor edi, edi
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800266d0]
movsxd r8, eax
xor edx, edx
add r8, 0xc
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov r12, rax
je 0x18000987c
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov r8w, 0x5c
xor edx, edx
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
test rax, rax
mov r13, rax
jne 0x18000976c
lea esi, [rdi + 3]
jmp 0x18000983c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x18000977d
mov byte [r13], dil
mov ecx, 0x162e
call fcn.1800146c8
test rax, rax
mov rdi, rax
jne 0x180009799
mov esi, 0x3ee
jmp 0x18000983c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800266d0]
xor edx, edx
movsxd r8, eax
add r8, 0x14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x18000983c
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call fcn.1800093b0
test eax, eax
mov esi, eax
jne 0x18000983c
lea rdx, [0x180029d18]
mov r8, rdi
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, r12
mov rcx, rbp
call fcn.180009200
mov rcx, r12
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [0x180029d02]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, r12
call fcn.180014678
lea rdx, [0x180029d0d]
mov rcx, r12
mov byte [rbx + r12], 0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, r12
call fcn.180014678
mov rcx, rdi
call fcn.180014678
mov rcx, qword [0x1800266d0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x180009865
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbp, rbp
je 0x18000987c
mov rcx, qword [0x1800266d0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x180009a8c
Capabilities:
Enumerate device drivers on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, rcx
mov ecx, 0x2334
call fcn.1800146c8
test rax, rax
mov rdi, rax
jne 0x180009abb
mov ebx, 0x3ee
jmp 0x180009ce2
lea rcx, [0x180029d3d]
mov rdx, rax
call fcn.1800099bc
mov ebp, 0x102
test eax, eax
mov ebx, eax
je 0x180009add
cmp eax, ebp
je 0x180009ccc
lea rcx, [0x180029de5]
mov rdx, rdi
call fcn.1800099bc
test eax, eax
mov ebx, eax
je 0x180009afa
cmp eax, ebp
je 0x180009ccc
lea rcx, [0x180029df0]
mov rdx, rdi
call fcn.1800099bc
test eax, eax
mov ebx, eax
je 0x180009b17
cmp eax, ebp
je 0x180009ccc
lea rcx, [0x180029d4d]
mov rdx, rdi
call fcn.1800099bc
test eax, eax
mov ebx, eax
je 0x180009b34
cmp eax, ebp
je 0x180009ccc
lea rcx, [0x180029d61]
mov rdx, rdi
call fcn.1800099bc
test eax, eax
mov ebx, eax
je 0x180009b51
cmp eax, ebp
je 0x180009ccc
lea rcx, [0x180029d73]
mov rdx, rdi
call fcn.1800099bc
test eax, eax
mov ebx, eax
je 0x180009b6e
cmp eax, ebp
je 0x180009ccc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
lea ecx, [rax + rax*2]
movsxd r8, ecx
mov rcx, qword [0x1800266d0]
add r8, 0x24
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180009cc7
lea rdx, [0x180029dc1]
mov r9, rdi
mov r8, rdi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
mov rcx, rsi
call fcn.180009200
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, ebp
je 0x180009ccc
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.180013dcc
test eax, eax
jne 0x180009cbf
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], eax
mov esi, dword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
and qword [rsp + 0x20], 0
shr esi, 1
mov r8, rbp
xor edx, edx
mov r9d, esi
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd r12, eax
jle 0x180009cad
mov rcx, qword [0x1800266d0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180009cad
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov r9d, esi
mov r8, rbp
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x180009c95
mov r9d, 1
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.180013f90
jmp 0x180009c9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800266d0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800266d0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r13], rdi
xor ebx, ebx
jmp 0x180009ce2
mov ebx, 8
test ebx, ebx
je 0x180009ce2
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180009d94
Capabilities:
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 rbp, r8
mov r12, rdx
mov rdx, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov esi, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180009e8f
test rbp, rbp
je 0x180009e60
test esi, esi
je 0x180009e60
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180009e59
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x180009e23
mov r8d, dword [0x180026800]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.18001b6e8
mov rcx, qword [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180009e84
mov ebx, 8
jmp 0x180009e84
and dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
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 0x18000b2e8
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x180029894]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
je 0x18000b3a9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1800267b8], eax
je 0x18000b3ae
cmp byte [0x180026868], 6
ja 0x18000b365
lea rcx, [0x180029b40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x18002975b]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180029b4f]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180029aaa]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180029847]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180029b48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180029914]
call fcn.18001a9ac
mov r11, qword [0x1800267e0]
mov edx, 0xe
or dword [r11 + 0x34], 1
lea r8, [0x1800259c0]
lea rcx, [0x180025870]
mov r9d, edx
call fcn.18000f27c
mov ebx, eax
jmp 0x18000b3ae
mov ebx, 0x7e
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000b5e8
Capabilities:
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r12
sub rsp, 0x70
and dword [rax + 8], 0
or ebp, 0xffffffff
cmp byte [0x180026868], 5
mov rbx, rcx
mov rcx, qword [0x1800266d0]
mov eax, 0x1388
mov r12, rdx
cmovbe ebp, eax
mov r8d, 0x2000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18000b6d1
lea r9, [rsp + 0x80]
mov r8d, 0x2000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000b68f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18000b6ad
mov rcx, qword [rbx + 0x58]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000b67c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x18000b6bd
test eax, eax
jne 0x18000b6ad
mov eax, dword [rbx + 0x48]
cmp eax, 1
je 0x18000b6ad
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x18000b6b6
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18000b63a
mov dword [rbx + 0x48], 1
jmp 0x18000b6bd
mov dword [rbx + 0x48], 2
mov rcx, qword [0x1800266d0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000b6d8
mov dword [rbx + 0x48], 1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x18000c25c
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r9
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.18000b7cc
cmp rax, rbx
mov r13, rax
je 0x18000c2ca
mov rdx, rdi
mov rcx, rax
call fcn.18000b704
mov rdx, qword [rsi + 0x20]
lea r9, [rsi + 0x28]
mov r8d, dword [r9]
mov dword [rsi + 0x2c], r8d
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea ecx, [rbx + 1]
lea r8, [r13 - 0x34]
cmp eax, ebx
cmove ebx, ecx
xor edx, edx
xor ecx, ecx
call fcn.180013a40
jmp 0x18000c2ec
cmp dword [rsp + 0x60], ebx
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
je 0x18000c2e4
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000c2ea
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18000e148
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov rsi, rcx
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800266d0]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000e203
lea rdx, [0x180029388]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180026810]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x18000e1f1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
add eax, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1800266d0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret