joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d400
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42d6a6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42d69a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x005b44d2], 0
jne 0x42d462
xor edx, edx
xor ebx, ebx
nop
jmp 0x42d4aa
xor edx, edx
jmp 0x42d48d
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.0041cda0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42d466
add rax, 0x1260
call fcn.0042d2c0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42d634
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax + rax]
cmp rsi, 0x1000
jb 0x42d4a7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.00411e40
test rax, rax
jne 0x42d502
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d4a7
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
nop
mov r8, rcx
shr rcx, 3
movzx r9d, byte [rsi + rcx]
and r8d, 7
mov rdx, rcx
mov rcx, r8
mov r10d, 1
shl r10d, cl
add rsi, rdx
test r10b, r9b
je 0x42d549
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d4a7
nop
lock or byte [rsi], r10b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42d68d
lea r10, [0x00586910]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x11440]
lea r11, [rcx + 0x11440]
add r9, r11
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42d5ce
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42d605
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1248]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1248], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d4a7
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42d685
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1270], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42d4a7
cmp rbx, 0x200
ja 0x42d678
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00422ec0
mov rax, qword [rsp + 0x48]
add rax, 0x1260
call fcn.0042d2c0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
call fcn.0045eec0
mov rax, r8
call fcn.0045ee40
mov rax, r8
mov ecx, 0x40
call fcn.0045ee60
mov edx, 0x200
nop
call fcn.0045eea0
nop
mov qword [rsp + 8], rax
call fcn.00461220
mov rax, qword [rsp + 8]
jmp fcn.0042d400
Function at 0x442340
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4424aa
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x442358
cmp edx, ecx
jne 0x442498
nop dword [rax]
test rsi, rsi
jne 0x442498
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4423b4
nop
call fcn.004607e0
xorps xmm15, xmm15
mov r14, qword [0x005b46a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00442240
mov rcx, qword [0x00561738]
mov rdx, qword [0x00561730]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x442493
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x442488
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x005621d0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x005621d0], rbx
nop
mov edx, 1
lea rsi, [0x005621d8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x442477
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004c08a3]
mov ebx, 0x28
call fcn.00433b80
mov rcx, rax
mov rax, rsi
call fcn.0045ee40
call fcn.004321a0
lea rax, [0x004bfbee]
mov ebx, 0x23
call fcn.00433b80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c7e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00442340
Function at 0x44d400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44d578
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44d43c
test r8b, r8b
jne 0x44d43c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44d44f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44d538
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44d526
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44d51c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44d4a3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44d4e6
mov eax, 1
cmp rax, rbx
ja 0x44d4d5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045ef00
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44d514
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44d4dd
mov r8d, eax
mov eax, r10d
jmp 0x44d4a8
mov rcx, rbx
call fcn.0045ee40
xor eax, eax
mov rcx, rax
call fcn.0045ee40
mov eax, r8d
mov rcx, rbx
call fcn.0045ef00
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44d56e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44d531
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44d455
mov eax, edx
mov rcx, rbx
call fcn.0045ee40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045ee40
nop
int3
Function at 0x454c40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x454cf9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00454d40]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045c6a0
xorps xmm15, xmm15
mov r14, qword [0x005b46a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045c7e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00454c40
Function at 0x45e880
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4027ef
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408e80
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c7e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027c0
cmp byte [0x005b44d1], 0
je 0x45e895
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b8e0
jmp 0x4027c0

Function at 0x45e8a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b4780]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b44d1], 0
je 0x45e8d5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005b4ac0]
aesenc xmm0, xmmword [0x005b4ad0]
aesenc xmm0, xmmword [0x005b4ae0]
movq rax, xmm0
ret
jmp 0x409080

Function at 0x45e8e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b4780]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b44d1], 0
je 0x45e916
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005b4ac0]
aesenc xmm0, xmmword [0x005b4ad0]
aesenc xmm0, xmmword [0x005b4ae0]
movq rax, xmm0
ret
jmp 0x4090e0

Function at 0x460300
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005b4a40]
mov qword [rsp + 8], rdx
lea r8d, [0x005b44e8]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045e7c0
add rsp, 0x30
ret

Function at 0x460840
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46086c
call fcn.0045e7c0
shl rcx, 3
add rcx, 0x1480
mov qword [0x005b46a8], rcx
ret
Function at 0x46b300
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x46b36b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x46b324
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x46b341
cmp rdx, 0
je 0x46b38d
test rdx, 0xf
je 0x46b31d
test rdx, 7
jne 0x46b341
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x46b31d
ret
Function at 0x4796c0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4796ff
jb 0x479714
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x479780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x479850
jb 0x4798af
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00479660
aeskeygenassist xmm1, xmm0, 1
call fcn.00479680
aeskeygenassist xmm1, xmm2, 2
call fcn.00479660
aeskeygenassist xmm1, xmm0, 2
call fcn.00479680
aeskeygenassist xmm1, xmm2, 4
call fcn.00479660
aeskeygenassist xmm1, xmm0, 4
call fcn.00479680
aeskeygenassist xmm1, xmm2, 8
call fcn.00479660
aeskeygenassist xmm1, xmm0, 8
call fcn.00479680
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00479660
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00479680
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00479660
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00479680
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00479660
jmp 0x47991d
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004795c0
aeskeygenassist xmm1, xmm2, 2
call fcn.00479620
aeskeygenassist xmm1, xmm2, 4
call fcn.004795c0
aeskeygenassist xmm1, xmm2, 8
call fcn.00479620
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004795c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00479620
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004795c0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00479620
jmp 0x47991d
aeskeygenassist xmm1, xmm0, 1
call fcn.00479580
aeskeygenassist xmm1, xmm0, 2
call fcn.00479580
aeskeygenassist xmm1, xmm0, 4
call fcn.00479580
aeskeygenassist xmm1, xmm0, 8
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00479580
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00479580
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x47992a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x140001000
Capabilities:
Execute command
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [0x140003300]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofed_n
call fcn.1400013d0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Closing_n
call fcn.1400013d0
mov ecx, 0x9c4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001f08
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov eax, 0x4148
call fcn.3bc1cefb0
sub rsp, rax
mov rbx, rcx
mov qword [rsp + 0x4178], rdx
mov qword [rsp + 0x4180], r8
mov qword [rsp + 0x4188], r9
lea rsi, [rsp + 0x130]
mov r8d, 0x4000
mov edx, 0
mov rcx, rsi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x4178]
mov qword [rsp + 0x4138], r9
mov r8, rbx
mov edx, 0x4000
mov rcx, rsi
call fcn.3bc1cf010
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0x3ffe
ja 0x3bc1c1350
cmp qword [0x3bc1dd148], 0
je 0x3bc1c1414
lock add dword [0x3bc1dd020], ebx
mov eax, dword [0x3bc1dd020]
cmp eax, 0x3200000
jg 0x3bc1c135c
lea rcx, [rsp + 0x130]
mov r9, qword [0x3bc1dd148]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [0x3bc1dd148]
call sub.msvcrt.dll_fflush
nop
add rsp, 0x4148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [0x3bc1dd158]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x3bc1dd020]
cmp eax, 0x3200000
jg 0x3bc1c1393
mov eax, dword [0x3bc1dd020]
add eax, ebx
mov dword [0x3bc1dd020], eax
mov rcx, qword [0x3bc1dd158]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3bc1c1327
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
lea rdi, [0x3bc1dd040]
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
lea rbp, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call main
mov byte [rsp + rsi + 0x20], 0x2e
mov byte [rsp + rsi + 0x21], 0x31
mov byte [rsp + rsi + 0x22], 0
mov r8d, 0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r8d, 0
mov edx, 0
mov rcx, qword [0x3bc1dd148]
call sub.msvcrt.dll_fseek
mov dword [0x3bc1dd020], 0
jmp 0x3bc1c1376
mov ecx, 2
call qword [fcn.3bc1d2410]
mov r9, rax
lea rcx, [rsp + 0x130]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x3bc1c1350
Function at 0x3bc1c2154
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 0x1006
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x3bc1c21e4
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x3bc1c21bf
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_timeo
lea rcx, str._E____s_____setsockopt_SO_SNDTIMEO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c21b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_timeo
lea rcx, str._E____s_____setsockopt_SO_RCVTIMEO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c21b5

Function at 0x3bc1c2209
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
test edx, edx
jne 0x3bc1c2246
mov eax, 1
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
cmp eax, 0xffffffff
je 0x3bc1c224d
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov eax, 0
jmp 0x3bc1c221e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.sock_set_blocking
lea rcx, str._E____s_____ioctlsocket_FIONBIO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c223c

Function at 0x3bc1c233a
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
test edx, edx
setne al
movzx eax, al
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 1
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x3bc1c2381
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_nodelay
lea rcx, str._E____s_____setsockopt_TCP_NODELAY__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c2377
Function at 0x3bc1c256c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov edi, ecx
mov esi, edx
mov ebp, r8d
mov r8d, 0
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x3bc1c276b
test ebp, ebp
je 0x3bc1c25c5
mov edx, 0
mov rcx, rax
call fcn.3bc1c2209
cmp eax, 0xffffffff
je 0x3bc1c261e
mov edx, ebp
mov rcx, rbx
call fcn.3bc1c2154
jmp 0x3bc1c25d2
mov edx, 1
mov rcx, rax
call fcn.3bc1c2209
cmp eax, 0xffffffff
jne 0x3bc1c2611
mov rcx, rbx
call fcn.3bc1c22d5
mov rbx, 0xffffffffffffffff
movzx r9d, si
mov r8d, edi
lea rdx, str.tcp_connect
lea rcx, str._E____s_____connection_failed_host_08x_port_u__n
call fcn.3bc1c1292
mov rax, rbx
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, 1
mov rcx, rbx
call fcn.3bc1c233a
cmp eax, 0xffffffff
je 0x3bc1c25d7
mov word [rsp + 0x40], 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x44], eax
movzx r12d, si
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x3bc1c267c
mov edx, 1
mov rcx, rbx
call fcn.3bc1c2209
cmp eax, 0xffffffff
jne 0x3bc1c278f
jmp 0x3bc1c25d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x3bc1c273e
test ebp, ebp
je 0x3bc1c25d7
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rbx
mov eax, ebp
imul rax, rax, 0x10624dd3
shr rax, 0x26
mov dword [rsp + 0x38], eax
imul eax, eax, 0x3e8
mov edx, ebp
sub edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x3c], eax
lea ecx, [rbx + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0
lea r8, [rsp + 0x50]
mov edx, 0
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x3bc1c2720
jns 0x3bc1c2661
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._E____s_____select_failed_sock0x_llx_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c25d7
mov r9d, ebp
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._W____s_____select_timedout_sock0x_llx_timeo_u__n
call fcn.3bc1c1292
jmp 0x3bc1c25d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, edi
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._E____s_____connect_failed_sock0x_llx_host_08x_port_u_WSAgle_d__n
call fcn.3bc1c1292
jmp 0x3bc1c25d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
movzx r9d, si
mov r8d, edi
lea rdx, str.tcp_connect
lea rcx, str._E____s_____socket_failed_host_08x_port_u_WSAgle_d__n
call fcn.3bc1c1292
cmp rbx, 0xffffffffffffffff
je 0x3bc1c25e6
movzx esi, si
mov dword [rsp + 0x20], esi
mov r9d, edi
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._I____s_____Done_sock0x_llx_host_08x_port_u__n
call fcn.3bc1c1292
jmp 0x3bc1c2600