joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cea0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x218]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x3e0]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14003d06f
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x14003c770]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x14003d06f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14003cf52
cmp qword [rsp + 0x30], 0
je 0x14003d06f
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140056f60
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14003d06f
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003d06f
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14003d002
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6dc]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [section..data]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14003cfda
mov eax, 0x1b
jmp 0x14003d071
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14003d062
xor eax, eax
test eax, eax
jne 0x14003d00d
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x14003d060
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x14003d06f
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x14003e860
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x1400e1c00], 0
jne 0x14003e8c4
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006e980
movzx eax, al
test eax, eax
je 0x14003e8ba
mov dword [0x1400e1c00], 2
jmp 0x14003e8c4
mov dword [0x1400e1c00], 1
cmp dword [0x1400e1c00], 2
jne 0x14003e8cf
jmp 0x14003e927
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003e904
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x14003e904
jmp 0x14003e927
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret

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

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, 0x1c0
mov rax, qword [0x1400e0c68]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x24], 0x80
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003ebf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
call fcn.14006b500
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.14003c430
jmp 0x14003ec5a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.14003e690
movzx eax, al
test eax, eax
jne 0x14003ec5a
call fcn.140088140
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.14006b500
mov qword [rsp + 0x28], rax
call fcn.140088140
mov rcx, qword [rsp + 0x28]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.14003c430
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140081e90
add rsp, 0x1c0
pop rdi
ret
Function at 0x14003f2f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400e0c68]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa7b]
test eax, eax
je 0x14003f32d
mov dword [rsp + 0x54], 1
jmp 0x14003f335
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14003f372
xor eax, eax
test eax, eax
jne 0x14003f367
jmp 0x14003f425
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa00]
call fcn.1400405f0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa04]
call fcn.1400405f0
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, listen
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14003f425
xor eax, eax
test eax, eax
jne 0x14003f41f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140081e90
add rsp, 0x88
ret
Function at 0x140040450
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14004049a
xor eax, eax
test eax, eax
jne 0x140040494
add rsp, 0x48
ret

Function at 0x140040c20
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400e0c68]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x140040cd8
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140040c7e
mov eax, 2
jmp 0x140040d7e
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140040cc8
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140040cd8
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x140040d7e
call fcn.1400702e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140040cf1
mov eax, dword [rsp + 0x34]
jmp 0x140040d7e
lea rcx, str.iphlpapi.dll
call fcn.140040e00
mov qword [0x1400e1c10], rax
cmp qword [0x1400e1c10], 0
je 0x140040d3b
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400e1c10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140040d3b
mov rax, qword [rsp + 0x40]
mov qword [0x1400e1c08], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14006e980
movzx eax, al
test eax, eax
je 0x140040d68
mov byte [0x1400e3640], 1
jmp 0x140040d6f
mov byte [0x1400e3640], 0
lea rcx, [0x1400e3648]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140081e90
add rsp, 0x208
ret
Function at 0x140049d20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140049d9b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x14004f8f0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1298], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a0], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
test eax, eax
je 0x14004f964
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
cmp eax, ecx
jle 0x14004f97b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
mov byte [rax + 0x10f1], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1100], 0
je 0x14004f9b4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1168]
test eax, eax
jne 0x14004f9b4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x14004f9b4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xa
jne 0x14004f9dc
xor eax, eax
test eax, eax
jne 0x14004f9c5
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14003f0c0
jmp 0x14004fa47
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0x14
je 0x14004fa06
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x14004fa20
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x14004fa20
xor eax, eax
test eax, eax
jne 0x14004fa06
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x14004fa47
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xb
jl 0x14004fa47
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x14004fa47
xor eax, eax
test eax, eax
jne 0x14004fa41
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x14004fa6a
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x14004fa6a
mov dword [rsp + 0x20], 1
jmp 0x14004fa72
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x14004fa83
mov dword [rsp + 0x24], 0
jmp 0x14004fa8b
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xdd], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x14004fad9
cmp dword [rsp + 0x28], 0x130
je 0x14004fabd
jmp 0x14004fafe
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x14004fad9
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x137c], 1
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdd], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x140057960
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
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x14005798a
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x1400579cc
cmp qword [rsp + 0x80], 0
je 0x1400579a2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x1400579cc
cmp qword [rsp + 0x88], 0
je 0x1400579ba
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1400579cc
mov rcx, qword [rsp + 0x90]
call fcn.1400578e0
jmp 0x140057a91
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400792f0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x140057a0a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x140057a0a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x140057a13
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x140057a3a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x140057a3a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140057a43
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x140057a61
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140057a61
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140057a6a
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x70]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x68
ret
Function at 0x14005da90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
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 fcn.140094bc8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14005daea
mov ecx, 0xffffffff
call fcn.14005db80
cmp qword [rsp + 0x30], rax
jne 0x14005daee
xor eax, eax
jmp 0x14005daf3
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14005e300
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
rep stosb byte [rdi], al
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x14005e33f
mov eax, 2
jmp 0x14005e341
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140064e90
Capabilities:
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, 0x50
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140064f0a
jmp 0x140064fe2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140064f35
jmp 0x140064fba
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140064f53
jmp 0x140064fba
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140064f7b
jmp 0x140064fba
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x140064f88
jmp 0x140064fba
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140064fb0
jmp 0x140064fba
xor eax, eax
test eax, eax
jne 0x140064f0a
cmp qword [rsp + 0x40], 0
je 0x140064fcd
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x140064fe2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x50
pop rdi
ret

Function at 0x140065090
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [fcn.140088160]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400650df
mov rcx, qword [rsp + 0x30]
call qword [fcn.140088170]
xor eax, eax
jmp 0x14006514a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140065125
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x140065125
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x140065134
mov rcx, qword [rsp + 0x30]
call qword [fcn.140088170]
xor eax, eax
jmp 0x14006514a
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x140065145
mov rax, qword [rsp + 0x30]
jmp 0x14006514a
jmp 0x1400650b2
add rsp, 0x48
ret
Function at 0x14006e550
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14006e56e
mov dword [rsp + 0x20], 1
jmp 0x14006e576
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret

Function at 0x140071680
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1400e0c68]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x60]
call fcn.14004a630
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xc0]
call fcn.14009df08
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xc8]
call fcn.14009df08
mov qword [rsp + 0x28], rax
mov r8d, 1
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140071751
cmp qword [rsp + 0x20], 0
je 0x140071725
mov rcx, qword [rsp + 0x20]
call fcn.140088170
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x14007170a
cmp qword [rsp + 0x28], 0
je 0x140071746
mov rcx, qword [rsp + 0x28]
call fcn.140088170
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x14007172b
jmp 0x140071808
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.14004a630
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14004a710
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jl 0x1400717af
movsxd rax, dword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jle 0x1400717f8
cmp qword [rsp + 0x20], 0
je 0x1400717ca
mov rcx, qword [rsp + 0x20]
call fcn.140088170
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x1400717af
cmp qword [rsp + 0x28], 0
je 0x1400717eb
mov rcx, qword [rsp + 0x28]
call fcn.140088170
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x1400717d0
mov eax, 1
jmp 0x14007180a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400716f0
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140081e90
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x14007feb0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14007ff05
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14007ff20
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
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, 0x28
ret

Function at 0x14009b614
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009b440

Function at 0x1400a38dc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400a38b9
call fcn.140088140
mov dword [rax], socket
call fcn.140087f38
or eax, 0xffffffff
jmp 0x1400a38d6
sub dword [rcx + 0x10], 1
jns 0x1400a38c8
add rsp, 0x28
jmp fcn.1400a3310
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400a3898

Function at 0x1400aac50
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400aac70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400880d0
or eax, 0xffffffff
jmp 0x1400aac72
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400b2948
Capabilities:
Encrypt data using rc4 ksa

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
mov r9, rcx
xor eax, eax
mov byte [rcx], al
inc eax
inc rcx
cmp eax, 0x100
jl 0x1400b2962
xor esi, esi
movzx r14d, r8b
xor cl, cl
lea rbx, [r9 + 0xff]
mov r10d, 0xff
xor ebp, ebp
lea r11d, [rbp + 1]
cmp r10d, r11d
jbe 0x1400b299d
lea r11d, [r11*2 + 1]
cmp r11d, r10d
jb 0x1400b2990
movzx ecx, cl
lea r8d, [rsi + 1]
lea rdx, str.gcmnhrixwlrzticosipkm
mov cl, byte [rcx + r9]
add cl, byte [rsi + rdx]
movzx edx, cl
cmp r8d, r14d
lea eax, [r14 + rdx]
movzx ecx, al
cmovb ecx, edx
sbb esi, esi
movzx edi, cl
and esi, r8d
mov eax, edi
inc ebp
and eax, r11d
cmp ebp, 0xb
jbe 0x1400b29dd
xor edx, edx
div r10d
mov eax, edx
mov cl, dil
cmp eax, r10d
ja 0x1400b299d
mov dl, byte [rbx]
movzx ecx, al
mov al, byte [rcx + r9]
mov byte [rbx], al
dec rbx
mov byte [rcx + r9], dl
mov cl, dil
sub r10d, 1
jne 0x1400b2985
mov al, byte [r9 + 1]
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov byte [r9 + 0x100], al
mov al, byte [r9 + 3]
mov byte [r9 + 0x101], al
mov al, byte [r9 + 5]
mov byte [r9 + 0x102], al
mov al, byte [r9 + 7]
mov byte [r9 + 0x103], al
mov rax, r9
mov cl, byte [rdi + r9]
mov rdi, qword [rsp + 0x28]
mov byte [r9 + 0x104], cl
pop r14
ret