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

Disassembly:
jmp 0x14009e510
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x1401e1a10]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x14009e64f
test r8b, r8b
je 0x14009e589
movzx eax, byte [rdx]
test al, 8
je 0x14009e589
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x14009e64f
mov eax, dword [rdi]
cmp eax, 0x2733
jne 0x14009e5e4
mov rcx, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rcx + 8], rdx
je 0x14009e5ff
jmp 0x14009e665
cmp eax, 0x4d5
jne 0x14009e665
mov rax, qword [rdi + 8]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x14009e665
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14009e665
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14000bd20
Capabilities:
Get geographical location

Disassembly:
jmp 0x14014649c
sub rsp, 0x28
and dword [rsp + 0x30], 0
call fcn.140012b40
mov r9d, 2
lea r8, [rsp + 0x30]
mov rcx, qword [rax + 0x28]
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x1401464e9
sub ecx, 1
je 0x1401464e2
cmp ecx, 1
je 0x1401464db
xor eax, eax
jmp 0x1401464ee
mov eax, 3
jmp 0x1401464ee
mov eax, 1
jmp 0x1401464ee
mov eax, 2
add rsp, 0x28
ret
Function at 0x14000ce30
Capabilities:
Clear file content

Disassembly:
jmp 0x1401ae1d4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov r14d, 1
mov r8d, r14d
xor edx, edx
mov ebp, ecx
call fcn.140006140
xor edx, edx
lea r8d, [r14 + 1]
mov ecx, ebp
mov r15, rax
call fcn.140006140
mov rsi, rbx
sub rsi, rax
cmp r15, 0xffffffffffffffff
je 0x1401ae30b
cmp rax, 0xffffffffffffffff
je 0x1401ae30b
xor edi, edi
test rsi, rsi
jle 0x1401ae2c7
mov r12d, 0x1000
mov edx, r14d
mov ecx, r12d
call fcn.14001c7f0
mov rbx, rax
test rax, rax
jne 0x1401ae261
call fcn.14000c160
mov dword [rax], ntohl
jmp 0x1401ae2aa
mov edx, 0x8000
mov ecx, ebp
call fcn.140016b80
mov r14d, eax
jmp 0x1401ae27c
cdqe
sub rsi, rax
test rsi, rsi
jle 0x1401ae2bb
mov r8d, esi
cmp rsi, r12
mov rdx, rbx
mov ecx, ebp
cmovge r8d, r12d
call fcn.14001aad0
cmp eax, 0xffffffff
jne 0x1401ae272
call fcn.1400148f0
cmp dword [rax], 5
jne 0x1401ae2aa
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000c160
mov edi, dword [rax]
mov rcx, rbx
call fcn.140001e90
jmp 0x1401ae312
mov edx, r14d
mov ecx, ebp
call fcn.140016b80
jmp 0x1401ae2b1
jns 0x1401ae312
xor r8d, r8d
mov rdx, rbx
mov ecx, ebp
call fcn.140006140
cmp rax, 0xffffffffffffffff
je 0x1401ae30b
mov ecx, ebp
call fcn.140020be0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401ae312
call fcn.14000c160
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400148f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
call fcn.14000c160
mov edi, dword [rax]
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call fcn.140006140
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000db80
Capabilities:
Get common file path

Disassembly:
jmp 0x1401893f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x140189432
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000a0a0
call fcn.14000c160
mov ebx, dword [rax]
jmp 0x14018949e
cmp rsi, qword [rdi + 0x18]
ja 0x14018943e
mov qword [rdi + 0x20], rsi
jmp 0x14018949e
lea rbp, [rsi + 1]
cmp byte [rdi + 0x28], bl
je 0x140189453
mov rcx, qword [rdi + 0x10]
call fcn.140001e90
mov byte [rdi + 0x28], bl
lea rcx, [rsi*2 + 2]
call fcn.1400011f0
mov qword [rdi + 0x10], rax
mov rcx, rbx
neg rax
sbb edx, edx
not edx
and edx, 0xc
cmove rcx, rbp
test edx, edx
sete al
mov byte [rdi + 0x28], al
mov qword [rdi + 0x18], rcx
test edx, edx
je 0x140189489
mov ebx, edx
jmp 0x14018949e
mov rdx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14018941c
mov qword [rdi + 0x20], rax
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000edc0
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x140045350
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov edi, dword [rcx + 8]
lea rax, [rsp + 0x60]
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x48], r15
mov rcx, qword [rcx]
or edi, 0x2001f
mov r9d, edi
mov dword [rsp + 0x50], r15d
xor r8d, r8d
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x60], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400454a8
mov rcx, qword [rsp + 0x48]
mov ebx, r15d
test rcx, rcx
je 0x1400453da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x1400454a8
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140045481
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000edc0
mov ebx, eax
test eax, eax
jne 0x1400454a8
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140045430
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140045496
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r15
mov rdx, r14
mov dword [rsp + 0x50], r15d
mov rcx, rsi
call fcn.140007be0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400454b8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000fde0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000ee70
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401b7a48
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x1401b7acf
mov rbp, rax
cmp word [rax], si
je 0x1401b7a91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401b7a78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401b7a74
sub rbp, rbx
add rbp, 2
sar rbp, 1
add rbp, rbp
mov rcx, rbp
call fcn.1400011f0
mov rdi, rax
test rax, rax
je 0x1401b7abf
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14000fef0
mov rsi, rdi
xor ecx, ecx
call fcn.140001e90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f430
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400b7ed0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbp, rcx
mov ebx, r9d
xor ecx, ecx
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r14d, r14d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x30], r14
mov r8d, edi
mov qword [rsp + 0x28], r14
mov rdx, rsi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x88], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x1400b7f66
mov dword [rsp + 0x40], 0x2746
jmp 0x1400b7f76
cmp edx, 0x4d2
jne 0x1400b7f88
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
test ebx, ebx
je 0x1400b7f93
mov eax, 0xffffffff
jmp 0x1400b7fb1
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], r14b
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x14000f620
Capabilities:
Access the windows event log

Disassembly:
jmp 0x140044050
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.1400021c0
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140001780
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x26c], esi
jne 0x1400440d6
lea rcx, [rsp + 0x60]
call fcn.140014ad0
lea rdx, [rdi + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140044127
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011a40
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401b7904
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401b79d6
mov rsi, rax
cmp word [rax], r14w
je 0x1401b7957
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401b793f
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401b793b
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140017eb0
movsxd rbp, eax
test eax, eax
je 0x1401b79d6
mov rcx, rbp
call fcn.1400011f0
mov rdi, rax
test rax, rax
je 0x1401b79c9
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140017eb0
test eax, eax
je 0x1401b79c9
mov rsi, rdi
mov rdi, r14
jmp 0x1401b79cc
mov rsi, r14
mov rcx, rdi
call fcn.140001e90
jmp 0x1401b79d9
mov rsi, r14
test rbx, rbx
je 0x1401b79e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140011b90
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140048a20
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ebx, edx
xor sil, sil
mov rdi, rcx
lea eax, [rbx + rbx]
mov dword [rsp + 0x58], eax
test rcx, rcx
je 0x140048aed
test edx, edx
je 0x140048aed
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREIntelSGX_PSW
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048aed
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140017aa0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [0x1401df9d0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140048ad6
cmp dword [rsp + 0x50], 1
jne 0x140048ad6
mov edx, dword [rsp + 0x58]
shr rdx, 1
lea rcx, [rdx + 1]
cmp rbx, rcx
jb 0x140048acc
mov word [rdi + rdx*2], ax
jmp 0x140048ad3
lea ecx, [rbx - 1]
mov word [rdi + rcx*2], ax
mov sil, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011ee0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401a8af8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1401f8b20]
mov rbp, rcx
lea r8, [0x1401f8b18]
lea rdx, str.GetLocaleInfoEx
mov ecx, ntohl
call fcn.1401a7f04
mov rcx, rbp
test rax, rax
je 0x1401a8b4e
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [case.0x14006bf61.0]
jmp 0x1401a8b65
xor edx, edx
call fcn.14000cfb0
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140011f20
Capabilities:
Terminate process

Disassembly:
jmp 0x140147c18
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140012c60
Capabilities:
Parse pe header

Disassembly:
jmp 0x14019f288
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14019efdc

Function at 0x140012cb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x1400b5f10
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r9
movzx ecx, word [rcx + 8]
mov rsi, rdx
cmp cx, word [rdi + 0xa]
jb 0x1400b5f55
mov rdx, qword [rdi]
sub rdx, r8
mov r8, rbx
add rdx, rcx
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000fef0
xor edx, edx
mov qword [rsp + 0x30], r14
movzx r14d, word [rdi + 0xc]
mov eax, r14d
sub rax, r8
add rax, rcx
mov rcx, rsi
div r14
sub r14, rdx
add rdx, qword [rdi]
cmp rbx, r14
jbe 0x1400b5f8d
mov r8, r14
call fcn.14000fef0
mov rdx, qword [rdi]
lea rcx, [r14 + rsi]
sub rbx, r14
mov r8, rbx
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000fef0
Function at 0x140013fd0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14008e9f0
push rdi
sub rsp, 0x20
mov rdi, qword [rcx]
cmp rdi, 0xffffffffffffffff
je 0x14008ea66
xor ecx, ecx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x38]
je 0x14008ea66
cmp eax, 0x2733
je 0x14008ea34
cmp eax, 0x4d5
jne 0x14008ea66
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x20
pop rdi
ret

Function at 0x140014b70
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400e1980
jmp 0x1400e18e0
movzx eax, byte [rdx + 1]
movabs r9, 0x100000001b3
movzx r8d, byte [rdx]
xor r8, rcx
movzx ecx, byte [rdx + 6]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 7]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140022790

Function at 0x140014c00
Capabilities:
Create directory

Disassembly:
jmp 0x14018a240
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14018a262
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000a0a0
or eax, 0xffffffff
jmp 0x14018a264
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015250
Capabilities:
Get socket status

Disassembly:
jmp 0x1400b4af0
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, r9
movzx edi, dl
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400b4b4e
lea rax, [0x1401e1a10]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rax
mov eax, ecx
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r9], xmm0
jmp 0x1400b4c65
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x260], r15
xor r15d, r15d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 1
and dil, 1
je 0x1400b4b80
mov qword [rsp + 0x30], r15
lea rsi, [rsp + 0x30]
jmp 0x1400b4bb2
test r8d, r8d
js 0x1400b4baf
mov eax, 0x10624dd3
lea rsi, [rsp + 0x30]
mul r8d
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x1400b4bb2
mov rsi, r15
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rax, [0x1401e1a10]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400b4c3a
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
test dil, dil
je 0x1400b4c2b
mov dword [rsp + 0x30], 0x2733
mov byte [rsp + 0x34], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x1400b4c50
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
movups xmm0, xmmword [rax]
jmp 0x1400b4c50
jle 0x1400b4c53
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov r15, qword [rsp + 0x260]
mov eax, esi
mov rsi, qword [rsp + 0x298]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x268
pop r14
pop rdi
pop rbx
pop rbp
ret

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

Disassembly:
jmp 0x1400acd40
push rbx
sub rsp, 0x50
mov rbx, qword [rcx + 8]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x68], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x50
pop rbx
ret
Function at 0x140016a40
Capabilities:
Get common file path

Disassembly:
jmp 0x1401aeb34
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140017aa0
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
ja 0x1401aeba8
xor edi, edi
cmp word [rsp + 0x20], di
je 0x1401aec03
cmp word [rsp + 0x22], 0x3a
jne 0x1401aec03
movzx ecx, word [rsp + 0x20]
lea eax, [rcx - 0x61]
cmp eax, 0x19
lea edi, [rcx - 0x20]
cmova edi, ecx
sub edi, 0x40
jmp 0x1401aec03
lea esi, [rax + 1]
mov edx, 2
mov ecx, esi
call fcn.14001c7f0
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1401aebd0
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1401aebdd
call fcn.14000c160
mov dword [rax], ntohl
jmp 0x1401aebfb
cmp word [rbx], di
je 0x1401aebfb
cmp word [rbx + 2], 0x3a
jne 0x1401aebfb
movzx ecx, word [rbx]
lea eax, [rcx - 0x61]
cmp eax, 0x19
lea edi, [rcx - 0x20]
cmova edi, ecx
sub edi, 0x40
mov rcx, rbx
call fcn.140001e90
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000fde0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret