joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d930
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x14005d965
mov dword [rsp + 0x34], 1
jmp 0x14005d96d
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x14005f3a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0xa0], 0x7fffffff
jl 0x14005f3ec
mov qword [rsp + 0xa0], 0x7fffffff
cmp qword [rsp + 0x88], 0
je 0x14005f404
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x14005f44d
cmp qword [rsp + 0x90], 0
je 0x14005f41c
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x14005f44d
cmp qword [rsp + 0x98], 0
je 0x14005f434
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x14005f44d
mov ecx, dword [rsp + 0xa0]
call fcn.1400602b0
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
jmp 0x14005f58a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0xa0], 0
jge 0x14005f46d
mov qword [rsp + 0x48], 0
jmp 0x14005f4c8
cmp qword [rsp + 0xa0], 0
jle 0x14005f4ad
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x3c], eax
jmp 0x14005f4c8
cmp qword [rsp + 0xa0], 0
jne 0x14005f4c8
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0x98], 0
je 0x14005f4ef
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x14005f4ef
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x58], rax
jmp 0x14005f4f8
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x90], 0
je 0x14005f51f
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x14005f51f
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
jmp 0x14005f528
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x88], 0
je 0x14005f54f
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14005f54f
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x68], rax
jmp 0x14005f558
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140064940
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x68]
call fcn.140050f90
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8d, 1
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400649c4
jmp 0x140064a42
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x78]
call fcn.140050f90
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x90]
call fcn.1400510a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jl 0x140064a2b
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x58], rax
jle 0x140064a32
mov eax, 1
jmp 0x140064a44
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400649a2
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140065600
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14006565b
mov ecx, 0xffffffff
call fcn.140065710
cmp qword [rsp + 0x30], rax
jne 0x14006565f
xor eax, eax
jmp 0x140065664
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14006b230
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14006b2d8
jmp 0x14006b3c2
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14006b303
jmp 0x14006b39a
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14006b327
jmp 0x14006b39a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14006b352
jmp 0x14006b39a
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x14006b362
jmp 0x14006b39a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14006b390
jmp 0x14006b39a
xor eax, eax
test eax, eax
jne 0x14006b2d8
cmp qword [rsp + 0x58], 0
je 0x14006b3ad
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x14006b3c2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1400abe64
add rsp, 0xd0
pop rdi
ret
Function at 0x14006b4c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [0x1400ce010]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14006b510
mov rcx, qword [rsp + 0x20]
call qword [0x1400ce008]
xor eax, eax
jmp 0x14006b57b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14006b556
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x14006b556
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x14006b565
mov rcx, qword [rsp + 0x20]
call qword [0x1400ce008]
xor eax, eax
jmp 0x14006b57b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x14006b576
mov rax, qword [rsp + 0x20]
jmp 0x14006b57b
jmp 0x14006b4e3
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14006bfb6
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rdi
ret

Function at 0x14006bfd0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x14006d150
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x200
lea rdi, [rsp + 0x20]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x210]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor eax, eax
test eax, eax
jne 0x14006d188
mov eax, 2
mov word [rsp + 0x24], ax
lea rdx, [rsp + 0x40]
movzx ecx, word [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14006d1d3
mov r8d, dword [rsp + 0x20]
lea rdx, str.WSAStartup_failed___d_
mov rcx, qword [rsp + 0x210]
call fcn.140042340
mov eax, 2
jmp 0x14006d240
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x40]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x24]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x14006d223
movzx eax, word [rsp + 0x40]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x24]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x14006d23e
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, qword [rsp + 0x210]
call fcn.140042340
mov eax, 2
jmp 0x14006d240
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x200
pop rdi
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, listen
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x24], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + rax + 0x24], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x70]
mov byte [rsp + rax + 0x24], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax + 0x4c0]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x14006de11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1400d5ac8]
mov rcx, qword [rsp + 0x40]
call fcn.140042340
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1400d5ae4]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call fcn.14006da80
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
add rsp, 0x50
pop rdi
ret
Function at 0x140083340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x120]
mov rax, qword [rcx + rax + 0x4c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400833fe
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x120]
call fcn.140044e20
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140083433
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x20]
call fcn.140042340
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14008350a
lea rdx, str.Connection_accepted_from_server_n
mov rcx, qword [rsp + 0x20]
call fcn.1400421c0
mov rax, qword [rsp + 0x120]
mov byte [rax + 0x660], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x30]
mov qword [rcx + rax + 0x4c0], rdx
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.14005d930
mov rax, qword [rsp + 0x120]
mov byte [rax + 0xb2c], 1
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x728], 0
je 0x140083508
mov dword [rsp + 0xf4], 0
mov dl, 1
mov rcx, qword [rsp + 0x20]
call fcn.1400267c0
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x730]
mov rax, qword [rsp + 0x20]
call qword [rax + 0x728]
mov dword [rsp + 0xf4], eax
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1400267c0
cmp dword [rsp + 0xf4], 0
je 0x140083508
mov rcx, qword [rsp + 0x120]
call fcn.1400831c0
mov eax, Ordinal_46
jmp 0x14008350a
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x110
pop rdi
ret
Function at 0x1400868f0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140086941
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x28]
call fcn.140042340
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1400869bf
cmp dword [rsp + 0x48], 0xc8
je 0x140086961
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov rcx, qword [rsp + 0x28]
call fcn.1400421c0
cmp dword [rsp + 0x50], 0x13
jne 0x140086978
mov rcx, qword [rsp + 0x40]
call fcn.140085050
mov dword [rsp + 0x20], eax
jmp 0x1400869bb
cmp dword [rsp + 0x50], 0x14
jne 0x14008698f
mov rcx, qword [rsp + 0x40]
call fcn.140085100
mov dword [rsp + 0x20], eax
jmp 0x1400869bb
cmp dword [rsp + 0x50], 0x15
jne 0x1400869a6
mov rcx, qword [rsp + 0x40]
call fcn.1400853c0
mov dword [rsp + 0x20], eax
jmp 0x1400869bb
cmp dword [rsp + 0x50], 0x16
jne 0x1400869bb
mov rcx, qword [rsp + 0x40]
call fcn.1400853f0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a4bc0
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x1400a4c11
mov eax, dword [rsp + 0x20]
jmp 0x1400a4c37
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_strchr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400a4c35
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400a74a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400a7516
xor al, al
jmp 0x1400a7628
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.1400a72b0
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.1400aae90
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400a75bb
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400a7628
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0xe0
pop rdi
ret
Function at 0x1400ab060
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400ab0cf
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ab0e0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ac43c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ac486
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ac486
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ac486
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ac486
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ac486
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ac488
xor al, al
add rsp, 0x28
ret
Function at 0x18000990c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18000993a
xor eax, eax
jmp 0x180009a20
cmp qword [rcx + 0x68], 0
je 0x18000994b
call fcn.180009a3c
jmp 0x180009a20
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180009962
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180009964
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180009996
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800291f0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180009a1a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800099cd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1800099f6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180014584
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180009a1a
cmp rsi, rbx
ja 0x1800099d4
test rsi, rsi
je 0x180009a1a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180014584
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18001263c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800126ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800126ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800126ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800126ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800126ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1800126ab
cmp dword [rcx + 0xf8], 0
je 0x1800126ab
mov ecx, ebx
call fcn.18001275c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180012538
nop
cmp dword [rbp + 0x20], 0
je 0x1800126f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180012704
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001263c