joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d3e0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x6c8
mov rax, qword [0x140236f40]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14004d41f
xor al, al
jmp 0x14004d506
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14004d44d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14004d506
mov edx, dword [rsp + 0x38]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14004d4e1
mov dword [rsp + 0x270], 0x438
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14004d4d6
mov rdx, qword [rsp + 0x6d0]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x14004d4bf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14004d506
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14004d48b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14004d44d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.14010ce80
add rsp, 0x6c8
ret
Function at 0x14004d520
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x22a0
call fcn.14010c770
sub rsp, rax
mov rax, qword [0x140236f40]
xor rax, rsp
mov qword [rsp + 0x2290], rax
mov dword [rsp + 0x24], 0
mov rdi, qword [rsp + 0x22b0]
xor eax, eax
mov ecx, Ordinal_27
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x22b0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rax], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x22b0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x22b0]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x70]
mov r8d, 0x2000
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14004d67a
mov dword [rsp + 0x20], 0
jmp 0x14004d5fe
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x70]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
jae 0x14004d67a
mov eax, dword [rsp + 0x20]
mov r8d, 0x104
lea rdx, [rsp + 0x2080]
mov rcx, qword [rsp + rax*8 + 0x80]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004d675
lea rdx, [rsp + 0x2080]
lea rcx, [rsp + 0x50]
call fcn.14006c260
nop
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x22b0]
call fcn.14006f230
nop
lea rcx, [rsp + 0x50]
call fcn.14006d740
jmp 0x14004d5f4
mov rax, qword [rsp + 0x22b0]
mov rcx, qword [rsp + 0x2290]
xor rcx, rsp
call fcn.14010ce80
add rsp, 0x22a0
pop rdi
ret
Function at 0x14006a550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x14006a589
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call 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]
jmp 0x14006a6d4
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14006a5b3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14006a5bb
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x14006a67c
cmp qword [rsp + 0x28], 0
jle 0x14006a67c
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x14006a5f3
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x14006a6c4
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x14006a6c4
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14006cc30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140236f40]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x14006cc6d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006cc74
mov al, 1
jmp 0x14006cdfd
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x3c], 0xffffffff
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x3c], eax
jne 0x14006ccd0
mov dword [rsp + 0x40], 1
jmp 0x14006ccd8
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14006ccf1
xor al, al
jmp 0x14006cdfd
mov qword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
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]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14006cd64
cmp dword [rsp + 0x34], 1
je 0x14006cd70
cmp dword [rsp + 0x34], 3
je 0x14006cdeb
jmp 0x14006cdfb
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14006cdc2
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x14006cdc2
xor al, al
jmp 0x14006cdfd
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006cddc
mov dword [rsp + 0x44], 1
jmp 0x14006cde4
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
jmp 0x14006cdfd
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14006cdfd
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14010ce80
add rsp, 0xb8
ret
Function at 0x140073580
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140236f40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400735de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140135de0]
call fcn.1400734e0
mov eax, dword [rsp + 0x30]
jmp 0x1400736ec
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140073634
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140135e08]
call fcn.1400734e0
mov eax, dword [rsp + 0x30]
jmp 0x1400736ec
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov dword [rcx + rax], 0x4d2
mov qword [rsp + 0x48], 0x1000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x1400736a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140135e30]
call fcn.1400734e0
mov dword [rsp + 0x30], 0
jmp 0x1400736c2
cmp qword [rsp + 0x48], 1
je 0x1400736b2
mov dword [rsp + 0x34], 1
jmp 0x1400736ba
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010ce80
add rsp, 0x68
ret
Function at 0x140073a30
Capabilities:
Check for unexpected memory writes

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140236f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140073a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140136280]
call fcn.1400734e0
mov eax, dword [rsp + 0x30]
jmp 0x140073bcc
mov r9d, 4
mov r8d, 0x203000
mov edx, 0x1000000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140073ae4
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401362a8]
call fcn.1400734e0
mov eax, dword [rsp + 0x30]
jmp 0x140073bcc
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x40]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x50], 0x1000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8d, 0x1000
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140073b52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1401362d0]
call fcn.1400734e0
mov dword [rsp + 0x30], 0
jmp 0x140073ba2
cmp qword [rsp + 0x50], 1
je 0x140073b64
mov dword [rsp + 0x38], 1
jmp 0x140073b6c
mov dword [rsp + 0x38], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp dword [rcx + rax], 1
jne 0x140073b8a
mov dword [rsp + 0x34], 1
jmp 0x140073b92
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010ce80
add rsp, 0x78
ret
Function at 0x1400793b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.14010c6dc
test rax, rax
je 0x1400793d2
mov qword [rax], rdi
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007a660]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140079412
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x14007c9c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, 0x7d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, ebx
sub rax, rcx
cmp rax, 0x9c4
jbe 0x14007c9d0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14007ca87
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14007ca87
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14007ca82
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14007ca60
cmp r8d, 0xcded1a85
je 0x14007ca8c
test r9d, r9d
jne 0x14007ca40
mov rax, qword [rax]
jmp 0x14007ca10
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
jmp 0x14007c9d0
Function at 0x1400830a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14008313d
lea rdi, str.Taskmgr.exe
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
xor eax, eax
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
jne 0x14008312c
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x14008312c
add rax, 2
cmp rax, 0xc
jne 0x1400830f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400830e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x270]
xor al, al
add rsp, 0x260
pop rdi
ret
Function at 0x14008ae10
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r10, rcx
test rcx, rcx
je 0x14008ae66
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14007c410
movzx ecx, byte [rax + 6]
test cl, cl
je 0x14008ae52
xor byte [rax], 0x35
xor byte [rax + 1], 0x36
xor byte [rax + 2], 0x37
xor byte [rax + 3], 0x38
xor byte [rax + 4], 0x39
xor byte [rax + 5], 0x3a
xor cl, 0x3b
mov byte [rax + 6], cl
mov r9d, reloc.WS2_32.dll_recv
mov r8, rax
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, reloc.WS2_32.dll_ntohl
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx + 0x32]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14008aeb2
mov dword [rax], 0xdb31c031
mov dword [rax + 4], 0xd231c931
mov dword [rax + 8], 0xed31e431
mov word [rax + 0xc], 0xe4ff
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
call rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

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

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x1400901a1
lea r8, [r9 + 8]
nop dword [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 0x140090160
mov ecx, dword [r9]
jmp 0x14009028b
cmp ecx, 0x4e0
jb 0x14009028b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400901c0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140090210
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 0x140090d30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ecx, 0xbeef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140090d4e
test ebx, ebx
je 0x140090f6f
mov byte [0x14023e153], 1
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140090de6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140090de6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140090dd8
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140090dc0
cmp r8d, 0xcded1a85
je 0x140090deb
test r9d, r9d
jne 0x140090da0
mov rax, qword [rax]
jmp 0x140090d70
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
xor ecx, ecx
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140090e96
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140090e96
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
mov r8d, 0x811c9dc5
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140090e88
nop
movsx ecx, cl
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
test cl, cl
jne 0x140090e70
cmp r8d, 0xe80fd3a
je 0x140090e9b
test r9d, r9d
jne 0x140090e50
mov rax, qword [rax]
jmp 0x140090e20
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
xor ecx, ecx
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140090f46
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140090f46
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0x811c9dc5
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140090f38
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140090f20
cmp r8d, 0xa52bcaf9
je 0x140090f4b
test r9d, r9d
jne 0x140090f00
mov rax, qword [rax]
jmp 0x140090ed0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
mov dword [0], 0xdead
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret