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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5f2], 0
lea r9, [rcx + 0x560]
mov rbx, rcx
jne 0x14010d8cd
xor edx, edx
mov dword [r9 + 0xb4], edx
mov rax, qword [rcx]
mov ecx, edx
cmp dword [rax + 0xb94], 2
sete cl
mov dword [r9 + 0xb8], ecx
mov rax, qword [rbx]
cmp dword [rax + 0xb90], 2
jne 0x14010d871
cmp dword [r9 + 0x94], edx
je 0x14010d8ca
test byte [rbx + 0x3c4], 2
je 0x14010d88c
mov r8, qword [r9 + 0x70]
test r8, r8
je 0x14010d88c
mov dword [r9 + 0x94], edx
jmp 0x14010d8a7
cmp dword [r9 + 0x80], edx
je 0x14010d8ca
mov r8, qword [r9 + 0x78]
mov dword [r9 + 0x94], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.140146a30
test eax, eax
jne 0x14010d8d7
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010cc00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010dca0
add rsp, 0x20
pop rbx
ret

Function at 0x14010dca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x560
test dword [rax + 0xe70], 0x200
jne 0x14010dcc8
cmp dword [rax + 0x9f8], 0
je 0x14010dcf4
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14010dcf4
lea rdx, str.MDTM__s
call fcn.140146a30
test eax, eax
jne 0x14010dd01
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010cc00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010ed50
add rsp, 0x20
pop rbx
ret

Function at 0x14010e460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov ebx, dword [rcx + 0x610]
mov rdi, rcx
cmp eax, 0x64
jb 0x14010e4e5
test ebx, ebx
jne 0x14010e4a3
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1400efac0
and dword [rdi + 0x3c4], 0xfffbffff
inc ebx
cmp ebx, 2
jne 0x14010e4cc
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1400ef9b0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14010f110
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1400efac0
xor edx, edx
mov rcx, rdi
call fcn.14010cc00
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14010cd70
Function at 0x14010e820
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 0
je 0x14010e86d
cmp qword [rcx + 0x5e8], 0
je 0x14010e86d
add rcx, 0x560
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140146a30
test eax, eax
jne 0x14010e877
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010cc00
add rsp, 0x20
pop rbx
jmp fcn.14010e520
add rsp, 0x20
pop rbx
ret

Function at 0x14010eb10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x560
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 1
jne 0x14010eb5c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14010eb5c
lea rdx, str.SIZE__s
call fcn.140146a30
test eax, eax
jne 0x14010eb69
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010cc00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14010e820
add rsp, 0x20
pop rbx
ret

Function at 0x14010ed50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
mov eax, dword [r10 + 0xe70]
bt eax, 0x18
jae 0x14010edaf
cmp qword [rcx + 0x5e8], 0
je 0x14010edaf
shr eax, 0xb
and al, 1
movzx edx, al
call fcn.14010cfc0
test eax, eax
je 0x14010edaf
mov rax, qword [r10 + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
mov edx, dword [r10 + 0xe70]
shr edx, 0xb
and dl, 1
add rsp, 0x28
jmp fcn.14010cf30
mov rcx, r9
add rsp, 0x28
jmp fcn.14010eb10
Function at 0x140112d80
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140112dc6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.1400ef9b0
jmp 0x140112df0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140112de1
shr ax, 8
test al, al
jne 0x140112de1
xor eax, eax
jmp 0x140112df5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1400ef9b0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140215090
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x140113584
sub r8d, 1
je 0x14011355b
cmp r8d, 1
jne 0x140113598
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14011357c
cmp ecx, r8d
jne 0x140113598
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.140113720
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14011357c
cmp ecx, 1
jne 0x140113598
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.140113720
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x140113647
sub r8d, 2
je 0x140113600
cmp r8d, 1
jne 0x140113639
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401135f3
cmp ecx, r8d
jne 0x140113639
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14011363a
cmp ecx, 1
jne 0x140113639
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.140113720
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14011362c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140113720
Function at 0x140113670
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x140113700
sub r8d, 1
je 0x1401136d1
cmp r8d, 1
jne 0x140113717
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401136f5
cmp ecx, r8d
jne 0x140113717
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.140113720
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401136f5
cmp ecx, 1
jne 0x140113717
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.140113720
ret

Function at 0x140113720
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 + 0x240]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14011377f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ef9b0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140112f20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140113930
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140113ade
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140113979
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140113987
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140113995
mov byte [rax], Ordinal_33
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 + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1401139cf
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1401139e6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401139f4
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140113a06
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140113a14
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140113a22
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140113060
mov rcx, qword [r14 + 0x240]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140113a8a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ef9b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1401137b0
mov rcx, qword [r14 + 0x240]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140113ad6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ef9b0
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

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

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x140113b3e
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x140113b27
sub r8d, 2
je 0x140113b52
cmp r8d, 1
jne 0x140113b85
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x140113b85
mov dword [r9 + r11*4 + 0x408], 1
pop rbx
ret
mov edx, 0xfb
mov dword [r9 + r11*4 + 8], 2
mov r8d, r11d
pop rbx
jmp fcn.140113720
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x140113b6b
sub ecx, 1
je 0x140113b0e
cmp ecx, 1
jne 0x140113b85
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x140113b85
mov dword [r9 + r11*4 + 0x408], 0
pop rbx
ret
mov edx, 0xfc
mov dword [r9 + r11*4 + 8], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.140113720
pop rbx
ret
Function at 0x140113b90
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x140113bf8
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x140113bde
sub r8d, 2
je 0x140113c0f
cmp r8d, 1
jne 0x140113c45
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x140113c45
mov dword [r9 + r11*4 + 0x1008], 1
pop rbx
ret
mov edx, 0xfd
mov dword [r9 + r11*4 + 0xc08], 2
mov r8d, r11d
pop rbx
jmp fcn.140113720
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x140113c28
sub ecx, 1
je 0x140113bc5
cmp ecx, 1
jne 0x140113c45
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x140113c45
mov dword [r9 + r11*4 + 0x1008], 0
pop rbx
ret
mov edx, 0xfe
mov dword [r9 + r11*4 + 0xc08], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.140113720
pop rbx
ret
Function at 0x140114e20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x560]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
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 0x140114ebd
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140218780
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x140114f27
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400ef9b0
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.140215090
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.140114960
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x140114fd6
sub r8d, 1
je 0x140115045
sub r8d, 1
je 0x140114f92
cmp r8d, 1
je 0x140114f72
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14028fef0]
call fcn.1400ef9b0
jmp 0x140115045
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.140114b70
test eax, eax
je 0x140115045
jmp 0x140114ef2
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.140114940
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.140114900
cmp rax, rbx
jae 0x140115045
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.1400efac0
jmp 0x140115045
cmp r9d, 4
jle 0x140115045
mov rcx, r14
call fcn.140114940
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x140115045
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.1400ef8d0
mov ebx, eax
test eax, eax
je 0x140115024
mov edx, 5
mov rcx, rdi
call fcn.1401158f0
mov eax, ebx
jmp 0x140114ef2
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x110], rax
mov rdx, qword [rsi + 0x110]
call fcn.1400faf20
mov rcx, r15
call fcn.1400fb180
test eax, eax
je 0x140114ef0
mov edx, 5
mov rcx, rdi
call fcn.1401158f0
mov eax, Ordinal_46
jmp 0x140114ef2
Function at 0x140120010
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, gethostbyname
call fcn.140215a20
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
call fcn.1401201e0
mov rdi, rax
test rax, rax
jne 0x1401200e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1402ce3f0]
mov dword [rsp + 0x20], 0xaf
mov r8d, eax
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
call fcn.1401404e0
lea rax, [0x1402ce408]
mov r8, rsi
mov qword [rsp + 0x28], rax
lea r9, [0x1402ce40c]
lea rdx, [0x1402ce410]
mov qword [rsp + 0x20], rbx
lea ecx, [rdi + 5]
call fcn.14013f940
call fcn.14022383c
cmp dword [rax], 2
je 0x1401200b5
call fcn.14022383c
cmp dword [rax], 6
je 0x1401200b5
mov dword [rsp + 0x20], 0xb8
lea r9, [0x1402ce430]
lea r8d, [rdi + 2]
jmp 0x1401200ca
mov dword [rsp + 0x20], 0xb6
lea r9, [0x1402ce418]
mov r8d, 0x80
mov edx, WSASetLastError
lea ecx, [rdx - 0x4d]
call fcn.1401404e0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1402ce390]
call fcn.140120a10
mov rbx, rax
test rax, rax
jne 0x140120117
mov rcx, rdi
call fcn.140222d9c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.1401204b0
mov edx, 0x6a
mov r9, rdi
mov rcx, rbx
lea r8d, [rdx - 0x69]
call fcn.1401204e0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14013cfb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
mov eax, 0x460
call fcn.140215a20
sub rsp, rax
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
mov rdi, rcx
test rcx, rcx
jne 0x14013cfe6
xor eax, eax
jmp 0x14013d0d3
lea rdx, [rsp + 0x20]
call fcn.14022bbb8
test eax, eax
js 0x14013cfdf
xorps xmm2, xmm2
lea rcx, [rsp + 0x20]
mov edx, gethostbyname
call fcn.14013cc50
test ebx, ebx
je 0x14013cfdf
lea rdx, [0x1402d4570]
mov qword [rsp + 0x498], r14
mov rcx, rdi
call fcn.14022406c
mov r14, rax
test rax, rax
je 0x14013d0c9
mov eax, 0x2000
mov qword [rsp + 0x490], rsi
test word [rsp + 0x26], ax
je 0x14013d060
cmp ebx, 0xffffffff
mov eax, 0x800
mov rcx, r14
cmove ebx, eax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
call fcn.1402239d8
nop dword [rax]
mov edi, 0x400
test ebx, ebx
jle 0x14013d06e
cmp ebx, edi
cmovl edi, ebx
movsxd r8, edi
lea rcx, [rsp + 0x50]
mov r9, r14
mov edx, 1
call fcn.140225794
mov rsi, rax
test eax, eax
jle 0x14013d0aa
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, edi
call fcn.14013cc50
add ebp, esi
test ebx, ebx
jle 0x14013d060
sub ebx, edi
test ebx, ebx
jg 0x14013d060
mov rcx, r14
call fcn.140222d9c
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14014a5f0
mov rsi, qword [rsp + 0x490]
mov r14, qword [rsp + 0x498]
mov eax, ebp
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140215090
add rsp, 0x460
pop rdi
pop rbp
pop rbx
ret
Function at 0x14014c450
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14014c477
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x14014c460
movzx eax, r9b
ret

Function at 0x14014c4a0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x178
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
test rax, rax
je 0x14014c56b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x14014c56b
mov qword [rsp + 0x170], rsi
lea rbx, [rsp + 0x198]
call fcn.140002d30
mov r9, qword [rsp + 0x190]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov esi, 0x100
xor ebx, ebx
mov r8d, esi
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x20], rbx
call fcn.140220268
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x14014c543
mov esi, eax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov r8d, esi
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rsp + 0x170]
jmp 0x14014c62a
lea rbx, [rsp + 0x198]
call fcn.140002d30
mov r9, qword [rsp + 0x190]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov r8d, 0xff
xor ebx, ebx
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x20], rbx
call fcn.140220268
mov byte [rsp + 0x15f], bl
call fcn.14014c2d0
xor ecx, ecx
test eax, eax
jle 0x14014c612
lea rdx, str.OpenSSL
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rdi, rax
test rax, rax
je 0x14014c62a
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
mov ecx, 1
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov edx, ecx
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov word [rsp + 0x28], cx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x14014c62a
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.OpenSSL:_FATAL
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140215090
add rsp, 0x178
pop rdi
pop rbx
ret
Function at 0x14019fac0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, gethostbyname
call fcn.140215a20
sub rsp, rax
mov r15, r8
mov r12, rdx
mov rdi, rcx
lea rdx, [0x1402fabe0]
mov r8d, 0x5a6
lea ecx, [rax - 0x10]
mov r14d, r9d
call fcn.14011f570
mov rbx, rax
test rax, rax
jne 0x14019fb53
mov eax, dword [0x14032dad0]
test eax, eax
jne 0x14019fb20
call fcn.140140080
mov dword [0x14032dad0], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5a8
lea r9, [0x1402fabf8]
mov ecx, eax
lea r8d, [rdx - 0x26]
call fcn.1401404e0
call fcn.14019ebe0
mov rcx, rbx
call fcn.14011f690
xor eax, eax
jmp 0x14019fc96
test rdi, rdi
je 0x14019fbb8
cmp dword [rdi], 2
jl 0x14019fbb8
cmp qword [rdi + 8], 0
je 0x14019fbb8
mov rcx, r12
mov qword [rsp + 0x50], rbp
call fcn.1401a1080
mov rcx, r15
mov rsi, rax
call fcn.1401a1080
mov r9, rax
mov dword [rsp + 0x20], r14d
mov r8, rsi
lea rdx, str.capi_get_key__contname_s__provname_s__type_d_n
mov rcx, rdi
mov rbp, rax
call fcn.14019e940
test rbp, rbp
je 0x14019fba6
mov rcx, rbp
call fcn.14011f690
mov rbp, qword [rsp + 0x50]
test rsi, rsi
je 0x14019fbb8
mov rcx, rsi
call fcn.14011f690
mov eax, dword [rdi + 0x38]
lea rcx, [rbx + 8]
shr eax, 0xc
mov r9d, r14d
and eax, 0x20
mov r8, r15
mov rdx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14019fc20
mov eax, dword [0x14032dad0]
test eax, eax
jne 0x14019fbf1
call fcn.140140080
mov dword [0x14032dad0], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5be
mov r8d, edx
lea r9, [0x1402fac80]
mov ecx, eax
call fcn.1401404e0
call fcn.14019ebe0
mov rcx, rbx
call fcn.14011f690
xor eax, eax
jmp 0x14019fc96
mov edi, dword [rsp + 0x70]
lea r8, [rbx + 0x10]
mov rcx, qword [rbx + 8]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x14019fc89
mov eax, dword [0x14032dad0]
test eax, eax
jne 0x14019fc4d
call fcn.140140080
mov dword [0x14032dad0], eax
mov edx, 0x67
mov dword [rsp + 0x20], 0x5c3
lea r9, [0x1402fac98]
mov ecx, eax
lea r8d, [rdx + 0xa]
call fcn.1401404e0
call fcn.14019ebe0
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rbx
call fcn.14011f690
xor eax, eax
jmp 0x14019fc96
mov dword [rbx + 0x18], edi
mov rax, rbx
mov qword [rbx], 0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1401a3fb0
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 [fcn.140224a2c]
mov rdi, rax
test rax, rax
jne 0x1401a3ff2
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 0x1401a4035
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 ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1401a4092
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 0x1401a4050
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401a40d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14026f757]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14026f758]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401a40a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret