joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180052310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rsi, rcx
mov r13d, 4
lea rcx, [rbp - 0x20]
mov r8d, r13d
mov rbx, rdx
call fcn.1800e3e40
lea rdx, [rbx + 4]
mov r8d, r13d
lea rcx, [rbp - 0x1c]
call fcn.1800e3e40
lea rdx, [rbx + 8]
mov r8d, r13d
lea rcx, [rbp - 0x18]
call fcn.1800e3e40
lea rdx, [rbx + 0xc]
mov r8d, r13d
lea rcx, [rbp - 0x14]
call fcn.1800e3e40
mov rdx, qword [rsi]
xor edi, edi
mov ecx, edi
mov eax, dword [rdx + rcx*4]
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, r13
jl 0x180052389
mov rax, qword [rsi + 8]
mov r14d, 1
sub rax, rdx
sar rax, 4
dec rax
cmp rax, r14
jbe 0x180052401
mov ebx, r14d
lea rcx, [rbp - 0x20]
call fcn.180052620
lea rcx, [rbp - 0x20]
call fcn.180052588
lea rcx, [rbp - 0x20]
call fcn.180052490
shl rbx, 4
mov rcx, rdi
add rbx, qword [rsi]
mov eax, dword [rbx + rcx*4]
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, r13
jl 0x1800523d9
mov rax, qword [rsi + 8]
inc r14d
sub rax, qword [rsi]
sar rax, 4
dec rax
mov ebx, r14d
cmp rbx, rax
jb 0x1800523b4
lea rcx, [rbp - 0x20]
call fcn.180052620
lea rcx, [rbp - 0x20]
call fcn.180052588
mov rcx, qword [rsi + 8]
sub rcx, 0x10
mov eax, dword [rcx]
add rcx, r13
xor dword [rbp + rdi*4 - 0x20], eax
inc rdi
cmp rdi, r13
jl 0x18005241b
mov r8, r13
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.1800e3e40
lea rcx, [r15 + 4]
mov r8, r13
lea rdx, [rbp - 0x1c]
call fcn.1800e3e40
lea rcx, [r15 + 8]
mov r8, r13
lea rdx, [rbp - 0x18]
call fcn.1800e3e40
lea rcx, [r15 + 0xc]
mov r8, r13
lea rdx, [rbp - 0x14]
call fcn.1800e3e40
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800af730
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x180052490
Capabilities:
Encode data using xor

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
lea rbp, [rcx + 2]
mov r14d, 4
movzx r11d, byte [rbp - 2]
movzx esi, byte [rbp - 1]
mov al, r11b
movzx ebx, byte [rbp]
add al, al
movzx edi, byte [rbp + 1]
lea rbp, [rbp + 4]
movzx edx, al
mov al, dl
xor al, 0x1b
movzx ecx, al
test r11b, r11b
mov al, sil
cmovns ecx, edx
add al, al
movzx r10d, cl
movzx edx, al
mov al, dl
xor al, 0x1b
movzx ecx, al
test sil, sil
mov al, bl
cmovns ecx, edx
add al, al
movzx r9d, cl
movzx edx, al
mov al, dl
xor al, 0x1b
movzx ecx, al
test bl, bl
mov al, dil
cmovns ecx, edx
add al, al
movzx r8d, cl
movzx edx, al
mov al, dl
xor al, 0x1b
test dil, dil
movzx ecx, al
cmovns ecx, edx
movzx edx, cl
mov ecx, r10d
xor ecx, edx
xor r10d, r9d
xor ecx, ebx
xor edx, r8d
xor ecx, esi
xor r8d, r9d
xor ecx, r11d
xor edx, edi
shl ecx, 8
xor r8d, ebx
xor r10d, ebx
xor edx, esi
xor edx, r11d
xor r8d, edi
or ecx, edx
xor r8d, r11d
shl ecx, 8
xor r10d, edi
or ecx, r8d
xor r10d, esi
shl ecx, 8
or ecx, r10d
mov dword [rbp - 6], ecx
sub r14, 1
jne 0x1800524af
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret

Function at 0x18005ac58
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 0x18005aca5
cmp dword [rsp + 0x50], 1
jne 0x18005aca5
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 0x18005c640
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 0x18005c67a
mov cl, byte [rbx]
call fcn.18006bab0
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x18005c660
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 0x18005ca4a
call fcn.18006e8b8
test al, al
jne 0x18005ca4a
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18005ccc0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x18005c640
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18005ca14
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 0x18005c67a
mov cl, byte [rbx]
call fcn.18006bab0
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x18005c660
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 0x18005ca4a
call fcn.18006e8b8
test al, al
jne 0x18005ca4a
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18005ccc0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x18005c640
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180069ee8
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 0x18006a025
lea rdx, [0x18034e878]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x18034e888]
mov rcx, rbp
mov rsi, rax
call fcn.1800c7c3c
test rax, rax
je 0x180069f5e
mov rcx, rbp
test rsi, rsi
je 0x180069f56
mov r8d, 8
jmp 0x180069f81
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180069f85
test rsi, rsi
je 0x180069f8d
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180069f8d
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x18006a022
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x18006a022
mov rcx, rbp
call fcn.1800c11f8
lea ecx, [r14 + 1]
add rcx, rax
add rcx, rcx
call qword [fcn.1800b6bd0]
mov rdi, rax
test rax, rax
je 0x18006a019
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18006a019
mov rcx, rdi
call fcn.1800c11f8
lea rdx, [0x18034e8a0]
lea rcx, [rdi + rax*2]
call fcn.1800c7c20
mov rcx, rdi
call fcn.1800c11f8
mov rdx, rbp
lea rcx, [rdi + rax*2]
call fcn.1800c7c20
mov rcx, rdi
test rsi, rsi
je 0x18006a010
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x18006a016
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call qword [fcn.1800b6bbc]
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 0x18006a040
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x18006a095
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18006a07c
mov eax, 2
jmp 0x18006a10e
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x18006a08d
shr ax, 8
cmp al, 2
je 0x18006a095
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18006a072
call fcn.180083e3c
test eax, eax
jne 0x18006a10e
lea rcx, str.iphlpapi.dll
call fcn.180069ee8
mov qword [0x180379218], rax
test rax, rax
je 0x18006a0db
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180379210]
test rax, rax
cmovne rcx, rax
mov qword [0x180379210], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.180083a44
test al, al
lea rcx, [0x18037a9e8]
setne byte [0x18037a9e0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800af730
add rsp, 0x1e8
ret
Function at 0x18006e0bc
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 0x18006e11f
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 0x18006f264
Capabilities:
Convert ip address from string

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

Function at 0x18006f6bc
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x40
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call fcn.1800bc0f0
xor edx, edx
lea rcx, [rsp + 0x28]
mov rbx, rax
lea r8d, [rdx + 0x10]
call fcn.1800e44e0
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 0x18006f7b2
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2c]
call fcn.1800e3e40
lea rcx, [rbx + 0x41]
lea edx, [r15 - 1]
call qword [fcn.1800b6bb4]
mov rbx, rax
test rax, rax
je 0x18006f7b2
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 fcn.1800e3e40
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x10
mov qword [rbx + 0x18], rcx
call fcn.1800c0ff0
mov rdx, rdi
mov ecx, esi
call fcn.18006f7d0
mov qword [rbx + 0x28], rax
mov rax, rbx
jmp 0x18006f7b4
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x18006f7d0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call fcn.1800bc0f0
mov edx, 1
lea rcx, [rax + 0x4d]
call qword [fcn.1800b6bb4]
mov rbx, rax
test rax, rax
je 0x18006f8b2
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, [0x18034f540]
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x18006f8b2
lea r8d, [r14 - 7]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1800e3e40
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 fcn.1800e3e40
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x1c
mov qword [rbx + 0x18], rcx
call fcn.1800c0ff0
mov rax, rbx
jmp 0x18006f8b4
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x180075970
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x18007599a
cmp dword [rdx], 0
jne 0x1800759b0
test rbx, rbx
je 0x1800759a5
cmp dword [r8], 0
jne 0x1800759b0
test rdi, rdi
je 0x1800759fc
cmp dword [r9], 0
je 0x1800759fc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.180087648
test rdi, rdi
je 0x1800759c9
cmp dword [rdi], 0
jne 0x1800759cb
xor edi, edi
test rbx, rbx
je 0x1800759d5
cmp dword [rbx], 0
jne 0x1800759d7
xor ebx, ebx
test rsi, rsi
je 0x1800759e1
cmp dword [rsi], 0
jne 0x1800759e3
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x180075a06
mov rcx, qword [rsp + 0x60]
call fcn.180075930
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180076788
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [rax - 0x38]
mov rdi, rdx
call fcn.18005d070
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.180075b0c
mov rcx, rdi
mov rsi, rax
call fcn.180075b0c
mov rbx, rax
mov rdx, rax
mov edi, 1
jmp 0x180076809
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.18005d070
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.18005d0e8
cmp rax, 0x3e8
ja 0x18007684a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1800767ce
test rsi, rsi
je 0x180076826
mov rcx, rsi
call fcn.1800b6bbc
test rbx, rbx
je 0x180076833
mov rcx, rbx
call fcn.1800b6bbc
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x180076857
mov rcx, rsi
call fcn.1800b6bbc
test rbx, rbx
je 0x180076864
mov rcx, rbx
call fcn.1800b6bbc
mov eax, edi
jmp 0x180076835
Function at 0x180076c74
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x180076dd5
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180076dc2
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180076cd1
call fcn.1800bc0f0
lea r14, [rax + 1]
jmp 0x180076cd4
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x180076ce2
mov r15d, reloc.WS2_32.dll_recv
jmp 0x180076cf2
cmp dword [rbx + 4], 0x17
jne 0x180076d8a
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x180076d8a
cmp qword [rbx + 0x10], 0
jbe 0x180076d8a
cmp qword [rbx + 0x10], r15
jb 0x180076d8a
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [fcn.1800b6bd0]
mov rsi, rax
test rax, rax
je 0x180076d98
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call fcn.1800e3e40
test r14, r14
je 0x180076d77
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.1800e3e40
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x180076d87
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x180076d9d
jmp 0x180076cbd
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180076dad
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x180076dbd
mov rcx, rdi
call fcn.180076c50
xor edi, edi
jmp 0x180076dcf
test rdi, rdi
jne 0x180076dcf
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1800773d4
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call fcn.1800e44e0
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x18007900c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.1800e44e0
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18007910f
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800790ef
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800790ef
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800790ef
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x1800790ef
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1800790fe
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18007910f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x18007a1f8
Capabilities:
Query environment variable

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
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x18007a24a
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x18007a286
cmp edi, esi
je 0x18007a286
cmp edi, 0x8000
ja 0x18007a286
cmp edi, esi
jb 0x18007a281
mov rcx, rbx
mov rdx, rdi
call qword [case.0x180064166.0]
mov rbx, rax
test rax, rax
jne 0x18007a21d
mov rcx, rbp
call qword [fcn.1800b6bbc]
xor eax, eax
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
mov rax, rbx
jmp 0x18007a266
mov rcx, rbx
jmp 0x18007a25e
jmp 0x18007a1f8

Function at 0x18007a28c
Capabilities:
Query environment variable

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
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x18007a24a
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x18007a286
cmp edi, esi
je 0x18007a286
cmp edi, 0x8000
ja 0x18007a286
cmp edi, esi
jb 0x18007a281
mov rcx, rbx
mov rdx, rdi
call qword [case.0x180064166.0]
mov rbx, rax
test rax, rax
jne 0x18007a21d
mov rcx, rbp
call qword [fcn.1800b6bbc]
xor eax, eax
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
mov rax, rbx
jmp 0x18007a266
mov rcx, rbx
jmp 0x18007a25e
jmp 0x18007a1f8
Function at 0x18007bc10
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [rdx]
mov rbx, r8
mov rdi, rdx
mov r13, rcx
test al, al
jne 0x18007bc47
mov eax, recv
jmp 0x18007bdbe
cmp al, 0x5b
jne 0x18007bda4
cmp rbx, 4
jb 0x18007bd9d
inc rdi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
sub rbx, 2
call fcn.1800c9f20
mov rbp, rax
cmp rbx, rax
je 0x18007bd2f
cmp byte [rdi + rax], 0x25
mov rbx, rax
jne 0x18007bd9d
lea r15, [rdi + rax]
xor r14d, r14d
lea rdx, [0x1803525fc]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
lea r8d, [r14 + 2]
call fcn.1800c55f0
test eax, eax
jne 0x18007bcbb
lea rcx, [r15 + 3]
mov al, byte [rcx]
test al, al
je 0x18007bcbb
cmp al, 0x5d
cmovne rsi, rcx
mov al, byte [rsi]
test al, al
je 0x18007bd9d
xor ecx, ecx
cmp al, 0x5d
je 0x18007bce4
cmp rcx, 0xf
jge 0x18007bce4
inc rsi
mov byte [rsp + rcx + 0x20], al
inc r14d
inc rcx
mov al, byte [rsi]
test al, al
jne 0x18007bcc7
test r14d, r14d
je 0x18007bd9d
cmp byte [rsi], 0x5d
jne 0x18007bd9d
movsxd rax, r14d
cmp rax, 0x10
jae 0x18007bdda
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x180064166.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x18007bd26
mov eax, 7
jmp 0x18007bdbe
mov byte [rdi + rbp], 0x5d
mov byte [r15 + 1], 0
mov esi, reloc.WS2_32.dll_socket
mov byte [rbx + rdi], 0
mov ecx, esi
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x18007bd9d
lea r9d, [rsi + 0x17]
mov ecx, esi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x18007bd95
lea rcx, [rsp + 0x30]
call fcn.1800bc0f0
cmp rax, rbx
jae 0x18007bd95
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800c0ff0
lea rcx, [rsp + 0x30]
call fcn.1800bc0f0
mov rbx, rax
mov byte [rax + rdi + 1], 0
mov byte [rbx + rdi], 0x5d
xor eax, eax
jmp 0x18007bdbe
mov eax, socket
jmp 0x18007bdbe
lea rdx, str.__r_n_t_:_______________
mov rcx, rdi
call fcn.1800c6a70
sub rbx, rax
neg rbx
sbb eax, eax
and eax, 0x15
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800af730
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800af884
int3