joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d6650
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d67d8
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d669c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6725
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6680
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d680d
mov rax, qword [0x6d7f75e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d67f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d671e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6780
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d6753
test dil, 4
jne 0x6d7d67c4
test edi, edi
je 0x6d7d6748
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d67df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d6748
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d676c
jmp 0x6d7d6748
add rsi, qword [0x6d7f75e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d671e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d6748
xor esi, esi
jmp 0x6d7d66a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6748
mov rax, qword [0x6d7f75e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d6f60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d6fb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d6fab
test rsi, rsi
je 0x6d7d6fab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d6f90
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d71f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d7200
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d7210
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d7251
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d7248
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7253
add rax, 0x28
cmp rax, r9
jne 0x6d7d7234
xor eax, eax
ret

Function at 0x6d7d72f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d735d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d735d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d735d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7354
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d735f
add rax, 0x28
cmp rax, r9
jne 0x6d7d7340
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d7460
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7480
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7478
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d74dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d74d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d74e4
add rax, 0x28
cmp rax, r9
jne 0x6d7d74c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d756e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d756e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d756e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d756e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d7565
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7575
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7550
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7588
jmp 0x6d7d756e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7596
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d756e
test r9d, r9d
jg 0x6d7d7580
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d78d0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1406b0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406b01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406b0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b006f
add dl, dl
jne 0x1406b0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b00f6
xor eax, eax
add dl, dl
jne 0x1406b00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b01ad
add dl, dl
jne 0x1406b00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406b00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406b007e
mov eax, 1
add dl, dl
jne 0x1406b0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b00fb
sub eax, ebx
mov ebx, 1
jne 0x1406b014c
mov ecx, 1
add dl, dl
jne 0x1406b012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406b0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b015d
cmp eax, 0x7d00
jae 0x1406b019b
cmp eax, 0x500
jb 0x1406b0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b007e
cmp eax, 0x7f
ja 0x1406b019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406b01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406b007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000e040
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov eax, dword [0x140ad7b88]
mov ebp, dword [0x140ad7b8c]
lea ebx, [rax - 1]
imul ebx, eax
test bl, 1
sete byte [rsp + 2]
mov ebx, 0x8b3284ef
mov r14d, 0xfc2314c6
cmove r14d, ebx
cmp ebp, 0xa
setl byte [rsp + 3]
not r8d
cmovl r14d, ebx
mov ebp, 0x5843fc77
mov r9d, 0xe68b76fb
mov r10d, 0x75a4127d
lea r11, section..rdata
jmp 0x14000e0b0
mov eax, dword [rsp + 4]
not eax
mov dword [rsp + 0x14], eax
mov ebp, 0xe96494a1
nop dword [rax + rax]
cmp ebp, 0x22c2564
jle 0x14000e100
cmp ebp, 0x6c5ebe5b
jg 0x14000e140
cmp ebp, 0x22c2565
je 0x14000e193
cmp ebp, 0xf592c0b
je 0x14000e1b6
cmp ebp, 0x5843fc77
jne 0x14000e0b0
movzx eax, byte [rsp + 2]
cmp byte [rsp + 3], 0
mov ebp, 0xfc2314c6
cmovne ebp, r10d
test al, al
cmovne ebp, r10d
jmp 0x14000e0b0
cmp ebp, 0xe68b76fa
jg 0x14000e171
cmp ebp, 0x8b3284ef
je 0x14000e1d6
cmp ebp, 0x8d91edde
je 0x14000e1e0
cmp ebp, 0xa0a7888a
jne 0x14000e0b0
mov ebp, 0x22c2565
mov esi, dword [rsp + 8]
mov rdi, rdx
mov rbx, rcx
jmp 0x14000e0b0
cmp ebp, 0x6c5ebe5c
je 0x14000e1f8
cmp ebp, 0x746780f2
je 0x14000e202
cmp ebp, 0x75a4127d
jne 0x14000e0b0
mov dword [rsp + 8], r8d
mov ebp, r14d
jmp 0x14000e0b0
cmp ebp, 0xe68b76fb
je 0x14000e09c
cmp ebp, 0xfc2314c6
jne 0x14000e22a
mov ebp, 0x75a4127d
jmp 0x14000e0b0
mov qword [rsp + 0x18], rbx
mov dword [rsp + 4], esi
mov rax, rdi
sub rax, 1
mov qword [rsp + 0x20], rax
mov ebp, 0xf592c0b
cmovb ebp, r9d
jmp 0x14000e0b0
mov eax, dword [rsp + 4]
shr eax, 8
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 4]
movzx eax, al
mov dword [rsp + 0x10], eax
mov ebp, 0x8d91edde
jmp 0x14000e0b0
mov ebp, 0x6c5ebe5c
jmp 0x14000e0b0
mov rax, qword [rsp + 0x18]
add rax, 1
mov qword [rsp + 0x28], rax
mov ebp, 0x746780f2
jmp 0x14000e0b0
mov ebp, 0xa0a7888a
jmp 0x14000e0b0
mov rax, qword [rsp + 0x18]
movzx eax, byte [rax]
xor eax, dword [rsp + 0x10]
mov esi, dword [rsp + 0xc]
xor esi, dword [r11 + rax*4]
mov rdi, qword [rsp + 0x20]
mov ebp, 0x22c2565
mov rbx, qword [rsp + 0x28]
jmp 0x14000e0b0
cmp ebp, 0xe96494a1
jne 0x14000e0b0
mov eax, dword [rsp + 0x14]
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140087b20
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
sub rsp, 0x20
lea r10, [rcx + 0xbc]
mov eax, 0x254c36a7
mov r9d, 0xff00ffff
jmp 0x140087b46
mov eax, 0xcc43f03e
cmp r11d, 0xa
cmovl eax, esi
cmp eax, 0xdf229717
jle 0x140087b90
cmp eax, 0x1d36e0ca
jle 0x140087bc0
cmp eax, 0x259483db
jg 0x140087c5a
cmp eax, 0x1d36e0cb
je 0x140087cf1
cmp eax, 0x254c36a7
jne 0x140087b46
test r8d, r8d
mov byte [rsp + 6], dl
setne byte [rsp + 7]
mov eax, 0x8ff060bc
jmp 0x140087b46
cmp eax, 0xb066fcb0
jle 0x140087c10
cmp eax, 0xc5d33378
jg 0x140087cbc
cmp eax, 0xb066fcb1
je 0x140087d0c
cmp eax, 0xb75d02bb
jne 0x140087b46
mov eax, 0x1d36e0cb
jmp 0x140087b46
cmp eax, 0x7ff1430
jle 0x140087cdc
cmp eax, 0x7ff1431
je 0x140087d3f
cmp eax, 0x9b1340c
jne 0x140087b46
mov eax, dword [0x140ad8630]
mov r11d, dword [0x140ad8634]
lea edi, [rax - 1]
imul edi, eax
mov esi, 0xb066fcb1
mov eax, 0xb066fcb1
test dil, 1
je 0x140087b3f
jmp 0x140087b3a
cmp eax, 0x8ff060bc
je 0x140087d70
cmp eax, 0x9da1dca7
je 0x140087d8a
cmp eax, 0xad20af04
jne 0x140087b46
mov eax, dword [0x140ad8630]
mov r11d, dword [0x140ad8634]
lea edi, [rax - 1]
imul edi, eax
mov esi, 0x3d4e48b1
mov eax, 0x3d4e48b1
test dil, 1
je 0x140087b3f
jmp 0x140087cb2
cmp eax, 0x259483dc
je 0x140087da4
cmp eax, 0x3d4e48b1
jne 0x140087b46
mov qword [rsp + 0x18], r10
mov rax, qword [rsp + 0x18]
mov eax, dword [rax]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
shl eax, 8
mov dword [rsp + 0x14], eax
mov eax, dword [0x140ad8630]
mov r11d, dword [0x140ad8634]
lea edi, [rax - 1]
imul edi, eax
mov esi, 0xf84404ed
mov eax, 0xf84404ed
test dil, 1
je 0x140087b3f
mov eax, 0x259483dc
jmp 0x140087b3f
cmp eax, 0xc5d33379
je 0x140087dae
cmp eax, 0xcc43f03e
jne 0x140087b46
mov eax, 0xb066fcb1
jmp 0x140087b46
cmp eax, 0xf84404ed
jne 0x140087db8
mov eax, 0x7ff1431
jmp 0x140087b46
mov eax, dword [rsp + 0xc]
shr eax, 0x10
movsx eax, al
and eax, r8d
mov dword [rsp + 0x10], eax
mov eax, 0x9da1dca7
jmp 0x140087b46
mov eax, dword [r10]
mov dword [rsp + 0xc], eax
mov eax, dword [0x140ad8630]
mov r11d, dword [0x140ad8634]
lea edi, [rax - 1]
imul edi, eax
mov esi, 0xb75d02bb
mov eax, 0xb75d02bb
test dil, 1
je 0x140087b3f
jmp 0x140087b3a
mov eax, dword [rsp + 0x14]
shr eax, 8
mov edi, dword [rsp + 8]
and edi, r9d
and eax, 0xf10000
or eax, edi
mov rdi, qword [rsp + 0x18]
mov dword [rdi], eax
movzx eax, byte [rsp + 6]
mov byte [rcx + 0x99], al
mov eax, 0xc5d33379
jmp 0x140087b46
cmp byte [rsp + 7], 0
mov eax, 0x9b1340c
jne 0x140087b46
mov eax, 0xad20af04
jmp 0x140087b46
cmp dword [rsp + 0x10], 0
mov eax, 0xdf229718
je 0x140087b46
mov eax, 0xad20af04
jmp 0x140087b46
mov eax, 0x3d4e48b1
jmp 0x140087b46
mov eax, 0xdf229718
jmp 0x140087b46
cmp eax, 0xdf229718
jne 0x140087b46
add rsp, 0x20
pop rdi
pop rsi
ret
Function at 0x140619810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14061985a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14061985a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14061985a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14061985a
cmp dword [rcx + 0x84], 0xe
jbe 0x14061985a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14061985c
xor al, al
add rsp, 0x28
ret
Function at 0x14062bc40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x158
mov rax, qword [0x140ad7868]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xae5], 0
mov rbx, rcx
jne 0x14062bc84
cmp qword [rcx + 0x1e0], 0
je 0x14062bd3d
mov r8, rdx
lea r9, [rsp + 0x180]
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.14063e860
mov rdx, qword [rbx + 0x1e0]
movsxd r8, eax
test rdx, rdx
je 0x14062bcd8
cmp byte [rbx + 0x1313], 0
jne 0x14062bcd8
lea rcx, [rsp + 0x30]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14062bcc0
mov byte [rbx + 0x1313], 1
lea eax, [r8 + 1]
mov byte [rsp + r8 + 0x30], 0xa
movsxd rdi, eax
cmp rdi, 0x102
jae 0x14062bd8f
cmp byte [rbx + 0xae5], 0
mov byte [rsp + rdi + 0x30], 0
je 0x14062bd3d
cmp qword [rbx + 0x270], 0
je 0x14062bd57
mov dl, 1
mov rcx, rbx
call fcn.14061af90
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.14061af90
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140616370
add rsp, 0x158
pop rdi
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x140685170]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x14062bd3d
call fcn.140619ad0
int3

Function at 0x14062bdf0
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 0x14062be32
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14062bf90
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 r14
push r15
sub rsp, 0x130
mov rax, qword [0x140ad7868]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14062c09a
lea rax, [0x14062be40]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14062c09a
cmp qword [rbx], 0
je 0x14062c021
test rdi, rdi
je 0x14062c09a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14063cd20
cmp eax, 0xffffffff
je 0x14062c09a
test al, 1
je 0x14062c09a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14062c079
mov eax, dword [rbp + 0x6ec]
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 0x14062c0d4
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14062c09a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x14062c113
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14062c0e3
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x14062c113
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14062c116
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140640230
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14062bc40
mov dword [rbp + 0xda4], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140616370
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14062c270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xae5], 0
mov rsi, r9
mov rbp, r8
movsxd rdi, edx
mov rbx, rcx
je 0x14062c322
cmp qword [rcx + 0x270], 0
je 0x14062c2d7
mov dl, 1
call fcn.14061af90
mov rax, qword [rbx + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.14061af90
jmp 0x14062c322
mov ecx, edi
test edx, edx
je 0x14062c2e7
sub ecx, 1
je 0x14062c2e7
cmp ecx, 1
jne 0x14062c322
mov r9, qword [rbx + 0x1d0]
lea rax, [0x140685170]
mov edx, 2
lea rcx, [rdi + rdi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14062cfd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x14062cfed
call fcn.140624fa0
test eax, eax
je 0x14062d019
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x14062d019
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x14062d020
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140aef860]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14062d084
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14065dc00
test al, al
je 0x14062d078
mov dword [0x140aef860], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140aef860], 1
jmp 0x14062d089
cmp eax, 2
je 0x14062d0db
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 0x14062d0ba
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14062d0db
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
Function at 0x14062d690
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140ad7868]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14062d743
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140640230
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.14062bc40
jmp 0x14062d80b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14062d7e0
sub edx, 1
je 0x14062d78a
cmp edx, 0x15
jne 0x14062d791
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.14065d370
test rax, rax
je 0x14062d791
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14062d80b
lea rdx, [rsp + 0x34]
jmp 0x14062d762
mov byte [rbx], 0
mov dword [rdi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140640230
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14062bc40
jmp 0x14062d80b
cmp dword [rsp + 0x20], 2
jle 0x14062d802
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x140689484]
mov rcx, rbx
call fcn.14063e7f0
jmp 0x14062d805
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140616370
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14062ea00
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret