joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cf0
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 dword [rax]

Function at 0x140001d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
test esi, esi
mov rbx, rcx
jle 0x140001e90
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001eb2
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e40
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400070a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001db8
mov rax, qword [0x1400070a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000247c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002473
test rsi, rsi
je 0x140002473
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002458
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400026b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000270d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002704
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000270f
add rax, 0x28
cmp rax, r9
jne 0x1400026f0
xor eax, eax
ret

Function at 0x140002710
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027a0
mov rdx, qword [0x140004480]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000278e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000278e
cmp word [rax + 0x18], 0x20b
jne 0x14000278e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002779
add rbx, 0x28
cmp rbx, rdi
je 0x1400027a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002770
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400027b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004480]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000284f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002858
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000284f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004480]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002890
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002898
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002890
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400028e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400028d7
test rcx, rcx
je 0x140002890
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400028c8
xor eax, eax
ret

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004480]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000290f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002918
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002950
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002958
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002950
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002950
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400029a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400029b0
add rdx, 0x28
cmp r9, rdx
jne 0x140002990
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400029c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004480]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400029e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400029f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400029e2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400029e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002a45
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002a58
add rdx, 0x28
cmp rdx, r10
jne 0x140002a30
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a67
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002a77
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a4e
test ecx, ecx
jg 0x140002a60
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1404697b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1404697bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404697cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404697b5
lea eax, [rcx + 1]
jmp 0x1404697db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404697ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404697d4
sub eax, 3
jb 0x14046980e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14046985d
sar eax, 1
movsxd rbp, eax
jb 0x140469844
jmp 0x14046981c
add ebx, ebx
jne 0x14046981a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140469844
inc ecx
add ebx, ebx
jne 0x14046982a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140469844
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14046983d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14046982c
add ecx, 2
jmp 0x140469849
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140469772
jmp 0x1404697bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2ba400
mov dl, 0x78
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1404698a9
cmp rsi, rcx
jae 0x1404698b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140469890
cmp al, 0x8f
ja 0x140469890
cmp byte [rsi - 2], 0xf
je 0x140469896
sub al, 0xe8
cmp al, 1
ja 0x14046987a
cmp rsi, rcx
jae 0x1404698b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140469880
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1404698b1
lodsb al, byte [rsi]
jmp 0x140469890
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x462000]
mov eax, dword [rdi]
or eax, eax
je 0x14046990e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x469058]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1404698be
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140469908
mov qword [rbx], rax
add rbx, 8
jmp 0x1404698de
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140469952
cmp al, 0xef
ja 0x14046993a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14046991a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140469929
mov eax, dword [rdi]
add rdi, 4
jmp 0x140469929
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1404699a6
sub rsp, 0xffffffffffffff80
jmp 0x14029d994
Function at 0x1400074e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x1400074f5
mov r8d, r8d
add rsp, 0x28
jmp fcn.140006c00
test r8d, r8d
jne 0x1400074ff
call fcn.140006b90
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov eax, 0xfffffffe
test rcx, rcx
je 0x140007b74
cmp qword [rcx + 0x30], 0
je 0x140007b74
cmp qword [rcx + 0x38], 0
je 0x140007b74
mov rsi, qword [rcx + 0x28]
test rsi, rsi
je 0x140007b74
cmp qword [rsi], rcx
je 0x140007b83
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, r8d
mov r8d, dword [rsi + 8]
lea r9d, [r8 - 0x39]
cmp r9d, 0x38
ja 0x140007bfc
movabs r10, 0x100400400011001
bt r10, r9
jae 0x140007bfc
test rdx, rdx
je 0x140007b74
mov ebp, dword [rsi + 0x2c]
cmp ebp, 2
je 0x140007b74
cmp ebp, 1
jne 0x140007c11
cmp r8d, 0x2a
jne 0x140007b74
cmp dword [rsi + 0xec], 0
jne 0x140007b74
mov eax, dword [rcx + 0x4c]
mov r14, rcx
mov ecx, eax
mov rbx, rdx
mov r8d, edi
call fcn.140006b80
mov rdx, rbx
mov rcx, r14
mov dword [r14 + 0x4c], eax
mov dword [rsi + 0x2c], 0
mov eax, dword [rsi + 0x94]
cmp eax, edi
jbe 0x140007c99
jmp 0x140007ca0
cmp r8d, 0x29a
je 0x140007ba4
cmp r8d, 0x2a
jne 0x140007b74
jmp 0x140007ba4
cmp dword [rsi + 0xec], 0
jne 0x140007b74
mov dword [rsi + 0x2c], 0
mov eax, dword [rsi + 0x94]
cmp eax, edi
ja 0x140007ca0
test ebp, ebp
jne 0x140007c99
mov rax, qword [rsi + 0xb8]
mov r8d, dword [rsi + 0xc4]
dec r8d
mov word [rax + r8*2], 0
mov rax, qword [rsi + 0xb8]
mov r8d, dword [rsi + 0xc4]
dec r8d
add r8, r8
mov rbx, rcx
mov rcx, rax
mov r14, rdx
xor edx, edx
call fcn.140260660
mov rdx, r14
mov rcx, rbx
mov dword [rsi + 0xe4], 0
mov dword [rsi + 0xd4], 0
mov dword [rsi + 0x1758], 0
mov eax, dword [rsi + 0x94]
sub edi, eax
add rdx, rdi
mov edi, eax
mov ebx, dword [rcx + 8]
mov r14, qword [rcx]
mov dword [rcx + 8], edi
mov r15, rcx
mov qword [rcx], rdx
mov rcx, rsi
call fcn.140007dd0
mov r12d, dword [rsi + 0xec]
cmp r12d, 3
jae 0x140007d3b
mov eax, dword [rsi + 0xe4]
add eax, r12d
mov dword [rsi + 0xe4], eax
mov dword [rsi + 0xd4], eax
mov dword [rsi + 0x1758], r12d
movabs rax, 0x200000000
mov qword [rsi + 0xec], rax
mov dword [rsi + 0xd8], 2
mov dword [rsi + 0xe0], 0
mov qword [r15], r14
mov dword [r15 + 8], ebx
mov dword [rsi + 0x2c], ebp
xor eax, eax
jmp 0x140007b74
mov dword [rsi + 0xe4], edi
mov dword [rsi + 0xec], 2
mov rcx, rsi
call fcn.140007dd0
mov r12d, dword [rsi + 0xec]
cmp r12d, 2
jbe 0x140007cc4
mov edi, dword [rsi + 0xe4]
add r12d, 0xfffffffe
jmp 0x140007db7
mov eax, dword [rsi + 0xc0]
movzx ecx, byte [rsi + 0xd0]
shl eax, cl
movzx ecx, di
mov rdx, qword [rsi + 0xa0]
mov r8, qword [rsi + 0xb0]
movzx edx, byte [rdx + rcx + 2]
xor edx, eax
and edx, dword [rsi + 0xcc]
mov dword [rsi + 0xc0], edx
mov rax, qword [rsi + 0xb8]
movzx eax, word [rax + rdx*2]
mov edx, dword [rsi + 0x9c]
and edx, ecx
mov word [r8 + rdx*2], ax
mov rax, qword [rsi + 0xb8]
mov edx, dword [rsi + 0xc0]
mov word [rax + rdx*2], cx
inc edi
dec r12d
je 0x140007d16
cmp dword [0x1403a34d8], 0
je 0x140007d50
mov rcx, rsi
mov edx, edi
call fcn.140009e90
jmp 0x140007dac
Function at 0x14000e8b0
Capabilities:
Create tcp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rcx
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rsi, [rcx + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_EnterCriticalSection
mov ecx, 0x180
call fcn.140023d60
mov rbx, rax
lea r14, [rax + 0x58]
lea rcx, [rax + 0x48]
movaps xmm0, xmmword [0x14029eb70]
movups xmmword [rax + 0x28], xmm0
mov r8d, 0x130
xor edx, edx
call fcn.140260660
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x20], rax
mov r10, qword [rdi + 0xd0]
xorps xmm0, xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [rdi + 0xa0]
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
mov rdx, rax
mov r8, r14
xor r9d, r9d
call r10
test eax, eax
jne 0x14000e972
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14000e99c
inc dword [rdi + 0xe0]
mov dil, 1
mov rcx, rsi
call fcn.1400edfb0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14025cd50
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call fcn.140265df4
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000e97b
Function at 0x14000e9d0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdi, [rcx + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_EnterCriticalSection
test byte [rbx + 0x9c], 1
jne 0x14000ea3c
mov rax, qword [rbx + 0xa0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000ea78
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
dec dword [rbx + 0xe0]
mov rcx, rsi
call fcn.140265df4
mov rcx, rdi
call fcn.1400edfb0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14025cd50
nop
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsi + 0x58]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x90
mov r9d, 0x90
call qword [rbx + 0xd8]
mov ecx, 0x80
call fcn.14025cfd8
mov r12, rax
mov rdx, qword [rsp + 0x50]
movsxd r8, dword [rsp + 0x4c]
mov rcx, rax
call fcn.14025fe70
mov ecx, 0xe8
call fcn.14025cfd8
mov r15, rax
mov qword [rsp + 0x40], r12
mov rdx, qword [rsi + 0x20]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14000eb60
mov byte [r15 + 0xd8], 1
lock inc qword [r15 + 8]
mov rcx, qword [r15 + 0x58]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [r15 + 0x60], rax
cmp qword [rbx + 0xe8], 0
je 0x14000eb38
mov rax, qword [rbx + 0xf0]
mov qword [rax + 0xd0], r15
jmp 0x14000eb3f
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
inc dword [rbx + 0xf8]
jmp 0x14000ea46

Function at 0x14000fc20
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x14000fc35
mov rcx, rdx
call fcn.140265df4
mov rcx, qword [rsi + 0xa0]
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rsi + 0x9c], 2
jne 0x14000fc79
lea rcx, [rsi + 0x10]
mov rax, qword [rsi + 0x10]
call qword [rax + 0x40]
test al, 1
je 0x14000fc79
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
test byte [rsi + 0x9c], 4
jne 0x14000fc94
mov rax, qword [rsi + 0x10]
add rsi, 0x10
mov rcx, rsi
call qword [rax + 0x40]
test al, 2
jne 0x14000fc9a
add rsp, 0x30
pop rsi
ret
mov rax, qword [rsi]
mov edx, 2
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, rax
mov edx, 2
add rsp, 0x30
pop rsi
jmp fcn.1400e2750
Function at 0x1400135c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001360e
movsxd rcx, eax
inc eax
lea rcx, [rcx*2 + 2]
mov esi, eax
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov ecx, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ee270
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140013620
Capabilities:
Set current directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rcx, rdx
call fcn.1400eb110
mov rsi, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rbx, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, rax
mov r9d, 0xffffffff
call rbx
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.140023d60
mov rdi, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.140265df4
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140013c50
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14025cd50
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x140013c90
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x3c], 0x200
lea r14, [rsp + 0x3c]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.ProductName
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013d22
xor edi, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14025cd50
mov rax, rdi
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee270
mov rsi, rax
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentMajorVersionNumber
mov rcx, 0xffffffff80000002
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013dd7
mov dword [rsp + 0x3c], 0x200
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentVersion
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140013e17
lea rcx, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee270
jmp 0x140013e38
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentMinorVersionNumber
mov rcx, 0xffffffff80000002
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140013e23
xor ebx, ebx
test rbx, rbx
jne 0x140013e44
jmp 0x140013cfc
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea rcx, str._d._d
call fcn.1400e2d90
mov rbx, rax
test rbx, rbx
je 0x140013cfc
mov dword [rsp + 0x3c], 0x200
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea r8, str.CurrentBuild
mov rcx, 0xffffffff80000002
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140013cfc
lea rcx, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee270
mov r14, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r15, str.__s___s__Build__s_
xor ecx, ecx
xor edx, edx
mov r8, r15
mov r9, rsi
call fcn.140013ef0
inc eax
movsxd r12, eax
mov rcx, r12
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov rdi, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r12
mov r8, r15
mov r9, rsi
call fcn.140013ef0
jmp 0x140013cfe