joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b62f0
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 0x1400b634d
lea rbx, [0x140247800]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400b6334
cmp r10, 2
jb 0x1400b6334
cmp byte [r9], r8b
jne 0x1400b6334
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 0x1400b6310
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400b638f
lea rbx, [0x140247800]
cmp r8b, 0x23
jne 0x1400b6373
cmp byte [r9], r8b
jne 0x1400b6373
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 0x1400b6360
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400b64d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400b64ea
mov qword [r8], 0
lea rdx, [0x1401ff044]
call fcn.1400b63a0
mov rbx, rax
test rax, rax
jne 0x1400b650a
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 0x1400b65e1
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 0x1400b65e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400b65e1
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 0x1400b65e1
cmp rdi, 0xffffffffffffffff
je 0x1400b65e1
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400b657e
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 0x1400b65e1
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 0x1400b65ce
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402b52a0]
test rax, rax
je 0x1400b65c3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400b65ea
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400b65dc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400b65ec
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 0x1400b84a0
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, [0x140247800]
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 [0x1402b52a0]
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 0x1400b852d
mov dword [rax + 0x3e80], ebx
cmp dword [rax + 0x3ec8], ebx
jne 0x1400b853c
mov byte [rax + 0x3ecc], 1
cmp dword [rax + 0x3e64], ebx
jne 0x1400b8553
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.1400ca5d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400c4720
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1402b52a0]
mov edi, ecx
cmp byte [rbx + 0x41d5], 0
jne 0x1400c4781
cmp byte [rbx + 0x41d6], 0
jne 0x1400c4781
movsx r9d, word [rbx + 0x5ab6]
lea r8, [0x140284460]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1400b6270
test dil, 1
je 0x1400c48a8
jmp 0x1400c480a
movss xmm1, dword [rbx + 0x3830]
lea r8, [0x140284460]
movsx r9d, word [rbx + 0x5ab6]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14029117c]
mulss xmm1, dword [0x140291164]
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 [0x140291078]
or dword [rbx + 0x3f38], 0x41
movss dword [rbx + 0x3f98], xmm0
call fcn.1400b6270
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400c4860
lea r11, [0x140247800]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400c4843
cmp byte [r8], r9b
jne 0x1400c4843
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 0x1400c4830
not ecx
call fcn.1400bd6d0
test rax, rax
je 0x1400c48a8
cmp byte [rax + 0x96], 0
je 0x1400c48a8
mov byte [rax + 0x9d], 1
lea r8, [0x140284460]
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.1400b6270
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400bfe60
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400c9490
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 0x1400c9533
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x1400c94e6
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.1400cb1a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400b6ac0
mov eax, dword [rbx]
lea rcx, [0x1402b529d]
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 0x1400c953b
mov rcx, rbx
call fcn.1400b6ac0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400da7d0
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 0x1400da80c
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 0x1400da8a7
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 0x1400da8cd
mov rax, qword [0x1402b52a0]
xor ecx, ecx
mov dword [rax + 0x3ef8], ecx
mov dword [rax + 0x3f00], ecx
test dword [r10 + 4], 0x100000
je 0x1400da8e2
mov r8d, 2
jmp 0x1400da962
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.1400ada20
mov rdi, qword [0x1402b52a0]
cmp byte [rdi + 0x5b5c], 0
je 0x1400da9a7
cmp byte [rbx + 0x60], 0
jne 0x1400da9a7
xor r8d, r8d
lea rdx, [0x140284754]
mov rcx, rsi
call fcn.1400c9590
mov dword [rdi + 0x5b90], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400dbe60
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1402b52a0]
mov rdx, qword [rax + 0x4290]
cmp ecx, 0xffffffff
jne 0x1400dbe7a
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 0x1400dbef7
mov r10d, dword [rdx]
lea r8, [0x140284759]
movzx eax, word [rdx + 0x80]
lea r11, [0x140247800]
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 0x1400dbed3
cmp byte [r8], r9b
jne 0x1400dbed3
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 0x1400dbec0
not ecx
jmp fcn.1400c4930
ret
Function at 0x1400e0280
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [0x1402b5378]
mov ebx, ecx
mov r8d, eax
inc eax
mov dword [0x1402b5378], eax
test r8d, r8d
jne 0x1400e03e3
test dl, dl
je 0x1400e030f
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 [0x1402b30c8], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1402b30c0], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x1400f50d8.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [case.0x1400f50d8.1], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [0x1402b30b0], rax
cmp byte [0x1402b5390], 0
jne 0x1400e032d
mov rax, qword [case.0x1400f50d8.2]
mov byte [0x1402b5390], 1
call qword [rax + 0x20]
test eax, eax
je 0x1400e035d
test bl, 2
je 0x1400e0381
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400e035d
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400e0357
shr ax, 8
cmp al, 2
je 0x1400e0381
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x1402b5378]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x1e0
pop rbx
ret
call fcn.140105740
test eax, eax
jne 0x1400e035d
lea rcx, str.iphlpapi.dll
call fcn.1400ea760
mov qword [0x1402b5380], rax
test rax, rax
je 0x1400e03b2
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.140105950
test al, al
lea rcx, [0x1402b5b30]
setne byte [0x1402b5b38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x1402b537c], ebx
xor eax, eax
jmp 0x1400e0368
Function at 0x1400ea760
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 0x1400ea78a
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, [0x140286d20]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x1400ea7ea
mov rcx, rbx
test r14, r14
je 0x1400ea7d7
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 0x1400ea821
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ea821
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 0x1400ea8ea
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400ea850
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 0x1400ea8dc
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400ea8dc
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400ea883
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x1400ea895
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 0x1400ea8b0
mov rcx, rsi
test r14, r14
je 0x1400ea8d3
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400ea8d9
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [0x1402b30c8]
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 0x1400f2950
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 [0x1402b3030]
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 0x1400f2a9f
lea rax, [0x1400f7c80]
cmp qword [rcx + r8*8 + 0x1b8], rax
jne 0x1400f2a9f
cmp qword [rbx], r13
je 0x1400f29ec
test rbp, rbp
je 0x1400f2a9f
cmp rsi, 0xffffffffffffffff
je 0x1400f2a9f
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x700
lea edx, [r8 + 1]
call fcn.14010f280
mov edx, eax
test eax, eax
jle 0x1400f2a42
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 0x1400f2a9f
test al, 1
je 0x1400f2a9f
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400f2a7e
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 0x1400f2ad4
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 0x1400f2a9f
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 0x1400f2b0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400f2ae3
mov dword [rdi], 0x51
jmp 0x1400f2b0e
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1400f2b11
lea rdx, [rsp + 0x50]
mov ecx, ebx
call fcn.1400e24e0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, r14
call fcn.140100cb0
mov dword [r14 + 0xd64], ebx
mov dword [rdi], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400f2b40
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 [0x1402b3030]
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 0x1400f2bfa
mov rdi, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
cmp rdi, rax
jbe 0x1400f2bcf
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 0x1400f2bd2
mov rdi, r13
cmp rax, qword [rbx + 0x10]
jne 0x1400f2bf0
mov rcx, qword [rbx]
call qword [0x1402b30c8]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rdi, rdi
jle 0x1400f2bfa
mov dword [rsi], r13d
jmp 0x1400f2c59
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 0x1400f2c59
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400f2c2f
mov dword [rsi], 0x51
jmp 0x1400f2c59
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1400e24e0
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.140100cb0
mov dword [rbp + 0xd64], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400f5050
lea r8, [rsp + 0x30]
mov rdx, rcx
call fcn.14013e230
test eax, eax
jg 0x1400f5050
xor r8d, r8d
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x1400f4fb1
test rdx, rdx
je 0x1400f500c
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x1400f500c
nop dword [rax + rax]
cmp byte [rcx], 0x2e
je 0x1400f4fdf
dec rcx
cmp rcx, rbx
jae 0x1400f4fd0
jmp 0x1400f500c
cmp rcx, rbx
je 0x1400f500c
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x1400f500c
nop dword [rax]
cmp byte [rax], 0x2e
je 0x1400f4fff
dec rax
cmp rax, rbx
jae 0x1400f4ff0
jmp 0x1400f500c
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 0x1400f5047
lea r9, [0x140248570]
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 0x1400f5030
movzx eax, dl
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400fa850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x1400fa8d4
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x1400fa8d4
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x1400fa8cc
test r8, r8
je 0x1400fa8d4
cmp byte [rdx], 0
je 0x1400fa8a1
lea r9, [0x140248570]
nop
movzx eax, byte [r8]
test al, al
je 0x1400fa8a1
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x1400fa8c2
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x1400fa880
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x1400fa8d4
mov al, 1
ret
xor al, al
ret
Function at 0x140100b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaa7], 0
mov rbp, r9
mov r14, r8
mov rbx, rcx
je 0x140100c36
cmp qword [rcx + 0x260], 0
je 0x140100c47
mov rax, qword [rcx + 0xd0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
test rax, rax
je 0x140100bbf
cmp byte [rax + 0x18b], 0
je 0x140100bbf
lea rdi, [rcx + 0xd8]
mov sil, 1
jmp 0x140100bdf
lea rdi, [rcx + 0xd8]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140100bdc
cmp byte [rcx + 0x18b], 0
je 0x140100bdc
mov sil, 1
jmp 0x140100bdf
xor sil, sil
mov rcx, qword [rdi]
test rcx, rcx
je 0x140100bf0
mov byte [rcx + 0x18b], 1
jmp 0x140100bfc
test rax, rax
je 0x140100bfc
mov byte [rax + 0x18b], 1
mov rax, qword [rbx + 0x1d8]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rbx + 0x260]
mov rax, qword [rdi]
mov rdi, qword [rsp + 0x48]
test rax, rax
jne 0x140100c2a
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x140100c31
mov byte [rax + 0x18b], sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov ecx, edx
test edx, edx
je 0x140100c57
sub ecx, 1
je 0x140100c57
cmp ecx, 1
jne 0x140100c36
mov r9, qword [rbx + 0x1d0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140248360]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
Function at 0x140105460
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14010554b
xor r14d, r14d
nop dword [rax + rax]
mov rax, qword [case.0x1400f50d8.2]
lea rdx, [rsp + 0x20]
mov edi, 4
mov r8d, 4
cmp rsi, rdi
mov rcx, rbp
cmovb rdi, rsi
call qword [rax + 0x50]
cmp eax, 4
je 0x1401054cd
mov edx, eax
jmp 0x1401054fb
cmp byte [0x1402b5391], r14b
jne 0x140105505
mov r9d, 2
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x14010554d
mov eax, dword [rsp + 0x20]
jmp 0x140105524
imul eax, dword [0x1402b5468], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1402b5468], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rdi, rdi
je 0x140105542
sub rsi, rdi
nop dword [rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140105530
mov dword [rsp + 0x20], eax
test rsi, rsi
jne 0x1401054a0
mov eax, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140105b70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x1402b30c0]
mov rdi, rax
test rax, rax
je 0x140105bed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140105c18
cmp ebx, esi
je 0x140105c18
cmp ebx, 0x8000
ja 0x140105c18
cmp ebx, esi
jb 0x140105c13
mov edx, ebx
mov rcx, rdi
call qword [0x1402b30c0]
mov rdi, rax
test rax, rax
jne 0x140105bb0
mov rcx, rbp
call qword [0x1402b30c8]
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, rdi
jmp 0x140105bf8
mov rcx, rdi
jmp 0x140105bf0