joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000252a
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x20]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
lea rax, [rbp - 0x78]
mov r9, rax
mov r8d, 0
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x78]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x78]
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
movabs rax, 0x100000000000
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20007
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x34], 0x80001
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x808000c
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
nop
mov rax, qword [rbp + 0x20]
add rsp, 0xd0
pop rbx
pop rdi
pop rbp
ret
Function at 0x14000e170
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001a2b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a2b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14000e1e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1418d40b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000e390
mov rax, qword [0x1418d40b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000e22c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000e2b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000e210
mov rcx, r12
call fcn.14000ec90
mov rbp, rax
test rax, rax
je 0x14000e3ed
mov rax, qword [0x1418d40b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14000edc0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1418d40b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e3d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e2b0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e340
add dword [0x1418d40b4], 1
cmp ebx, 8
jae 0x14000e2e8
test bl, 4
jne 0x14000e3a0
test ebx, ebx
je 0x14000e2d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000e3c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14000e2d9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000e31a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1418d40b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e2b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e170
xor edi, edi
jmp 0x14000e237
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000e2d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000e2d9
mov rax, qword [0x1418d40b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14000e170
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e170
nop
nop dword [rax]
Function at 0x14000e900
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1418d4120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1418d4100]
test rbx, rbx
je 0x14000e954
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000e94b
test r12, r12
je 0x14000e94b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e930
lea rcx, [0x1418d4120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000ec90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1418ae920]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000ed09
mov rcx, r10
call fcn.14000eb60
test eax, eax
je 0x14000ed09
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14000ed06
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000ecfd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000ed09
add r8, 0x28
cmp r8, r9
jne 0x14000ece8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000f000
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1418d4108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000e990
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000e9e3
mov dword [rax], edi
lea rcx, [0x1418d4120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1418d4100]
lea rcx, [0x1418d4120]
mov qword [0x1418d4100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000e986
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000f030
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x14001a650
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x14001a660
xor eax, eax
ret
jmp 0x14000e970

Function at 0x14000f070
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000f0b0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000f0c8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400774d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400774f7
call rbp
cmp dword [rax], 4
jne 0x140077514
mov rcx, rdi
call fcn.1400772f0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400774f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140695058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406951df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140695089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069506f
add dl, dl
jne 0x140695096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406950f6
xor eax, eax
add dl, dl
jne 0x1406950a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406951ad
add dl, dl
jne 0x1406950b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406950c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406950d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406950dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406950ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069507e
mov eax, 1
add dl, dl
jne 0x140695106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140695113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406950fb
sub eax, ebx
mov ebx, 1
jne 0x14069514c
mov ecx, 1
add dl, dl
jne 0x14069512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140695123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140695168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140695175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069515d
cmp eax, 0x7d00
jae 0x14069519b
cmp eax, 0x500
jb 0x140695196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069507e
cmp eax, 0x7f
ja 0x14069519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406951d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14069507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140007b60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp], rax
mov rdi, qword [rbp + 0x60]
mov r15, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xc8
mov rbx, r9
call sub.VCRUNTIME140.dll_memset
cmp rdi, 0x48
jb 0x140007c43
mov qword [rsp + 0x150], rsi
movabs rax, 0xe38e38e38e38e38f
mul rdi
mov rsi, rdx
shr rsi, 6
nop word [rax + rax]
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
xor qword [rsp + 0x30], rax
mov rcx, r14
mov rax, qword [rbx + 8]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x58], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x60], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x68], rax
mov rax, qword [rbx + 0x40]
add rbx, 0x48
xor qword [rsp + 0x70], rax
call fcn.140007180
sub rdi, 0x48
sub rsi, 1
jne 0x140007bd0
mov rsi, qword [rsp + 0x150]
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
shr rdi, 3
mov rcx, r14
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x20]
xor qword [rsp + rdi*8 + 0x30], rax
movabs rax, 0x8000000000000000
xor qword [rsp + 0x70], rax
call fcn.140007180
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [r15], xmm0
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [r15 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [r15 + 0x20], xmm0
movups xmmword [r15 + 0x30], xmm1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14005f1d0
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x140024800
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140084828], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140024879
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005f1d0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.1400124c0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005f1d0
add rsp, 0x40
pop rbx
ret
Function at 0x140029200
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, r8
movzx ebx, dx
mov rsi, rcx
call qword [sym.imp.TT_SubSystem.dll_public:_void___cdecl_uint256_type::constructor_void____ptr64]
xorps xmm0, xmm0
movzx ecx, bx
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
call fcn.140029150
mov r8d, eax
xor edx, edx
mov rax, rdi
div r8
test eax, eax
je 0x1400292e3
mov qword [rsp + 0x160], rbp
xor edi, edi
movabs rbp, 0x8000000000000000
mov ebx, eax
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.TT_SubSystem.dll_public:_void___cdecl_uint256_type::constructor_void____ptr64]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0xa8
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [rsi]
xor qword [rsp + 0xd0], rbp
lea rcx, [rsp + 0x50]
movups xmm1, xmmword [rsi + 0x10]
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x40]
xor qword [rsp + 0x70], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
call fcn.140007cd0
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
sub rbx, 1
jne 0x140029270
mov rbp, qword [rsp + 0x160]
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14005f1d0
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
Function at 0x140048370
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x68], r9d
mov r13, r8
mov r15, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0x100]
mov r12, qword [rsp + 0x108]
mov qword [rsp + 0x40], rbp
mov rdx, rbp
mov ecx, 0xa8
call fcn.140025ea0
mov rbx, rax
mov rax, qword [r15 + 0x18]
xor r8d, r8d
mov r14d, r8d
mov ecx, r8d
test rax, rax
je 0x1400483e9
mov rcx, qword [r15 + 0x10]
mov r14, rax
lock inc dword [rax + 0xc]
movzx eax, byte [r15 + 8]
mov qword [rbx + 0x20], r8
lea rdx, [0x140049830]
mov qword [rbx + 0x28], rdx
mov qword [rbx], r8
mov qword [rbx + 8], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
mov dword [rbx + 0x30], r8d
mov byte [rbx + 0x38], al
mov qword [rbx + 0x40], r8
mov qword [rbx + 0x48], r8
test r14, r14
je 0x14004842d
mov qword [rbx + 0x40], rcx
mov qword [rbx + 0x48], r14
lock inc dword [r14 + 0xc]
movups xmm0, xmmword [r13]
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], r8
mov qword [rbx + 0x68], r8
mov rax, qword [rbp]
mov qword [rbx + 0x60], rax
mov rax, qword [rbp + 8]
mov qword [rbx + 0x68], rax
mov qword [rbp], r8
mov qword [rbp + 8], r8
lea rcx, [rbx + 0x70]
mov r9, r12
call fcn.140023080
test r14, r14
je 0x140048480
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140048480
mov rax, qword [r14]
mov rcx, r14
call qword [rax + ioctlsocket]
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x58], xmm0
movq qword [rsp + 0x88], xmm0
movq xmm0, qword [r13 + 8]
movd dword [rsp + 0x80], xmm0
mov rax, qword [r13 + 8]
mov qword [rsp + 0x90], rax
test byte [r15 + 8], 0x10
je 0x1400484db
test rax, rax
jne 0x1400484db
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14004be20
xor ebp, ebp
jmp 0x14004858f
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x140048508
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14004be20
xor ebp, ebp
jmp 0x14004858f
xor ebp, ebp
mov dword [rsp + 0x70], ebp
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8d, [rbp + 1]
lea rdx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x140048555
mov eax, 0x2746
jmp 0x140048562
mov ecx, 0x274d
cmp eax, 0x4d2
cmove eax, ecx
test edi, edi
je 0x140048583
cmp eax, 0x3e5
je 0x140048583
mov r9d, dword [rsp + 0x70]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14004be20
jmp 0x14004858f
mov rdx, rbx
mov rcx, qword [rsi + 8]
call fcn.14004beb0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
lea rcx, [rsp + 0x40]
call fcn.140049770
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14005f1d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004b210
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x14004b260
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.14004be20
jmp 0x14004b2f8
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14004b280
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.14004be20
jmp 0x14004b2f8
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14004b2ec
cmp eax, 0x3e5
je 0x14004b2ec
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14004be20
jmp 0x14004b2f8
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14004beb0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005f1d0
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140051020
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x50]
lea r9, [rbp - 0x18]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov dword [rbp - 0x18], r15d
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140082908]
lea r14, [0x140082900]
movabs r12, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r15d
add rdx, r12
mov edi, eax
cmp rdx, 1
jbe 0x1400510b3
mov rcx, qword [0x140082900]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, r14
call r8
jmp 0x1400510b8
test edi, edi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add rax, 2
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x1400510f6
mov eax, dword [rbx]
mov r8d, eax
jmp 0x140051126
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x140051165
mov rcx, qword [0x140082908]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x14005115a
mov rax, qword [0x140082900]
mov edx, 0x2746
mov rcx, r14
call qword [rax + 0x30]
mov dword [rbp - 0x30], 0x2746
jmp 0x1400511d2
mov al, 1
mov dword [rbp - 0x30], 0x2746
jmp 0x1400511d2
cmp r9, 1
jne 0x140051198
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x1400511f2
mov rcx, qword [0x140082908]
add rcx, r12
mov dword [rbp - 0x2c], r15d
cmp rcx, 1
jbe 0x1400511c9
mov rax, qword [0x140082900]
mov edx, 0x274d
mov rcx, r14
call qword [rax + 0x30]
jmp 0x1400511cb
mov al, 1
mov dword [rbp - 0x30], 0x274d
movzx eax, al
mov qword [rbp - 0x28], r14
add rax, 2
movups xmm0, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x1400511fd
mov eax, 0xffffffff
jmp 0x140051214
mov eax, dword [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbp - 0x20], r15
movsd xmm0, qword [rbp - 0x20]
movsd qword [rbx + 0x10], xmm0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005f1d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14005e748
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005e782
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005e787
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14005e7d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140065b50]
cmp byte [rcx + rax], 0
je 0x14005e7d0
dec r8
sub rdx, 1
jne 0x14005e7b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14005fe98
Capabilities:
Parse pe header

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