joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0x58
cmp r8d, 0xfffffffe
mov rbx, rcx
mov rsi, rdx
mov dword [rsp + 0x80], r8d
je 0x40745a
test r8d, r8d
jle 0x407461
test byte [rcx + 0xd1], 8
jne 0x4074a0
test r9b, r9b
movsxd r8, r8d
je 0x407470
add qword [rbx + 0x58], r8
mov edx, 7
mov rcx, rbx
lea r8, [rsp + 0x80]
call fcn.004050e0
nop
add rsp, 0x58
pop rbx
pop rsi
ret
or byte [rcx + 0xd1], 0x20
add rsp, 0x58
pop rbx
pop rsi
ret
lea rcx, [rbx + 0x68]
xor edx, edx
call fcn.00406190
lea r8, [rsp + 0x80]
mov edx, 8
mov rcx, rbx
call fcn.004050e0
nop
add rsp, 0x58
pop rbx
pop rsi
ret
mov dword [rsp + 0x2c], r9d
lea r8, [rsp + 0x3c]
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x3c], 0x10
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rdx, dword [rsp + 0x80]
mov rcx, rsi
call fcn.00407120
mov r8d, dword [rsp + 0x80]
mov r9d, dword [rsp + 0x2c]
jmp 0x407438

Function at 0x407cd0
Capabilities:
Initialize winsock library

Disassembly:
push rdi
push rbx
sub rsp, 0x1c8
xor eax, eax
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov ecx, 0x13
mov rdi, rbx
rep stosq qword [rdi], rax
mov dword [rbx + 0x60], 0xffffffff
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, str.udp:__8.8.8.8:53
mov dword [rbx + 0x28], 0xbb8
mov qword [rbx + 8], rax
lea rax, str.udp:___2001:4860:4860::8888_:53
mov qword [rbx + 0x18], rax
add rsp, 0x1c8
pop rbx
pop rdi
ret
Function at 0x40a1d0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
test byte [rbx + 0xd1], 1
je 0x40a290
lea rax, [rsp + 0x40]
mov r9d, 2
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], r9w
movzx r9d, word [rbx + 0x34]
mov word [rsp + 0x42], r9w
mov r9d, dword [rbx + 0x24]
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], r9d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x40a240
test eax, eax
js 0x40a259
je 0x40a284
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rbx + 0x38]
lea rdx, [rbx + 0x10]
mov dword [rsp + 0x3c], eax
call fcn.004046a0
mov eax, dword [rsp + 0x3c]
test eax, eax
jns 0x40a235
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x2714
je 0x40a29b
call rbx
cmp eax, 0x2734
je 0x40a29b
call rbx
cmp eax, 0x2733
je 0x40a29b
call rbx
cmp eax, 0x2746
je 0x40a2a2
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x40a231
mov eax, 0xfffffffe
jmp 0x40a237
mov eax, 0xfffffffd
jmp 0x40a237

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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
test byte [rbx + 0xd1], 1
je 0x40aeb0
mov r9d, 2
mov dword [rsp + 0x3c], 0x10
mov word [rsp + 0x40], r9w
movzx r9d, word [rbx + 0x34]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], 0
mov word [rsp + 0x42], r9w
mov r9d, dword [rbx + 0x24]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], r9d
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x28], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x40aea0
movzx edx, word [rsp + 0x42]
cmp dword [rsp + 0x3c], 0x10
mov word [rbx + 0x34], dx
mov edx, dword [rsp + 0x44]
setne byte [rbx + 0x36]
mov dword [rbx + 0x24], edx
test eax, eax
js 0x40aebd
je 0x40aee8
add rsp, 0x50
pop rbx
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x40aea4
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x2714
je 0x40aef3
call rbx
cmp eax, 0x2734
je 0x40aef3
call rbx
cmp eax, 0x2733
je 0x40aef3
call rbx
cmp eax, 0x2746
je 0x40aefa
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
mov eax, 0xfffffffe
jmp 0x40aea6
mov eax, 0xfffffffd
jmp 0x40aea6
Function at 0x40af10
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
xor edx, edx
test byte [rcx + 0xd1], 1
setne dl
mov rbx, rcx
add edx, 1
cmp byte [rcx + 0x36], 1
sbb ecx, ecx
xor r8d, r8d
and ecx, 0xffffffeb
add ecx, 0x17
call qword [sym.imp.WS2_32.dll_socket]
and byte [rbx + 0xd0], 0xf7
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x38], rax
je 0x40b020
test byte [rbx + 0xd1], 1
jne 0x40aff5
mov edx, 2
mov rcx, rax
mov qword [rsp + 0x38], 0
mov word [rsp + 0x30], dx
movzx edx, word [rbx + 0x34]
lea r8, [rsp + 0x2c]
mov dword [rsp + 0x2c], 1
lea rsi, [rsp + 0x30]
mov word [rsp + 0x32], dx
mov edx, dword [rbx + 0x24]
mov dword [rsp + 0x34], edx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rcx, [rbx + 0x38]
call fcn.00404960
xor r8d, r8d
mov edx, 3
mov rcx, rbx
call fcn.004050e0
mov rcx, qword [rbx + 0x38]
mov r8d, 0x10
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40b040
mov r8d, 0
js 0x40b060
lea rdx, str.connect:__d
mov rcx, rbx
call fcn.00408fe0
nop
add rsp, 0x48
pop rbx
pop rsi
ret
xor r8d, r8d
mov rcx, rbx
mov edx, 3
call fcn.004050e0
xor r8d, r8d
mov edx, 4
mov rcx, rbx
call fcn.004050e0
nop
add rsp, 0x48
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.socket__:__d
mov rcx, rbx
mov r8d, eax
call fcn.00408fe0
nop
add rsp, 0x48
pop rbx
pop rsi
ret
xor r8d, r8d
mov edx, 4
mov rcx, rbx
call fcn.004050e0
nop
add rsp, 0x48
pop rbx
pop rsi
ret
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rsi
cmp eax, 0x2714
jne 0x40b080
or byte [rbx + 0xd0], 0x20
jmp 0x40afee
call rsi
cmp eax, 0x2734
je 0x40b070
call rsi
cmp eax, 0x2733
je 0x40b070
call rsi
mov r8d, eax
jmp 0x40afde
Function at 0x40f160
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x40f183
mov rbx, qword [rcx + 0x30]
call sub.msvcrt.dll_free
test rbx, rbx
mov rcx, rbx
jne 0x40f172
mov rax, qword [rsi]
mov qword [rsi + 0x58], 0
test rax, rax
je 0x40f1a2
or byte [rax + 0xd1], 0x20
mov rax, qword [rax]
test rax, rax
jne 0x40f193
xor edx, edx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040ed50

Function at 0x40f490
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov rbx, rcx
mov rcx, rdx
lea r12, [rbx + 0x10]
mov rsi, rdx
call fcn.0040f370
mov rcx, rbp
mov rdx, rsi
rol ax, 8
mov word [rbx + 0x20], ax
call fcn.0040f2d0
mov rcx, rbp
mov rdx, r12
call fcn.0040c070
test al, al
mov ebp, eax
jne 0x40f4f0
mov eax, ebp
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp byte [rbx + 0x22], 1
mov eax, 2
mov ecx, 4
mov qword [rsp + 0x58], 0
mov word [rsp + 0x50], ax
movzx eax, word [rbx + 0x20]
lea rdi, str.udp:
mov dword [rsp + 0x48], 1
sbb r9d, r9d
and r9d, 0xffffffeb
mov word [rsp + 0x52], ax
mov eax, dword [rbx + 0x10]
add r9d, 0x17
repe cmpsb byte [rsi], byte [rdi]
mov ecx, r9d
mov dword [rsp + 0x54], eax
seta al
sbb al, 0
movsx eax, al
cmp eax, 1
sbb esi, esi
not esi
add esi, 2
cmp eax, 1
sbb r8d, r8d
mov edx, esi
and r8d, 0xb
add r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x40f573
xor ebp, ebp
jmp 0x40f4d9
lea r14, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov rcx, rax
mov r9, r14
mov r8d, 0xfffffffb
mov r13, qword [sym.imp.WS2_32.dll_setsockopt]
call r13
test eax, eax
jne 0x40f5c5
cmp byte [rbx + 0x22], 0
je 0x40f5d5
mov dword [rsp + 0x20], 4
mov r9, r14
mov edx, 0x29
mov rcx, rdi
mov r8d, 0x1b
call r13
test eax, eax
je 0x40f5d5
mov rcx, rdi
xor ebp, ebp
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40f4d9
lea rdx, [rsp + 0x50]
mov r8d, 0x10
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x40f5c5
cmp esi, 1
je 0x40f621
mov rdx, r12
mov rcx, rdi
call fcn.004046a0
mov dword [rsp + 0x4c], 1
lea r8, [rsp + 0x4c]
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov qword [rbx + 0x38], rdi
jmp 0x40f4d9
mov edx, 3
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x40f5f2
jmp 0x40f5c5
Function at 0x4110c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00418624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x411248
mov rax, qword [0x00418628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41110c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x411195
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4110f0
mov rcx, rbx
call fcn.00411d60
test rax, rax
mov r12, rax
je 0x41127d
mov rax, qword [0x00418628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00411e90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00418628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x411260
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41118e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4111f0
add dword [0x00418624], 1
cmp edi, 8
jae 0x4111c3
test dil, 4
jne 0x411234
test edi, edi
je 0x4111b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41124f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4111b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4111dc
jmp 0x4111b8
add rsi, qword [0x00418628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41118e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00412430
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4111b8
xor esi, esi
jmp 0x411117
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4111b8
mov rax, qword [0x00418628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00412430
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00412430
nop
nop dword [rax]

Function at 0x4119d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00418900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004188e0]
test rbx, rbx
je 0x411a24
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x411a1b
test rsi, rsi
je 0x411a1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411a00
lea rcx, [0x00418900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x411d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004157b0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x411dcd
mov rcx, r8
call fcn.00411c40
test eax, eax
je 0x411dcd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x411dcd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x411dc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x411dcf
add rax, 0x28
cmp rax, r9
jne 0x411db0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4123f0
Capabilities:
Hide graphical window

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
lea rax, [0x004019e0]
mov edx, 0x7f00
mov rbx, qword [sym.imp.USER32.dll_LoadIconA]
lea rsi, str.WINDOWSAPP
mov qword [rsp + 0x98], rax
mov rdi, rcx
movabs rax, 0x800000050
mov qword [rsp + 0xa8], rcx
xor ecx, ecx
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x90], rax
call rbx
xor ecx, ecx
mov edx, 0x7f00
mov qword [rsp + 0xb0], rax
call rbx
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0xd8], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xc0], 1
call qword [sym.imp.USER32.dll_RegisterClassExA]
xor edx, edx
test ax, ax
jne 0x401b30
mov eax, edx
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rsi
mov qword [rsp + 0x50], rdi
mov r9d, 0xcf0000
xor ecx, ecx
lea r8, str.WindowsApp
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x177
mov dword [rsp + 0x30], 0x220
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rsi, qword [sym.imp.USER32.dll_GetMessageA]
mov rbp, qword [sym.imp.USER32.dll_TranslateMessage]
mov rdi, qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401bba
mov rcx, rbx
call rbp
mov rcx, rbx
call rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call rsi
test eax, eax
jne 0x401bb0
mov edx, dword [rsp + 0x70]
mov eax, edx
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
ret
sub rsp, 0x28
call fcn.00410c50
mov rax, qword [0x00415820]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00415810]
mov r8, qword [rax]
mov rax, qword [0x00415800]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x401a60

Function at 0x412430
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004121e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004121e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001233
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000127a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001275
nop
cmp rbx, rcx
jae 0x14000127a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001260
cmp rbx, rcx
jb 0x14000127e
xor eax, eax
jmp 0x14000128a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009330
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400094de
cmp byte [rcx + 0x72], 0
je 0x1400094de
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14000938e
xor al, al
jmp 0x1400094e0
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
mov edx, 8
lea rcx, [rbp - 0x30]
call fcn.140008b90
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400093fd
sub eax, 1
jne 0x140009472
jmp 0x140009401
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000944f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000947f
cmp byte [rdi + 0x72], 0
je 0x140009483
test rbx, rbx
jne 0x1400093c0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140008ee0
jmp 0x1400093b1
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140009483
xor bl, bl
jmp 0x140009485
mov bl, 1
cmp r9, 0x10
jb 0x1400094d9
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400094d4
test byte [rbp - 0x30], 0x1f
je 0x1400094a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400094b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400094c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400094d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14001f3e4
movzx eax, bl
jmp 0x1400094e0
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001f400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014790
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14001493e
cmp byte [rcx + 0x71], 0
je 0x14001493e
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400147ea
xor al, al
jmp 0x140014940
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
mov edx, 8
lea rcx, [rbp - 0x30]
call fcn.140008b90
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001485d
sub eax, 1
jne 0x1400148d2
jmp 0x140014861
mov byte [rbx + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rdi, qword [rbp - 0x38]
sub rdi, rax
je 0x1400148af
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rdi, rax
jne 0x1400148df
cmp byte [rbx + 0x71], 0
je 0x1400148e3
test rdi, rdi
jne 0x140014820
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x30]
call fcn.140008ee0
jmp 0x14001480d
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400148e3
xor bl, bl
jmp 0x1400148e5
mov bl, 1
cmp r9, 0x10
jb 0x140014939
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x140014934
test byte [rbp - 0x30], 0x1f
je 0x140014904
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140014914
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140014924
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140014931
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14001f3e4
movzx eax, bl
jmp 0x140014940
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001f400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140015b20
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, 0xa00000
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [0x1400337cb], 1
jne 0x140015c21
mov qword [rsp + 0x60], rdi
lea rdx, str.Inside_readDataFromNamedPipe
lea rdi, [0x140033b00]
mov rcx, rdi
call fcn.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.No_of_bytes_read_
mov rcx, rdi
call fcn.14000a670
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.Data_read_is_:
mov rcx, rdi
call fcn.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
call fcn.14000a670
mov rcx, rax
lea rdx, [0x14000aab0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [0x140033b08]
call fcn.140009510
test rax, rax
jne 0x140015c1c
mov rax, qword [0x140033b00]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edx, [r8 + 2]
add rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001f400
add rsp, 0x40
pop rbx
ret