joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800261d4
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea r10, [rcx + 0x9c8]
mov r9, rcx
mov rax, qword [r10]
mov r11d, 0x9c
mov rbx, 0xffffffff80000000
movabs rdi, 0xb5026f5aa96619e9
mov r8, r10
add r10, 8
mov rdx, qword [r10]
xor rdx, rax
and rdx, rbx
xor rdx, qword [r10]
mov al, dl
and al, 1
neg al
mov rax, qword [r10]
sbb rcx, rcx
shr rdx, 1
and rcx, rdi
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub r11, 1
jne 0x180026202
lea r10, [r9 + 0xea8]
mov r11d, 0x9b
mov rax, qword [r10]
mov r8, r10
add r10, 8
mov rdx, qword [r10]
xor rdx, rax
and rdx, rbx
xor rdx, qword [r10]
mov al, dl
and al, 1
neg al
mov rax, qword [r10]
sbb rcx, rcx
shr rdx, 1
and rcx, rdi
xor rcx, qword [r8 - 0xea0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub r11, 1
jne 0x18002624e
mov rdx, qword [r9 + 8]
xor rdx, qword [r9 + 0x1380]
and rdx, rbx
mov rbx, qword [rsp + 8]
xor rdx, qword [r9 + 8]
mov al, dl
and al, 1
neg al
sbb rcx, rcx
and dword [r9], 0
and rcx, rdi
shr rdx, 1
xor rcx, qword [r9 + 0x4e0]
mov rdi, qword [rsp + 0x10]
xor rcx, rdx
mov qword [r9 + 0x9c0], rcx
ret
Function at 0x18002c2dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x58]
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov ecx, dword [0x1800cb208]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800cc270], ecx
jg 0x18002c39c
cmp qword [0x1800cc278], rdi
jne 0x18002c331
mov byte [rbx + 0x20], dil
jmp 0x18002c381
mov r8b, dil
lea rcx, [rsp + 0x30]
call fcn.18002cdf4
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov r8d, 0x20
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov qword [rbx + 0x18], rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
movdqa xmm0, xmmword [0x1800baf30]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov byte [rbx + 0x20], 1
call fcn.180014e68
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a21a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea rcx, [0x1800cc270]
call fcn.1800a22e0
cmp dword [0x1800cc270], 0xffffffff
jne 0x18002c322
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, [0x1800cc270]
mov qword [0x1800cc278], rax
call fcn.1800a2274
jmp 0x18002c322

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

Disassembly:
not r8d
movzx eax, byte [rcx]
inc rcx
movzx r9d, r8b
xor r9, rax
shr r8d, 8
lea rax, [0x1800b1db0]
xor r8d, dword [rax + r9*4]
sub rdx, 1
jne 0x18002eb3f
not r8d
mov eax, r8d
ret

Function at 0x18002eb68
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18002ebc2
mov r11b, 0x23
lea rbx, [0x1800b1db0]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18002ebac
cmp rdx, 2
jb 0x18002ebac
cmp byte [r10], r11b
jne 0x18002ebac
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18002eb8a
jmp 0x18002ec03
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18002ec03
mov r11b, 0x23
lea rbx, [0x1800b1db0]
cmp dl, r11b
jne 0x18002ebe7
cmp byte [r10], r11b
jne 0x18002ebe7
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x18002ebd5
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180050c0c
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
mov eax, 0x5e6ea9af
mul r8d
mov r11d, r8d
xor r9d, r9d
shr edx, 0xb
mov r10d, 1
imul eax, edx, 0x15b0
sub r11d, eax
test r8d, r8d
je 0x180050cfb
xor ecx, ecx
cmp r11d, 7
jbe 0x180050ca6
lea edx, [rcx + 7]
movzx eax, byte [rbx]
add ecx, 8
add r10d, eax
add edx, 8
movzx eax, byte [rbx + 1]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 2]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 3]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 4]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 5]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 6]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 7]
add r9d, r10d
add r10d, eax
add rbx, 8
add r9d, r10d
cmp edx, r11d
jb 0x180050c48
cmp ecx, r11d
jae 0x180050cc4
mov eax, r11d
sub eax, ecx
mov ecx, eax
movzx eax, byte [rbx]
inc rbx
add r10d, eax
add r9d, r10d
sub rcx, 1
jne 0x180050cb2
mov eax, 0x80078071
mul r10d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r10d, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul ecx, edx, 0xffff000f
add r9d, ecx
sub r8d, r11d
mov r11d, 0x15b0
jne 0x180050c3d
mov rbx, qword [rsp + 8]
shl r9d, 0x10
lea eax, [r10 + r9]
ret

Function at 0x1800686a8
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x180069e14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
lea rcx, [rax - 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rbp, qword [rsp + 0x28]
cmp rsi, 0x40000000
jbe 0x180069e55
lea rax, [rsi - 0x40000000]
cmp rbp, rax
cmovb rbp, rax
mov rbx, qword [0x1800cc2b0]
lea r14, [rsi + 0x40000000]
cmp qword [rsp + 0x30], r14
cmovbe r14, qword [rsp + 0x30]
sub r14, 0xfff
xor edi, edi
jmp 0x180069e90
cmp rbx, rbp
jb 0x180069e8d
cmp rbx, r14
jae 0x180069e8d
cmp qword [rbx + 8], rdi
jne 0x180069f5d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180069e79
mov r15, rsi
cmp rsi, rbp
jb 0x180069f1b
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, r15
call fcn.180069d14
mov r15, rax
test rax, rax
je 0x180069edc
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180069f22
cmp r15, rbp
jae 0x180069e9d
test rbx, rbx
jmp 0x180069f19
mov r8d, dword [rsp + 0x48]
mov rdx, r14
mov rcx, rsi
call fcn.180069d88
mov rsi, rax
test rax, rax
je 0x180069f5d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180069f22
cmp rsi, r14
jbe 0x180069ee1
jmp 0x180069f5d
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], edi
mov edx, 0x40
mov qword [rcx], rdi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rdi, rax
cmp rdx, 0xfc0
jbe 0x180069f2e
mov rax, qword [0x1800cc2b0]
mov qword [rbx], rax
mov qword [0x1800cc2b0], rbx
lea r11, [rsp + 0x50]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18006a344
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18006a48a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18006a481
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18006a43c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18006a43c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18006a43c
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18006a3fd
mov rcx, qword [0x1800cb800]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18006a465
lea rsi, [rbx + 0xc]
jmp 0x18006a431
mov eax, dword [rbx + 8]
lea rsi, [rbx + 0xc]
cmp dword [rsi], eax
jb 0x18006a431
mov rcx, qword [0x1800cb800]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18006a465
mov qword [rbx], rax
mov ecx, dword [rsi]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
add dword [rsi], edi
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18006a3a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18006a481
mov r8, qword [rbx]
xor edi, edi
test r8, r8
je 0x18006a481
mov rcx, qword [0x1800cb800]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbx], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800a21a0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x18006a4b0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r14d, r8d
mov qword [rcx], rbx
mov r15d, edx
mov qword [rcx + 8], rbx
mov rdi, rcx
call fcn.18006a344
test eax, eax
jne 0x18006a4e8
lea ebx, [rax + 9]
jmp 0x18006a537
cmp qword [rdi], rbx
je 0x18006a537
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18006a537
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18006a530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.18006a230
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x18006a4f4
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18006a554
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18006a5b8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18006a5a6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18006a59f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18006a573
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800cb800]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18006a5c8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [r11 + 8]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800cc2a0]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18006a62a
mov eax, 0xa
jmp 0x18006a6b7
test esi, esi
je 0x18006a64c
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18006a66b
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18006a66b
test byte [rbx + 0x20], 1
lea rdx, [rbx + 0x18]
mov rcx, rdi
mov r8d, 7
jne 0x18006a665
mov r8d, 5
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18006ab70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
xor ebx, ebx
call fcn.18006a768
cmp qword [0x1800cb800], rbx
je 0x18006ab47
test rsi, rsi
jne 0x18006ab12
mov edx, dword [0x1800cc2ac]
test edx, edx
je 0x18006ab4c
mov rcx, qword [0x1800cc2a0]
mov r8d, edx
shl dil, 2
add rcx, 0x20
mov al, byte [rcx]
xor al, dil
and al, 4
xor byte [rcx], al
lea rcx, [rcx + 0x38]
sub r8, 1
jne 0x18006aafd
jmp 0x18006ab4c
mov rcx, rsi
call fcn.18006a03c
cmp eax, 0xffffffff
je 0x18006ab40
shl dil, 2
mov eax, eax
imul rcx, rax, 0x38
mov rax, qword [0x1800cc2a0]
xor dil, byte [rcx + rax + 0x20]
and dil, 4
xor byte [rcx + rax + 0x20], dil
jmp 0x18006ab4c
mov ebx, 4
jmp 0x18006ab4c
mov ebx, 2
call fcn.18006a7a8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor edx, edx
jmp 0x18006aab8

Function at 0x18006b2f0
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18006b307
cmp r8b, 0x90
je 0x18006b307
cmp r8b, 0xcc
jne 0x18006b329
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18006b325
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18006b329
add edx, r10d
cmp edx, r9d
jb 0x18006b315
mov eax, r10d
ret
xor eax, eax
ret

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

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1800711a1
cmp dword [rsp + 0x50], 1
jne 0x1800711a1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x30
pop rbx
ret

Function at 0x180072b54
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x180072b8e
mov cl, byte [rbx]
call fcn.18007fe64
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x180072b74
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180072f62
call fcn.180082cb8
test al, al
jne 0x180072f62
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800731d8
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x180072b54
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180072f2c
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x180072b8e
mov cl, byte [rbx]
call fcn.18007fe64
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x180072b74
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180072f62
call fcn.180082cb8
test al, al
jne 0x180072f62
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800731d8
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x180072b54
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18007c260
Capabilities:
Write file on windows

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
sub rsp, 0x30
cmp byte [rcx + 0xa20], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x18007c323
cmp qword [rcx + 0x260], 0
je 0x18007c2d6
call fcn.18006e624
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.18006e8ac
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.18006e8ac
jmp 0x18007c323
mov ecx, esi
test edx, edx
je 0x18007c2e6
sub ecx, 1
je 0x18007c2e6
cmp ecx, 1
jne 0x18007c323
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1800a8188]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18007e24c
Capabilities:
Get common file path

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
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18007e38f
lea rdx, str.LoadLibraryExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800a83f0]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x18007e2c3
mov rcx, rbp
test rsi, rsi
je 0x18007e2bb
mov r8d, 8
jmp 0x18007e2e6
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18007e2ea
test rsi, rsi
je 0x18007e2f2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007e2f2
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x18007e38c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x18007e38c
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea ecx, [r14 + 1]
add rcx, rax
add rcx, rcx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x18007e383
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18007e383
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rdx, [0x1800a8408]
lea rcx, [rdi + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rdx, rbp
lea rcx, [rdi + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov rcx, rdi
test rsi, rsi
je 0x18007e37a
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x18007e380
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call qword [fcn.1800a348e]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18007e3ec
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x18007e441
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18007e428
mov eax, 2
jmp 0x18007e4b1
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x18007e439
shr ax, 8
cmp al, 2
je 0x18007e441
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18007e41e
call fcn.180098e1c
test eax, eax
jne 0x18007e4b1
lea rcx, str.iphlpapi.dll
call fcn.18007e24c
mov qword [0x1800cabe8], rax
test rax, rax
je 0x18007e47e
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007e47e
mov qword [0x1800cabe0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.180098a1c
test al, al
lea rcx, [0x1800cc290]
setne byte [0x1800cc288]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800a21a0
add rsp, 0x1e8
ret
Function at 0x1800824b4
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180082517
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret

Function at 0x1800836d4
Capabilities:
Convert ip address from string

Disassembly:
and qword [r9], 0
cmp qword [rsp + 0x28], 0
jge 0x1800836e6
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.180083390

Function at 0x180083b34
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x40
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
xor edx, edx
lea rcx, [rsp + 0x28]
mov rbx, rax
lea r8d, [rdx + 0x10]
call sub.VCRUNTIME140.dll_memset
mov r15d, 2
movzx ecx, si
mov word [rsp + 0x28], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x20]
mov ecx, r15d
lea rdx, str.127.0.0.1
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x180083c2a
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + 0x41]
lea edx, [r15 - 1]
call qword [case.0x18009df40.1]
mov rbx, rax
test rax, rax
je 0x180083c2a
and dword [rax], 0
lea rcx, [rax + 0x30]
lea r8d, [r15 + 0xe]
mov qword [rax + 0x20], rcx
lea rdx, [rsp + 0x28]
mov dword [rax + 4], r15d
mov dword [rax + 8], 1
mov dword [rax + 0xc], 6
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x10
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rdx, rdi
mov ecx, esi
call fcn.180083c48
mov qword [rbx + 0x28], rax
mov rax, rbx
jmp 0x180083c2c
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800a21a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x180083c48
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
lea rcx, [rax + 0x4d]
call qword [case.0x18009df40.1]
mov rbx, rax
test rax, rax
je 0x180083d2a
mov r14d, reloc.WS2_32.dll_socket
movzx ecx, si
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x40]
and dword [rsp + 0x38], 0
lea rdx, [0x1800a90c8]
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x180083d2a
lea r8d, [r14 - 7]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
and dword [rbx], 0
lea r8d, [r14 + 5]
and qword [rbx + 0x28], 0
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x20]
mov dword [rbx + 0x10], r8d
mov qword [rbx + 0x20], rcx
mov dword [rbx + 4], r14d
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x1c
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rax, rbx
jmp 0x180083d2c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800a21a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret