joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067110
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 0x1400672df
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x1400669e0]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x1400672df
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400671c2
cmp qword [rsp + 0x30], 0
je 0x1400672df
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.140082340
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400672df
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x1400672df
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140067272
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 0x14006724a
mov eax, 0x1b
jmp 0x1400672e1
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 0x1400672d2
xor eax, eax
test eax, eax
jne 0x14006727d
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 0x1400672d0
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 0x1400672df
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x140068be0
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 [0x14014ad30], 0
jne 0x140068c44
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14009acb0
movzx eax, al
test eax, eax
je 0x140068c3a
mov dword [0x14014ad30], 2
jmp 0x140068c44
mov dword [0x14014ad30], 1
cmp dword [0x14014ad30], 2
jne 0x140068c4f
jmp 0x140068ca7
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 0x140068c84
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140068c84
jmp 0x140068ca7
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 0x140068ed0
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 [0x140149de8]
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 0x140068f72
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.140096cf0
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.1400666a0
jmp 0x140068fda
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.140068990
movzx eax, al
test eax, eax
jne 0x140068fda
call fcn.1400be240
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140096cf0
mov qword [rsp + 0x28], rax
call fcn.1400be240
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.1400666a0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400ae1a0
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400696b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140149de8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa83]
test eax, eax
je 0x1400696ed
mov dword [rsp + 0x54], 1
jmp 0x1400696f5
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 0x140069732
xor eax, eax
test eax, eax
jne 0x140069727
jmp 0x1400697e5
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa04]
call fcn.14006ab40
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 + 0xa08]
call fcn.14006ab40
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 0x1400697e5
xor eax, eax
test eax, eax
jne 0x1400697df
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ae1a0
add rsp, 0x88
ret
Function at 0x14006a9a0
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 0x14006a9ea
xor eax, eax
test eax, eax
jne 0x14006a9e4
add rsp, 0x48
ret

Function at 0x14006b170
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x140149de8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x14006b228
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 0x14006b1ce
mov eax, 2
jmp 0x14006b2ce
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 0x14006b218
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 0x14006b228
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14006b2ce
call fcn.14009c610
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14006b241
mov eax, dword [rsp + 0x34]
jmp 0x14006b2ce
lea rcx, str.iphlpapi.dll
call fcn.14006b350
mov qword [0x14014ad40], rax
cmp qword [0x14014ad40], 0
je 0x14006b28b
lea rdx, str.if_nametoindex
mov rcx, qword [0x14014ad40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14006b28b
mov rax, qword [rsp + 0x40]
mov qword [0x14014ad38], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.14009acb0
movzx eax, al
test eax, eax
je 0x14006b2b8
mov byte [0x14014cc98], 1
jmp 0x14006b2bf
mov byte [0x14014cc98], 0
lea rcx, [0x14014cca0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400ae1a0
add rsp, 0x208
ret
Function at 0x140074210
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 0x14007428b
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 0x14007a250
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 + 0x12a0], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a8], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f9]
test eax, eax
je 0x14007a2c4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f9]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x71b]
cmp eax, ecx
jle 0x14007a2db
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x71b]
mov byte [rax + 0x10f9], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1108], 0
je 0x14007a314
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1170]
test eax, eax
jne 0x14007a314
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x14007a314
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0xa
jne 0x14007a33c
xor eax, eax
test eax, eax
jne 0x14007a325
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140069480
jmp 0x14007a3a7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0x14
je 0x14007a366
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x14007a380
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x14007a380
xor eax, eax
test eax, eax
jne 0x14007a366
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x14007a3a7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x71b]
cmp eax, 0xb
jl 0x14007a3a7
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x14007a3a7
xor eax, eax
test eax, eax
jne 0x14007a3a1
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x14007a3ca
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x14007a3ca
mov dword [rsp + 0x20], 1
jmp 0x14007a3d2
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x14007a3e3
mov dword [rsp + 0x24], 0
jmp 0x14007a3eb
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 0x14007a439
cmp dword [rsp + 0x28], 0x130
je 0x14007a41d
jmp 0x14007a45e
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x14007a439
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1384], 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 0x140082d40
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 0x140082d6a
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x140082dac
cmp qword [rsp + 0x80], 0
je 0x140082d82
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x140082dac
cmp qword [rsp + 0x88], 0
je 0x140082d9a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x140082dac
mov rcx, qword [rsp + 0x90]
call fcn.140082cc0
jmp 0x140082e71
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400a5570
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x140082dea
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x140082dea
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x140082df3
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x140082e1a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x140082e1a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140082e23
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x140082e41
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x140082e41
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140082e4a
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 0x1400890c0
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.1400e39fc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140089117
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x30], rax
jne 0x14008911b
xor eax, eax
jmp 0x140089120
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140089920
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 0x14008995f
mov eax, 2
jmp 0x140089961
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400904d0
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 0x14009054a
jmp 0x140090622
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 0x140090575
jmp 0x1400905fa
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 0x140090593
jmp 0x1400905fa
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 0x1400905bb
jmp 0x1400905fa
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x1400905c8
jmp 0x1400905fa
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 0x1400905f0
jmp 0x1400905fa
xor eax, eax
test eax, eax
jne 0x14009054a
cmp qword [rsp + 0x40], 0
je 0x14009060d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x140090622
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x50
pop rdi
ret

Function at 0x1400906d0
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.1400be350]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14009071f
mov rcx, qword [rsp + 0x30]
call qword [fcn.1400be360]
xor eax, eax
jmp 0x14009078a
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 0x140090765
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x140090765
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x140090774
mov rcx, qword [rsp + 0x30]
call qword [fcn.1400be360]
xor eax, eax
jmp 0x14009078a
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x140090785
mov rax, qword [rsp + 0x30]
jmp 0x14009078a
jmp 0x1400906f2
add rsp, 0x48
ret
Function at 0x14009a060
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14009a07e
mov dword [rsp + 0x20], 1
jmp 0x14009a086
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 0x14009d990
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x140149de8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x60]
call fcn.140074b20
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.1400eb2e0
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400eb2e0
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 0x14009da61
cmp qword [rsp + 0x20], 0
je 0x14009da35
mov rcx, qword [rsp + 0x20]
call fcn.1400be360
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x14009da1a
cmp qword [rsp + 0x28], 0
je 0x14009da56
mov rcx, qword [rsp + 0x28]
call fcn.1400be360
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x14009da3b
jmp 0x14009db18
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.140074b20
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.140074c00
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jl 0x14009dabf
movsxd rax, dword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jle 0x14009db08
cmp qword [rsp + 0x20], 0
je 0x14009dada
mov rcx, qword [rsp + 0x20]
call fcn.1400be360
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x14009dabf
cmp qword [rsp + 0x28], 0
je 0x14009dafb
mov rcx, qword [rsp + 0x28]
call fcn.1400be360
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x14009dae0
mov eax, 1
jmp 0x14009db1a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009da00
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400ae1a0
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1400ac130
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 0x1400ac185
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 0x1400ac1a0
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 0x1400be0e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400be0fd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400be158
test al, 7
jne 0x1400be0f0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400be111
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400be182
test dh, dh
je 0x1400be17c
shr rdx, 0x10
test dl, dl
je 0x1400be176
test dh, dh
je 0x1400be170
shr rdx, 0x10
test dl, dl
je 0x1400be16a
test dh, dh
je 0x1400be164
shr edx, 0x10
test dl, dl
je 0x1400be15e
test dh, dh
jne 0x1400be111
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret

Function at 0x1400cd53c
Capabilities:
Parse pe header

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