joyce8/EMBER2024-capa huggingface dataset:
Function at 0x225a66f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx esi, byte [rcx + 0x40]
test sil, sil
mov rbx, rcx
je 0x225a66f60
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x48]
mov r8d, 0xa
movzx edx, word [rcx + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x225a67008
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbp, rax
je 0x225a67008
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r13, rax
je 0x225a67008
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
movsxd r12, eax
mov qword [rbx + 0x38], rdx
lea rcx, [r12 + 1]
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x225a66feb
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov qword [rbx + 0x30], rdi
mov byte [rbx + 0x40], sil
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor edi, edi
jmp 0x225a66feb

Function at 0x225a73f90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.225a7e310
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.225a7e310
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x225a74000
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x225b260c4]
test esi, esi
mov rbx, rcx
jle 0x225a74130
mov rax, qword [0x225b260c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x225a7404b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x225a740d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x225a74030
mov rcx, rbx
call fcn.225a74860
test rax, rax
mov rdi, rax
je 0x225a74152
mov rax, qword [0x225b260c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.225a749a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x225b260c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x225a74137
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x225a740ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x225a740e0
add dword [0x225b260c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x225b260c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x225a740ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.225a73f90
nop dword [rax]
xor esi, esi
jmp 0x225a74058
mov rax, qword [0x225b260c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.225a73f90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.225a73f90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x225a744d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x225b26100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x225b260e0]
test rbx, rbx
je 0x225a7452c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x225a74523
test rsi, rsi
je 0x225a74523
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x225a74508
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x225a74860
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x225b080f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x225a74880
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x225a74888
ret
cmp word [r8 + 0x18], 0x20b
jne 0x225a74880
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x225a748dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x225a748d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x225a74880
add rax, 0x28
cmp rax, r9
jne 0x225a748c0
xor eax, eax
ret

Function at 0x225a748e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x225b080f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x225a748ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x225a74908
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x225a748ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x225a749a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x225b080f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x225a749bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x225a749c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x225afbfe0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x225b00120]
jmp 0x225a756d0
Function at 0x140003730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x1400037dc
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x140003743
not eax
ret
Function at 0x140007890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.14004efa0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1140], rbx
mov qword [rsp + 0x1148], rdi
movsxd rdi, r8d
mov rbx, rcx
lea rcx, [rbp - 0x80]
call fcn.140027f40
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140007470
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140007919
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007914
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007af7
call fcn.14004e97c
movdqa xmm0, xmmword [0x1400840c0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.140050110
xor edx, edx
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
sub r9, r8
je 0x140007975
lea rcx, [rbp - 0x50]
lea rax, [rbp - 0x50]
sub r8, rax
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
inc edx
lea rcx, [rcx + 1]
movsxd rax, edx
cmp rax, r9
jb 0x140007960
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0xc30]
call fcn.140050110
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x830]
call fcn.140050110
mov word [rsp + 0x4e], 0x3939
mov dword [rsp + 0x30], 0x37383843
mov dword [rsp + 0x3f], 0x42324436
mov dword [rsp + 0x35], 0x44433234
mov word [rsp + 0x48], 0x4342
mov dword [rsp + 0x43], 0x42413436
mov word [rsp + 0x3c], 0x3945
mov word [rsp + 0x39], 0x4132
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x3b], 0x37
mov byte [rsp + 0x34], 0x44
mov word [rsp + 0x4b], 0x3836
mov byte [rsp + 0x4a], 0x46
mov byte [rsp + 0x47], 0x43
mov byte [rsp + 0x3e], 0x46
mov byte [rsp + 0x4d], 0x46
lea r8, [rsp + 0x30]
mov edx, 0x400
lea rcx, [rbp + 0x830]
call fcn.140055fd8
lea rcx, [rbp + 0x3b0]
call fcn.140008630
nop
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r9d, 0x20
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x830]
lea rcx, [rbp + 0x3b0]
call fcn.140008670
mov r9, qword [rsp + 0x60]
sub r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], 1
lea r8, [rbp + 0xc30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3b0]
call fcn.14007b5e0
lea rdx, [rbp + 0xc30]
add rdx, rdi
mov rcx, rbx
call fcn.140027f40
nop
lea rcx, [rbp + 0x3b0]
call fcn.140008650
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007ad9
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007ad4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007af1
call fcn.14004e97c
mov rax, rbx
lea r11, [rsp + 0x1130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.1400530d4
nop
call fcn.1400530d4
nop
int3
Function at 0x140007b00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov ebp, r8d
mov r15, rdx
mov rdi, rcx
xor eax, eax
mov r9, rcx
nop word [rax + rax]
mov byte [r9], al
lea r9, [r9 + 1]
inc eax
cmp eax, 0x100
jl 0x140007b30
xor r11d, r11d
movzx esi, bpl
xor r8b, r8b
lea r14, [rcx + 0xff]
mov r10d, 0xff
nop word [rax + rax]
xor ebx, ebx
mov r9d, 1
cmp r10d, r9d
jbe 0x140007b80
nop dword [rax]
lea r9d, [r9*2 + 1]
cmp r9d, r10d
jb 0x140007b70
nop dword [rax]
movzx eax, r8b
movzx r8d, byte [r11 + r15]
add r8b, byte [rax + rdi]
lea eax, [r11 + 1]
cmp eax, esi
jb 0x140007b98
add r8b, bpl
xor r11d, r11d
cmp eax, esi
cmovb r11d, eax
movzx eax, r8b
and eax, r9d
inc ebx
cmp ebx, 0xb
jbe 0x140007bb6
xor edx, edx
div r10d
mov eax, edx
cmp eax, r10d
ja 0x140007b80
movzx edx, byte [r14]
movzx ecx, al
movzx eax, byte [rcx + rdi]
mov byte [r14], al
dec r14
mov byte [rcx + rdi], dl
sub r10d, 1
jne 0x140007b60
movzx eax, byte [rdi + 1]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov byte [rdi + 0x100], al
movzx eax, byte [rdi + 3]
mov byte [rdi + 0x101], al
movzx eax, byte [rdi + 5]
mov byte [rdi + 0x102], al
movzx eax, byte [rdi + 7]
mov byte [rdi + 0x103], al
movzx eax, r8b
movzx ecx, byte [rax + rdi]
mov rax, rdi
mov byte [rdi + 0x104], cl
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140008fb0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.140009040
mov rdx, rdi
mov rcx, rbx
call fcn.14001fa30
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000d560
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
add rcx, 4
call fcn.140050110
mov dword [rdi + 4], 0x67452301
mov dword [rdi + 8], 0xefcdab89
mov dword [rdi + 0xc], 0x98badcfe
mov dword [rdi + 0x10], 0x10325476
xor ebx, ebx
mov qword [rdi + 0xb0], rbx
mov qword [rdi + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0xa0], bl
mov qword [rdi + 0xd0], rbx
mov qword [rdi + 0xd8], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0xc0], bl
mov word [rdi], 0x101
mov word [rsp + 0x88], 0x33
movdqa xmm0, xmmword [0x1400840c0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], bl
lea rcx, [rsp + 0x88]
call fcn.140053240
mov r8, rax
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140024210
nop
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], bl
lea rcx, [0x140084088]
call fcn.140053240
mov r8, rax
lea rdx, [0x140084088]
lea rcx, [rsp + 0x28]
call fcn.140024210
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140075d20
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000d69e
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d6af
call fcn.14004e97c
nop
mov rax, rdi
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
call fcn.1400530d4
nop
int3
Function at 0x14001aaf0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140019c80
test eax, eax
js 0x14001ad54
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx*4]
movsxd r9, eax
test eax, eax
jle 0x14001ab83
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop dword [rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x14001ab30
mov ecx, dword [rbx + 0xf0]
mov r11d, 1
cmp ecx, r11d
jle 0x14001ad52
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x827c0]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x833c0]
movzx eax, byte [rdi + rax*4 + 0x827c0]
xor r8d, dword [rdi + rax*4 + 0x82bc0]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x827c0]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x837c0]
movzx ecx, byte [rdi + rax*4 + 0x827c0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x82fc0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x827c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x82fc0]
movzx eax, byte [rdi + rcx*4 + 0x827c0]
xor r8d, dword [rdi + rax*4 + 0x833c0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x827c0]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x82bc0]
movzx ecx, byte [rdi + rax*4 + 0x827c0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x837c0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x827c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x82fc0]
movzx eax, byte [rdi + rcx*4 + 0x827c0]
xor r8d, dword [rdi + rax*4 + 0x833c0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x827c0]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x82bc0]
movzx ecx, byte [rdi + rax*4 + 0x827c0]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x837c0]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x827c0]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x82fc0]
movzx eax, byte [rdi + rcx*4 + 0x827c0]
xor r8d, dword [rdi + rax*4 + 0x833c0]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x827c0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x82bc0]
movzx ecx, byte [rdi + rax*4 + 0x827c0]
xor r8d, dword [rdi + rcx*4 + 0x837c0]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x14001abb0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140028b50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x140028b8b
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x140028b86
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x140028b70
add rsp, 0x48
ret
mov rdx, qword [0x1400ad0c8]
lea rcx, [rsp + 0x20]
call fcn.140028ae0
lea rdx, [0x1400aa060]
lea rcx, [rsp + 0x20]
call fcn.140050b28
int3
Function at 0x140034a38
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x977], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140034af9
cmp qword [rcx + 0x260], 0
je 0x140034aae
call fcn.14002b834
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.14002bac8
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.14002bac8
jmp 0x140034af9
mov ecx, esi
test edx, edx
je 0x140034abe
sub ecx, 1
je 0x140034abe
cmp ecx, 1
jne 0x140034af9
mov r9, qword [rdi + 0x1c8]
lea rax, [0x14008ca60]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140058060
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.140058060
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140034c58
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140034c91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140034c96
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x160]
call fcn.1400352bc
test eax, eax
je 0x140034dc9
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x140034e33
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x140034e30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140034e00
xor esi, esi
mov dword [rbx], 0x51
jmp 0x140034e30
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140046bd4
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140034b14
mov dword [rbp + 0xc14], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14004f320
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400352bc
Capabilities:
Receive data
Receive data on socket

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 rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x2c8]
mov rsi, qword [rdi + rbx + 0x1b0]
sub rsi, qword [rdi + rbx + 0x1b8]
test byte [rax + 0x84], 3
je 0x1400353d6
lea rax, [0x140034c9c]
cmp qword [rbx + rdx*8 + 0x188], rax
jne 0x1400353d6
cmp qword [rdi + rbx + 0x1a8], 0
je 0x140035332
test rsi, rsi
je 0x1400353d6
mov rbp, qword [rbx + rdx*8 + 0x160]
or r8, 0xffffffffffffffff
or rdx, r8
mov rcx, rbp
xor r9d, r9d
call fcn.14003f224
cmp eax, 0xffffffff
je 0x1400353d6
test al, 1
je 0x1400353d6
mov rcx, qword [rdi + rbx + 0x1a8]
test rcx, rcx
jne 0x1400353ad
mov eax, dword [r14 + 0x5f4]
lea ecx, [rax + rax]
mov qword [rdi + rbx + 0x1b0], rcx
call qword [fcn.140056704]
mov qword [rdi + rbx + 0x1a8], rax
mov rcx, rax
test rax, rax
jne 0x140035393
lea eax, [rcx + 0x1b]
jmp 0x1400353d8
and qword [rdi + rbx + 0x1b8], 0
and qword [rdi + rbx + 0x1c0], 0
mov rsi, qword [rdi + rbx + 0x1b0]
mov rdx, qword [rdi + rbx + 0x1b8]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400353d6
add qword [rdi + rbx + 0x1b8], rcx
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

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1400ac108]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.140050110
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140035775
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140046bd4
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1400357bb
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1400353f4
test al, al
jne 0x1400357c6
call fcn.140053204
mov ebx, dword [rax]
call fcn.140053204
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140046bd4
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140034b14
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14004f320
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140035e8c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1400ad1e0]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140035ee8
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140047e08
test al, al
je 0x140035edd
mov dword [0x1400ad1e0], 2
jmp 0x140035f3f
mov eax, 1
mov dword [0x1400ad1e0], eax
cmp eax, 2
je 0x140035f3f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140035f1e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140035f3f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret