joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034510
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140034634
cmp r8d, 0xff
jne 0x140034571
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14003455b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x54a40]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140014180
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140014180
cmp r8d, 0xfb
jne 0x140034583
lea r9, str.WILL
jmp 0x1400345c1
cmp r8d, 0xfc
jne 0x140034595
lea r9, str.WONT
jmp 0x1400345c1
cmp r8d, 0xfd
jne 0x1400345a7
lea r9, [0x140055464]
jmp 0x1400345c1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14003461d
cmp r10d, 0x27
jg 0x1400345f4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x55060]
test r8, r8
jne 0x140034604
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140014180
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400345db
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140014180
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140014180
add rsp, 0x38
ret

Function at 0x140034980
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400349df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140014000
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140034510
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140034b90
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140034d38
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140034bf5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140034bf5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140034bf5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140034c2c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140034c82
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140034c82
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140034c82
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140034c82
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140034c82
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140034640
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140034ce4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140014000
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140034a10
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140034d30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140014000
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140036500
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401d1060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x140036595
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r8d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r8d, 4
jge 0x1400365f6
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140014000
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140049140
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rdx, qword [rdi + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14003662c.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x36740]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14003662c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14003662c.4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140013f10
mov ebx, eax
test eax, eax
je 0x140036688
mov edx, 5
mov rcx, rdi
call fcn.140037200
mov eax, ebx
jmp 0x1400365ca
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14001f9e0
jmp case.0x14003662c.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.140036150
cmp rax, rbx
jae case.0x14003662c.4
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.140014180
jmp case.0x14003662c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.140036230
test eax, eax
je case.0x14003662c.4
jmp 0x1400365ca
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1401c9fe0]
call fcn.140014000
mov rcx, r14
call fcn.14001fcc0
test eax, eax
je 0x1400365c8
mov edx, 5
mov rcx, rdi
call fcn.140037200
mov eax, Ordinal_46
jmp 0x1400365ca
Function at 0x140048fb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140048ff2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140049039
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140049092
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140049050
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400490d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400585c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400585c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400490a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140019a00
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rcx
lea rbp, [0x1400a98ad]
mov rcx, rbp
call fcn.14004ccf0
mov rbx, qword [rsi + 8]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x140019b1e
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x48]
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x30], 0xa
mov r9d, 0x401
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x140019a9e
mov ecx, eax
call fcn.14003d9b0
mov rdx, rax
lea rcx, str.getnameinfo:__.100s
call fcn.140046b30
jmp 0x140019b0e
cmp dword [rbx + 4], 0x17
lea rax, str._rdomain
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x48]
jne 0x140019ad0
mov rcx, qword [rsi]
mov rdx, rbp
test rcx, rcx
cmovne rdx, rcx
mov qword [rsp + 0x28], rdx
lea rdx, str.listenaddress___s_:_s_s_s_n_s
jmp 0x140019ae9
mov rdx, qword [rsi]
mov r8, rbp
test rdx, rdx
cmovne r8, rdx
lea rdx, str.listenaddress__s:_s_s_s_n_s
mov qword [rsp + 0x28], r8
cmove rax, rbp
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.14004cd90
mov rcx, rdi
call fcn.14007a8b4
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140019a50
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140078840
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140027ec0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x48], ebx
call fcn.14002b750
mov rsi, rax
test rax, rax
jne 0x140027ef6
mov rdx, rdi
lea rcx, str.unable_to_resolve_group__s
call fcn.140046b30
jmp 0x140027f17
mov rcx, qword [0x1400ff520]
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140027f30
mov rcx, rsi
call fcn.14007a8b4
cmp dword [rsp + 0x48], ebx
mov rsi, qword [rsp + 0x50]
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1400ff528]
lea rdx, str.check_group_membership
mov r9d, eax
mov qword [rsp + 0x20], rdi
lea rcx, str._s_CheckTokenMembership_for_user__s_failed_with__d_for_group__s
call fcn.14004db00
int3
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
xor ebx, ebx
mov rbp, rcx
lea edx, [rbx + 0x2c]
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x3f]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x2a]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x21]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
mov rcx, rbp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
jmp 0x140027ec0
call fcn.140027aa0
cmp eax, 0xffffffff
je 0x140028290
lea rdx, [0x1400ca430]
mov qword [rsp + 0x38], rdi
mov rcx, rbp
call fcn.14007950c
test rax, rax
je 0x140028218
mov byte [rax], 0x5c
cmp dword [0x1400ff514], ebx
mov edi, ebx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], r14
jle 0x140028270
mov rsi, rbx
mov r14d, 1
nop word [rax + rax]
mov rcx, qword [0x1400ff518]
mov r8d, r14d
mov rdx, rbp
mov rcx, qword [rsi + rcx]
call fcn.14004d310
cmp eax, 0xffffffff
je 0x14002828c
cmp eax, r14d
cmove ebx, r14d
inc edi
add rsi, 8
cmp edi, dword [0x1400ff514]
jl 0x140028240
mov eax, ebx
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
xor eax, eax
jmp 0x140028272
mov rdx, qword [0x1400ff528]
lea rcx, str.unable_to_retrieve_group_info_for_user__s
call fcn.14004db00
int3
Function at 0x140027fe0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
movsxd rbx, edx
mov r14, rcx
mov edi, r15d
test edx, edx
jle 0x14002802c
nop
mov rcx, qword [r14 + rdi*8]
mov edx, 0x3f
call fcn.140079340
test rax, rax
jne 0x140028073
mov rcx, qword [r14 + rdi*8]
lea edx, [rax + 0x2a]
call fcn.140079340
test rax, rax
jne 0x140028073
inc rdi
cmp rdi, rbx
jl 0x140028000
mov qword [rsp + 0x50], rbp
mov rdi, r15
mov qword [rsp + 0x60], rsi
test rbx, rbx
jle 0x14002812d
mov rbp, qword [r14 + rdi*8]
mov rcx, rbp
mov dword [rsp + 0x58], r15d
call fcn.14002b750
mov rsi, rax
test rax, rax
jne 0x1400280f9
mov rdx, rbp
lea rcx, str.unable_to_resolve_group__s
call fcn.140046b30
jmp 0x14002811a
call fcn.140027aa0
cmp eax, 0xffffffff
je 0x14002814f
mov edi, dword [0x1400ff514]
mov r9d, r15d
test edi, edi
jle 0x1400280d4
mov r10, qword [0x1400ff518]
nop word [rax + rax]
mov r11, qword [r10]
mov r8, r15
nop word [rax + rax]
mov rdx, qword [r14 + r8*8]
mov rcx, r11
call fcn.14004d240
test eax, eax
jne 0x1400280e5
inc r8
cmp r8, rbx
jl 0x1400280b0
inc r9d
add r10, 8
cmp r9d, edi
jl 0x1400280a0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x1400ff520]
lea r8, [rsp + 0x58]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140028163
mov rcx, rsi
call fcn.14007a8b4
cmp dword [rsp + 0x58], r15d
jne 0x140028148
inc rdi
cmp rdi, rbx
jl 0x140028042
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, 1
jmp 0x14002812f
mov rdx, qword [0x1400ff528]
lea rcx, str.unable_to_retrieve_group_info_for_user__s
call fcn.14004db00
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1400ff528]
lea rdx, str.check_group_membership
mov r9d, eax
mov qword [rsp + 0x20], rbp
lea rcx, str._s_CheckTokenMembership_for_user__s_failed_with__d_for_group__s
call fcn.14004db00
int3
Function at 0x140028190
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
mov dword [rsp + 0x48], ebx
call fcn.14002b750
mov rsi, rax
test rax, rax
jne 0x140027ef6
mov rdx, rdi
lea rcx, str.unable_to_resolve_group__s
call fcn.140046b30
jmp 0x140027f17
mov rcx, qword [0x1400ff520]
lea r8, [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140027f30
mov rcx, rsi
call fcn.14007a8b4
cmp dword [rsp + 0x48], ebx
mov rsi, qword [rsp + 0x50]
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1400ff528]
lea rdx, str.check_group_membership
mov r9d, eax
mov qword [rsp + 0x20], rdi
lea rcx, str._s_CheckTokenMembership_for_user__s_failed_with__d_for_group__s
call fcn.14004db00
int3
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
xor ebx, ebx
mov rbp, rcx
lea edx, [rbx + 0x2c]
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x3f]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x2a]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
lea edx, [rbx + 0x21]
mov rcx, rbp
call fcn.140079340
test rax, rax
jne 0x1400281ee
mov rcx, rbp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
jmp 0x140027ec0
call fcn.140027aa0
cmp eax, 0xffffffff
je 0x140028290
lea rdx, [0x1400ca430]
mov qword [rsp + 0x38], rdi
mov rcx, rbp
call fcn.14007950c
test rax, rax
je 0x140028218
mov byte [rax], 0x5c
cmp dword [0x1400ff514], ebx
mov edi, ebx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], r14
jle 0x140028270
mov rsi, rbx
mov r14d, 1
nop word [rax + rax]
mov rcx, qword [0x1400ff518]
mov r8d, r14d
mov rdx, rbp
mov rcx, qword [rsi + rcx]
call fcn.14004d310
cmp eax, 0xffffffff
je 0x14002828c
cmp eax, r14d
cmove ebx, r14d
inc edi
add rsi, 8
cmp edi, dword [0x1400ff514]
jl 0x140028240
mov eax, ebx
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
xor eax, eax
jmp 0x140028272
mov rdx, qword [0x1400ff528]
lea rcx, str.unable_to_retrieve_group_info_for_user__s
call fcn.14004db00
int3
Function at 0x1400286b0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100f8
call fcn.14009f8b0
sub rsp, rax
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
call fcn.14002b660
test eax, eax
je 0x14002879c
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14007a110
movups xmm0, xmmword [str.ssh_keygen__A]
lea rdx, [rsp + 0xe0]
xor eax, eax
movsd xmm1, qword [0x1400d2ce8]
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov eax, dword [0x1400d2cf0]
mov dword [rsp + 0xf8], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], shutdown
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rsp + 0xe0], xmm0
movsd qword [rsp + 0xf0], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14002879c
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.140078840
add rsp, 0x100f8
ret
Function at 0x1400287c0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov eax, 0x40048
call fcn.14009f8b0
sub rsp, rax
mov rax, qword [0x1400ec008]
xor rax, rsp
mov qword [rsp + 0x40030], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x10000
call fcn.14007a110
mov r8, qword [0x1400ed420]
lea rcx, [rsp + 0x30]
mov edx, 0x8000
call fcn.1400885ec
lea r8, str._ssh
mov edx, 0x8000
lea rcx, [rsp + 0x30]
call fcn.140088654
lea rdx, str.O:BAD:PAI_A_OICI_FA___SY__A_OICI_FA___BA__A_OICI_0x1200a9___AU_
lea rcx, [rsp + 0x30]
call fcn.14002b380
test eax, eax
js 0x140028968
xor edx, edx
lea rcx, [rsp + 0x20030]
mov r8d, 0x10000
call fcn.14007a110
lea r8, [rsp + 0x30]
mov edx, 0x8000
lea rcx, [rsp + 0x20030]
call fcn.140088654
lea r8, str.logs
mov edx, 0x8000
lea rcx, [rsp + 0x20030]
call fcn.140088654
lea rdx, str.O:BAD:PAI_A_OICI_FA___SY__A_OICI_FA___BA_
lea rcx, [rsp + 0x20030]
call fcn.14002b380
test eax, eax
js 0x140028984
xor edx, edx
lea rcx, [rsp + 0x10030]
mov r8d, 0x10000
call fcn.14007a110
lea r8, [rsp + 0x30]
mov edx, 0x8000
lea rcx, [rsp + 0x10030]
call fcn.140088654
lea r8, str._sshd_config
mov edx, 0x8000
lea rcx, [rsp + 0x10030]
call fcn.140088654
lea rcx, [rsp + 0x10030]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140028950
xor edx, edx
lea rcx, [rsp + 0x30030]
mov r8d, 0x10000
call fcn.14007a110
mov r9, qword [0x1400ed430]
lea rax, str.sshd_config_default
lea r8, str._S_s
mov qword [rsp + 0x20], rax
mov edx, 0x8000
lea rcx, [rsp + 0x30030]
call fcn.1400284e0
mov r8d, 1
lea rdx, [rsp + 0x10030]
lea rcx, [rsp + 0x30030]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400289a3
mov rcx, qword [rsp + 0x40030]
xor rcx, rsp
call fcn.140078840
add rsp, 0x40048
ret
lea rdx, [rsp + 0x30]
lea rcx, str.failed_to_create__s
call fcn.140013ac0
mov ecx, 0xff
call fcn.140085980
int3
lea rdx, [rsp + 0x20030]
lea rcx, str.failed_to_create__s
call fcn.140013ac0
mov ecx, 0xff
call fcn.140085980
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x10030]
lea rdx, [rsp + 0x30030]
lea rcx, str.Failed_to_copy__s_to__s__error:_d
call fcn.140013ac0
mov ecx, 0xff
call fcn.140085980
int3
Function at 0x14002a140
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov qword [rsp + 0x68], 0
mov word [rsp + 0x58], 0xbbef
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14002a34f
cmp byte [rdx + 1], r14b
jne 0x14002a34f
test rcx, rcx
jne 0x14002a1a3
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140084fc0
lea rcx, str.fopen___ERROR:_d
mov edx, dword [rax]
call fcn.140046c70
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x28], rbp
lea rdx, str._dev_null
mov r8d, 0xa
mov qword [rsp + 0x20], rsi
call fcn.14007a9c0
test eax, eax
je 0x14002a1e6
mov r8d, 4
lea rdx, [0x1400cd35c]
mov rcx, rdi
call fcn.14007a9c0
test eax, eax
je 0x14002a1e6
mov rcx, rdi
call fcn.14002ae70
jmp 0x14002a1f8
lea rcx, [0x1400cd35c]
mov r14d, 1
call fcn.140033fd0
mov rcx, rbx
mov rsi, rax
call fcn.140033fd0
mov rbp, rax
test rsi, rsi
je 0x14002a32a
test rax, rax
je 0x14002a322
mov r8, rax
lea rcx, [rsp + 0x68]
mov rdx, rsi
call fcn.140089900
test eax, eax
jne 0x14002a30b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002a30b
cmp qword [0x1400eeea8], 0
je 0x14002a29c
test r14d, r14d
jne 0x14002a29c
call fcn.14008a7d0
mov ecx, eax
call fcn.1400895ec
mov rcx, rax
call fcn.140034e10
test eax, eax
jne 0x14002a297
mov rdx, rdi
lea rcx, str._s_is_not_in_chroot_jail
call fcn.140046c70
mov rcx, qword [rsp + 0x68]
call fcn.14007a94c
mov qword [rsp + 0x68], 0
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_listen
jmp 0x14002a322
mov rcx, qword [rsp + 0x68]
cmp byte [rbx], 0x77
jne 0x14002a2b5
xor r8d, r8d
xor edx, edx
call fcn.140089ccc
cmp eax, 9
jne 0x14002a322
mov rcx, qword [rsp + 0x68]
cmp byte [rbx], 0x72
jne 0x14002a322
xor r8d, r8d
xor edx, edx
call fcn.140089ccc
cmp eax, 9
je 0x14002a322
mov r9, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
mov edx, 3
lea r8d, [rdx - 2]
call fcn.14008b224
cmp rax, 1
jne 0x14002a2fa
movzx eax, word [rsp + 0x60]
cmp ax, word [rsp + 0x58]
jne 0x14002a2fa
cmp byte [rsp + 0x62], 0xbf
je 0x14002a322
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.140089ccc
jmp 0x14002a322
call fcn.140084fc0
mov rdx, rsi
lea rcx, str.Failed_to_open_file:_S_error:_d
mov r8d, dword [rax]
call fcn.140046c70
mov rcx, rsi
call fcn.14007a8b4
mov rsi, qword [rsp + 0x20]
test rbp, rbp
je 0x14002a33c
mov rcx, rbp
call fcn.14007a8b4
mov rax, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
call fcn.140084fc0
mov dword [rax], 0x81
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret