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

Disassembly:
mov r8, qword [rdx]
bswap r8
xor r8, qword [rcx + 0x70]
mov qword [rcx + 0x70], r8
mov r9, qword [rdx + 8]
bswap r9
xor r9, qword [rcx + 0x78]
pxor xmm0, xmm0
xor r10d, r10d
mov edx, r9d
and edx, 1
mov rax, r9
shr rax, 1
mov qword [rcx + 0x78], rax
neg rdx
movdqu xmm1, xmmword [rcx + r10 + 0x90]
movq xmm2, rdx
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and eax, 1
shr r9, 2
mov qword [rcx + 0x78], r9
neg rax
movdqu xmm1, xmmword [rcx + r10 + 0xa0]
movq xmm0, rax
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r10, 0x20
cmp r10, 0x400
jne 0x1400b90e0
xor r9d, r9d
nop dword [rax]
mov eax, r8d
and eax, 1
mov rdx, r8
shr rdx, 1
mov qword [rcx + 0x70], rdx
neg rax
movdqu xmm1, xmmword [rcx + r9 + 0x490]
movq xmm2, rax
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and edx, 1
shr r8, 2
mov qword [rcx + 0x70], r8
neg rdx
movdqu xmm1, xmmword [rcx + r9 + 0x4a0]
movq xmm0, rdx
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r9, 0x20
cmp r9, 0x400
jne 0x1400b9150
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400b9afc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b9b46
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b9b46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b9b46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b9b46
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b9b46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b9b48
xor al, al
add rsp, 0x28
ret

Function at 0x1400c6ac4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c6c18
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c6c87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c6c87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c6c87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c6c87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c6c87
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c6c87
cmp dword [rcx + 0xf8], 0
je 0x1400c6c87
mov ecx, ebx
call fcn.1400c6b44
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c6dac
nop
cmp dword [rbp + 0x20], 0
je 0x1400c6cd5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c6be4
int3
Function at 0x1400cefa0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400cefbd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400cf018
test al, 7
jne 0x1400cefb0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400cefd1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400cf042
test dh, dh
je 0x1400cf03c
shr rdx, 0x10
test dl, dl
je 0x1400cf036
test dh, dh
je 0x1400cf030
shr rdx, 0x10
test dl, dl
je 0x1400cf02a
test dh, dh
je 0x1400cf024
shr edx, 0x10
test dl, dl
je 0x1400cf01e
test dh, dh
jne 0x1400cefd1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400d0600
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d0628
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d0628
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400d964c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400d967c
xor eax, eax
jmp 0x1400d973f
mov rbp, rbx
cmp word [rax], si
je 0x1400d96a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400d9688
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400d9684
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400d959c
movsxd r14, eax
test eax, eax
jne 0x1400d96df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400d9675
mov rcx, r14
call fcn.1400d39a0
mov rdi, rax
test rax, rax
jne 0x1400d96f8
xor ecx, ecx
call fcn.1400d2e14
jmp 0x1400d96d4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400d959c
test eax, eax
jne 0x1400d9729
mov rcx, rdi
call fcn.1400d2e14
jmp 0x1400d9733
xor ecx, ecx
call fcn.1400d2e14
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400d975c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d97e3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d97a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d978c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d9788
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d39a0
mov rdi, rax
test rax, rax
je 0x1400d97d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ba4a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d2e14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dc41c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400dc44e
call fcn.1400c8ec8
mov dword [rax], 0x16
call fcn.1400d2f2c
jmp 0x1400dc56d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400dc56d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400dc56d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400dc47d
lock or dword [rcx + 0x14], 0x10
jmp 0x1400dc56d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400dc491
call fcn.1400e19a4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400d4cbc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400dc9ac
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400dc55b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400dc526
mov rcx, rsi
call fcn.1400d4cbc
cmp eax, edi
je 0x1400dc511
mov rcx, rsi
call fcn.1400d4cbc
cmp eax, 0xfffffffe
je 0x1400dc511
mov rcx, rsi
call fcn.1400d4cbc
movsxd rbx, eax
lea r14, [0x14012fbd0]
mov rcx, rsi
sar rbx, 6
call fcn.1400d4cbc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400dc518
lea rdx, [0x14012c2d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400dc526
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400dc54a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400dc54a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400dc54a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400dc570
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400dd1e8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14012fbd0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400dd246
cmp word [rdx], r12w
jne 0x1400dd246
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400dd24c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400dd3a7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400dd382
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400dd285
mov rcx, r9
jmp 0x1400dd2a8
cmp r9, rdx
jae 0x1400dd2bf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400dd269
jmp 0x1400dd3a7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dd37c
cmp dword [rsp + 0x80], edi
je 0x1400dd37c
mov rdx, r14
lea r11, [0x14012fbd0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400dd355
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400dd328
mov word [rbx], r12w
jmp 0x1400dd3a3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400dd331
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400dd3a3
cmp word [rsp + 0x70], r12w
jne 0x1400dd362
cmp rbx, rsi
je 0x1400dd322
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e4e60
cmp word [rsp + 0x70], r12w
je 0x1400dd3a7
mov word [rbx], r13w
jmp 0x1400dd3a3
lea r11, [0x14012fbd0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400dd39f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400dd3a7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e3fe0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c14fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e406a
cmp byte [rbp - 0x21], r15b
je 0x1400e4065
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e40a0
call fcn.1400d0a28
test eax, eax
jne 0x1400e408c
cmp byte [rbp - 0x21], r15b
je 0x1400e4084
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e40a0
cmp byte [rbp - 0x21], r15b
je 0x1400e409d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400cecf4
test eax, eax
jne 0x1400e4140
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c14fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e40df
cmp byte [rbp - 0x21], r15b
je 0x1400e4114
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e4114
call fcn.1400d0a28
test eax, eax
jne 0x1400e4100
cmp byte [rbp - 0x21], r15b
je 0x1400e40f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e4114
cmp byte [rbp - 0x21], r15b
je 0x1400e4111
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400cecf4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e4140
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e4143
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e4151
mov rcx, rdi
call fcn.1400d2e14
cmp byte [rbp + 0x3f], r15b
je 0x1400e4160
mov rcx, qword [rbp + 0x27]
call fcn.1400d2e14
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400e6960
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e4e60
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e4e60
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e6ab0
cmp rax, 0xffffffffffffffff
je 0x1400e6ab0
xor edi, edi
test rbp, rbp
jle 0x1400e6a5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d503c
mov rbx, rax
test rax, rax
jne 0x1400e69e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e6a51
mov edx, 0x8000
mov ecx, r14d
call fcn.1400c9c68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400db7c8
cmp eax, 0xffffffff
je 0x1400e6a31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e69f8
mov edx, r15d
mov ecx, r14d
call fcn.1400c9c68
jmp 0x1400e6a51
cmp byte [rsi + 0x38], dil
je 0x1400e6a48
cmp dword [rsi + 0x34], 5
jne 0x1400e6a48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400e6a51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d2e14
jmp 0x1400e6ac4
jns 0x1400e6ac4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e4e60
cmp rax, 0xffffffffffffffff
jne 0x1400e6a7c
cmp byte [rsi + 0x30], dil
je 0x1400e6ac4
mov edi, dword [rsi + 0x2c]
jmp 0x1400e6ac4
mov ecx, r14d
call fcn.1400da180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e6ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400e6ac4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e6abd
mov eax, dword [rsi + 0x2c]
jmp 0x1400e6ac2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e4e60
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140003a30
Capabilities:
Receive data
Receive data on socket

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, 0x30
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140003a9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x140003a9a
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 1
call fcn.14001a370
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
js 0x140003a63
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140003ac0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea edi, [rcx + 1]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], r8d
lea rdx, [rsp + 0x40]
mov ecx, edi
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140003b62
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x140003b62
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001a370
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
js 0x140003b20
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400288d0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140003b90
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140003bc8
cmp ax, 0x17
jne 0x140003c3d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140003c3d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140003c22
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140015f80
mov al, 1
jmp 0x140003c3f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400288d0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400093f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdx, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x20]
xor r9d, r9d
mov r8, qword [rcx + 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea ebx, [rdx + 1]
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x44], r8d
mov ecx, ebx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x1400094a5
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1400094ef
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001a370
lea rax, [rsp + 0x40]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x140009460
test rcx, rcx
je 0x1400094ef
mov rbx, qword [rdi + 8]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.140003ac0
test rax, rax
je 0x1400094eb
jns 0x1400094cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x1400094ef
mov r9d, 2
lea rdx, [rsp + 0x38]
mov r8d, 1
mov rcx, rbx
call fcn.140003a30
test rax, rax
jle 0x1400094ef
mov al, 1
jmp 0x1400094f1
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400288d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140009650
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9, qword [rcx + 8]
mov rbp, r8
mov rax, qword [rcx + 0x20]
lea r8, [rsp + 0x50]
mov r10, qword [rcx + 0x28]
mov rsi, rdx
mov dword [rsp + 0x48], eax
mov rdi, rcx
lea ebx, [r9 + 1]
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], 1
mov ecx, ebx
mov dword [rsp + 0x4c], r10d
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x140009715
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1400097bc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001a370
lea rax, [rsp + 0x48]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x1400096d0
test rcx, rcx
je 0x1400097bc
mov rbx, qword [rdi + 8]
xor r8d, r8d
mov rcx, rbx
xor edx, edx
call fcn.140003ac0
test rax, rax
je 0x14000975f
jns 0x140009741
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x1400097bc
mov r9d, 2
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rcx, rbx
call fcn.140003a30
test rax, rax
jle 0x1400097bc
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov rcx, rdi
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1400097b7
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1400097b7
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.14001a370
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
js 0x140009780
mov rax, rbx
jmp 0x1400097c3
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400288d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400098c9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140003b90
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400288d0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140014590
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400145b1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400145de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400145e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014639
test ecx, ecx
jle 0x140014619
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140014639
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140014639
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret