joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008c1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14008c214
cmp ecx, r10d
jge 0x14008c202
mov rcx, rbx
call fcn.14008b9e0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14008c24e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14008c230
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14008c276
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14008c2a5
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14008c28f
xor dl, dl
jmp 0x14008c298
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14008c286
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14008c252
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14008c30f
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14008c329
mov rcx, rbx
call fcn.14008bb30
test eax, eax
je 0x14008c302
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400952e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14009546e
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140095370
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x60]
call fcn.140063c80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x1400953a3
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140049fd0
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
setae r9b
cmovae rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x60]
test r9b, r9b
cmovne rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140062670
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140095410
mov rax, qword [rax]
cmp r8, qword [rsp + 0x30]
jne 0x140095428
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140095428
mov sil, 1
jmp 0x14009542b
xor sil, sil
lea rcx, [rsp + 0x40]
call fcn.14005f2e0
nop
lea rcx, [rsp + 0x20]
call fcn.14005f2e0
test sil, sil
jne 0x140095461
lea rcx, [rsp + 0x60]
call fcn.14005f270
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140095346
mov edi, dword [rbp - 0x78]
lea rcx, [rsp + 0x60]
call fcn.14005f270
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401526c0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400bb560
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400bb5bd
lea rbx, [0x14024d8c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400bb5a4
cmp r10, 2
jb 0x1400bb5a4
cmp byte [r9], r8b
jne 0x1400bb5a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400bb580
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400bb5ff
lea rbx, [0x14024d8c0]
cmp r8b, 0x23
jne 0x1400bb5e3
cmp byte [r9], r8b
jne 0x1400bb5e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400bb5d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400bb740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400bb75a
mov qword [r8], 0
lea rdx, [0x140205104]
call fcn.1400bb610
mov rbx, rax
test rax, rax
jne 0x1400bb77a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400bb851
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400bb851
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400bb851
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400bb851
cmp rdi, 0xffffffffffffffff
je 0x1400bb851
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400bb7ee
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400bb851
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400bb83e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402bc3c0]
test rax, rax
je 0x1400bb833
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400bb85a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400bb84c
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400bb85c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400bd710
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14024d8c0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1402bc3c0]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x3e7c], ebx
jne 0x1400bd79d
mov dword [rax + 0x3e80], ebx
cmp dword [rax + 0x3ec8], ebx
jne 0x1400bd7ac
mov byte [rax + 0x3ecc], 1
cmp dword [rax + 0x3e64], ebx
jne 0x1400bd7c3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400cf840
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400c9990
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1402bc3c0]
mov edi, ecx
cmp byte [rbx + 0x41d5], 0
jne 0x1400c99f1
cmp byte [rbx + 0x41d6], 0
jne 0x1400c99f1
movsx r9d, word [rbx + 0x5ab6]
lea r8, [0x14028a5c0]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1400bb4e0
test dil, 1
je 0x1400c9b18
jmp 0x1400c9a7a
movss xmm1, dword [rbx + 0x3830]
lea r8, [0x14028a5c0]
movsx r9d, word [rbx + 0x5ab6]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1402972ec]
mulss xmm1, dword [0x1402972d4]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd0c]
addss xmm1, dword [rbx + 0xd10]
mov qword [rbx + 0x3f50], rax
mov dword [rbx + 0x3f3c], 1
movss dword [rbx + 0x3f48], xmm0
movss dword [rbx + 0x3f4c], xmm1
movss xmm0, dword [rbx + 0x388c]
mulss xmm0, dword [0x1402971e8]
or dword [rbx + 0x3f38], 0x41
movss dword [rbx + 0x3f98], xmm0
call fcn.1400bb4e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400c9ad0
lea r11, [0x14024d8c0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400c9ab3
cmp byte [r8], r9b
jne 0x1400c9ab3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400c9aa0
not ecx
call fcn.1400c2940
test rax, rax
je 0x1400c9b18
cmp byte [rax + 0x96], 0
je 0x1400c9b18
mov byte [rax + 0x9d], 1
lea r8, [0x14028a5c0]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5ab6]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5ab6]
call fcn.1400bb4e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400c50d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400ce700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5b68], 0
lea rbx, [rcx + 0x5b70]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400ce7a3
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x1400ce756
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1400d0410
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400bbd30
mov eax, dword [rbx]
lea rcx, [0x1402bc3bd]
mov r9, qword [rdi + 0x5b68]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x5b78]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400ce7ab
mov rcx, rbx
call fcn.1400bbd30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dfa40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x190]
mov r10, rcx
mov dword [rcx + 0x7c], edx
movsxd rax, edx
imul rbx, rax, 0x68
add rbx, qword [rcx + 0x18]
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x1400dfa7c
addss xmm0, dword [rcx + 0x94]
lea rsi, [r9 + 0xe0]
movss dword [rsi], xmm0
movss xmm1, dword [rcx + 0xc8]
addss xmm1, dword [rcx + 0x84]
movss dword [r9 + 0xf8], xmm0
subss xmm0, dword [r9 + 0x10]
movss dword [r9 + 0xe4], xmm1
subss xmm0, dword [r9 + 0x120]
movss dword [r9 + 0x124], xmm0
mov eax, dword [rcx + 0x90]
mov dword [r9 + 0x118], eax
movsx eax, byte [rbx + 0x62]
mov dword [r9 + 0x134], eax
movss dword [r9 + 0x1fc], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x1f8], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x200], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x19c], eax
cmp byte [rbx + 0x5a], 0
jne 0x1400dfb17
maxss xmm1, dword [rcx + 0x88]
movss dword [r9 + 0xe4], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r9 + 0x9b], al
cmp byte [rbx + 0x60], 0
je 0x1400dfb3d
mov rax, qword [0x1402bc3c0]
xor ecx, ecx
mov dword [rax + 0x3ef8], ecx
mov dword [rax + 0x3f00], ecx
test dword [r10 + 4], 0x100000
je 0x1400dfb52
mov r8d, 2
jmp 0x1400dfbd2
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x278]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x218], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x278]
mov rcx, qword [r10 + 0x1a8]
call fcn.1400b2950
mov rdi, qword [0x1402bc3c0]
cmp byte [rdi + 0x5b5c], 0
je 0x1400dfc17
cmp byte [rbx + 0x60], 0
jne 0x1400dfc17
xor r8d, r8d
lea rdx, [0x14028a8a8]
mov rcx, rsi
call fcn.1400ce800
mov dword [rdi + 0x5b90], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e10d0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1402bc3c0]
mov rdx, qword [rax + 0x4290]
cmp ecx, 0xffffffff
jne 0x1400e10ea
cmp dword [rdx + 0x7c], ecx
cmovne ecx, dword [rdx + 0x7c]
cmp ecx, dword [rdx + 0x74]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x1400e1167
mov r10d, dword [rdx]
lea r8, [0x14028a8b1]
movzx eax, word [rdx + 0x80]
lea r11, [0x14024d8c0]
not r10d
mov byte [rdx + 0x1f0], cl
mov ecx, r10d
mov byte [rdx + 0x1fe], 1
mov word [rdx + 0x82], ax
mov r9b, 0x23
cmp r9b, 0x23
jne 0x1400e1143
cmp byte [r8], r9b
jne 0x1400e1143
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400e1130
not ecx
jmp fcn.1400c9ba0
ret
Function at 0x1400e54f0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x1402bc498]
mov ebx, ecx
mov r8d, eax
inc eax
mov dword [0x1402bc498], eax
test r8d, r8d
jne 0x1400e5653
test dl, dl
je 0x1400e557f
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1402ba0c8], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1402ba0c0], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x1400fa348.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [case.0x1400fa348.1], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [0x1402ba0b0], rax
cmp byte [0x1402bc4b0], 0
jne 0x1400e559d
mov rax, qword [case.0x1400fa348.2]
mov byte [0x1402bc4b0], 1
call qword [rax + 0x20]
test eax, eax
je 0x1400e55cd
test bl, 2
je 0x1400e55f1
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400e55cd
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400e55c7
shr ax, 8
cmp al, 2
je 0x1400e55f1
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x1402bc498]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x1e0
pop rbx
ret
call fcn.14010a9b0
test eax, eax
jne 0x1400e55cd
lea rcx, str.iphlpapi.dll
call fcn.1400ef9d0
mov qword [0x1402bc4a0], rax
test rax, rax
je 0x1400e5622
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14010abc0
test al, al
lea rcx, [0x1402bcc58]
setne byte [0x1402bcc60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x1402bc49c], ebx
xor eax, eax
jmp 0x1400e55d8
Function at 0x1400ef9d0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400ef9fa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14028ce60]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x1400efa5a
mov rcx, rbx
test r14, r14
je 0x1400efa47
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1400efa91
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400efa91
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x1400efb5a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400efac0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400efb4c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400efb4c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400efaf3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x1400efb05
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400efb20
mov rcx, rsi
test r14, r14
je 0x1400efb43
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400efb49
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [0x1402ba0c8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400f7bc0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, qword [rsp + 0x1d0]
mov r14, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
xor r13d, r13d
mov rax, r8
mov r12, r9
shl rax, 5
lea rbx, [rcx + 0x1e8]
mov rsi, qword [rcx + r8*8 + 0x1a8]
add rbx, rax
mov rax, qword [rcx + 0x328]
mov rbp, qword [rbx + 8]
sub rbp, qword [rbx + 0x10]
test dword [rax + 0x84], 0xc0000003
je 0x1400f7d0f
lea rax, [0x1400fcef0]
cmp qword [rcx + r8*8 + 0x1b8], rax
jne 0x1400f7d0f
cmp qword [rbx], r13
je 0x1400f7c5c
test rbp, rbp
je 0x1400f7d0f
cmp rsi, 0xffffffffffffffff
je 0x1400f7d0f
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x700
lea edx, [r8 + 1]
call fcn.1401144f0
mov edx, eax
test eax, eax
jle 0x1400f7cb2
movzx ecx, word [rsp + 0x2a]
mov eax, 0x303
test ax, cx
mov edx, 0x604
mov eax, r13d
setne al
and cx, dx
mov edx, eax
or edx, 4
test cx, cx
cmove edx, eax
mov eax, edx
cmp edx, 0xffffffff
je 0x1400f7d0f
test al, 1
je 0x1400f7d0f
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400f7cee
mov eax, dword [r14 + 0x6c4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1400f7d44
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400f7d0f
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
mov dword [rdi], r13d
cmp rsi, 0xffffffffffffffff
jne 0x1400f7d7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400f7d53
mov dword [rdi], 0x51
jmp 0x1400f7d7e
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1400f7d81
lea rdx, [rsp + 0x50]
mov ecx, ebx
call fcn.1400e7750
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, r14
call fcn.140105f20
mov dword [r14 + 0xd64], ebx
mov dword [rdi], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400f7db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x1a0]
mov r15, r8
mov r8, qword [rcx + 0x18]
mov rbp, rcx
movsxd rax, edx
xor r13d, r13d
mov r14, r9
lea rbx, [r8 + 0x1e8]
mov r12, qword [r8 + rax*8 + 0x1a8]
shl rax, 5
add rbx, rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400f7e6a
mov rdi, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
cmp rdi, rax
jbe 0x1400f7e3f
sub rdi, rax
lea rdx, [rax + rcx]
cmp r9, rdi
mov rcx, r15
cmovb rdi, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x18], rdi
mov rax, qword [rbx + 0x18]
jmp 0x1400f7e42
mov rdi, r13
cmp rax, qword [rbx + 0x10]
jne 0x1400f7e60
mov rcx, qword [rbx]
call qword [0x1402ba0c8]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rdi, rdi
jle 0x1400f7e6a
mov dword [rsi], r13d
jmp 0x1400f7ec9
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
mov dword [rsi], r13d
cmp rdi, 0xffffffffffffffff
jne 0x1400f7ec9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400f7e9f
mov dword [rsi], 0x51
jmp 0x1400f7ec9
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1400e7750
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.140105f20
mov dword [rbp + 0xd64], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400fa1f0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400fa2c0
lea r8, [rsp + 0x30]
mov rdx, rcx
call fcn.1401434a0
test eax, eax
jg 0x1400fa2c0
xor r8d, r8d
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x1400fa221
test rdx, rdx
je 0x1400fa27c
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x1400fa27c
nop dword [rax + rax]
cmp byte [rcx], 0x2e
je 0x1400fa24f
dec rcx
cmp rcx, rbx
jae 0x1400fa240
jmp 0x1400fa27c
cmp rcx, rbx
je 0x1400fa27c
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x1400fa27c
nop dword [rax]
cmp byte [rax], 0x2e
je 0x1400fa26f
dec rax
cmp rax, rbx
jae 0x1400fa260
jmp 0x1400fa27c
lea r8, [rax + 1]
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
lea r8, [rbx + rdx]
mov edx, 0x1505
cmp rbx, r8
jae 0x1400fa2b7
lea r9, [0x14024e630]
nop dword [rax + rax]
movzx eax, byte [rbx]
inc rbx
imul rdx, rdx, 0x21
movsx rcx, byte [rax + r9]
xor rdx, rcx
cmp rbx, r8
jb 0x1400fa2a0
movzx eax, dl
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret