joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015350
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov byte [rsp + 0x40], 0
lea rax, [0x140015fe0]
lea rcx, [0x140015f80]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rax, 0x18
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14001553e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [0x140045f00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140045ef0]
mov rcx, rax
call fcn.140015860
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140015f80]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.140014cb0
movzx eax, al
test eax, eax
je 0x140015522
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014cb0
movzx eax, al
test eax, eax
je 0x140015522
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140015522
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x48], 0x54fd32fc
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x140015517
cmp dword [rsp + 0x48], 0xab02cd03
jne 0x140015517
mov r9d, 0x18
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014bd0
movzx eax, al
test eax, eax
je 0x140015517
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx eax, byte [rsp + 0x40]
add rsp, 0x90
pop rdi
ret
Function at 0x140015b40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov rcx, qword [rsp + 0x2c0]
call fcn.140022770
inc rax
mov qword [rsp + 0x58], rax
mov eax, 2
mul qword [rsp + 0x58]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14001b204
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140015be6
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
cmp qword [rsp + 0x28], 0
je 0x140015bd1
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x140015bda
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
jmp 0x140015bef
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x38]
call fcn.1400295b4
nop
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x140015c99
mov dword [rsp + 0x60], 0x238
lea rax, [rsp + 0x64]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140015c8e
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x8c]
call fcn.1400225e0
test eax, eax
jne 0x140015c7b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140015cbc
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140015c56
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x38]
lea rdx, str.Log:isProcessRunning:false:_ls__n
mov rcx, qword [0x1400990b8]
call fcn.140008320
xor al, al
jmp 0x140015cbc
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x2b0
pop rdi
ret
Function at 0x140019b90
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400140d0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140019d11
mov rcx, qword [rsp + 0x58]
call fcn.140014040
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x28], 0
je 0x140019cf5
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140019b70]
lea rcx, [0x140019b30]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140019cf5
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140019b30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014cb0
movzx eax, al
test eax, eax
je 0x140019cd9
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140019cd9
mov byte [rsp + 0x41], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.14001b1fc
movzx eax, byte [rsp + 0x40]
add rsp, 0x98
ret

Function at 0x14001bebc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400497c0]
mov rbp, rcx
call fcn.1400324c8
xor edi, edi
test rax, rax
je 0x140028efa
mov ebx, edi
call fcn.14002a900
mov r14d, dword [rax]
call fcn.14002a900
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140032414
mov rsi, rax
test rax, rax
je 0x140028e8b
call fcn.14002a900
mov dword [rax], r14d
jmp 0x140028eb5
call fcn.14002a900
cmp dword [rax], 0x22
jne 0x140028ef2
call fcn.14002a900
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140032414
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140028ef2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140028eb9
cmp rax, 3
je 0x140028ed4
mov rcx, rsi
call fcn.140028d70
test al, al
je 0x140028ee5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140028ee5
mov dil, 1
mov rcx, rbx
call fcn.140022818
mov al, dil
jmp 0x140028efc
mov rcx, rbx
call fcn.140022818
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b810
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14002b5d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002b3cc
Function at 0x140037190
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 0x1400371c0
xor eax, eax
jmp 0x140037283
mov rbp, rbx
cmp word [rax], si
je 0x1400371e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400371cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400371c8
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.14002f3b4
movsxd r14, eax
test eax, eax
jne 0x140037223
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400371b9
mov rcx, r14
call fcn.14002f354
mov rdi, rax
test rax, rax
jne 0x14003723c
xor ecx, ecx
call fcn.14002f318
jmp 0x140037218
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.14002f3b4
test eax, eax
jne 0x14003726d
mov rcx, rdi
call fcn.14002f318
jmp 0x140037277
xor ecx, ecx
call fcn.14002f318
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 0x1400372a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140037327
mov rsi, rbx
cmp word [rax], bp
je 0x1400372e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400372d0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400372cc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002f354
mov rdi, rax
test rax, rax
je 0x140037314
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001c2b0
mov rbp, rdi
xor ecx, ecx
call fcn.14002f318
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a288
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002ece4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003a329
cmp ebx, dword [rsp + 0x30]
je 0x14003a322
test esi, esi
je 0x14003a322
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003a2fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003a30a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003a2e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003a30e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003a32b
mov eax, 1
jmp 0x14003a32b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003bd74
Capabilities:
Get file size

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

Function at 0x14003c8dc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14003c926
call fcn.14002a8e0
mov dword [rax], 0xf
call fcn.14002a900
mov dword [rax], 0xd
call fcn.140021da4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14003c931
lea eax, [rbx + 1]
jmp 0x14003c913
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14003c911
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14003c913
Function at 0x14003e86c
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.140022504
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003e8f6
cmp byte [rbp - 0x21], r15b
je 0x14003e8f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003e92c
call fcn.140032854
test eax, eax
jne 0x14003e918
cmp byte [rbp - 0x21], r15b
je 0x14003e910
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003e92c
cmp byte [rbp - 0x21], r15b
je 0x14003e929
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.1400286bc
test eax, eax
jne 0x14003e9cc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140022504
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003e96b
cmp byte [rbp - 0x21], r15b
je 0x14003e9a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003e9a0
call fcn.140032854
test eax, eax
jne 0x14003e98c
cmp byte [rbp - 0x21], r15b
je 0x14003e985
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003e9a0
cmp byte [rbp - 0x21], r15b
je 0x14003e99d
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.1400286bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003e9cc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003e9cf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003e9dd
mov rcx, rdi
call fcn.14002f318
cmp byte [rbp + 0x3f], r15b
je 0x14003e9ec
mov rcx, qword [rbp + 0x27]
call fcn.14002f318
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 0x14003f6e4
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, [0x14009aff0]
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 0x14003f73b
cmp word [rdx], r13w
jne 0x14003f73b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003f740
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003f865
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003f886
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003f779
mov rdx, r9
mov word [rbx], cx
jmp 0x14003f7a0
cmp r9, r8
jae 0x14003f7b0
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 0x14003f75a
jmp 0x14003f865
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 0x14003f85a
cmp dword [rsp + 0x80], esi
je 0x14003f85a
lea r8, [0x14009aff0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003f832
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003f802
mov word [rbx], r13w
jmp 0x14003f862
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 0x14003f80f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003f862
cmp word [rsp + 0x70], r13w
jne 0x14003f83f
cmp rbx, r14
je 0x14003f7fc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003f5d4
cmp word [rsp + 0x70], r13w
je 0x14003f865
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, [0x14009aff0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003f85f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003f865
Function at 0x140128f41
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1401985f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x140d4a129]
call fcn.140131470
nop
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0xf0]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rbp + 0xf0]
mov rdx, qword [rdx + 8]
mov r8, qword [rbp + 0xf0]
mov r8, qword [r8]
mov qword [rbp + 0xc0], r8
mov r9d, dword [rax]
mov r8d, dword [rcx]
mov rdx, qword [rdx]
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x14012996e
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401b33d0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140d4a0cb]
call fcn.140131470
nop
mov qword [rbp + 8], 0
jmp 0x1401b340f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1401b3465
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1401b3404
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14012a1a2
Capabilities:
Terminate process

Disassembly:
jmp 0x14019faa0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140d4a13f]
call fcn.140131470
nop
cmp qword [rbp + 0xe8], 0
je 0x14019faf2
cmp qword [rbp + 0xe8], 0xffffffffffffffff
je 0x14019faf2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xe8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 8], 0
je 0x14019fb12
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
je 0x14019fb46
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14012b296
Capabilities:
Resolve dns

Disassembly:
jmp 0x1401dbfb0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x112
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6e8]
mov rax, qword [0x140d145c0]
xor rax, rbp
mov qword [rbp + 0x670], rax
lea rcx, [0x140d4a129]
call fcn.140131470
nop
mov rax, qword [rbp + 0x6a0]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401dc036
mov rax, qword [rbp + 0x6a0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rbp + 0x6b8]
mov dword [rcx], eax
jmp 0x1401dc06b
mov rax, qword [rbp + 0x6a0]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x1401dc064
mov rax, qword [rbp + 0x6a0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rbp + 0x6b8]
mov dword [rcx], eax
jmp 0x1401dc06b
xor al, al
jmp 0x1401dc0f7
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x401
rep stosb byte [rdi], al
lea rcx, [rbp + 0x10]
call fcn.1401317a4
mov dword [rbp + 0x664], eax
lea rcx, [rbp + 0x10]
call fcn.14012bf20
mov qword [rbp + 0x668], rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rbp + 0x664]
mov r8, qword [rbp + 0x668]
mov edx, dword [rbp + 0x6a8]
mov rcx, qword [rbp + 0x6a0]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1401dc0dc
xor al, al
jmp 0x1401dc0f7
lea rcx, [rbp + 0x10]
call fcn.14012bf20
mov rdx, rax
mov rcx, qword [rbp + 0x6b0]
call fcn.140128546
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1403a1670]
call fcn.14012fad5
mov rax, rdi
mov rcx, qword [rbp + 0x670]
xor rcx, rbp
call fcn.14012c6c3
lea rsp, [rbp + 0x688]
pop rdi
pop rbp
ret