joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001220
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x48
movabs rax, 0x7f83a820acef806b
mov qword [rsp + 0x20], rax
movabs rax, 0xc49c24a54c4a7151
mov qword [rsp + 0x28], rax
movabs rax, 0x4aae31a6e1c4b1c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x20]
rol rax, 0x1d
movabs rcx, 0x707547566b536d4c
sub rax, rcx
xor rax, rcx
rol rax, 0x31
sub rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
rol rax, 0x1d
movabs rcx, 0x7a31416b36364872
sub rax, rcx
xor rax, rcx
rol rax, 0x31
sub rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
rol rax, 0x1d
movabs rcx, 0x63483766634a6a48
sub rax, rcx
xor rax, rcx
rol rax, 0x31
sub rax, rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x9de3012e02f1f47e
lea rsi, [rsp + 0x38]
mov qword [rsi], rax
movabs rax, 0x12ae1858e598bbe1
mov qword [rsi + 8], rax
mov rax, qword [rsi]
rol rax, 0x20
movabs rcx, 0x4b636d6933533479
sub rax, rcx
xor rax, rcx
rol rax, 0x34
sub rax, rcx
mov qword [rsi], rax
mov rax, qword [rsi + 8]
rol rax, 0x20
movabs rcx, 0x794151634e793872
sub rax, rcx
xor rax, rcx
rol rax, 0x34
sub rax, rcx
mov qword [rsi + 8], rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rdi, qword [rdi]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000133b
mov rdx, rsi
call fcn.140001390
test rax, rax
je 0x14000133b
mov edx, 0x1000
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rax
mov rsi, rax
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400011b7
mov rcx, rsi
call section..text
int3
Function at 0x140001390
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x140001490
movsxd r8, dword [rcx + 0x3c]
cmp dword [r8 + rcx], 0x4550
jne 0x140001490
mov r9d, dword [rcx + r8 + 0x88]
test r9, r9
je 0x140001490
mov r10d, dword [r9 + rcx + 0x18]
test r10, r10
je 0x140001490
mov esi, dword [rcx + r9 + 0x20]
add rsi, rcx
xor eax, eax
xor r11d, r11d
nop word cs:[rax + rax]
mov edi, dword [rsi + r11*4]
add rdi, rcx
xor ebx, ebx
nop dword [rax]
movzx ebp, byte [rdi + rbx]
movzx r14d, byte [rdx + rbx]
test bpl, bpl
je 0x140001416
inc rbx
cmp bpl, r14b
je 0x140001400
cmp bpl, r14b
je 0x140001425
inc r11
cmp r11, r10
jne 0x1400013f0
jmp 0x140001492
mov eax, dword [rcx + r9 + 0x1c]
mov edx, dword [rcx + r9 + 0x24]
add rdx, rcx
movzx edx, word [rdx + r11*2]
add rax, rcx
mov eax, dword [rax + rdx*4]
cmp eax, r9d
jb 0x14000149d
add r9d, dword [rcx + r8 + 0x8c]
cmp eax, r9d
jae 0x14000149d
add rax, rcx
mov rsi, rax
nop word cs:[rax + rax]
cmp byte [rsi], 0x2e
lea rsi, [rsi + 1]
jne 0x140001460
mov rax, qword gs:[0x30]
test rax, rax
je 0x140001490
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001490
mov rdi, qword [rax + 0x18]
mov rbx, qword [rdi + 0x20]
add rdi, 0x20
xor eax, eax
jmp 0x1400014c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
add rax, rcx
jmp 0x140001492
mov r14, rcx
mov rcx, rdx
mov rdx, rsi
call fcn.140001390
mov rcx, r14
mov rdx, rax
xor eax, eax
test rdx, rdx
jne 0x1400014d5
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x140001492
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400014bd
cmp rdx, rcx
jne 0x1400014a2
jmp 0x1400014c0
mov rax, rdx
jmp 0x140001492

Function at 0x140001d88
Capabilities:
Parse pe header

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

Function at 0x140004aa8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004bf0
Function at 0x140004bf0
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004bf0
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 0x140004c5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c5f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004c5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004c5f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004c5f
cmp dword [rcx + 0x84], 0xe
jbe 0x140004c5f
cmp dword [rcx + 0xf8], 0
je 0x140004c5f
mov ecx, ebx
call fcn.140004b28
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.140004d84
nop
cmp dword [rbp + 0x20], 0
je 0x140004cad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004bbc
int3

Function at 0x140005fe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140006008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c35c
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 0x14000c38c
xor eax, eax
jmp 0x14000c44f
mov rbp, rbx
cmp word [rax], si
je 0x14000c3b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c398
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c394
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.14000c27c
movsxd r14, eax
test eax, eax
jne 0x14000c3ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c385
mov rcx, r14
call fcn.140008f58
mov rdi, rax
test rax, rax
jne 0x14000c408
xor ecx, ecx
call fcn.140007fc0
jmp 0x14000c3e4
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.14000c27c
test eax, eax
jne 0x14000c439
mov rcx, rdi
call fcn.140007fc0
jmp 0x14000c443
xor ecx, ecx
call fcn.140007fc0
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 0x140010418
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001042e
mov al, 1
jmp 0x14001048e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001043f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001048c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000c8b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001048c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001048c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001048c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001048e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140012910
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.14000746c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001299a
cmp byte [rbp - 0x21], r15b
je 0x140012995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400129d0
call fcn.1400064a4
test eax, eax
jne 0x1400129bc
cmp byte [rbp - 0x21], r15b
je 0x1400129b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400129d0
cmp byte [rbp - 0x21], r15b
je 0x1400129cd
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.14000b72c
test eax, eax
jne 0x140012a70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000746c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012a0f
cmp byte [rbp - 0x21], r15b
je 0x140012a44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012a44
call fcn.1400064a4
test eax, eax
jne 0x140012a30
cmp byte [rbp - 0x21], r15b
je 0x140012a29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012a44
cmp byte [rbp - 0x21], r15b
je 0x140012a41
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.14000b72c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012a70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012a73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012a81
mov rcx, rdi
call fcn.140007fc0
cmp byte [rbp + 0x3f], r15b
je 0x140012a90
mov rcx, qword [rbp + 0x27]
call fcn.140007fc0
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 0x140002880
Capabilities:
Enumerate processes

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, 0x290
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400029e6
xor r14d, r14d
lea rbp, str.GTAProcess
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002910
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140007bf0
mov rdi, qword [rsp + 0x38]
lea r10, [rsp + 0x20]
mov r11, qword [rsp + 0x20]
cmp rdi, 7
mov rax, qword [rsp + 0x30]
cmova r10, r11
cmp rax, 0xa
jb 0x140002984
lea r9, [rax - 9]
mov rbx, r10
lea r9, [r10 + r9*2]
nop word [rax + rax]
mov rax, r9
sub rax, rbx
sar rax, 1
je 0x140002984
nop dword [rax + rax]
cmp word [rbx], 0x47
je 0x140002a1f
add rbx, 2
sub rax, 1
jne 0x140002970
mov rbx, 0xffffffffffffffff
cmp rdi, 7
jbe 0x1400029c6
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x1400029be
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a5e
mov rcx, r11
call fcn.140056d7c
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140002a65
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400028f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140056ae0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rbx, rbx
je 0x140002984
mov r8, rbx
mov edx, 0xa
sub r8, rbp
mov rcx, rbp
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140002a55
add rcx, 2
sub rdx, 1
jne 0x140002a36
sub rbx, r10
sar rbx, 1
jmp 0x14000298b
add rbx, 2
jmp 0x140002960
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x1400029f1
Function at 0x140005bc0
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 0x140005be8
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 0x140005c0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005c10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140005c69
test ecx, ecx
jle 0x140005c49
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 0x140005c69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005c69
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

Function at 0x140005c90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005cb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005cc8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005ce4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005ce6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005d22
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005dbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005d5d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140005d9e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140005dbe
cmp rbx, rax
ja 0x140005d70
test rbx, rbx
je 0x140005dbe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140006220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000624d
xor eax, eax
jmp 0x1400063b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006287
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006287
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400063b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400063ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400062ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400062f5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400063b1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006364
sub eax, 1
je 0x140006364
cmp eax, 2
jne 0x1400063ac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400063b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006392
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400063ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400063b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140056ae0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006a90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140078180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006b63
cmp byte [rcx + 0x71], 0
je 0x140006b63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140006b5f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006b24
sub eax, 1
je 0x140006b28
cmp eax, 2
jne 0x140006b5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140056ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006b56
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140006b5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140006b0c
xor al, al
jmp 0x140006b0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140056ae0
add rsp, 0x60
pop rbx
ret
Function at 0x1400115b8
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140011604
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400115e0
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140011624
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14001166f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140011644
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140011688
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400116d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400116a8
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140011738
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140011714
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret