joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7866f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r8d, dword [0x007da374]
xor edx, edx
mov ecx, 0x428
mov dword [0x007da370], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, qword [0x007da398]
mov r9d, 0x40
lea rsi, [0x007da370]
mov rcx, rax
lea r8d, [r9 - 0x32]
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da398]
xor edi, edi
lea r9d, [rdi + 0xe]
lea r8, [0x007da3f0]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da398]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da390]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da390]
lea r9d, [rdi + 0xe]
lea r8, [0x007da3e0]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da390]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da388]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da388]
lea r9d, [rdi + 0xe]
lea r8, [0x007da3c0]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da388]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da380]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da380]
lea r9d, [rdi + 0xe]
lea r8, [0x007da3d0]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da380]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rsi
mov rdx, qword [0x007da378]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da378]
lea r9d, [rdi + 0xe]
lea r8, [0x007da3b0]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da378]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x786920
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r8d, dword [0x007da374]
xor edx, edx
mov ecx, 0x428
mov dword [0x007da370], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdx, qword [0x007da398]
mov r9d, 0x40
lea rsi, [0x007da370]
mov rcx, rax
lea r8d, [r9 - 0x32]
mov rbx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da398]
xor edi, edi
lea r9d, [rdi + 0xe]
lea r8, [0x007da450]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da398]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da390]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da390]
lea r9d, [rdi + 0xe]
lea r8, [0x007da440]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da390]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da388]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da388]
lea r9d, [rdi + 0xe]
lea r8, [0x007da430]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da388]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da380]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da380]
lea r9d, [rdi + 0xe]
lea r8, [0x007da420]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da380]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], rsi
mov rdx, qword [0x007da378]
lea r9d, [rdi + 0x40]
lea r8d, [rdi + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rdx, qword [0x007da378]
lea r9d, [rdi + 0xe]
lea r8, [0x007da410]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [0x007da370]
mov rdx, qword [0x007da378]
lea r8d, [rdi + 0xe]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x787b90
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, gethostbyname
mov rax, qword gs:[rax]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
ret

Function at 0x789277
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x007cd058]
jne 0x787d1a
rol rcx, 0x10
test cx, 0xffff
jne 0x787d16
repz ret
ror rcx, 0x10
jmp 0x7891d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x007ce910]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x007cea08]
mov qword [rsp + 0x58], r11
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 0x789255
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, [0x007ce910]
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 0x789277
mov rax, qword [rsp + 0x88]
mov qword [0x007cea08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x007ce9a8], rax
mov rax, qword [0x007cea08]
mov qword [0x007ce880], rax
mov rax, qword [rsp + 0x90]
mov qword [0x007ce990], rax
mov dword [0x007ce870], 0xc0000409
mov dword [0x007ce874], 1
mov rax, qword [0x007cd058]
mov qword [rsp + 0x68], rax
mov rax, qword [0x007cd060]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x007ce908], eax
mov ecx, 1
call fcn.00790ab4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x007be670]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x007ce908], 0
jne 0x7892fe
mov ecx, 1
call fcn.00790ab4
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 0x78ea30
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x78e898
Function at 0x79e820
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.0078b158
xor ebx, ebx
mov rdi, rax
cmp qword [0x007cf660], rbx
jne 0x79e926
lea rcx, [0x007c0670]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x79e9fb
lea rdx, [0x007c0660]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x79e9fb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x007c0650]
mov rcx, rsi
mov qword [0x007cf660], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x007c0638]
mov rcx, rsi
mov qword [0x007cf668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x007c0618]
mov rcx, rsi
mov qword [0x007cf670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x007cf680], rax
test rax, rax
je 0x79e91d
lea rdx, [0x007c0600]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x007cf678], rax
jmp 0x79e92d
mov rax, qword [0x007cf678]
jmp 0x79e934
mov rax, qword [0x007cf678]
mov r11, qword [0x007cf680]
cmp rax, rdi
je 0x79e99c
cmp r11, rdi
je 0x79e99c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x007cf680]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x79e99c
test rax, rax
je 0x79e99c
call rsi
test rax, rax
je 0x79e996
lea rcx, [rsp + 0x88]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x79e996
test byte [rsp + 0x38], 1
jne 0x79e99c
bts ebp, 0x15
jmp 0x79e9da
mov rcx, qword [0x007cf668]
cmp rcx, rdi
je 0x79e9da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x79e9da
call rax
mov rbx, rax
test rax, rax
je 0x79e9da
mov rcx, qword [0x007cf670]
cmp rcx, rdi
je 0x79e9da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x79e9da
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x007cf660]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x79e9fb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x79e9fd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x7aa2a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rdi, rcx
lea rsi, [rcx + 0x51]
mov qword [rsp + 0x21], rax
mov ebx, dword [rsp + 0x25]
cmp ebx, 0x175e
jae 0x7aa2fc
nop dword [rax]
mov rcx, qword [rdi + 0x183b]
mov r8d, 0x175e
mov edx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x7aa30e
add ebx, eax
cmp ebx, 0x175e
jb 0x7aa2d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call sub.WS2_32.dll_WSAGetLastError
mov r11d, eax
cmp eax, 0x274d
je 0x7aa35d
cmp eax, 0x274c
je 0x7aa35d
cmp eax, 0x2742
je 0x7aa35d
cmp eax, 0x2743
je 0x7aa35d
cmp eax, 0x2746
je 0x7aa35d
mov eax, 0x67
mov ecx, 0x76
cmp r11d, 0x2745
cmove eax, ecx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 0x75
add rsp, 0x30
pop rdi
ret

Function at 0x7aa380
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r8d, 0x175e
xor r9d, r9d
mov qword [rsp + 0x21], rax
mov eax, dword [rsp + 0x25]
lea rdx, [rax + rcx + 0x51]
mov rcx, qword [rcx + 0x183b]
sub r8d, eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x7aa3ff
call sub.WS2_32.dll_WSAGetLastError
mov r11d, eax
cmp eax, 0x274d
je 0x7aa3f5
cmp eax, 0x274c
je 0x7aa3f5
cmp eax, 0x2742
je 0x7aa3f5
cmp eax, 0x2743
je 0x7aa3f5
cmp eax, 0x2746
je 0x7aa3f5
mov eax, 0x66
mov ecx, 0x76
cmp r11d, 0x2745
cmove eax, ecx
add rsp, 0x38
ret
mov eax, 0x75
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x7aa4b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x530
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.007b6ac4
lea rdi, [rsi + 0x66]
mov ebp, reloc.WS2_32.dll_recv
nop word [rax + rax]
call fcn.007b6adc
mov ebx, eax
call fcn.007b6adc
imul bl
mov byte [rdi], al
inc rdi
sub rbp, 1
jne 0x7aa500
lea rcx, [rsp + 0xa0]
call fcn.007acab0
nop
movzx r9d, byte [rsi + 0x65]
mov dword [rsp + 0x20], r9d
lea r8, [0x007c56f0]
lea rdx, [rsi + 0x66]
lea rcx, [rsp + 0xa0]
call fcn.007acae0
lea rdx, [rsi + 0x8f]
xor edi, edi
mov dword [rsp + 0x20], edi
mov r9d, 0x1710
mov r8, rdx
lea rcx, [rsp + 0xa0]
call fcn.007ae050
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.007b6ac4
mov rbp, rdi
nop dword [rax]
call fcn.007b6adc
mov ebx, eax
call fcn.007b6adc
imul bl
mov byte [rsi + rbp + 0x7f], al
inc rbp
cmp rbp, 0x10
jl 0x7aa580
lea rcx, [rsi + 0x52]
nop
mov eax, edi
and eax, 0xf
movzx eax, byte [rax + rsi + 0x7f]
xor byte [rcx - 1], al
lea eax, [rdi + 1]
and eax, 0xf
movzx eax, byte [rax + rsi + 0x7f]
xor byte [rcx], al
add edi, 2
add rcx, 2
cmp edi, 0x2e
jb 0x7aa5a0
lea rcx, [rsp + 0x40]
call fcn.007ae450
mov r8d, 0x174e
lea rdx, [rsi + 0x51]
lea rcx, [rsp + 0x40]
call fcn.007aebf0
lea rcx, [rsi + 0x179f]
lea rdx, [rsp + 0x40]
call fcn.007aed10
nop
lea rcx, [rsp + 0xa0]
call fcn.007acad0
mov al, 1
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.00787d00
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x7aa970
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x878
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x860], rax
cmp dword [rcx + 0x19e3], 1
jle 0x7aaac5
lea rdx, [rsp + 0x460]
mov r8d, 0x400
xor ecx, ecx
mov qword [rsp + 0x870], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r11d, r11d
mov rcx, r11
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x460]
inc rcx
mov byte [rsp + rcx + 0x5f], al
test al, al
jne 0x7aa9c0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
mov rax, qword [0x007c1578]
or rcx, 0xffffffffffffffff
mov qword [rdi - 1], rax
mov eax, dword [0x007c1580]
lea rdx, [0x007c1500]
mov dword [rdi + 7], eax
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
mov rax, qword [0x007c14f0]
xor r9d, r9d
mov qword [rdi - 1], rax
movzx eax, word [0x007c14f8]
xor r8d, r8d
mov word [rdi + 7], ax
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r11d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x7aaaa3
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x460]
not rcx
mov r9d, 1
xor r8d, r8d
dec rcx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.00787d00
add rsp, 0x878
ret
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.00787d00
add rsp, 0x878
ret
Function at 0x7aaae0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rsi, rcx
lea rdx, [rsp + 0x80]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsi + 0x17b7]
mov edx, 0x20
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x7aad17
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x1d8], rbp
call fcn.007ae450
lea rdx, [rsi + 0x17b7]
lea rcx, [rsp + 0x20]
mov r8d, 0x20
call fcn.007aebf0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x1803]
call fcn.007aed10
lea rcx, [rsi + 0x17b7]
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x7aad13
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x1e0], rdi
mov rcx, qword [rax]
mov ecx, dword [rcx]
call sub.WS2_32.dll_ntohl
cmp word [rsi + 0x1801], 0
mov dword [rsi + 0x17af], eax
jbe 0x7aac3a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
mov rax, qword [rsi + 0x17b7]
not rcx
mov qword [rsp + rcx + 0x7f], rax
mov rax, qword [rsi + 0x17bf]
mov qword [rsp + rcx + 0x87], rax
mov rax, qword [rsi + 0x17c7]
mov qword [rsp + rcx + 0x8f], rax
mov rax, qword [rsi + 0x17cf]
mov qword [rsp + rcx + 0x97], rax
lea rcx, [rsp + 0x20]
call fcn.007ae450
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
lea rdx, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.007aebf0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x1803]
call fcn.007aed10
cmp word [rsi + 0x1801], 1
jbe 0x7aace0
mov rcx, qword [rsi + 0x1a00]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, gethostbyname
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.007b6ac4
call fcn.007b6adc
mov edi, eax
call fcn.007b6adc
imul edi, eax
call fcn.007b6adc
mov rcx, qword [rsi + 0x1a00]
mov ebx, eax
imul ebx, edi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
lea edi, [rcx + 3]
mov dword [rsp + rcx + 0x7f], ebx
lea rcx, [rsp + 0x20]
call fcn.007ae450
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
mov r8d, edi
call fcn.007aebf0
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x1803]
call fcn.007aed10
mov rdi, qword [rsp + 0x1e0]
mov al, 1
mov rbp, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.00787d00
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
xor al, al
jmp 0x7aacea
xor al, al
jmp 0x7aacf2
Function at 0x7aad20
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x550
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x568], rbx
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.007ae450
lea rbx, [rdi + 0x51]
mov r8d, 0x174e
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.007aebf0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x520]
call fcn.007aed10
xor ecx, ecx
lea rdx, [rsp + 0x520]
lea r8, [rdi + 0x179f]
movzx eax, byte [r8]
cmp byte [rdx], al
jne 0x7aae5d
inc ecx
inc r8
inc rdx
cmp ecx, 0x10
jb 0x7aad93
xor edx, edx
lea rcx, [rbx + 1]
nop word [rax + rax]
mov eax, edx
and eax, 0xf
movzx eax, byte [rax + rdi + 0x7f]
xor byte [rcx - 1], al
lea eax, [rdx + 1]
and eax, 0xf
movzx eax, byte [rax + rdi + 0x7f]
xor byte [rcx], al
add edx, 2
add rcx, 2
cmp edx, 0x2e
jb 0x7aadc0
movzx eax, byte [rbx]
inc rbx
test al, al
jne 0x7aade6
cmp byte [rdi + 0x61], 2
jne 0x7aae5f
lea rcx, [rsp + 0xa0]
call fcn.007acab0
nop
movzx r9d, byte [rdi + 0x65]
lea rdx, [rdi + 0x66]
mov dword [rsp + 0x20], r9d
lea r8, [0x007c56f0]
lea rcx, [rsp + 0xa0]
call fcn.007acae0
lea rdx, [rdi + 0x8f]
mov dword [rsp + 0x20], 0
mov r9d, 0x1710
mov r8, rdx
lea rcx, [rsp + 0xa0]
call fcn.007ae240
nop
lea rcx, [rsp + 0xa0]
call fcn.007acad0
mov al, 1
jmp 0x7aae5f
xor al, al
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.00787d00
mov rbx, qword [rsp + 0x568]
add rsp, 0x550
pop rdi
ret
Function at 0x7ab060
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov rbx, rcx
lea rcx, [rsp + 0x48]
mov rax, qword [0x007c14e0]
mov qword [rcx], rax
mov eax, dword [0x007c14e8]
mov dword [rcx + 8], eax
movzx eax, word [0x007c14ec]
mov word [rcx + 0xc], ax
mov dword [rbx + 0x1b0c], 0
lea rsi, [rbx + 0x1a08]
mov r8d, 0x104
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsxd rcx, eax
cmp byte [rcx + rbx + 0x1a08], 0x5c
je 0x7ab0fa
lea rcx, [rcx + rbx + 0x1a08]
nop
dec eax
dec rcx
cmp byte [rcx], 0x5c
jne 0x7ab0f0
cdqe
mov byte [rax + rbx + 0x1a09], 0
mov rdi, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x48]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x7ab120
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x7ab17a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x104
mov rdx, rbp
mov rcx, rsi
call fcn.00788e20
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x20
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x007c14d0]
lea rcx, [0x007c14c4]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [rbx + 0x1b0c], eax
mov r9, rsi
xor r8d, r8d
lea rdx, [0x007c14b8]
lea rcx, [0x007c14c4]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r9, rsi
mov r8d, 1
lea rdx, [0x007c14a8]
lea rcx, [0x007c14a0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbx + 0x19e3], eax
mov r9, rsi
xor r8d, r8d
lea rdx, [0x007c1490]
lea rcx, [0x007c14a0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [rbx + 0x1801], ax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x007c1480]
lea rcx, [0x007c1470]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x48]
call fcn.007aede0
nop
lea rdx, [rbx + 0x17d7]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.007aeea0
mov r9, rsi
mov r8d, 5
lea rdx, [0x007c1458]
lea rcx, [0x007c1470]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [rbx + 0x17fd], ax
mov r9, rsi
mov r8d, 0x1630
lea rdx, [0x007c1450]
lea rcx, [0x007c1470]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [rbx + 0x17fb], ax
mov r9, rsi
mov r8d, 1
lea rdx, [0x007c1440]
lea rcx, [0x007c1470]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbx + 0x19ea], eax
lea rcx, [rsp + 0x48]
call fcn.007aedf0
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.00787d00
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ac930
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x007ac7f0]
xor edx, edx
mov r9, rbx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x40], ecx
mov qword [rbx + 8], rcx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 8], rax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x7aca50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
jne 0x7aca80
lea rdx, [0x007ce650]
lea rcx, [rsp + 0x20]
call fcn.00790184
lea rdx, [0x007cae18]
lea rcx, [rsp + 0x20]
call fcn.00790a20
int3
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x7acaa8
nop dword [rax + rax]
movzx eax, byte [r8]
inc ecx
inc rdx
xor byte [rdx - 1], al
inc r8
cmp ecx, dword [r9 + 0x3d0]
jl 0x7aca90
add rsp, 0x48
ret