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

Disassembly:
jmp 0x1400235a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400235c0
xor al, al
jmp 0x140023641
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400235d3
xor al, al
jmp 0x140023641
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400235fd
xor al, al
jmp 0x140023641
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140023611
xor al, al
jmp 0x140023641
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140023623
xor al, al
jmp 0x140023641
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002363f
xor al, al
jmp 0x140023641
mov al, 1
add rsp, 0x38
ret
Function at 0x140011951
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001baf0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003b0f5]
call fcn.14001196a
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001bb57
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001bb5e
mov al, 1
jmp 0x14001bcae
call fcn.140011294
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011294
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001179e
movzx eax, al
test eax, eax
je 0x14001bbaf
xor al, al
jmp 0x14001bcae
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001bc14
cmp dword [rbp + 0x154], 1
je 0x14001bc1f
cmp dword [rbp + 0x154], 3
je 0x14001bc9d
jmp 0x14001bcac
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001bc6f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001bc6f
xor al, al
jmp 0x14001bcae
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001bc8a
mov dword [rbp + 0x154], 1
jmp 0x14001bc94
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001bcae
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001bcae
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002c9b0]
call fcn.1400117ee
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011488
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140022390
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400119bf
movzx eax, al
test eax, eax
jne 0x1400223b0
mov ecx, 7
call fcn.140011807
nop
mov byte [rsp + 0x20], 0
call fcn.140011843
mov byte [rsp + 0x21], al
cmp dword [0x140033db0], 1
jne 0x1400223d4
mov ecx, 7
call fcn.140011807
nop
jmp 0x14002242c
cmp dword [0x140033db0], 0
jne 0x140022427
mov dword [0x140033db0], 1
lea rdx, [0x14002b880]
lea rcx, [0x14002b550]
call fcn.140011465
test eax, eax
je 0x140022408
mov eax, 0xff
jmp 0x140022531
lea rdx, [0x14002b440]
lea rcx, [section..rdata]
call fcn.14001182f
mov dword [0x140033db0], 2
jmp 0x14002242c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400117da
call fcn.1400116fe
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140022489
mov rcx, qword [rsp + 0x30]
call fcn.14001138e
movzx eax, al
test eax, eax
je 0x140022489
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003c020]
nop
call fcn.140011776
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400224bd
mov rcx, qword [rsp + 0x38]
call fcn.14001138e
movzx eax, al
test eax, eax
je 0x1400224bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001192e
nop
call fcn.1400225a0
mov dword [rsp + 0x28], eax
call fcn.1400116c2
movzx eax, al
test eax, eax
jne 0x1400224dc
mov ecx, dword [rsp + 0x28]
call fcn.1400110af
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400224eb
call fcn.140011942
nop
xor edx, edx
mov cl, 1
call fcn.14001135c
mov eax, dword [rsp + 0x28]
jmp 0x140022531
add rsp, 0x68
ret
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140013be0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400124a0
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250f4]
call fcn.1400113f7
nop
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x144
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400124fb
lea rdx, str.Memory_allocation_failed__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011087
nop
mov eax, 0xffffffff
jmp 0x140012554
mov r8d, 0x144
lea rdx, section..data
mov rcx, qword [rbp + 8]
call fcn.140011208
nop
mov edx, 0x144
mov rcx, qword [rbp + 8]
call fcn.140012190
nop
lea rcx, str.Done_dcd__n
call fcn.1400111ea
nop
call qword [rbp + 8]
nop
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, str.Done__n
call fcn.1400111ea
nop
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400112e4
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f50
xor al, al
jmp 0x140014fd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f63
xor al, al
jmp 0x140014fd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014f8d
xor al, al
jmp 0x140014fd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014fa1
xor al, al
jmp 0x140014fd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014fb3
xor al, al
jmp 0x140014fd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014fcf
xor al, al
jmp 0x140014fd1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012e20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001141f
movzx eax, al
test eax, eax
jne 0x140012e40
mov ecx, 7
call fcn.140011389
nop
mov byte [rsp + 0x20], 0
call fcn.14001139d
mov byte [rsp + 0x21], al
cmp dword [0x14001fa38], 1
jne 0x140012e64
mov ecx, 7
call fcn.140011389
nop
jmp 0x140012ebc
cmp dword [0x14001fa38], 0
jne 0x140012eb7
mov dword [0x14001fa38], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111ef
test eax, eax
je 0x140012e98
mov eax, 0xff
jmp 0x140012fc1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011393
mov dword [0x14001fa38], 2
jmp 0x140012ebc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011375
call fcn.140011307
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012f19
mov rcx, qword [rsp + 0x30]
call fcn.140011195
movzx eax, al
test eax, eax
je 0x140012f19
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.140011339
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012f4d
mov rcx, qword [rsp + 0x38]
call fcn.140011195
movzx eax, al
test eax, eax
je 0x140012f4d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113d9
nop
call fcn.140013070
mov dword [rsp + 0x28], eax
call fcn.1400112e4
movzx eax, al
test eax, eax
jne 0x140012f6c
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012f7b
call fcn.1400113e3
nop
xor edx, edx
mov cl, 1
call fcn.140011181
mov eax, dword [rsp + 0x28]
jmp 0x140012fc1
add rsp, 0x68
ret
Function at 0x1400789f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140078a29
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400d6db0

Function at 0x140078a40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140078a70
mov r9, qword [rax + 8]
jmp 0x140078a73
mov r9, r8
cmp rdi, 0x3fc
ja 0x140078a97
test r9, r9
je 0x140078a97
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140078aa7
inc r8d
inc rax
cmp rax, 2
jl 0x140078a84
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140078e20
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
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 [0x140ddf124], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140078e7d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140009110]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x1400798d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140079916
call fcn.140079a90
xorps xmm0, xmm0
mov dword [rsp + 0x30], ebx
movups xmmword [rsi], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rsi + 0x10], xmm0
xor eax, eax
jmp 0x140079a19
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
je 0x1400799d4
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140079e00
test rax, rax
jne 0x1400799b0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400799fe
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
add rdi, 8
sub rsi, 1
jne 0x1400799f0
lea rcx, [rsp + 0x98]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
mov rax, rbx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140079b70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140ddf1a4]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079cb0
cmp qword [rax], rbx
je 0x140079bac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140079b98
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140079cb0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140079c70
cmp ecx, 1
jne 0x140079cb0
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.boost::asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x1404605b0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x140079c96
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret
Function at 0x1400d3d10
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x140ddf190], eax
inc eax
cmp eax, 1
jne 0x1400d3d5d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140ddf194], eax
test bl, bl
je 0x1400d3de6
xor ebx, ebx
lock xadd dword [0x140ddf194], ebx
test ebx, ebx
je 0x1400d3de6
mov rax, qword [0x14048a968]
movabs rcx, 0x8fafd21e25c5e09b
mov qword [rsp + 0x200], rsi
lea rsi, [0x14048a960]
mov dword [rsp + 0x24], 0
cmp rax, rcx
je 0x1400d3dc0
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x1400d3dc0
mov rax, qword [0x14048a960]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400d3dc2
mov al, 1
movzx eax, al
add eax, 2
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x200]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], ebx
cmp eax, 1
je 0x1400d3e0a
test al, 1
jne 0x1400d3e0a
mov rax, rdi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14028bc60
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rdi
ret
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
call fcn.1400786b0
int3
Function at 0x1400d76c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r12
push r15
sub rsp, 0x30
mov rdi, r8
lea r12, [0x140de4240]
sub rdi, r12
mov r15, rcx
sar rdi, 2
test rdi, rdi
je 0x1400d78a4
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], rsi
sar rbx, 2
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
cmp rdi, 0x26f
jb 0x1400d7716
mov eax, listen
jmp 0x1400d7744
cmp rdi, 0x44
jb 0x1400d7723
mov eax, 7
jmp 0x1400d7744
cmp rdi, 0x27
jb 0x1400d7730
mov eax, 5
jmp 0x1400d7744
cmp rdi, 7
jb 0x1400d773d
mov eax, 3
jmp 0x1400d7744
lea rax, [rdi - 1]
shr rax, 1
mov rsi, rdi
lea r14, [rbx + 1]
sub rsi, rax
shr rsi, 1
lea r13, [rsi + rax]
cmp rdi, rbx
jbe 0x1400d775d
mov r14, rdi
mov r8, rdi
mov qword [rsp + 0x58], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
test r14, r14
je 0x1400d780a
xor edx, edx
lea rax, [rcx + rsi]
div rdi
mov r11d, dword [r12 + rdx*4]
lea r10, [r12 + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [r12 + rdx*4]
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
mov r8d, dword [r12 + rdx*4]
xor r8d, dword [rbp]
xor r8d, r11d
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x1400d77ce
mov rax, rbx
jmp 0x1400d77e2
cmp rcx, rbx
ja 0x1400d77df
mov rax, qword [r15]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x1400d77e2
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [r12 + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r14
jb 0x1400d7781
add r14, rdi
cmp rcx, r14
jae 0x1400d788b
inc rsi
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [rsi + rbp]
div rdi
mov r10d, dword [r12 + rdx*4]
lea r11, [r12 + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [r12 + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [r12 + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [r12 + rdx*4], r8d
mov dword [r12 + r9*4], r8d
cmp rax, r14
jb 0x1400d7820
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r12
pop rdi
ret
Function at 0x1400ff070
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400ff09f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400ff097
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400ff0e9
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ff0d8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400ff0d8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1400ff0f4
inc ecx
inc rax
cmp rax, 2
jl 0x1400ff0c6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401028f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rdi, rdx
xor esi, esi
mov rcx, qword [rdx + 0x18]
mov qword [rbp - 8], rcx
mov rax, qword [rdx + 0x28]
mov qword [rbp + 8], rax
mov rax, qword [rcx + 8]
add rdx, 8
lea rcx, [rbp - 0x18]
call rax
nop
mov rax, qword [rdi + 0x30]
mov qword [rbp + 0x10], rax
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140108f30
nop
mov rax, qword [rbp + 0x10]
mov rbx, qword [rax + 0x20]
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x18]
lea rcx, [rbp - 0x18]
call rdx
lea r8, [0x1403f7ec8]
mov rdx, rax
lea rcx, [rsp + 0x50]
call rbx
nop
mov rcx, qword [rsp + 0x60]
mov qword [rbp + 0x28], rcx
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x38], rax
lea rax, fcn.140009110
mov qword [rsp + 0x60], rax
lea rax, [0x1404048f8]
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x18]
call rax
mov qword [rsp + 0x68], rsi
mov rax, qword [rsp + 0x78]
mov qword [rbp + 0x40], rax
lea rax, [0x140403eb0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax]
lea rax, [fcn.140009110]
cmp rdx, rax
je 0x1401029f1
lea rcx, [rsp + 0x50]
call rdx
nop
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0x48]
call fcn.1400fdc50
mov rdi, rax
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140102a35
lea rcx, [0x14010b320]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rax
jmp 0x140102ac0
mov r14, qword [rcx + 0x10]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x80]
call fcn.140108f30
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140ddf1a4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140102a67
mov rsi, qword [rax + 8]
mov r8d, 0x78
mov rdx, rsi
call fcn.140100af0
mov rbx, rax
lea rcx, [rax + 8]
lea rdx, [rbp - 0x80]
call fcn.140108f30
lea rax, [0x14010bd90]
mov qword [rbx], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
lea rcx, [rbp - 0x78]
call rdx
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call r14
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140102ac0
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax]
lea rcx, [rbp + 0x48]
call rdx
nop
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
lea rcx, [rbp + 0x18]
call rdx
nop
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
lea rcx, [rbp + 0x88]
call rdx
nop
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
lea rcx, [rbp - 0x18]
call rdx
nop
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14028bc60
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret