joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009f64
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov r8, r14
xor edx, edx
cmp ecx, dword [r8]
je 0x140009f9b
inc edx
add r8, 0x10
movsxd rax, edx
cmp rax, 0x17
jb 0x140009f87
movsxd rbx, edx
cmp rbx, 0x17
jae 0x14000a115
mov ebp, 3
mov ecx, ebp
call fcn.14000d8b0
cmp eax, 1
je 0x14000a0d6
mov ecx, ebp
call fcn.14000d8b0
test eax, eax
jne 0x140009fd5
cmp dword [section..data], 1
je 0x14000a0d6
cmp edi, 0xfc
je 0x14000a115
mov ebp, 0x314
lea rdi, [0x14001cab0]
mov edx, ebp
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rdi
call fcn.14000aa70
test eax, eax
je 0x14000a017
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000b934
mov r8d, 0x104
mov byte [0x14001cbcd], 0
lea rdx, [0x14001cac9]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000a068
lea r8, str._program_name_unknown_
mov edx, 0x2fb
lea rcx, [0x14001cac9]
call fcn.14000aa70
test eax, eax
je 0x14000a068
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000b934
lea r8, [0x140014f20]
mov rdx, rbp
mov rcx, rdi
call fcn.14000d81c
test eax, eax
je 0x14000a093
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000b934
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.14000d81c
test eax, eax
je 0x14000a0bf
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000b934
mov r8d, 0x12010
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov rcx, rdi
call fcn.14000d908
jmp 0x14000a115
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000a115
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000a0f7
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14000b934
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000b9b1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000b9d1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140008070
add rsp, 0x540
pop rbx
ret
Function at 0x14000d908
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, r8d
mov r12, rdx
mov r15, rcx
call fcn.1400096c4
xor esi, esi
mov rbx, rax
cmp qword [0x14001d2a8], rsi
jne 0x14000da1b
xor r8d, r8d
lea rcx, str.USER32.DLL
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000db26
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000db26
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov qword [0x14001d2a8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov qword [0x14001d288], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov qword [0x14001d290], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001d2a0], rax
mov rcx, rax
test rax, rax
je 0x14000da12
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001d298], rax
jmp 0x14000da22
mov rax, qword [0x14001d298]
jmp 0x14000da29
mov rax, qword [0x14001d298]
mov rcx, qword [0x14001d2a0]
cmp rax, rbx
je 0x14000daa3
cmp rcx, rbx
je 0x14000daa3
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001d2a0]
mov rdi, rax
call sub.KERNEL32.dll_DecodePointer
mov rbp, rax
test rdi, rdi
je 0x14000daa3
test rax, rax
je 0x14000daa3
mov rcx, rdi
call qword [fcn.140001900]
call rdi
mov rdi, rax
test rax, rax
je 0x14000da9c
mov rcx, rbp
call qword [fcn.140001900]
mov r9d, 0xc
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea edx, [r9 - 0xb]
call rbp
test eax, eax
je 0x14000da9c
test byte [rsp + 0x40], 1
jne 0x14000daa3
bts r14d, 0x15
jmp 0x14000daf9
mov rcx, qword [0x14001d288]
cmp rcx, rbx
je 0x14000daf9
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
test rax, rax
je 0x14000daf9
mov rcx, rax
call qword [fcn.140001900]
call rdi
mov rsi, rax
test rax, rax
je 0x14000daf9
mov rcx, qword [0x14001d290]
cmp rcx, rbx
je 0x14000daf9
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
test rax, rax
je 0x14000daf9
mov rcx, rax
call qword [fcn.140001900]
mov rcx, rsi
call rbx
mov rsi, rax
mov rcx, qword [0x14001d2a8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
test rax, rax
je 0x14000db26
mov rcx, rax
call qword [fcn.140001900]
mov r9d, r14d
mov r8, r12
mov rdx, r15
mov rcx, rsi
call rbx
jmp 0x14000db28
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008070
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ff98
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14001b060]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001009b
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x140010026
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x14001009b
mov eax, edx
not eax
and ecx, eax
je 0x140010041
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14001009b
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r14
mov esi, ecx
lea rax, [r15 + rdi]
sub rbx, rsi
cmp rbx, rax
jb 0x14001009b
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14001009b
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001009b
mov eax, 1
jmp 0x14001009d
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140008070
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret
Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b40
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 0x1400112f3
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140012480
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x14002b0f3]
call fcn.14001141a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1b2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400124ec
lea rdx, str.Failed_to_allocate_memory_for_shellcode.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400125a2
mov r8d, 0x1b2
lea rdx, section..data
mov rcx, qword [rbp + 8]
call fcn.140011217
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
lea r8, [0x1400114a6]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001255d
lea rdx, str.Failed_to_create_thread.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400125a2
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x28]
lea rcx, [0x1400114a6]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, 0x8000
mov edx, 0x1b2
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014eb0
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ec3
xor al, al
jmp 0x140014f31
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 0x140014eed
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014f01
xor al, al
jmp 0x140014f31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014f13
xor al, al
jmp 0x140014f31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f2f
xor al, al
jmp 0x140014f31
mov al, 1
add rsp, 0x38
ret
Function at 0x180004d20
Capabilities:
Access peb ldr_data
Encode data using xor
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rsi, rdx
call fcn.180004950
mov r9, qword [0x1800077a0]
mov rbp, rax
test r9, r9
jne 0x180004e05
mov rcx, qword gs:[0x60]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
mov r10, qword [rcx + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov ebx, dword [rax + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180004dd7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180004dd7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x1d8d9a1e
lea rax, [rdi + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x180004dd2
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x180004db0
cmp r8d, 0xae71d181
je 0x180004ddc
test r9d, r9d
jne 0x180004d90
mov rcx, qword [rcx]
jmp 0x180004d60
mov ecx, dword [rbx + 0x24]
mov rdi, qword [rsp + 0x20]
add rcx, r10
movzx r8d, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
mov rbx, qword [rsp + 0x50]
add rcx, r10
mov r9d, dword [rcx + r8*4]
add r9, r10
mov qword [0x1800077a0], r9
mov r8d, 0xffffffff
mov rdx, rsi
mov rcx, rbp
add rsp, 0x28
pop rsi
pop rbp
jmp r9
Function at 0x14002934c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1806ba02e
Capabilities:
Encode data using xor

Disassembly:
push 0x3b53c81
not ecx
mov dword [rbx], ecx
jmp 0x1806d1976
push 0xffffffffb51a5483
lea rsp, [rsp + 0x18]
je 0x1806b100a
push rdi
jmp 0x1806b0e19
Function at 0x140004730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14016e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14045dc10]
lea r9, [rsp + 0x31]
xor eax, eax
mov byte [rsp + 0x30], WSACleanup
mov r8b, 0x40
mov byte [rsp + 0x32], al
xor r8b, 0x72
mov rbx, rdx
mov byte [rsp + 0x31], r8b
lea ecx, [rax + 0x3e]
call fcn.140004340
mov r11, rax
cmp r8b, 0x30
jl 0x1400047ac
cmp r8b, 0x39
ja 0x1400047ac
mov ecx, 0x630
call fcn.140004340
imul eax, r11d
inc r9
movzx r11d, r8b
add r11d, 0xffffffd0
movzx r8d, byte [r9]
add r11d, eax
cmp r8b, 0x30
jge 0x140004780
mov cl, 0x50
mov dword [rsp + 0x30], 0x66636950
mov word [rsp + 0x34], 0x64
xor eax, eax
nop
xor byte [rsp + rax + 0x31], cl
inc rax
cmp rax, 4
jae 0x1400047d4
movzx ecx, byte [rsp + 0x30]
jmp 0x1400047c0
mov ecx, 0x3e
mov byte [rsp + 0x35], 0
lea r9, [rsp + 0x31]
call fcn.140004340
movzx r8d, byte [rsp + 0x31]
mov r10, rax
cmp r8b, 0x30
jl 0x140004823
cmp r8b, 0x39
jg 0x140004823
mov ecx, 0x630
call fcn.140004340
imul eax, r10d
inc r9
movsx r10d, r8b
add r10d, 0xffffffd0
movzx r8d, byte [r9]
add r10d, eax
cmp r8b, 0x30
jge 0x1400047f7
movsxd r8, r10d
mov r9d, pe_nt_image_headers64
mov rdx, rbx
mov dword [rsp + 0x20], r11d
xor ecx, ecx
call rdi
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b980
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1410
call fcn.140124f00
sub rsp, rax
mov rax, qword [0x14016e010]
xor rax, rsp
mov qword [rsp + 0x1400], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
movups xmm0, xmmword [0x140163b20]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x140163b30]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x140163b40]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm1, qword [0x140163b50]
movsd qword [rsp + 0x13f0], xmm1
mov eax, dword [0x140163b58]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x140163b5c]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x140163b5e]
mov byte [rsp + 0x13fe], al
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x20], rbx
lea ecx, [rbx + 0x10]
call fcn.14000b280
mov qword [rax + 8], rbx
mov qword [rdi], rax
mov qword [rax], rdi
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rdi + 8], bl
mov ebx, 1
mov dword [rsp + 0x20], ebx
call fcn.14000ea20
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rsp + rbx*4 + 0x34], eax
inc rbx
cmp rbx, 0x270
jb 0x140004c60
mov dword [rsp + 0x30], 0x270
test esi, esi
jle 0x140004ceb
mov rbx, rsi
nop
lea rcx, [rsp + 0x30]
call fcn.14000b7d0
mov ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
cmp eax, 0x4210842
jae 0x140004c90
mov eax, 0x8421085
mul ecx
mov r8d, ecx
sub r8d, edx
shr r8d, 1
add r8d, edx
shr r8d, 5
imul edx, r8d, 0x3e
sub ecx, edx
movsxd rdx, ecx
movzx edx, byte [rsp + rdx + 0x13c0]
mov rcx, rdi
call fcn.140009f00
sub rbx, 1
jne 0x140004c90
mov rax, rdi
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.14000b980
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140004f70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x6c], 0
je 0x140004f93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x5c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x6b
jb 0x140004f80
mov byte [rcx + 0x6c], 0
mov rax, rcx
ret

Function at 0x140004fa0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x140004fc3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x5c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x140004fb0
mov byte [rcx + 6], 0
mov rax, rcx
ret
Function at 0x14000b7d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14000b831
lea r8, [r10 + 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 r9, 1
jne 0x14000b7f0
mov ecx, dword [r10]
jmp 0x14000b91a
cmp ecx, 0x4e0
jb 0x14000b91a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000b850
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000b8a0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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 0x14001dfa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x54], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8d, 0x1008
mov edx, 0xffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14001e014
cmp dword [rsp + 0x34], 1
jne 0x14001e014
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.140124e60
add rsp, 0x70
pop rdi
ret

Function at 0x1400241f0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14002427b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.140043800
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14002421d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret