joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c6c4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e414
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c74e
cmp byte [rbp - 0x21], r15b
je 0x14001c749
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c784
call fcn.14001380c
test eax, eax
jne 0x14001c770
cmp byte [rbp - 0x21], r15b
je 0x14001c768
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c784
cmp byte [rbp - 0x21], r15b
je 0x14001c781
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400127d8
test eax, eax
jne 0x14001c824
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e414
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c7c3
cmp byte [rbp - 0x21], r15b
je 0x14001c7f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c7f8
call fcn.14001380c
test eax, eax
jne 0x14001c7e4
cmp byte [rbp - 0x21], r15b
je 0x14001c7dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c7f8
cmp byte [rbp - 0x21], r15b
je 0x14001c7f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400127d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c824
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c827
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c835
mov rcx, rdi
call fcn.140013bf8
cmp byte [rbp + 0x3f], r15b
je 0x14001c844
mov rcx, qword [rbp + 0x27]
call fcn.140013bf8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400044a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
test rbx, rbx
je 0x14000451b
cmp qword [rbx], 0
mov rsi, qword [rcx]
je 0x140004509
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004514
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004514
mov rdx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x140004524
cmp dword [rbx + 8], 0
je 0x140004514
mov rcx, rsi
jmp 0x14000451e
mov eax, 1
jmp 0x140004524
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140004cc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140067290]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140004d3c
call fcn.140004208
mov ebx, eax
jmp 0x140004e4b
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x140004d5d
call fcn.140004208
jmp 0x140004e3f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140004d53
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140004d98
mov ebx, 0x8007000e
jmp 0x140004e41
mov ecx, eax
test eax, eax
je 0x140004dd5
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004dcb
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140004dd5
lea rcx, [rsp + 0x70]
call fcn.140007204
mov rax, qword [rsp + 0x70]
jmp 0x140004ddf
mov ecx, 0x80070216
call fcn.140003718
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140004df6
test rax, rax
je 0x140004d8e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140004d53
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140005ad4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140004e62
lea rcx, [rsp + 0x70]
call fcn.14000704c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140015e40
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x1400101d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140067290]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rbp - 0x5e]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x60], si
call fcn.140018210
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx]
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0x30]
xor r11d, r11d
lea r9, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x24], r11
mov dword [rsp + 0x24], eax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x2c], r11d
mov edx, 0x44b
mov qword [rsp + 0x28], rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rbp - 0x60]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x30], WSAStartup
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x60], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.USER32.dll_HideCaret]
mov rax, qword [rdi + 0x148]
cmp qword [rdi + 0x140], rax
je 0x1400102d6
mov rax, qword [rdi + 0x140]
mov rcx, qword [rax]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140015e40
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013dd4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14006e5a0]
test rcx, rcx
jne 0x140013d2b
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140013d24
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140013d56
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x140013d20
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x14006e5a0], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x140013dc9
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140013d79
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x14006e5a0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140013da6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x140013dc9
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14006e5a0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140013dad
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140013cb0

Function at 0x140016bc0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140016a30

Function at 0x140017610
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140017628
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001762a
xor eax, eax
test eax, eax
je 0x14001763a
mov ecx, eax
call fcn.14001a32c
or eax, 0xffffffff
jmp 0x14001763c
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001787c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x1400178a6
call fcn.14001a30c
and dword [rax], 0
call fcn.14001a2ec
mov ebx, socket
mov dword [rax], ebx
call fcn.14001d778
mov eax, ebx
jmp 0x1400178f6
test edx, 0xfffffff9
jne 0x140017889
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400178cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001a32c
call fcn.14001a2ec
mov eax, dword [rax]
jmp 0x1400178f6
test al, 0x10
jne 0x1400178f4
test al, 1
je 0x1400178f4
test bl, 2
je 0x1400178f4
call fcn.14001a30c
mov dword [rax], 5
call fcn.14001a2ec
mov dword [rax], select
jmp 0x1400178c6
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140017fc0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140017fd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017fd8
xor eax, eax
test eax, eax
je 0x140017fe8
mov ecx, eax
call fcn.14001a32c
or eax, 0xffffffff
jmp 0x140017fea
xor eax, eax
add rsp, 0x28
ret

Function at 0x140017ff0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140018006
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140018008
xor eax, eax
test eax, eax
je 0x140018018
mov ecx, eax
call fcn.14001a32c
or eax, 0xffffffff
jmp 0x14001801a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001c24b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140067290]
jne 0x140015e5a
rol rcx, 0x10
test cx, 0xffff
jne 0x140015e56
repz ret
ror rcx, 0x10
jmp 0x14001c1a4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006ec10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14006ed08]
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 0x14001c229
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, [0x14006ec10]
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 0x14001c24b
mov rax, qword [rsp + 0x88]
mov qword [0x14006ed08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006eca8], rax
mov rax, qword [0x14006ed08]
mov qword [0x14006eb80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006ec90], rax
mov dword [0x14006eb70], 0xc0000409
mov dword [0x14006eb74], 1
mov rax, qword [0x140067290]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140067298]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006ec08], eax
mov ecx, 1
call fcn.140029404
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14004fc00]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006ec08], 0
jne 0x14001c2d2
mov ecx, 1
call fcn.140029404
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 0x1400295d8
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 [0x140067290]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001d15c
xor ebx, ebx
cmp qword [0x14006fd18], rbx
mov rdi, rax
jne 0x1400296eb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400297c2
lea rdx, [0x140052538]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400297c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x140052528]
mov rcx, rsi
mov qword [0x14006fd18], 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 [0x14006fd20], 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 [0x14006fd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14006fd38], rax
test rax, rax
je 0x1400296e2
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 [0x14006fd30], rax
jmp 0x1400296f2
mov rax, qword [0x14006fd30]
jmp 0x1400296f9
mov rax, qword [0x14006fd30]
mov r11, qword [0x14006fd38]
cmp rax, rdi
je 0x140029760
cmp r11, rdi
je 0x140029760
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14006fd38]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140029760
test rax, rax
je 0x140029760
call rsi
test rax, rax
je 0x14002975a
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002975a
test byte [rsp + 0x40], 1
jne 0x140029760
bts ebp, 0x15
jmp 0x1400297a0
mov rcx, qword [0x14006fd20]
cmp rcx, rdi
je 0x1400297a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400297a0
call rax
mov rbx, rax
test rax, rax
je 0x1400297a0
mov rcx, qword [0x14006fd28]
cmp rcx, rdi
je 0x1400297a0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400297a0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14006fd18]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400297c2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400297c4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140015e40
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140030e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x140030f0f
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.1400164d0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop dword [rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x140030ee0
sub eax, ebx
jmp 0x140030ee2
xor eax, eax
dec r8d
mov word [rdx], ax
jne 0x140030ed0
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x140030f04
sub eax, ebx
jmp 0x140030f06
xor eax, eax
dec edx
mov word [rcx], ax
jne 0x140030ef4
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x140030f89
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.140030db0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x140030f73
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x140030f89
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x140030e80
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140032150
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rsi, rdx
mov r12, rcx
test rdx, rdx
je 0x1400321f4
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jg 0x1400321f4
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400321a5
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140019b50
sub rsp, rcx
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x1400321f4
xor ebx, ebx
lea eax, [r9 + r9]
mov r8, rsi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea ecx, [rbx + 3]
or r9d, 0xffffffff
xor edx, edx
mov byte [rdi], 0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x1400321f8
xor ebx, ebx
mov edi, ebx
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov eax, 2
lea ecx, [rax + 0x79]
mov word [rbp], ax
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, rdi
mov word [rbp + 2], ax
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
jne 0x140032243
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x140032274
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 4], eax
mov rcx, qword [r12]
lea rdx, [rbp]
mov r8d, reloc.WSOCK32.dll_recv
call qword [sym.imp.WSOCK32.dll_connect]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
jmp 0x14003225e
Function at 0x140035580
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
jne 0x140035588
xor eax, eax
ret
jmp fcn.140035250

Function at 0x1400358c0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, rdx
xor r13d, r13d
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0xa8], r13
mov r8d, ecx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14003592b
mov dword [rsp + 0x40], r13d
lea rdx, [0x140064630]
lea rcx, [rsp + 0x40]
call fcn.140019a18
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
movsxd r12, eax
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, r12
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rsp + 0xa8], rax
test rax, rax
jne 0x14003597d
mov dword [rsp + 0x44], r13d
lea rdx, [0x140064630]
lea rcx, [rsp + 0x44]
call fcn.140019a18
mov qword [rsp + 0x20], r13
mov r9, r12
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400359ae
mov dword [rsp + 0x48], r13d
lea rdx, [0x140064630]
lea rcx, [rsp + 0x48]
call fcn.140019a18
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140058580]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400359e6
mov dword [rsp + 0x4c], r13d
lea rdx, [0x140064630]
lea rcx, [rsp + 0x4c]
call fcn.140019a18
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140035a26
mov dword [rsp + 0x50], r13d
lea rdx, [0x140064630]
lea rcx, [rsp + 0x50]
call fcn.140019a18
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov dword [rsp + 0xa0], eax
jmp 0x140035a47
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r13
pop r12
pop rdi
ret