joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800508e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18009d010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180050a89
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180050a26
lea edi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x1800509e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800509e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800509e0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800509a2
mov rcx, qword [0x18009dc58]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180050a09
jmp 0x1800509d3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800509d3
mov rcx, qword [0x18009dc58]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180050a09
mov qword [rbx], rax
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, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180050950
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180050a26
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180050a26
mov rcx, qword [0x18009dc58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180050a89
cmp qword [rbx], r15
je 0x180050a84
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180050a84
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180050a7d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180050730
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180050a41
mov eax, r15d
jmp 0x180050a8e
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800623c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180050ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18009d010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1800afc30]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180050b19
mov eax, 0xa
jmp 0x180050b66
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 0x180050b35
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800623c0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180050b90
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1800afc3c]
xor ebx, ebx
test edx, edx
je 0x180050bbf
mov rcx, qword [0x1800afc30]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x180050bc7
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x180050bb0
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x180050bbf
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.1800508e0
mov edi, eax
test eax, eax
jne 0x180050ca2
mov eax, dword [0x1800afc3c]
cmp ebx, eax
jae 0x180050c2d
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800afc30]
test byte [rdx + rcx + 0x20], 2
jne 0x180050c27
mov ecx, ebx
call fcn.180050ab0
mov edi, eax
test eax, eax
jne 0x180050c2d
mov eax, dword [0x1800afc3c]
inc ebx
cmp ebx, eax
jb 0x180050c00
cmp qword [rsp + 0x20], 0
je 0x180050ca0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050c8c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
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 0x180050c78
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 0x180050c50
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18009dc58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x180055b50
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180050d50
test eax, eax
jne 0x180055b6f
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180051030
add rsp, 0x20
pop rbx
ret
Function at 0x140011122
Capabilities:
Write file on windows

Disassembly:
jmp 0x140024f70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b403b]
call fcn.140011a19
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140024fc7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400250d3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14002506c
cmp qword [rbp + 0x28], 0
jle 0x14002506c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14002500c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14001198d
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1400250c2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400250c2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400115af
Capabilities:
Terminate process

Disassembly:
jmp 0x140029160
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011726
Capabilities:
Parse pe header

Disassembly:
jmp 0x140029c90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140029cb0
xor al, al
jmp 0x140029d31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140029cc3
xor al, al
jmp 0x140029d31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140029ced
xor al, al
jmp 0x140029d31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140029d01
xor al, al
jmp 0x140029d31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140029d13
xor al, al
jmp 0x140029d31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140029d2f
xor al, al
jmp 0x140029d31
mov al, 1
add rsp, 0x38
ret
Function at 0x140011898
Capabilities:
Execute command

Disassembly:
jmp 0x140023e50
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b403f]
call fcn.140011a19
lea rcx, str.COLOR_06
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x140033798]
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 4], 1
jmp 0x140023e96
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x32
jg 0x140023fda
lea rcx, [0x140033798]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, str._n_n_n_n_t_t_t_t___Ucitavanje
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
mov dl, 0xa
mov rcx, rax
call fcn.1400117b7
mov dl, 9
mov rcx, rax
call fcn.1400117b7
mov dl, 9
mov rcx, rax
call fcn.1400117b7
mov dword [rbp + 0x24], 1
jmp 0x140023eef
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x24], eax
jg 0x140023f0c
lea rdx, [0x1400341a4]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
jmp 0x140023ee7
mov eax, dword [rbp + 4]
shl eax, 1
mov dword [rbp + 0xf4], eax
lea rdx, str._n_n_t
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
mov ecx, dword [rbp + 0xf4]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x1400341a8]
mov rcx, rax
call fcn.14001114f
cmp dword [rbp + 4], 1
jle 0x140023f6b
cmp dword [rbp + 4], 0x14
jge 0x140023f6b
lea rdx, str._n_n_tPravljenje_privremenih_fajlova
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
jmp 0x140023fc0
cmp dword [rbp + 4], 0x14
jle 0x140023f8c
cmp dword [rbp + 4], 0x28
jge 0x140023f8c
lea rdx, str._n_n_tPristupanje_glavnoj_memoriji
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
jmp 0x140023fc0
cmp dword [rbp + 4], 0x28
jle 0x140023fad
cmp dword [rbp + 4], 0x30
jge 0x140023fad
lea rdx, str._n_n_tPristupanje_kes_memoriji
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
jmp 0x140023fc0
lea rdx, str._n_nZavreseno._Pritisnite_Enter_za_nastavak
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001114f
imul eax, dword [rbp + 4], 3
mov ecx, 0x96
sub ecx, eax
mov eax, ecx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140023e8e
call qword [sym.imp.ucrtbased.dll__getch]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400119fb
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a920
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140039028]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400b403b]
call fcn.140011a19
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001a986
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a98d
mov al, 1
jmp 0x14001aae7
call fcn.1400112da
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.1400112da
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011893
movzx eax, al
test eax, eax
je 0x14001a9e8
xor al, al
jmp 0x14001aae7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001aa4d
cmp dword [rbp + 0x194], 1
je 0x14001aa58
cmp dword [rbp + 0x194], 3
je 0x14001aad6
jmp 0x14001aae5
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001aaa8
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001aaa8
xor al, al
jmp 0x14001aae7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001aac3
mov dword [rbp + 0x194], 1
jmp 0x14001aacd
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001aae7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001aae7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140032930]
call fcn.14001187a
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400114e7
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x180003fd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13b0
call fcn.180052470
sub rsp, rax
mov rdi, rcx
movsxd rsi, r8d
xor ecx, ecx
movsxd rbp, edx
call fcn.180061c98
mov rcx, rax
mov dword [rsp + 0x24], eax
mov r9d, 1
mov dword [rsp + 0x13a4], 0xffffffff
nop word [rax + rax]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul ecx, edx, 0x6c078965
add ecx, r9d
mov dword [rsp + r9*4 + 0x24], ecx
inc r9
cmp r9, 0x270
jb 0x180004020
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.180014690
mov ecx, eax
lea rbx, [rcx + rcx*2]
test ebx, ebx
jne 0x180004075
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.180014690
mov ecx, eax
lea rbx, [rcx + rcx*2]
cmp ebx, 1
jb 0x180004060
shr rbx, 0x20
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc ebx
sub ebx, 1
je 0x1800040b7
sub ebx, 1
je 0x1800040a1
cmp ebx, 1
jne 0x1800040df
mov rcx, rsi
call fcn.180052014
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
jmp 0x1800040d3
mov rdi, qword [rdi]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1800040cf
mov rdi, qword [rdi]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [rdi + 0x10]
mov rbx, rax
call fcn.180002550
mov qword [rax + rbp*8], rbx
lea r11, [rsp + 0x13b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180009410
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x1e8], 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
add rax, 0x199
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x199
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
xor eax, eax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea ecx, [rsi + 0x10]
call fcn.180051c58
mov qword [rax + 8], rsi
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov qword [rax], rcx
mov word [rsp + 0x70], si
mov qword [rsp + 0x76], rsi
mov qword [rsp + 0x7e], rsi
xor eax, eax
mov word [rsp + 0x73], ax
mov byte [rsp + 0x75], al
mov word [rsp + 0x76], ax
mov byte [rsp + 0x78], al
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
mov word [rsp + 0x7c], ax
mov byte [rsp + 0x7e], al
mov word [rsp + 0x7f], ax
mov byte [rbp - 0x7f], al
mov word [rbp - 0x7e], ax
mov byte [rbp - 0x7c], al
mov dword [rsp + 0x3c], esi
mov dword [rsp + 0x6c], esi
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0x1e8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18000e880
mov ebx, dword [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.180011450
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
lea edx, [rsi + 0x10]
call fcn.180051b6c
lea eax, [rbx - 1]
cmp eax, 0x102
ja 0x18000957e
lea r9, [rbp - 0x60]
xor r8d, r8d
lea rdx, [0x1800eccf0]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x18000957e
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180009566
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.18000d290
jmp 0x180009593
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, rdi
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180014690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1800146f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1800146b0
mov ecx, dword [r9]
jmp 0x1800147d8
cmp ecx, 0x4e0
jb 0x1800147d8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180014710
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180014760
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x18006a304
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18006a336
call fcn.18005d954
mov dword [rax], 0x16
call fcn.180062900
jmp 0x18006a455
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18006a455
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18006a455
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18006a365
lock or dword [rcx + 0x14], 0x10
jmp 0x18006a455
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18006a379
call fcn.18006b614
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18006581c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18006bb2c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18006a443
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18006a40e
mov rcx, rsi
call fcn.18006581c
cmp eax, edi
je 0x18006a3f9
mov rcx, rsi
call fcn.18006581c
cmp eax, 0xfffffffe
je 0x18006a3f9
mov rcx, rsi
call fcn.18006581c
movsxd rbx, eax
lea r14, [0x1800d4f00]
mov rcx, rsi
sar rbx, 6
call fcn.18006581c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18006a400
lea rdx, [0x18007b410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18006a40e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18006a432
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18006a432
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18006a432
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18006a458
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret