joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400678a0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1401310c8]
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 0x1400678e6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.14004f6b0
jmp 0x140067910
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140067901
shr ax, 8
test al, al
jne 0x140067901
xor eax, eax
jmp 0x140067915
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.14004f6b0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x1d0
pop rbx
ret

Function at 0x140068020
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 0x1400680a4
sub r8d, 1
je 0x14006807b
cmp r8d, 1
jne 0x1400680b8
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14006809c
cmp ecx, r8d
jne 0x1400680b8
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.140068240
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14006809c
cmp ecx, 1
jne 0x1400680b8
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.140068240
ret

Function at 0x1400680c0
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 0x140068167
sub r8d, 2
je 0x140068120
cmp r8d, 1
jne 0x140068159
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140068113
cmp ecx, r8d
jne 0x140068159
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 0x14006815a
cmp ecx, 1
jne 0x140068159
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.140068240
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14006814c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.140068240
Function at 0x140068190
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 0x140068220
sub r8d, 1
je 0x1400681f1
cmp r8d, 1
jne 0x140068237
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140068215
cmp ecx, r8d
jne 0x140068237
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.140068240
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140068215
cmp ecx, 1
jne 0x140068237
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.140068240
ret

Function at 0x140068240
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 + 0x238]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006829f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004f6b0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140067a40
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140068450
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400685fe
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 0x140068499
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400684a7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400684b5
mov byte [rax], Ordinal_32
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 0x1400684ef
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140068506
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140068514
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140068526
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140068534
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140068542
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.140067b80
mov rcx, qword [r14 + 0x238]
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 0x1400685aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004f6b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400682d0
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400685f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14004f6b0
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x140068600
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 0x14006865e
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x140068647
sub r8d, 2
je 0x140068672
cmp r8d, 1
jne 0x1400686a5
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1400686a5
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.140068240
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x14006868b
sub ecx, 1
je 0x14006862e
cmp ecx, 1
jne 0x1400686a5
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x1400686a5
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.140068240
pop rbx
ret
Function at 0x1400686b0
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 0x140068718
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x1400686fe
sub r8d, 2
je 0x14006872f
cmp r8d, 1
jne 0x140068765
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x140068765
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.140068240
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x140068748
sub ecx, 1
je 0x1400686e5
cmp ecx, 1
jne 0x140068765
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x140068765
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.140068240
pop rbx
ret
Function at 0x140069900
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 [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x628]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], pe_nt_image_headers64
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 0x14006999d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14009b2c0
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 0x140069a07
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14004f6b0
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.1400784c0
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.140069440
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x140069ab6
sub r8d, 1
je 0x140069b25
sub r8d, 1
je 0x140069a72
cmp r8d, 1
je 0x140069a52
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400f1eec]
call fcn.14004f6b0
jmp 0x140069b25
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.140069650
test eax, eax
je 0x140069b25
jmp 0x1400699d2
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.140069420
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400693e0
cmp rax, rbx
jae 0x140069b25
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.14004f7b0
jmp 0x140069b25
cmp r9d, 4
jle 0x140069b25
mov rcx, r14
call fcn.140069420
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x140069b25
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.14004f5d0
mov ebx, eax
test eax, eax
je 0x140069b04
mov edx, 5
mov rcx, rdi
call fcn.14006a3d0
mov eax, ebx
jmp 0x1400699d2
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14005b810
mov rcx, r15
call fcn.14005ba60
test eax, eax
je 0x1400699d0
mov edx, 5
mov rcx, rdi
call fcn.14006a3d0
mov eax, Ordinal_46
jmp 0x1400699d2
Function at 0x14006fcc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400abbb0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14006fd26
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14006fd26
lea rcx, [rsp + 0x20]
call qword [case.0x140046016.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x148
ret
jmp 0x14006fcc0

Function at 0x14006fd40
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1400abbb0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14006fd26
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14006fd26
lea rcx, [rsp + 0x20]
call qword [case.0x140046016.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x148
ret
jmp 0x14006fcc0
Function at 0x140071700
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1400f5998]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14007172a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400f59b8]
mov rcx, rbx
mov r14, rax
call fcn.1400abbc0
test rax, rax
je 0x14007178d
mov rcx, rbx
test r14, r14
je 0x140071777
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400717c5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400717c5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140071888
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400717f0
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14007187a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14007187a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140071820
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x140071834
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140071850
mov rcx, rdi
test r14, r14
je 0x140071871
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140071877
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14009e748]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400741d0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140074213
mov rcx, qword [rbx]
lea rax, [rbx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rbx
ret
Function at 0x140076910
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140076930
test rbx, rbx
je 0x14007694a
lea rcx, [rbx + rbx]
call qword [section..data]
jmp 0x140076957
lea rcx, [0x14010c7e5]
call qword [case.0x140046016.0]
mov rdi, rax
test rax, rax
jne 0x140076967
lea eax, [rdi + 0x1b]
jmp 0x140076a23
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140074150
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140076a10
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140076a03
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.14009e748]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140076cf0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140076dc1
xor eax, eax
lea rdx, [rsp + 0x64]
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0x208
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.140076e40
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.140078450
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140076dc5
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140076e0f
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140077040
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov edx, dword [rdx + 0x28]
cmp edx, 0x40
jb 0x140077066
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea ecx, [rdx*8]
add qword [rbx], rcx
mov byte [rdx + rbx + 0x2c], pe_nt_image_headers64
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x38
jbe 0x1400770b3
cmp eax, 0x40
jae 0x1400770a0
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x40
jb 0x140077090
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.140077330
mov dword [rbx + 0x28], 0
cmp dword [rbx + 0x28], 0x38
jae 0x1400770d1
nop dword [rax]
mov eax, dword [rbx + 0x28]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 0x38
jb 0x1400770c0
movzx eax, byte [rbx + 7]
lea rdx, [rbx + 0x2c]
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
mov rax, qword [rbx]
shr rax, 0x28
mov byte [rbx + 0x66], al
mov rax, qword [rbx]
shr rax, 0x20
mov byte [rbx + 0x67], al
mov eax, dword [rbx]
shr rax, 0x18
mov byte [rbx + 0x68], al
mov eax, dword [rbx]
shr rax, 0x10
mov byte [rbx + 0x69], al
mov eax, dword [rbx]
shr rax, 8
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.140077330
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rbx, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140077210
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov qword [rcx + 0x24], 0x5be0cd19
mov qword [rcx], rax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
ret

Function at 0x140077330
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov eax, dword [rcx + 0x24]
lea r10, [rsp + 0x10]
mov r13d, dword [rcx + 8]
sub r10, rdx
mov esi, dword [rcx + 0xc]
mov r9, rcx
mov r15d, dword [rcx + 0x10]
mov edi, r13d
mov ebp, dword [rcx + 0x14]
mov r8d, reloc.WS2_32.dll_recv
mov ebx, dword [rcx + 0x18]
mov r12d, dword [rcx + 0x1c]
mov r14d, dword [rcx + 0x20]
mov dword [rsp], eax
lea rax, [rdx + 2]
nop dword [rax + rax]
movzx ecx, byte [rax - 1]
movzx edx, byte [rax - 2]
lea rax, [rax + 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [rax - 3]
shl edx, 8
or edx, ecx
mov dword [r10 + rax - 6], edx
sub r8, 1
jne 0x1400773a0
lea r10, [rsp + 0x48]
lea r11d, [r8 + 0x30]
nop word [rax + rax]
mov ecx, dword [r10 - 0x34]
mov r8d, ecx
mov edx, dword [r10]
lea r10, [r10 + 4]
mov eax, ecx
rol r8d, 0xe
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 - 0x3c]
add r8d, dword [r10 - 0x18]
mov dword [r10 + 4], r8d
sub r11, 1
jne 0x1400773e0
mov ecx, dword [rsp]
lea r11, [0x1400f62a0]
xor r10d, r10d
mov edx, ebx
mov eax, ebx
rol eax, 7
mov r8d, esi
ror edx, 0xb
or r8d, edi
xor edx, eax
and r8d, r15d
mov eax, ebx
ror eax, 6
xor edx, eax
mov eax, r12d
xor eax, r14d
and eax, ebx
xor eax, r14d
add edx, eax
mov eax, edi
add edx, dword [r10 + r11]
add edx, dword [rsp + r10 + 0x10]
add r10, 4
add edx, ecx
rol eax, 0xa
add ebp, edx
mov ecx, edi
ror ecx, 0xd
xor ecx, eax
mov eax, edi
ror eax, 2
xor ecx, eax
mov eax, esi
and eax, edi
or r8d, eax
lea eax, [rdx + rcx]
mov ecx, r14d
add r8d, eax
mov r14d, r12d
mov r12d, ebx
mov ebx, ebp
mov ebp, r15d
mov r15d, esi
mov esi, edi
mov edi, r8d
cmp r10, 0x100
jl 0x140077433
lea eax, [r8 + r13]
mov dword [r9 + 8], eax
add dword [r9 + 0xc], esi
add dword [r9 + 0x10], r15d
add dword [r9 + 0x14], ebp
add dword [r9 + 0x18], ebx
add dword [r9 + 0x1c], r12d
add dword [r9 + 0x20], r14d
add dword [r9 + 0x24], ecx
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret