joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094d98
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x2b8]
sub rsp, 0x3a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
xor dil, dil
lea rcx, [rbp + 0x2d8]
call fcn.1400109fc
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.14004e050
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, str.Microsoft
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.Internet_Explorer
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.Quick_Launch
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.User_Pinned
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.TaskBar
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x2d0]
call fcn.1400109fc
nop
lea rdx, str..lnk
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140094f7e
test byte [rbp + 0x50], 0x10
jne 0x140094f2e
call fcn.140010fb4
test rax, rax
je 0x140094f63
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0x2c0], rax
lea r9, [rbp + 0x7c]
mov r8, qword [rbp + 0x2d0]
lea rdx, [0x1400bd11c]
lea rcx, [rbp + 0x2c0]
call fcn.14000da78
lea r8, [rbp + 0x190]
mov rbx, qword [rbp + 0x2c0]
mov rdx, rbx
call fcn.140094c70
lea rdx, [rbp + 0x190]
mov rcx, qword [rbp + 0x2d8]
call fcn.140060494
test eax, eax
je 0x140094f44
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140094f2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140094f6e
jmp 0x140094e9d
mov dil, 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140094f6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140094f6e
mov ecx, 0x80004005
call fcn.140010d40
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rdx, qword [rbp + 0x2d0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140094fa0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x2d8]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140094fc2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, dil
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x3a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140095124
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r8, rdx
mov dword [rsp + 0x28], ebx
lea rdx, str.taskbarpin
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
setg al
add rsp, 0x30
pop rbx
ret

Function at 0x140095288
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdx, [rbp - 0x20]
mov word [rbp - 0x18], 0x5c5c
mov rcx, 0xffffffff80000001
mov dword [rbp - 0x1e], 0x41575446
mov word [rbp - 0xa], 0x6873
mov word [rbp - 0x12], 0x6573
mov word [rbp - 0x15], 0x616c
mov word [rbp - 0x10], 0x5c73
mov word [rbp - 0xd], 0x5c2a
mov word [rbp - 0x20], 0x4f53
mov byte [rbp - 0xb], 0x5c
mov word [rbp - 7], 0x6c6c
mov byte [rbp - 0x13], reloc.WS2_32.dll_WSAStartup
mov byte [rbp - 8], 0x65
mov byte [rbp - 0xe], 0x5c
mov word [rbp - 0x1a], 0x4552
mov byte [rbp - 5], 0
mov byte [rbp - 0x16], 0x43
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
add rsp, 0x40
pop rbp
ret
Function at 0x140095570
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x130]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x14009559e
xor al, al
jmp 0x1400955f5
lea r9, [rsp + 0x130]
mov edx, 0x104
lea r8, str._sShortcut.lnk
lea rcx, [rsp + 0x20]
call fcn.1400104c0
lea r8, [rsp + 0x20]
mov rdx, rbx
call fcn.140095160
test al, al
je 0x14009559a
cmp byte [rdi], 0
lea rdx, [rsp + 0x20]
je 0x1400955e1
mov r8, rbx
call fcn.140094fe0
jmp 0x1400955e6
call fcn.140095124
lea rcx, [rsp + 0x20]
mov bl, al
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x1400958d4
Capabilities:
Create thread
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
cmp byte [r8], 0
mov ebx, 1
je 0x14009595b
and qword [rax - 0x30], 0
lea r9, [rax - 0x28]
or dword [rax - 0x28], 0xffffffff
lea r8, [0x14009586c]
and dword [rax - 0x38], 0
mov qword [rax - 0x20], rcx
xor ecx, ecx
mov qword [rax - 0x18], rdx
xor edx, edx
call fcn.140060e54
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140095962
mov edx, 0x7530
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140095938
mov ebx, dword [rsp + 0x30]
jmp 0x140095950
cmp eax, 0x102
jne 0x140095950
mov ebx, 2
mov rcx, rdi
lea edx, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140095962
call fcn.140095608
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140095c74
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x6b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x28], r14d
lea rdx, [0x1400bcee3]
lea rcx, [rbp + 0x6b8]
call fcn.1400109fc
nop
mov ebx, 0x20a
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x460]
call fcn.14004e050
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x250]
call fcn.14004e050
mov dword [rbp + 0x6a0], r14d
mov dword [rbp + 0x6b0], r14d
mov dword [rbp + 0x6a8], r14d
xor edx, edx
lea r8d, [rbx - 2]
lea rcx, [rbp + 0x40]
call fcn.14004e050
xor r9d, r9d
lea r8d, [r14 + 0x25]
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [rbp + 0x46], r14w
mov dword [rbp + 9], 0x6c6c64
mov dword [rbp + 3], 0x336c656e
mov word [rbp + 7], 0x2e32
mov word [rbp], 0x654b
mov byte [rbp + 2], WSACleanup
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140095def
mov dword [rbp + 0x1f], 0x6f697461
mov dword [rbp + 0x10], 0x56746547
mov dword [rbp + 0x1a], 0x726f666e
mov dword [rbp + 0x16], 0x49656d75
mov byte [rbp + 0x1e], WSASetLastError
mov word [rbp + 0x24], 0x57
mov word [rbp + 0x14], 0x6c6f
mov byte [rbp + 0x23], WSASetLastError
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d78a8], rax
test rax, rax
je 0x140095def
mov r8d, 0x105
mov dword [rsp + 0x38], r8d
lea rcx, [rbp + 0x250]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x6a8]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x6b0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x6a0]
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x40]
call rax
test eax, eax
je 0x140095def
mov r8d, dword [rbp + 0x6a0]
lea rdx, [0x1400bf658]
lea rcx, [rbp + 0x6b8]
call fcn.14000da78
mov rdi, qword [rbp + 0x6b8]
test rdi, rdi
je 0x140095e69
mov rcx, rdi
call fcn.140051300
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140095e69
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140095e27
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14004d510
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140095e69
mov word [rbx], r14w
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x140095e6c
mov rdx, r14
mov rcx, rsi
call fcn.140011b6c
nop
mov rdx, qword [rbp + 0x6b8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140095e96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
lea rsp, [rbp + 0x670]
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14009621c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbx, rcx
and dword [rsp + 0x30], 0
call fcn.140010fb4
mov rcx, rax
test rax, rax
jne 0x14009625b
mov ecx, 0x80004005
call fcn.140010d40
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call fcn.14004e050
mov dword [rbp + 0x168], 0x200
lea rax, [rbp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140096374
lea rax, [rbp + 0x168]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x170]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14009635a
lea rax, [rbp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140096374
lea rax, [rbp + 0x168]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x170]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140096374
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400119c0
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
add rsp, 0x248
pop rbx
pop rbp
ret
Function at 0x14103ff34
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14103ff3e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14103ff67
pop rbp
sub rbp, 0x33
sub rbp, 0x103ff34
sub rsp, 0x20
jmp 0x14103ff86
mov rax, 0x103ff34
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8b0c9647
xor byte [rax], dl
inc rax
dec rcx
jne 0x14103ffa5
jmp 0x14103ffbc
bswap esi
scasb al, byte [rdi]
int3
Function at 0x140005920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005942
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005958
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005974
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005976
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400059b0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005a57
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400059eb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005a31
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005a70
cmp rbx, rax
ja 0x140005a00
mov r8, rdi
test rdi, rdi
je 0x140005a57
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140005a5a
Function at 0x140005e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005ead
xor eax, eax
jmp 0x140006002
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005ed8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005ed8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140006002
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005ff5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005f1b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005f46
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005ffa
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005fb5
sub eax, 1
je 0x140005fb5
cmp eax, 2
jne 0x140005ff5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005ffa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005fe3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005ff5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005ffa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140010310
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006400
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400064d3
cmp byte [rcx + 0x71], 0
je 0x1400064d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400064cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006494
sub eax, 1
je 0x140006498
cmp eax, 2
jne 0x1400064cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010310
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400064c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400064cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000647c
xor al, al
jmp 0x14000647c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010310
add rsp, 0x60
pop rbx
ret
Function at 0x14000e040
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000e153
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000e153
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14000e0b8
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x14000e160
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x14000e141
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x14000e141
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14000e11a
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x14000e136
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000e7a0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000e0d0
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x14000e160
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010310
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f730
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000f7be
nop dword [rax]
test rbx, rbx
je 0x14000f786
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000f770
test eax, eax
jns 0x14000f7df
test rbx, rbx
je 0x14000f7e4
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000f8d6
test rbx, rbx
jne 0x14000f7eb
xor eax, eax
jmp 0x14000f8d6
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x14000f8b6
mov esi, edi
lea rdx, [rbx + 0x30]
imul rax, rsi, 0x128
mov qword [rsp + 0x28], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], bpl
jne 0x14000f834
lea rcx, [rsp + 0x28]
call fcn.1400068b0
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14000f854
mov rdx, qword [r14]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000f8ec
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000f8ac
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f8a7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f93d
call fcn.140010330
inc edi
cmp edi, dword [rbx]
jb 0x14000f802
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140010310
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
imul rax, rsi, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000f949
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f944
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010330
mov rax, rdi
jmp 0x14000f8c9
Function at 0x412e60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x413006
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042edc0
xorps xmm15, xmm15
mov r14, qword [0x00558c00]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x412ecb
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x412ee0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x412f05
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x412f19
cmp rbx, 0x1000
jae 0x412ed5
nop dword [rax]
jmp 0x412f89
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x412f2d
xor edx, edx
jmp 0x412f80
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042edc0
xorps xmm15, xmm15
mov r14, qword [0x00558c00]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x412f0f
jmp 0x412ef4
call fcn.0045c520
xorps xmm15, xmm15
mov r14, qword [0x00558c00]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004331c0
lea rax, [0x00490b5d]
mov ebx, 0x18
call fcn.00433ac0
mov rax, qword [rsp + 0x38]
call fcn.004337c0
lea rax, [0x00490c1d]
mov ebx, 0x19
call fcn.00433ac0
mov rax, qword [rsp + 0x30]
nop
call fcn.004337c0
call fcn.00433420
call fcn.00433240
lea rax, [0x00492ac0]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.00431880
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004589c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00412e60