joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034620
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 [0x1400d4b20], 0
jne 0x140034684
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140064340
movzx eax, al
test eax, eax
je 0x14003467a
mov dword [0x1400d4b20], 2
jmp 0x140034684
mov dword [0x1400d4b20], 1
cmp dword [0x1400d4b20], 2
jne 0x14003468f
jmp 0x1400346e7
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 0x1400346c4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x1400346c4
jmp 0x1400346e7
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 0x140034910
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 [0x1400d3be8]
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 0x1400349b2
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.140060ec0
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.1400321f0
jmp 0x140034a1a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.140034450
movzx eax, al
test eax, eax
jne 0x140034a1a
call fcn.14007b6b0
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140060ec0
mov qword [rsp + 0x28], rax
call fcn.14007b6b0
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.1400321f0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140075400
add rsp, 0x1c0
pop rdi
ret
Function at 0x1400350b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400d3be8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa6b]
test eax, eax
je 0x1400350ed
mov dword [rsp + 0x54], 1
jmp 0x1400350f5
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 0x140035132
xor eax, eax
test eax, eax
jne 0x140035127
jmp 0x1400351e5
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x9f8]
call fcn.1400363b0
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 + 0x9fc]
call fcn.1400363b0
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, recv
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400351e5
xor eax, eax
test eax, eax
jne 0x1400351df
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140075400
add rsp, 0x88
ret
Function at 0x140036210
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 0x14003625a
xor eax, eax
test eax, eax
jne 0x140036254
add rsp, 0x48
ret

Function at 0x1400369e0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400d3be8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x140036a98
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 0x140036a3e
mov eax, 2
jmp 0x140036b3e
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 0x140036a88
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 0x140036a98
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x140036b3e
call fcn.140065ca0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140036ab1
mov eax, dword [rsp + 0x34]
jmp 0x140036b3e
lea rcx, str.iphlpapi.dll
call fcn.140036bc0
mov qword [0x1400d4b30], rax
cmp qword [0x1400d4b30], 0
je 0x140036afb
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400d4b30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140036afb
mov rax, qword [rsp + 0x40]
mov qword [0x1400d4b28], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140064340
movzx eax, al
test eax, eax
je 0x140036b28
mov byte [0x1400d65b8], 1
jmp 0x140036b2f
mov byte [0x1400d65b8], 0
lea rcx, [0x1400d65c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140075400
add rsp, 0x208
ret
Function at 0x14003fae0
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 0x14003fb5b
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 0x140045630
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 + 0x1280], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1288], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10d9]
test eax, eax
je 0x1400456a4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10d9]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
cmp eax, ecx
jle 0x1400456bb
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
mov byte [rax + 0x10d9], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10e8], 0
je 0x1400456f4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1150]
test eax, eax
jne 0x1400456f4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x1400456f4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xd4], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xa
jne 0x14004571c
xor eax, eax
test eax, eax
jne 0x140045705
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140034e80
jmp 0x140045787
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0x14
je 0x140045746
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x140045760
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x140045760
xor eax, eax
test eax, eax
jne 0x140045746
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x140045787
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xb
jl 0x140045787
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x140045787
xor eax, eax
test eax, eax
jne 0x140045781
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x1400457aa
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x1400457aa
mov dword [rsp + 0x20], 1
jmp 0x1400457b2
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x1400457c3
mov dword [rsp + 0x24], 0
jmp 0x1400457cb
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xd5], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x140045819
cmp dword [rsp + 0x28], 0x130
je 0x1400457fd
jmp 0x14004583e
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x550]
test eax, eax
je 0x140045819
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1364], 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 + 0xd5], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x14004d6a0
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 0x14004d6ca
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x14004d70c
cmp qword [rsp + 0x80], 0
je 0x14004d6e2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x14004d70c
cmp qword [rsp + 0x88], 0
je 0x14004d6fa
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x14004d70c
mov rcx, qword [rsp + 0x90]
call fcn.14004d620
jmp 0x14004d7d1
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14006c820
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x14004d74a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14004d74a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x14004d753
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x14004d77a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x14004d77a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x14004d783
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x14004d7a1
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x14004d7a1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x14004d7aa
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 0x140053450
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.1400880b0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400534aa
mov ecx, 0xffffffff
call fcn.140053540
cmp qword [rsp + 0x30], rax
jne 0x1400534ae
xor eax, eax
jmp 0x1400534b3
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140053cc0
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 0x140053cff
mov eax, 2
jmp 0x140053d01
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14005a850
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 0x14005a8ca
jmp 0x14005a9a2
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 0x14005a8f5
jmp 0x14005a97a
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 0x14005a913
jmp 0x14005a97a
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 0x14005a93b
jmp 0x14005a97a
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x14005a948
jmp 0x14005a97a
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 0x14005a970
jmp 0x14005a97a
xor eax, eax
test eax, eax
jne 0x14005a8ca
cmp qword [rsp + 0x40], 0
je 0x14005a98d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x14005a9a2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x50
pop rdi
ret

Function at 0x14005aa50
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.14007b6d0]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14005aa9f
mov rcx, qword [rsp + 0x30]
call qword [fcn.14007b6e0]
xor eax, eax
jmp 0x14005ab0a
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 0x14005aae5
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x14005aae5
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x14005aaf4
mov rcx, qword [rsp + 0x30]
call qword [fcn.14007b6e0]
xor eax, eax
jmp 0x14005ab0a
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x14005ab05
mov rax, qword [rsp + 0x30]
jmp 0x14005ab0a
jmp 0x14005aa72
add rsp, 0x48
ret
Function at 0x140063f10
Capabilities:
Set socket configuration

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1400d3be8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x60]
call fcn.1400403f0
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.1400913e8
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400913e8
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 0x140067111
cmp qword [rsp + 0x20], 0
je 0x1400670e5
mov rcx, qword [rsp + 0x20]
call fcn.14007b6e0
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x1400670ca
cmp qword [rsp + 0x28], 0
je 0x140067106
mov rcx, qword [rsp + 0x28]
call fcn.14007b6e0
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x1400670eb
jmp 0x1400671c8
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.1400403f0
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.1400404d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jl 0x14006716f
movsxd rax, dword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jle 0x1400671b8
cmp qword [rsp + 0x20], 0
je 0x14006718a
mov rcx, qword [rsp + 0x20]
call fcn.14007b6e0
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x14006716f
cmp qword [rsp + 0x28], 0
je 0x1400671ab
mov rcx, qword [rsp + 0x28]
call fcn.14007b6e0
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x140067190
mov eax, 1
jmp 0x1400671ca
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400670b0
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140075400
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1400733e0
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 0x140073435
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 0x140073450
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 0x14007b550
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14007b56d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14007b5c8
test al, 7
jne 0x14007b560
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 0x14007b581
mov rdx, qword [rax - 8]
test dl, dl
je 0x14007b5f2
test dh, dh
je 0x14007b5ec
shr rdx, 0x10
test dl, dl
je 0x14007b5e6
test dh, dh
je 0x14007b5e0
shr rdx, 0x10
test dl, dl
je 0x14007b5da
test dh, dh
je 0x14007b5d4
shr edx, 0x10
test dl, dl
je 0x14007b5ce
test dh, dh
jne 0x14007b581
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14008eaf4
Capabilities:
Parse pe header

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

Function at 0x140096dbc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140096d99
call fcn.14007b6b0
mov dword [rax], socket
call fcn.14007b4a8
or eax, 0xffffffff
jmp 0x140096db6
sub dword [rcx + 0x10], 1
jns 0x140096da8
add rsp, 0x28
jmp fcn.1400967f0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140096d78

Function at 0x14009e130
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14009e150
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007b640
or eax, 0xffffffff
jmp 0x14009e152
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400a23d8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov al, byte [rcx]
mov r8, rcx
or edx, 0xffffffff
jmp 0x1400a240e
movzx eax, al
mov r9d, 7
xor edx, eax
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9d, 1
jns 0x1400a23ed
inc r8
mov al, byte [r8]
test al, al
jne 0x1400a23e2
not edx
mov eax, edx
ret
Function at 0x1400abbf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
call fcn.1400ab2bc
mov rbx, rax
test rax, rax
je 0x1400abc64
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x68746150
mov rcx, rax
mov word [rbp - 0x1c], 0x6552
mov word [rbp - 0x12], 0x736e
mov dword [rbp - 0x17], 0x74784565
mov dword [rbp - 0x10], 0x416e6f69
mov word [rbp - 0x19], 0x766f
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x13], 0x65
mov byte [rbp - 0x1a], WSASetLastError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400abc5c
mov rcx, rdi
call rax
mov rcx, rbx
call fcn.1400ab3bc
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret

Function at 0x1400abc74
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
call fcn.140006b44
mov rdi, rax
test rax, rax
je 0x1400abcef
lea rdx, [rbp - 0x10]
mov dword [rbp - 7], 0x416563
mov rcx, rax
mov dword [rbp - 0xf], 0x536e6570
mov word [rbp - 0xa], 0x7672
mov byte [rbp - 0xb], 0x65
mov byte [rbp - 0x10], 0x4f
mov byte [rbp - 8], 0x69
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400abce7
mov r8d, 0x60000
mov rdx, rsi
mov rcx, r14
call rax
mov rbx, rax
mov rcx, rdi
call fcn.1400ab3bc
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x1400abd0c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov r15, rdx
mov ebx, 1
call fcn.140006b44
mov rdi, rax
test rax, rax
je 0x1400abd99
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x19], 0x49736569
mov rcx, rax
mov dword [rbp - 0x14], 0x416c6341
mov word [rbp - 0x1f], 0x7465
mov word [rbp - 0x1c], 0x746e
mov byte [rbp - 0x20], 0x53
mov byte [rbp - 0x15], WSASetLastError
mov byte [rbp - 0x10], 0
mov byte [rbp - 0x1a], WSAStartup
mov byte [rbp - 0x1d], 0x45
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400abd91
mov r9, rsi
mov r8, r14
mov rdx, r15
mov ecx, ebx
call rax
mov ebx, eax
mov rcx, rdi
call fcn.1400ab3bc
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret