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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
movabs rsi, 0xa77099df38c2d846
movabs rbp, 0x8126b91cbf22495c
movabs r9, 0x9237efb9ceaaec0c
movabs r10, 0x2f2a56746ce62d78
movabs r11, 0x84853bf7b62ce54e
lea rax, [r8 + 1]
mov r12, rdx
mov rdi, rcx
mov rbx, r8
movabs rdx, 0x5851f42d4c957f2d
lea r13, [rdi + 0x28]
movabs rcx, 0x810a978a59f5a1fc
movabs r8, 0x494d2597179f8a62
imul rax, rdx
xor rsi, rax
xor rbp, rax
xor rcx, rax
xor r8, rax
xor r9, rax
xor r10, rax
mov qword [rsp + 0x20], rax
xor rax, r11
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], rsi
lea rsi, [rdi + 0x8368]
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x20]
and ebx, 0x3fffff
mov rdx, r13
mov r8, rsi
mov rcx, rbp
shl rbx, 6
add rbx, qword [rdi]
prefetchnta byte [rbx]
call fcn.1400191f0
mov r14, qword [rbx]
mov rax, qword [rbx + 8]
movsxd r11, dword [r13 + 0x1004]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov r8, qword [rbx + 0x20]
mov r9, qword [rbx + 0x28]
mov r10, qword [rbx + 0x30]
xor qword [rsp + 0x20], r14
mov rbx, qword [rbx + 0x38]
xor qword [rsp + 0x28], rax
xor qword [rsp + 0x30], rdx
lea rdx, [r13 + 0x1068]
add r13, 0x20d0
xor qword [rsp + 0x38], rcx
mov rcx, rbp
xor qword [rsp + 0x40], r8
mov r8, rsi
xor qword [rsp + 0x48], r9
xor qword [rsp + 0x50], r10
xor qword [rsp + 0x58], rbx
mov rbx, qword [rsp + r11*8 + 0x20]
and ebx, 0x3fffff
shl rbx, 6
add rbx, qword [rdi]
prefetchnta byte [rbx]
call fcn.1400191f0
mov r14, qword [rbx]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov r9, qword [rbx + 0x20]
mov r10, qword [rbx + 0x28]
mov r11, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x38]
movsxd rbx, dword [r13 - 0x64]
xor qword [rsp + 0x20], r14
xor qword [rsp + 0x28], rax
xor qword [rsp + 0x30], rcx
xor qword [rsp + 0x38], r8
xor qword [rsp + 0x40], r9
xor qword [rsp + 0x48], r10
xor qword [rsp + 0x50], r11
xor qword [rsp + 0x58], rdx
mov rbx, qword [rsp + rbx*8 + 0x20]
cmp rsi, r13
jne 0x14001581c
vmovdqu xmm0, xmmword [rsp + 0x20]
vmovdqu xmm1, xmmword [rsp + 0x30]
vmovdqu xmm2, xmmword [rsp + 0x40]
vmovdqu xmm3, xmmword [rsp + 0x50]
vmovdqu xmmword [r12], xmm0
vmovdqu xmmword [r12 + 0x10], xmm1
vmovdqu xmmword [r12 + 0x20], xmm2
vmovdqu xmmword [r12 + 0x30], xmm3
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14001ec90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001ecb0
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
add rsp, 0x38
ret
mov edx, 0x13000
mov rcx, qword [rcx + 0x38]
jmp 0x14001ec90
Function at 0x140050440
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, 0x1008
mov edx, 0xffff
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov rbx, rcx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14005047b
cmp dword [rsp + 0x38], 1
je 0x140050488
add rsp, 0x40
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x40
pop rbx
ret

Function at 0x140056130
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 4
mov rbx, rdx
call fcn.140067f80
cmp eax, 4
jne 0x14005616d
cmp byte [0x1401b9d54], 0
je 0x140056178
imul eax, dword [0x1401b9d50], 0x41c64e6d
add eax, 0x3039
mov dword [0x1401b9d50], eax
rol eax, 0x10
mov dword [rbx], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 0
xor ecx, ecx
mov r9d, 2
mov rdx, rbx
mov r8d, 4
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setne al
movzx eax, al
add eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400563c0
Capabilities:
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movups xmmword [rsp + 0x40], xmm6
lea rbx, [rsp + 0x30]
mov rdi, rcx
lea r12, [rsp + 0x20]
mov rsi, rdx
mov rcx, rbx
call fcn.14005c650
mov rcx, rdi
movdqu xmm6, xmmword [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rcx, rsi
mov rdi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rbp, qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov rsi, rax
jmp 0x140056440
mov rcx, rbx
call fcn.14005c650
mov rdx, r12
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm6
call fcn.14005c6e0
cmp rax, 0x3e8
ja 0x140056480
mov ecx, 1
call r13
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call rbp
test eax, eax
je 0x140056418
test rdi, rdi
je 0x14005645f
mov rcx, rdi
call fcn.1400b5948
test rsi, rsi
je 0x14005646c
mov rcx, rsi
call fcn.1400b5948
xor eax, eax
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rdi, rdi
je 0x14005648d
mov rcx, rdi
call fcn.1400b5948
test rsi, rsi
je 0x14005649a
mov rcx, rsi
call fcn.1400b5948
mov eax, 1
jmp 0x14005646e
Function at 0x14005bdf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
mov r11, rcx
setne al
test rdx, rdx
setne r8b
xor r10d, r10d
or r11, rdx
sete r10b
and al, r8b
mov r9d, eax
jne 0x14005be20
mov eax, r10d
ret
movzx r8d, byte [rcx]
lea r10, [0x140175ca0]
test r8b, r8b
jne 0x14005be70
movzx eax, byte [rdx]
xor r9d, r9d
test al, al
sete r10b
xor r10d, r9d
movzx r10d, r10b
mov eax, r10d
ret
movzx eax, byte [r10 + rax]
cmp byte [r10 + r8], al
jne 0x14005be80
movzx r8d, byte [rcx + 1]
add rcx, 1
lea rax, [rdx + 1]
test r8b, r8b
je 0x14005be88
mov rdx, rax
movzx eax, byte [rdx]
test al, al
jne 0x14005be50
jmp 0x14005be36
xor r10d, r10d
jmp 0x14005be12
movzx eax, byte [rdx + 1]
xor r9d, r9d
jmp 0x14005be36

Function at 0x14005c2c0
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14005c410
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call r12
lea rdx, [0x140175db8]
mov rcx, rsi
mov rdi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
mov rbp, rax
test rax, rax
je 0x14005c340
test rdi, rdi
je 0x14005c360
mov r8d, 8
xor edx, edx
mov rcx, rsi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp rax
test rdi, rdi
je 0x14005c380
lea rdx, str.AddDllDirectory
mov rcx, rbx
call r12
test rax, rax
je 0x14005c380
mov r8d, 0x800
jmp 0x14005c321
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edx, edx
xor ecx, ecx
call r13
mov ebx, eax
test eax, eax
je 0x14005c410
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [rbx + 1]
add rcx, rax
mov rax, qword [0x140184850]
call qword [rax]
mov r12, rax
test rax, rax
je 0x14005c3ee
mov edx, ebx
mov rcx, rax
call r13
test eax, eax
je 0x14005c3ee
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rsi
mov byte [r12 + rax], 0x5c
lea rcx, [r12 + rax + 1]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
test rdi, rdi
je 0x14005c422
mov r8d, 8
xor edx, edx
mov rcx, r12
call rdi
mov rbp, rax
mov rax, qword [0x140184840]
mov rcx, r12
call qword [rax]
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor ebp, ebp
mov rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
jmp 0x14005c3ee
Function at 0x14005c430
Capabilities:
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x1d0
and ecx, 2
je 0x14005c472
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14005c586
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14005c580
shr ax, 8
cmp ax, 2
jne 0x14005c580
call fcn.140072160
mov ebx, eax
test eax, eax
je 0x14005c490
mov eax, ebx
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.iphlpapi.dll
call fcn.14005c2c0
mov qword [0x1401b9d90], rax
test rax, rax
je 0x14005c4c4
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005c4c4
mov qword [0x1401b9d78], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14005c519
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call rdi
lea rdx, str.GetAddrInfoExCancel
mov rcx, rsi
mov qword [0x1401b9d70], rax
call rdi
lea rdx, str.GetAddrInfoExW
mov rcx, rsi
mov qword [0x1401b9d68], rax
call rdi
mov qword [0x1401b9d60], rax
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov ecx, 6
mov dword [rsp + 0x20], 3
call fcn.140064f70
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
mov edx, 2
mov ecx, 6
mov byte [0x1401b9d81], al
call fcn.140064f70
lea rcx, [0x1401b9d88]
mov byte [0x1401b9d80], al
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, ebx
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ebx, 2
mov eax, ebx
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret
Function at 0x140068600
Capabilities:
Convert ip address from string

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov rbx, rcx
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
je 0x1400686c8
mov rdi, qword [rax + 0x50]
mov r13, qword [rax + 0x58]
mov r12d, dword [rax + 0x544]
test rdi, rdi
je 0x1400686b0
mov rdx, qword [rbx]
test rdx, rdx
je 0x140068651
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400686b0
mov rcx, rbx
call fcn.1400684f0
mov r14, qword [0x140184870]
mov rcx, rdi
call qword [r14]
mov qword [rbx], rax
mov rsi, rax
test rax, rax
je 0x1400687e0
test r13, r13
je 0x140068689
mov rdx, r13
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400686e8
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], 0
cmp byte [rsi], 0
jne 0x140068760
mov dword [rbx + 0x18], 0
cmp byte [rsi], 0
jne 0x140068710
nop word [rax + rax]
mov dword [rbp + 0x50], r12d
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [rax + 0xd8]
mov r13, qword [rax + 0xe0]
mov r12d, dword [rax + 0xe8]
jmp 0x140068638
mov rcx, r13
call qword [r14]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400687e0
mov rsi, qword [rbx]
mov qword [rbx + 0x10], 0
test rsi, rsi
je 0x14006869e
jmp 0x140068695
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdi, rax
test rax, rax
jne 0x140068790
mov edx, 1
mov rax, qword [0x1401847f0]
mov ecx, 1
call qword [rax]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1400687e0
mov rdx, qword [rbx]
mov r8, rdi
call fcn.14005bf80
mov rax, qword [rbx + 0x10]
mov byte [rax + rdi], 0
jmp 0x1400686b0
lea r13, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
mov rdi, qword [sym.imp.WS2_32.dll_inet_pton]
mov r8, r13
call rdi
mov edx, 1
test eax, eax
je 0x1400687b8
mov dword [rbx + 0x18], edx
jmp 0x1400686b0
lea rax, [rax - 1]
cmp byte [rsi + rdi - 1], 0x2e
cmovne rax, rdi
cmp rax, 0xfffe
ja 0x1400686b0
lea rdx, [rax + 1]
mov rdi, rax
jmp 0x140068725
mov r8, r13
mov rdx, rsi
mov ecx, 0x17
call rdi
test eax, eax
jne 0x1400687f8
mov dword [rbx + 0x18], 0
mov rsi, qword [rbx]
jmp 0x1400686a5
mov rcx, rbx
call fcn.1400684f0
mov eax, 0x1b
jmp 0x1400686b6
mov edx, 2
jmp 0x140068782
Function at 0x14006f8b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14006f8c8
call fcn.140074560
test al, al
je 0x14006f8d8
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
mov rdi, rax
call fcn.140071ee0
test rax, rax
je 0x14006f920
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call fcn.140071ee0
test rax, rax
je 0x14006f920
add rax, 1
mov rdx, rax
sub rdx, rbx
mov rbx, rax
sub rdi, rdx
add rdi, rbx
cmp rbx, rdi
jae 0x14006f990
mov ecx, 0x1505
nop dword [rax]
mov rax, rcx
add rbx, 1
shl rax, 5
lea rsi, [rax + rcx]
movsx ecx, byte [rbx - 1]
call fcn.14005bdd0
movsx rax, al
xor rax, rsi
mov rcx, rax
cmp rdi, rbx
jne 0x14006f930
movabs rdx, 0x410410410410411
mul rdx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
mov rdx, rax
shl rdx, 6
sub rdx, rax
mov rax, rcx
sub rax, rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 0x1a
jmp 0x14006f8ca
Function at 0x140071860
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [r9], 0
mov rbp, r9
lea r9, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400719db
mov rbx, qword [rsp + 0x38]
mov r12, qword [0x140184850]
xor r15d, r15d
xor r13d, r13d
test rbx, rbx
je 0x140071a39
mov dword [rsp + 0x2c], eax
nop
mov rcx, qword [rbx + 0x18]
xor esi, esi
test rcx, rcx
je 0x1400718c4
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x1400719f0
mov r14d, 0x1c
cmp eax, 0x17
jne 0x1400719b0
cmp qword [rbx + 0x20], 0
je 0x1400719b0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400719b0
cmp rax, r14
jb 0x1400719b0
lea rcx, [r14 + rsi + 0x30]
call qword [r12]
mov rdi, rax
test rax, rax
je 0x140071a00
movdqu xmm0, xmmword [rbx]
mov r9, qword [rbx + 0x20]
lea rcx, [rax + 0x30]
mov dword [rax + 0x10], r14d
mov qword [rax + 0x18], 0
lea r11, [rdi + 0x38]
mov qword [rax + 0x28], 0
and r11, 0xfffffffffffffff8
mov qword [rax + 0x20], rcx
movups xmmword [rax], xmm0
mov rax, qword [r9]
mov qword [rdi + 0x30], rax
mov rax, qword [r9 + r14 - 8]
mov qword [rcx + r14 - 8], rax
mov rax, rcx
sub rax, r11
sub r9, rax
add eax, r14d
and eax, 0xfffffff8
cmp eax, 8
jb 0x140071980
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r10, qword [r9 + r8]
mov qword [r11 + r8], r10
cmp edx, eax
jb 0x14007196e
test rsi, rsi
je 0x140071998
add rcx, r14
mov rdx, qword [rbx + 0x18]
mov r8, rsi
mov qword [rdi + 0x18], rcx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
test r13, r13
cmove r13, rdi
test r15, r15
je 0x1400719a8
mov qword [r15 + 0x28], rdi
mov r15, rdi
nop dword [rax + rax]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400718b0
mov rcx, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x2c]
test rcx, rcx
je 0x1400719d2
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r13, r13
je 0x140071a39
mov qword [rbp], r13
mov eax, r14d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 0x10
jmp 0x1400718df
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140071a10
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [0x140184840]
test r13, r13
je 0x140071a2e
nop dword [rax]
mov rcx, r13
mov r13, qword [r13 + 0x28]
call qword [rbx]
test r13, r13
jne 0x140071a20
xor r13d, r13d
mov r14d, 8
jmp 0x1400719d7
mov ecx, 0x2af9
mov r14d, 0x2af9
xor r13d, r13d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x1400719d7
Function at 0x140071cb0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [sym.imp.WS2_32.dll_inet_pton]
lea rbp, [rsp + 0x2c]
mov rbx, rcx
mov esi, edx
mov rdx, rcx
mov r8, rbp
mov ecx, 2
call rdi
test eax, eax
jg 0x140071d20
lea rbp, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
mov r8, rbp
call rdi
mov edx, eax
xor eax, eax
test edx, edx
jg 0x140071d00
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, esi
mov r8, rbx
mov rdx, rbp
mov ecx, 0x17
call fcn.140071bb0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, esi
mov r8, rbx
mov rdx, rbp
mov ecx, 2
call fcn.140071bb0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140072530
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov rbp, r8
mov rdi, r9
test byte [rcx + 0xa0e], 0x20
je 0x1400725a5
cmp qword [rcx + 0x268], 0
je 0x1400725a0
call fcn.1400545a0
mov rcx, rbx
mov edx, 1
mov r12d, eax
call fcn.140054540
mov edx, esi
mov rcx, rbx
mov r9, rdi
mov rax, qword [rbx + 0x1e0]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [rbx + 0x268]
movzx edx, r12b
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140054540
cmp esi, 2
jbe 0x1400725b0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r9, qword [rbx + 0x1d8]
lea rcx, [rsi + rsi*2]
mov edx, 2
lea rax, [0x140177300]
add rcx, rax
mov r8d, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d8]
mov rdx, rdi
mov rcx, rbp
mov r8d, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite

Function at 0x140073770
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [0x140184860]
mov esi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rdi, rcx
jmp 0x1400737c1
mov rdx, rax
mov r8d, esi
mov rcx, rdi
call r12
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x1400737f8
cmp esi, eax
je 0x1400737f8
cmp eax, esi
jb 0x1400737e2
mov esi, eax
mov rcx, rbx
mov edx, esi
mov r13, rbx
call qword [rbp]
mov rbx, rax
test rax, rax
jne 0x1400737a0
mov rax, qword [0x140184840]
mov rcx, r13
xor ebx, ebx
call qword [rax]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [0x140184840]
mov rcx, rbx
xor ebx, ebx
call qword [rax]
jmp 0x1400737e2

Function at 0x140074560
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rcx
mov rbx, rcx
lea r8, [rsp + 0x2c]
mov ecx, 2
call rsi
mov edx, eax
mov eax, 1
test edx, edx
jg 0x14007459e
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
call rsi
test eax, eax
setg al
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x140074b10
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
js 0x140074b30
mov qword [rsp + 0x28], r9
mov r9d, 1
jmp fcn.1400745b0
mov eax, 0xfffffffe
ret
Function at 0x1400808c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rcx
mov r8, r9
mov rbp, rdx
mov rcx, rsi
xor edx, edx
mov dword [rsp + 0x3c], r9d
mov rbx, r9
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140080938
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140080990
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x140080988
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14008092a
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140080966
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140080961
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 4
mov dword [rsp + 0x20], 0
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call rdi
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140080961
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x140080961
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
call rdi
jmp 0x14008095c
Function at 0x140089160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rsi, rcx
mov dword [r9], 0
mov rbx, r9
xor r9d, r9d
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp eax, 0xffffffff
je 0x1400891a6
mov rax, rdi
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x1400891bd
mov dword [rbx], 0x51
jmp 0x140089197
lea rdx, [rsp + 0x20]
mov r8d, 0x100
mov ecx, eax
call fcn.14007f7b0
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140072600
mov rax, qword [rsi + 8]
mov dword [rax + 0xc34], ebp
mov dword [rbx], 0x38
jmp 0x140089197

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x348]
mov rsi, rcx
mov rbx, rdx
test byte [rax + 0x85], 8
je 0x140089558
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rsp + 0x30]
xor eax, eax
mov ecx, 0x10
mov dword [rsp + 0x2c], pe_nt_image_headers64
mov rdi, rbp
lea r8, [rsp + 0x2c]
mov rdx, rbp
rep stosq qword [rdi], rax
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400895f0
mov edx, dword [rsp + 0x2c]
lea r9, [rsi + 0x140]
lea r8, [rsi + 0x10e]
mov rcx, rbp
call fcn.14006e1f0
test al, al
jne 0x140089545
mov rdi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rdi
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, dword [rax]
call fcn.14007f7b0
mov rsi, rax
call rdi
mov r9, rsi
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, rbx
mov r8d, dword [rax]
call fcn.140072600
jmp 0x140089545
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, eax
mov esi, eax
call fcn.14007f7b0
mov r8d, esi
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rbx
mov r9, rax
call fcn.140072600
jmp 0x140089545

Function at 0x140089a10
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x1401ba0d0]
mov dword [rsp + 0x34], 0x4020
mov rbx, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
test eax, eax
je 0x140089aa0
cmp eax, 2
je 0x140089a92
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140089a70
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jg 0x140089a92
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, rbx
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov ecx, 6
mov dword [rsp + 0x20], 3
call fcn.140064f70
test al, al
je 0x140089ad8
mov dword [0x1401ba0d0], 2
add rsp, 0x40
pop rbx
ret
mov dword [0x1401ba0d0], 1
jmp 0x140089a3f
Function at 0x14008d7d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor eax, eax
test edx, edx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x1400911f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test rcx, rcx
je 0x14009126d
mov r11d, 3
lea rbx, [0x14017c4e0]
jmp 0x140091219
add r11d, 1
sar rcx, 1
je 0x14009126d
test cl, 1
je 0x140091210
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x140091253
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x140091240
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x140091240
add r11d, 1
sar rcx, 1
jne 0x140091219
mov eax, r10d
pop rbx
ret