joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bab20
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
test edi, edi
js 0x1400babbd
mov rdx, qword [rbx]
mov r8d, 1
mov eax, dword [rdx - 0xc]
sub r8d, dword [rdx - 8]
sub eax, edi
or r8d, eax
jge 0x1400bab69
mov edx, edi
mov rcx, rbx
call fcn.1400b2530
mov rdx, qword [rbx]
mov rcx, qword [rsi]
mov r8d, edi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400bab93
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400bab8a
mov eax, esi
jmp 0x1400bab97
movsxd rdx, dword [rcx - 0xc]
call fcn.1401bad08
test eax, eax
js 0x1400babbd
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400babbd
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov word [rax + rcx*2], si
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400b3000
int3
Function at 0x1400bdc80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rbx, r8
mov edi, edx
test r8, r8
je 0x1400bde50
mov rax, qword [rcx]
call qword [rax]
mov rbp, rax
test edi, edi
je 0x1400bdcf0
cmp edi, 3
je 0x1400bdcf0
sub edi, 1
je 0x1400bdcdf
cmp edi, 1
jne 0x1400bde50
movzx edx, bx
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x1400bde52
movzx edx, bx
mov rcx, rbp
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x1400bde52
movzx edx, bx
mov r8d, 0xa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x1400bde50
xor ebx, ebx
mov esi, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400bde50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1400bddb6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1400bb8b0
test rax, rax
je 0x1400bdd8f
mov rsi, qword [rsp + 0x50]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400bddb6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x1400bde50
cmp edi, 3
jne 0x1400bde4b
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x1d]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1400bde3d
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x1400bde3d
lea ecx, [rdx + 1]
and ecx, 0xfffffffe
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rdi + 0x1e]
call qword [sym.imp.COMCTL32.dll_ImageList_Create]
mov rdi, rax
test rax, rax
je 0x1400bde3d
mov r8d, 0xff00ff
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test eax, eax
jns 0x1400bde3a
mov rcx, rdi
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x1400bde52
mov rbx, rdi
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x1400bde52
mov rax, rsi
jmp 0x1400bde52
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400bdf10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, r9
mov qword [r8 + 0x28], rsi
mov rbx, r8
mov rbp, rdx
test rdx, rdx
jne 0x1400bdf42
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
call qword [rax]
movzx edx, bp
mov r8, r14
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x1400be037
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x1400be037
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400be02e
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x1400be00c
cmp rdi, 1
jne 0x1400bdfca
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x1400be029
cmp rdi, 2
jne 0x1400bdfe1
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x1400be029
cmp rdi, 4
jne 0x1400bdff6
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x1400be029
cmp rdi, 8
jne 0x1400be00c
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x1400be029
test eax, eax
je 0x1400be029
mov rdx, rdi
mov rcx, rbx
call fcn.1400c6510
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.1401b2830
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x48]
mov rax, rsi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x1400c2120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
test rcx, rcx
je 0x1400c225f
cmp word [rcx], 0
je 0x1400c225f
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x60], rsi
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rax, vtable.CWString.0
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x10], 0xfe
cmp word [rcx], di
je 0x1400c2216
cmp word [rcx + 2], di
je 0x1400c2216
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400c21d0
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x1400c2216
cmp word [rcx + r8*2 - 4], 0x3a
je 0x1400c2216
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.1400cb610
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x1400c2216
lea rcx, [0x1401eac10]
cmp qword [rbp - 0x18], 0
cmovne rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400c2246
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x60], rsi
mov rax, rbx
jmp 0x1400c2261
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c2510
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
test rcx, rcx
je 0x1400c2673
cmp word [rcx], 0
je 0x1400c2673
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x60], 0x68
test r8, r8
js 0x1400c2579
or dword [rbp - 0x24], 1
mov word [rbp - 0x20], r8w
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea rsi, vtable.CVolObject.0
mov qword [rsp + 0x50], rsi
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea r14, vtable.CVolMem.0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], 0x40
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400c65f0
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], rdi
cmove rdx, rdi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400c2615
mov ebx, edi
jmp 0x1400c263d
mov edx, 0x1f4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov qword [rsp + 0x50], r14
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400c265a
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x50]
call qword [r8 + 0x18]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], rsi
mov rax, rbx
jmp 0x1400c2675
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400c26a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x30], rdx
lea rdi, vtable.CVolObject.0
mov qword [rsp + 0x30], rdi
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea r8, vtable.CWString.0
mov qword [rsp + 0x30], r8
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rsi, vtable.CVolMem.0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], 0x40
mov qword [rsp + 0x48], rbx
mov qword [rbp - 0x80], 0xfe
mov qword [rsp + 0x30], r8
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400cb470
nop
lea r8, [rsp + 0x30]
lea rdx, str.__select___
lea rcx, [rbp - 0x20]
call fcn.1400ccef0
nop
lea r8, [0x1401f6e44]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1400ccda0
nop
mov r9, qword [rax + 0x18]
test r9, r9
jne 0x1400c2790
cmp qword [rax + 0x48], r9
lea r9, [0x1401eac10]
je 0x1400c2790
mov r9, qword [rax + 0x38]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
lea r8, str.explorer.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rax, [rbp - 0x58]
mov qword [rbp + 0x58], rax
mov qword [rbp - 0x58], rsi
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x1400c27d4
lea rcx, [rbp - 0x58]
mov rax, qword [rbp - 0x58]
call qword [rax + 0x18]
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x78], rdi
lea rax, [rbp]
mov qword [rbp + 0x58], rax
mov qword [rbp], rsi
mov rdx, qword [rbp + 0x18]
test rdx, rdx
je 0x1400c2808
lea rcx, [rbp]
mov rax, qword [rbp]
call qword [rax + 0x18]
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp], rdi
mov qword [rbp - 0x20], rdi
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
mov qword [rsp + 0x50], rsi
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400c2841
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x30], rdi
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400c2b90
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14024e010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
test rcx, rcx
je 0x1400c2d7f
cmp word [rcx], 0
je 0x1400c2d7f
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x20], rcx
lea r14, vtable.CVolObject.0
mov qword [rsp + 0x20], r14
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
lea rax, vtable.CWString.0
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
lea r15, vtable.CVolMem.0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], 0x40
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x70], 0xfe
mov ebx, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1400c2c8b
test ax, ax
je 0x1400c2cca
cmp word [rdi + 2], 0x3a
jne 0x1400c2cca
cmp word [rdi + 4], 0x5c
jne 0x1400c2cca
mov edx, 0x5c
mov rcx, rdi
call fcn.1401b22a8
test rax, rax
je 0x1400c2cc5
cmp rax, rdi
jbe 0x1400c2cae
lea rcx, [rax - 2]
cmp word [rcx], 0x3a
cmovne rax, rcx
sub rax, rdi
lea r8, [rax + 2]
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400cb610
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x1400c2ce9
cmp qword [rsp + 0x68], rbx
jne 0x1400c2cdf
lea rbx, [0x1401eac10]
jmp 0x1400c2ce9
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400c2d30
cmp word [rbx], 0
je 0x1400c2d30
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400c2d30
cmp word [rbx], 0
je 0x1400c2d11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
cmp word [rbp - 0x70], 0
je 0x1400c2d3c
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x1400c2d3c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400c2d61
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + 0x18]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x20], r14
mov rax, rbx
jmp 0x1400c2d81
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401b0930
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400c5d10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx edi, cl
lea rax, [rdi - 0x60]
cmp rax, 9
ja 0x1400c5d95
sub rdi, 0x30
mov rbx, rdi
test rdi, rdi
je 0x1400c5d87
cmp rdi, 0x11
je 0x1400c5d51
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400c5d51
mov rbx, rdi
bts rbx, 0xd
cmp rbx, 0x10
je 0x1400c5d6c
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400c5d6c
bts rbx, 0xf
cmp rbx, 0x12
je 0x1400c5d87
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400c5d87
bts rbx, 0xe
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp rdi, 0x6d
jne 0x1400c5da4
mov edi, 0xbd
mov ebx, edi
jmp 0x1400c5d39
cmp rdi, 0x6e
jne 0x1400c5db3
mov edi, 0xbe
mov ebx, edi
jmp 0x1400c5d39
cmp rdi, 0x6f
jne 0x1400c5dc5
mov edi, 0xbf
mov ebx, edi
jmp 0x1400c5d39
lea rax, [0x1401ec1f0]
mov rax, qword [rax + rdi*8]
cmp word [rax], 0
jne 0x1400c5d2b
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400c6cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, r8
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400c6de4
cmp word [rdx], 0
je 0x1400c6de4
lea rdx, [0x1402015f4]
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov rsi, 0xffffffffffffffff
call fcn.1401bd7cc
mov rdi, rax
test rax, rax
je 0x1400c6db4
cmp rbp, rsi
jne 0x1400c6d4d
xor edx, edx
lea r8d, [rsi + 3]
mov rcx, rax
call fcn.1401bb538
mov rcx, rdi
call fcn.1401be1d8
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rdi
call fcn.1401bb538
test rbp, rbp
jle 0x1400c6daa
mov rdx, rbp
mov rcx, rbx
call fcn.1400c6490
mov rcx, rax
mov r9, rdi
mov r8, rbp
mov edx, 1
call fcn.1401bdc1c
mov rcx, rdi
mov rbp, rax
call fcn.1401be28c
test eax, eax
jne 0x1400c6dac
mov rdx, rbp
mov rcx, rbx
call fcn.1400c6510
mov rcx, rdi
call fcn.1401bb2cc
mov rax, rbp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor esi, esi
mov rcx, rdi
call fcn.1401bb2cc
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x1400c6dc7
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + 0x18]
mov qword [rbx + 0x18], 0
mov rax, rsi
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x20], 0
jmp 0x1400c6d95
mov rbx, qword [rsp + 0x38]
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x1400c9c00
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14024e010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [0x140259e00]
test rax, rax
jne 0x1400c9c46
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
test eax, eax
sete cl
mov qword [0x140259e00], rcx
mov rax, rcx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401b0930
add rsp, 0x1d8
ret
Function at 0x1400c9d20
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400c9d85
test r8d, r8d
js 0x1400c9d85
je 0x1400c9d73
xor ebx, ebx
test r8d, r8d
jle 0x1400c9d73
nop dword [rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400c9d85
add ebx, eax
cmp ebx, edi
jl 0x1400c9d50
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c9df0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov esi, r8d
mov rdi, rcx
test rdx, rdx
je 0x1400c9f57
cmp word [rdx], 0
je 0x1400c9f57
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rcx
lea r15, vtable.CVolObject.0
mov qword [rbp - 0x60], r15
xor r14d, r14d
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r14
lea r8, vtable.CU8String.0
mov qword [rbp - 0x60], r8
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], r14
lea r12, vtable.CVolMem.0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x10], 0x7f
mov qword [rbp - 0x60], r8
lea rcx, [rbp - 0x60]
call fcn.140031a00
nop
mov rbx, qword [rbp - 0x48]
test rbx, rbx
jne 0x1400c9ebb
lea rbx, [0x1401f6988]
cmp qword [rbp - 0x18], r14
cmovne rbx, qword [rbp - 0x28]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1400c9f0d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
jne 0x1400c9ef2
mov rbx, r14
jmp 0x1400c9f1d
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
lea rcx, [rdi + 4]
mov rdx, qword [rdx]
call fcn.1401b2830
movzx eax, word [rbx + 0x10]
jmp 0x1400c9f15
mov dword [rdi + 4], eax
mov eax, 2
mov word [rdi], ax
mov ebx, 1
lea rax, [rbp - 0x40]
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x40], r12
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x1400c9f3e
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x60], r15
mov rax, rbx
jmp 0x1400c9f59
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400ca430
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x14024e010]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400ca635
cmp word [rdx], 0
je 0x1400ca635
call fcn.1400c9c00
test rax, rax
je 0x1400ca635
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400ca4d8
lea rcx, str.Iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
je 0x1400ca4ae
lea rdx, str.IcmpCreateFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400ca4cc
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400ca4bc
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, str.Icmp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400ca635
lea rdx, str.IcmpCreateFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.IcmpSendEcho
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
lea rdx, str.IcmpCloseHandle
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r14, r14
je 0x1400ca635
test rbp, rbp
je 0x1400ca635
test rax, rax
je 0x1400ca635
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140031b60
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x1400ca557
lea rbx, [0x1401f6988]
cmp qword [rsp + 0x88], 0
cmovne rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
xor r15d, r15d
cmp eax, 0xffffffff
jne 0x1400ca581
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400ca5ca
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov edi, dword [rcx]
call r14
mov rbx, rax
mov dword [rsp + 0xb0], 0xffffffff
xor r9d, r9d
mov dword [rsp + 0x38], 0x1388
mov dword [rsp + gethostbyname], 0x30
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call rbp
mov rcx, rbx
test eax, eax
jne 0x1400ca5d1
call rsi
mov ebx, 0xffffffff
jmp 0x1400ca5da
call rsi
mov ebx, dword [rsp + 0xb0]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa0], rax
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400ca60b
lea rcx, [rsp + 0x60]
mov r8, qword [rsp + 0x60]
call qword [r8 + 0x18]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], r15
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rax
mov eax, ebx
jmp 0x1400ca63a
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1401b0930
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret