joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140197ad0]
mov dword [rax], 1
mov rax, qword [0x140197ae0]
mov dword [rax], 1
mov rax, qword [0x140197af0]
mov dword [rax], 1
mov rax, qword [0x140197a50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140109290
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140173150
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140109355
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140184050
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140109336
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140109328
test rsi, rsi
je 0x140184050
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401092e8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140109384
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1401093a0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14010945d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140184056
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14010943e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140109430
test rsi, rsi
je 0x140184056
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401093f0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140169420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401ae6e1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401694a8
lea rdx, [0x140193952]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140169510
mov rbx, qword [0x1401ae580]
jmp 0x140169465
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140169460
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401585f0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1401ae580], rax
mov ebx, dword [rax]
mov qword [0x1401ae580], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401ae580], rdx
call fcn.140168550
cmp eax, ebx
jne 0x140169578
mov byte [0x1401ae6e1], 1
jmp 0x14016943c
cmp byte [0x1401ae6e0], 0
jne 0x140169453
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1401af048], rax
call rbx
mov qword [0x1401af040], rax
call rbx
mov qword [0x1401af038], rax
call rbx
mov qword [0x1401af030], rax
call rbx
mov qword [0x1401af028], rax
call rbx
mov qword [0x1401af020], rax
call rbx
mov qword [0x1401af018], rax
call rbx
mov byte [0x1401ae6e0], 1
mov qword [0x1401af010], rax
jmp 0x140169453
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140171e30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401835c0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401835c0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140172b02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401af508]
test eax, eax
je 0x140172b9a
lea rax, [0x1401af4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401af510]
mov qword [rbp - 8], rax
jmp 0x140172b7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140172b72
cmp qword [rbp - 0x10], 0
je 0x140172b72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140172b38
lea rax, [0x1401af4e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140172b9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140172ca0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140172cc8
mov eax, 0
jmp 0x140172d16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140172cf1
mov eax, 0
jmp 0x140172d16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140172d11
mov eax, 0
jmp 0x140172d16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140172d1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140172d9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140172d91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140172d91
mov rax, qword [rbp - 8]
jmp 0x140172daf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140172d64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.This_is_the_original_function._n
call fcn.140001010
lea rbx, [0x140001070]
mov r8d, 0x30
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000110f
lea rcx, str.Failed_to_change_memory_protection._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011a0
add rsp, 0x60
pop rbx
ret
mov r8d, dword [rsp + 0x50]
lea rax, [0x140001080]
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub eax, ebx
sub eax, 5
mov byte [rbx], 0xe9
mov dword [rbx + 1], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001163
lea rcx, str.Failed_to_restore_memory_protection._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011a0
add rsp, 0x60
pop rbx
ret
lea rcx, str.This_is_the_original_function._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011a0
add rsp, 0x60
pop rbx
ret

Function at 0x140001a74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001abe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001abe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001abe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001abe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001abe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ac0
xor al, al
add rsp, 0x28
ret
Function at 0x1400115e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400116a5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400116a5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400116be
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140011695
cmp byte [rcx], 0x5c
jne 0x14001168e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14001168e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001167c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14001168b
test r8b, 0x10
jne 0x14001168e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14001168e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140015f10
test edi, edi
jne 0x140011600
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.1400132d0
int3
Function at 0x140016960
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x1400169c3
movzx r8d, byte [rsp + 0x80]
mov rdx, rax
call fcn.140004a10
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
lea r15, [rdi + 0x10]
lea r10, [rdi + 0x18]
mov qword [rsp + 0x88], r10
cmp qword [rbx + 0x18], 0xf
jbe 0x1400169eb
mov r12, qword [rbx]
mov rcx, r12
mov rbx, r12
jmp 0x1400169f1
mov r12, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140016b40
movzx ebx, byte [rsp + 0x80]
nop word [rax + rax]
shl r14d, 8
movzx eax, byte [r12]
add r14d, eax
mov qword [rsp + 0x98], r14
add r13d, 8
js 0x140016acd
movsxd r8, r14d
mov qword [rsp + 0x90], r8
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
mov rax, r8
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r14]
mov rcx, qword [r15]
mov rdx, qword [r10]
cmp rcx, rdx
jae 0x140016a9a
lea rax, [rcx + 1]
mov qword [r15], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140016a8f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140016abb
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1400048a0
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
sub rsi, 6
sub rbp, 1
jne 0x140016a60
mov r14, qword [rsp + 0x98]
inc r12
cmp r12, qword [rsp + 0x28]
jne 0x140016a10
cmp r13d, 0xfffffffa
jle 0x140016b40
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx r9d, byte [rax + r9]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140016b2a
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140016b1f
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140016b40
movzx r8d, byte [rsp + 0x80]
mov edx, 1
mov rcx, rdi
call fcn.1400048a0
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140016b93
movzx ebx, byte [rsp + 0x80]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140016b76
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140016b6e
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x140016b8a
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.1400048a0
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140016b51
mov rax, rdi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017c90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140017cc4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140017cb0
ret

Function at 0x140019850
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x140059100]
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 0x140019888
cmp ax, 0x17
jne 0x1400198fd
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 fcn.140040310
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 0x1400198fd
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400198e2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400167f0
mov al, 1
jmp 0x1400198ff
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140022c30
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140059100]
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 0x140019979
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140019850
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140022c30
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x14001a570
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140059100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14001a5ec
call fcn.1400289ac
cmp dword [rax], 4
je 0x14001a5c0
test ebx, ebx
jle 0x14001a601
mov rcx, qword [rdi + 8]
call fcn.14001a500
test al, al
je 0x14001a601
mov al, 1
jmp 0x14001a603
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140022c30
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001c950
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, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
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
jns 0x14001c9a3
call fcn.1400289ac
cmp dword [rax], 4
je 0x14001c980
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001dd80
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140059100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
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
jns 0x14001ddee
call fcn.1400289ac
cmp dword [rax], 4
je 0x14001ddc0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140022c30
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14001ec60
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140059100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14001ecec
call fcn.1400289ac
cmp dword [rax], 4
je 0x14001ecc0
test ebx, ebx
jle 0x14001ed29
mov rcx, qword [rdi + 8]
call fcn.14001a500
test al, al
je 0x14001ed29
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14001ed24
call fcn.1400289ac
cmp dword [rax], 4
je 0x14001ed01
mov rax, rbx
jmp 0x14001ed30
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140022c30
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140023364
Capabilities:
Parse pe header

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

Function at 0x14002e554
Capabilities:
Parse pe header

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

Function at 0x14002e758
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002e554