joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
call fcn.1400018a7
mov dword [rbp - 0x1f], 0x2ed912a6
mov dword [rbp - 0x1c], 0x2e2e2e
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.NtAllocateVirtualMemory
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 8], rax
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 7
mov rbx, qword [rbp - 8]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x28]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
mov r9, rdx
mov r8d, 0
mov rdx, rax
call rbx
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 0x28]
mov edx, dword [rbp - 0x1f]
mov dword [rax], edx
mov edx, dword [rbp - 0x1c]
mov dword [rax + 3], edx
mov rax, qword [rbp - 0x28]
call rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.NtFreeVirtualMemory
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x38], 0
mov rbx, qword [rbp - 0x18]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x38]
lea rax, [rbp - 0x28]
mov r9d, 0x8000
mov r8, rdx
mov rdx, rax
call rbx
mov dword [rbp - 0xc], eax
mov eax, 0
add rsp, 0x78
pop rbx
pop rbp
ret
Function at 0x140001b20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002e80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400027f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000288a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000286e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002862
cmp qword [rbp - 0x10], 0
je 0x140002862
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002828
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000288b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002990
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400029b8
mov eax, 0
jmp 0x140002a06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400029e1
mov eax, 0
jmp 0x140002a06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002a01
mov eax, 0
jmp 0x140002a06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002a0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a81
mov rax, qword [rbp - 8]
jmp 0x140002a9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006ac0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x290
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x270], rbx
mov qword [rbp + 0x280], rsi
mov qword [rbp + 0x288], rdi
mov rax, qword [0x14012d340]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov rdi, rdx
mov dword [rbp], 0x238
xor edx, edx
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
nop dword [rax]
lea rcx, [rbp + 0x2c]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140006b40
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140006bbd
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140006b6b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f5be0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x140006bbd
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x2c]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 3
mov byte [rbx], r14b
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140006bc0
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
jbe 0x140006bcd
mov rcx, qword [rdi]
sub rcx, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + rcx]
sub edx, eax
jne 0x140006be4
inc rbx
test eax, eax
jne 0x140006bd0
mov rcx, rsi
test edx, edx
je 0x140006c12
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006b30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140006100
xor eax, eax
jmp 0x140006c27
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword ds:[rbp + 8]
mov rcx, rdi
call fcn.140006100
mov eax, ebx
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.1400f4a00
mov rbx, qword [rbp + 0x270]
mov rsi, qword [rbp + 0x280]
mov rdi, qword [rbp + 0x288]
lea rsp, [rbp + 0x250]
pop r15
pop r14
pop rbp
ret
Function at 0x140006f20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14012d340]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp byte [0x1401e0c3a], 0
mov rbx, rcx
je 0x14000714b
mov rcx, qword [0x1401e10c0]
mov qword [rsp + 0x78], rbp
xor ebp, ebp
vmovaps xmmword [rsp + 0x50], xmm6
test rcx, rcx
je 0x140007006
mov eax, dword [0x1401e10c8]
test eax, eax
je 0x140006fa2
mov edx, dword [0x14016c134]
lea r8, [rsp + 0x38]
add rdx, qword [rbx + 0x58]
mov r9d, 8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x1401e10c8]
mov rcx, qword [0x1401e10c0]
test rcx, rcx
je 0x140007006
test eax, eax
je 0x140006fd9
mov edx, dword [0x14016c0f0]
lea r8, [rsp + 0x40]
add rdx, qword [rsp + 0x38]
mov r9d, 8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [0x1401e10c8]
mov rcx, qword [0x1401e10c0]
test rcx, rcx
je 0x140007006
nop
test eax, eax
je 0x140007006
mov edx, dword [0x14016c12c]
lea r8, ds:[rsp + 0x30]
add rdx, qword [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword gs:[0x58]
mov ecx, 8
vxorps xmm6, xmm6, xmm6
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x1401e0f98], eax
jle 0x140007057
lea rcx, [0x1401e0f98]
call fcn.1400f4ac8
cmp dword [0x1401e0f98], 0xffffffff
jne 0x140007057
lea rcx, [0x1401e0f98]
vmovss dword [0x1401e0c78], xmm6
vmovss dword [0x1401e0c7c], xmm6
call fcn.1400f4a5c
mov eax, dword [0x1401e0c70]
nop dword [rax]
cmp dword [rbx + 0xd8], eax
jbe 0x14000712d
cmp byte [rsp + 0x30], bpl
je 0x14000712d
vmovss xmm0, dword [rbx + 0xdc]
vmovss xmm4, dword [rbx + 0x130]
vmovss xmm3, dword [0x14010fe44]
vmovss xmm6, dword [0x14010fa4c]
vmovaps xmm1, xmm6
vmovaps xmm5, xmm6
vfnmadd213ss xmm5, xmm0, dword [0x1401e0c78]
vmovss xmm0, dword [rbx + 0xe0]
vfnmadd213ss xmm1, xmm0, dword [0x1401e0c7c]
vdivss xmm0, xmm3, xmm4
vmulss xmm1, xmm0, xmm1
vmulss xmm2, xmm1, dword [0x1401de740]
vdivss xmm0, xmm3, xmm4
vmulss xmm1, xmm0, xmm5
vcvttss2si esi, xmm2
vmulss xmm2, xmm1, dword [0x1401de744]
mov ecx, 1
vcvttss2si edi, xmm2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000710b
neg edi
mov qword [rsp + 0x20], rbp
mov r8d, edi
xor r9d, r9d
mov edx, esi
mov ecx, 1
call qword [sym.imp.USER32.dll_mouse_event]
vmulss xmm3, xmm6, dword [rbx + 0xdc]
vmulss xmm2, xmm6, dword [rbx + 0xe0]
vmovss dword [0x1401e0c78], xmm3
vmovss dword [0x1401e0c7c], xmm2
jmp 0x14000713d
vmovss dword [0x1401e0c78], xmm6
vmovss dword [0x1401e0c7c], xmm6
vmovaps xmm6, xmmword [rsp + 0x50]
mov rbp, qword [rsp + 0x78]
mov rcx, rbx
mov eax, 0xb8
mov edi, 0x68
add rcx, rax
call fcn.140006100
lea rcx, [rbx + rdi]
call fcn.14002a500
lea rcx, [rbx + 0x30]
call fcn.140006100
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f4a00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140028020
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140028048
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14002806e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140028070
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400280c9
test ecx, ecx
jle 0x1400280a9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400280c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400280c9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140028100
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 0x140028122
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140028138
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 0x140028154
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140028156
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140028192
mov qword [rsp + 0x20], rdi
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]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword ds:[rsi + 0x80], 0
je 0x14002822e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400281d3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14002820e
nop dword [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14002822e
cmp rbx, rax
ja 0x1400281e0
test rbx, rbx
je 0x14002822e
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]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140028680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14012d340]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400286ad
xor eax, eax
jmp 0x14002881f
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400286e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400286e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14002881f
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140028812
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002872a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140028757
mov rdx, qword ds:[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 0x140028817
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 0x1400287ca
nop dword [rax]
sub eax, 1
je 0x1400287ca
cmp eax, 2
jne 0x140028812
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 0x140028817
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400287f8
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 0x140028812
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140028817
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f4a00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140029f20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14012d340]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140029ff9
cmp byte [rcx + 0x71], 0
je 0x140029ff9
mov rax, qword ds:[rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140029ff5
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 0x140029fba
sub eax, 1
je 0x140029fbe
cmp eax, 2
jne 0x140029ff5
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f4a00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140029fec
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 0x140029ff5
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140029fa2
xor al, al
jmp 0x140029fa2
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f4a00
add rsp, 0x60
pop rbx
ret

Function at 0x14002ad60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.1400f5be0
sub rsp, rax
vmovaps xmmword [rsp + 0x13d0], xmm6
vmovaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x14012d340]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
vmovaps xmm7, xmm1
vmovaps xmm6, xmm0
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x14002adc0
mov dword [rsp + 0x20], r9d
lea r8, [rsp + 0x28]
nop word [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 r9, 1
jne 0x14002adf0
mov eax, dword [rsp + 0x20]
vsubss xmm0, xmm7, xmm6
vxorps xmm1, xmm1, xmm1
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
vcvtsi2ss xmm1, xmm1, rax
vmulss xmm2, xmm1, xmm0
vmovaps xmm0, xmm6
vfmadd231ss xmm0, xmm2, dword [0x14010f994]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400f4a00
vmovaps xmm6, xmmword [rsp + 0x13d0]
vmovaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x14002b900
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14012d340]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r9
mov rsi, r8
mov r15, rcx
mov rbx, qword [rsp + 0x80]
mov ecx, 0x288
call fcn.1400f4b40
mov r14, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax]
mov dword [r14], ecx
mov eax, dword [0x14012d408]
mov dword [r14 + 4], eax
lea rcx, [r14 + 8]
mov rdx, rbx
call fcn.140027300
mov rax, qword ds:[rdi]
mov qword [r14 + 0x140], rax
lea rcx, [r14 + 0x148]
mov rdx, rsi
call fcn.140027300
nop
lea rax, [0x140023440]
mov qword [r14 + 0x280], rax
mov qword [rsp + 0x30], r14
lea rbx, [r15 + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, r14
lea r8, [0x14002e900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [r15], rax
test rax, rax
je 0x14002b9ea
mov rax, r15
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400f4a00
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
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 0x140034780
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x14012d340]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140034800
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14003487d
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14003482b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f5be0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14003487d
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 3
mov byte [rbx], r14b
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x140034880
mov rbx, r14
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
jbe 0x14003488d
mov rcx, qword [rdi]
sub rcx, rbx
movzx edx, byte [rbx]
movzx eax, byte [rbx + rcx]
sub edx, eax
jne 0x1400348a4
inc rbx
test eax, eax
jne 0x140034890
mov rcx, rsi
test edx, edx
je 0x1400348d2
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400347f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140006100
xor eax, eax
jmp 0x1400348e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword ds:[rbp + 0x28]
mov rcx, rdi
call fcn.140006100
mov rax, rbx
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.1400f4a00
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret