joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059060
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 4
imul rax, rax, 1
lea rcx, [0x14041cc10]
cmp dword [rcx + rax], 0
jne 0x140059102
mov dword [rsp + 0x18], 0xedb88320
mov dword [rsp + 8], 0
jmp 0x1400590a4
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x100
jae 0x140059102
mov eax, dword [rsp + 8]
mov dword [rsp + 0xc], eax
mov dword [rsp + 0x10], 0
jmp 0x1400590ca
mov eax, dword [rsp + 0x10]
inc eax
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0x10], 8
jae 0x1400590ee
mov eax, dword [rsp + 0xc]
shr eax, 1
mov ecx, dword [rsp + 0xc]
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0xc], eax
jmp 0x1400590c0
mov eax, dword [rsp + 8]
lea rcx, [0x14041cc10]
mov edx, dword [rsp + 0xc]
mov dword [rcx + rax*4], edx
jmp 0x14005909a
mov eax, dword [rsp + 0x50]
not eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x48], 0
jle 0x14005917d
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x14], eax
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x14], 0
je 0x140059178
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
mov rdx, qword [rsp + 0x20]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
lea rdx, [0x14041cc10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x140059125
jmp 0x140059208
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
mov byte [rsp], al
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
movzx eax, byte [rsp]
test eax, eax
je 0x140059208
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x1400591dc
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400591dc
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400591dc
mov eax, dword [rsp + 0x50]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
lea rdx, [0x14041cc10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x14005917d
mov eax, dword [rsp + 4]
not eax
add rsp, 0x38
ret
Function at 0x14005d750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movss dword [rsp + 0x20], xmm3
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x60]
call fcn.140036b30
mov eax, dword [rsp + 0x88]
and eax, 1
test eax, eax
je 0x14005d82c
mov edx, dword [rsp + 0x90]
mov ecx, socket
call fcn.14005d430
movss dword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_send
call fcn.14005d430
movss xmm1, dword [rsp + 0x20]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x28], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_select
call fcn.14005d430
movss dword [rsp + 0x24], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, send
call fcn.14005d430
movss xmm1, dword [rsp + 0x24]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x28]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x44]
call fcn.140036b30
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140056040
mov eax, dword [rsp + 0x88]
and eax, 2
test eax, eax
je 0x14005d8d1
mov edx, dword [rsp + 0x90]
mov ecx, 7
call fcn.14005d430
movss dword [rsp + 0x2c], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 6
call fcn.14005d430
movss xmm1, dword [rsp + 0x2c]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x34], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 5
call fcn.14005d430
movss dword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 4
call fcn.14005d430
movss xmm1, dword [rsp + 0x30]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x34]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x4c]
call fcn.140036b30
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140056040
mov eax, dword [rsp + 0x88]
and eax, 4
test eax, eax
je 0x14005d976
mov edx, dword [rsp + 0x90]
mov ecx, ntohl
call fcn.14005d430
movss dword [rsp + 0x38], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 0xa
call fcn.14005d430
movss xmm1, dword [rsp + 0x38]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 9
call fcn.14005d430
movss dword [rsp + 0x3c], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 8
call fcn.14005d430
movss xmm1, dword [rsp + 0x3c]
subss xmm1, xmm0
movaps xmm0, xmm1
movss xmm1, dword [rsp + 0x40]
movaps xmm2, xmm1
movaps xmm1, xmm0
lea rcx, [rsp + 0x54]
call fcn.140036b30
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140056040
movss xmm0, dword [rsp + 0x98]
ucomiss xmm0, dword [0x14036f970]
jp 0x14005d98a
je 0x14005d9ae
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.14005d660
movzx eax, al
test eax, eax
je 0x14005d9ae
movss xmm1, dword [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.1400560e0
movss xmm0, dword [rsp + 0xa0]
ucomiss xmm0, dword [0x14036f970]
jp 0x14005d9c2
je 0x14005d9e6
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.14005d660
movzx eax, al
test eax, eax
je 0x14005d9e6
movss xmm1, dword [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.1400560e0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x78
ret
Function at 0x1400708e0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
cmp qword [rsp + 0x70], 0
je 0x14007090d
mov rax, qword [rsp + 0x70]
mov qword [rax], 0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140059e40
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140070930
xor eax, eax
jmp 0x140070a48
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.14029b250
test eax, eax
jne 0x14007096e
mov rcx, qword [rsp + 0x28]
call fcn.14029bac4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14007096e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.14029b250
test eax, eax
je 0x14007097f
mov rcx, qword [rsp + 0x28]
call fcn.14029b40c
xor eax, eax
jmp 0x140070a48
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14005cb40
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400709bf
mov rcx, qword [rsp + 0x28]
call fcn.14029b40c
xor eax, eax
jmp 0x140070a48
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14029bdbc
cmp rax, qword [rsp + 0x30]
je 0x1400709f7
mov rcx, qword [rsp + 0x28]
call fcn.14029b40c
mov rcx, qword [rsp + 0x38]
call fcn.14005cbe0
xor eax, eax
jmp 0x140070a48
cmp dword [rsp + 0x78], 0
jle 0x140070a24
movsxd rax, dword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x40]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x28]
call fcn.14029b40c
cmp qword [rsp + 0x70], 0
je 0x140070a43
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
add rsp, 0x50
pop rdi
ret
Function at 0x140070b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [0x14041c0d8]
mov rax, qword [rax + 0x1860]
mov qword [rsp + 0x40], rax
mov rax, qword [0x14041c0d8]
movss xmm0, dword [rax + 0x1868]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x40]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax]
movss dword [rsp + 0x38], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x50]
call fcn.140036b30
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rax
jae 0x140070c38
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x28], 0xa
jne 0x140070bfd
movss xmm1, dword [rsp + 0x20]
movss xmm0, dword [rsp + 0x50]
call fcn.14007a570
movss dword [rsp + 0x50], xmm0
movss xmm0, dword [rsp + 0x54]
addss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x54], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140070bfb
jmp 0x140070c38
jmp 0x140070b87
cmp dword [rsp + 0x28], 0xd
jne 0x140070c06
jmp 0x140070b87
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140055f00
mulss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x3c], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x20], xmm0
jmp 0x140070b87
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rsp + 0x50]
jbe 0x140070c51
movss xmm0, dword [rsp + 0x20]
movss dword [rsp + 0x50], xmm0
cmp qword [rsp + 0x90], 0
je 0x140070c89
movss xmm0, dword [rsp + 0x54]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140036b30
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x14036f970]
ja 0x140070ca9
movss xmm0, dword [rsp + 0x54]
ucomiss xmm0, dword [0x14036f970]
jp 0x140070cbb
jne 0x140070cbb
movss xmm0, dword [rsp + 0x54]
addss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x54], xmm0
cmp qword [rsp + 0x88], 0
je 0x140070cd6
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x68
ret
Function at 0x140092bd0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x68]
call fcn.140008a10
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
mov r9d, 1
xor r8d, r8d
mov edx, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0xffffffffffffffff
jne 0x140092cbc
mov rcx, qword [rsp + 0x68]
call fcn.140008a10
mov rdx, rax
lea rcx, str.name__s_n
call fcn.140014e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x68]
call fcn.140008a10
mov qword [rsp + 0x48], rax
lea rdx, str.Failed_to_create_pipe
lea rcx, [0x140419f10]
call fcn.1400111b0
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, rax
call fcn.1400111b0
lea rdx, str._Error:
mov rcx, rax
call fcn.1400111b0
mov ecx, dword [rsp + 0x40]
mov edx, ecx
mov rcx, rax
call fcn.140017c00
lea rdx, [0x140011540]
mov rcx, rax
call fcn.14000ddc0
xor al, al
jmp 0x140092cd4
mov rax, qword [rsp + 0x60]
add rax, 8
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call fcn.140041a40
mov al, 1
add rsp, 0x58
ret

Function at 0x140092f40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 2
mov word [rsp + 0x38], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x140092fd5
movzx ecx, word [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x140092fd3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
jmp 0x140092fdf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [rsp + 0x20], 0
jne 0x140092ffb
mov dword [rsp + 0x24], 1
jmp 0x140093003
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x58
ret
Function at 0x140097d10
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140097de6
mov dword [rsp + 0x38], 1
mov eax, ntohl
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
mov eax, ntohl
imul rax, rax, 0
lea rax, [rsp + rax + 0x3c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140097ddb
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140097ddb
lea rdx, str.Failed_to_adjust_token_privileges_n
lea rcx, [0x140419c40]
call fcn.1400111b0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x50
pop rdi
ret

Function at 0x140097ee0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140097fb0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140098420
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140098442
mov rcx, qword [rsp + 0x40]
call fcn.1400984f0
jmp 0x140098459
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140098459
mov rcx, qword [rsp + 0x40]
call fcn.1400985a0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400984f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140098511
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140098595
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140098560
mov dword [rsp + 4], 0x9908b0df
jmp 0x140098568
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140098504
add rsp, 0x18
ret
Function at 0x1400985a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x1400985d0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140098652
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14009861e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140098626
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400985c5
mov qword [rsp + 8], 0xe3
jmp 0x14009866a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x1400986f1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x1400986bb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x1400986c3
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14009865d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140098745
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14009874d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x1400a23a0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400a240c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x30]
call fcn.140003df0
call fcn.1400a21e0
mov r8, rax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.1400a0530
lea rdx, [0x14036e1e0]
lea rcx, [rsp + 0x30]
call fcn.1400a1c30
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x58
ret

Function at 0x1400a2f50
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400b8f80
movzx eax, al
test eax, eax
je 0x1400a2fcb
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400a2ff8
xor r8d, r8d
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [fcn.140002210]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x48
ret
Function at 0x1400a3420
Capabilities:
Initialize winsock library

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
cmp eax, 1
jne 0x1400a34ad
movzx eax, byte [rsp + 0x1f8]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rsp + 0x200]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
lea rdx, [rsp + 0x30]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
add rax, 4
mov ecx, dword [rsp + 0x20]
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x1e8
ret

Function at 0x1400a5460
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0xc0], 0xffffffffffffffff
je 0x1400a561b
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x1400a5536
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 8
test eax, eax
je 0x1400a5536
xor eax, eax
mov word [rsp + 0x78], ax
xor eax, eax
mov word [rsp + 0x7a], ax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x80]
call fcn.140003df0
lea rcx, [rsp + 0x80]
call fcn.1400a05e0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
mov r8d, 0xffff
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400a61f0
call fcn.1400a5310
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, qword [rsp + 0xd8]
mov ecx, eax
call fcn.1400caf90
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400a561b
xor r8d, r8d
mov edx, 0x2733
lea rcx, [rsp + 0x48]
call fcn.1400cae10
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
call fcn.1400a0580
movzx eax, al
test eax, eax
jne 0x1400a55bd
xor r8d, r8d
mov edx, 0x4d5
lea rcx, [rsp + 0x58]
call fcn.1400cae10
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xd8]
call fcn.1400a0580
movzx eax, al
test eax, eax
je 0x1400a561b
mov dword [rsp + 0x7c], 0
lea r8, [rsp + 0x7c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0xc8]
mov byte [rcx], al
call fcn.1400a5310
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, qword [rsp + 0xd8]
mov ecx, eax
call fcn.1400caf90
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400a563e
lea rcx, [rsp + 0x68]
call fcn.1400a05e0
mov rdi, qword [rsp + 0xd8]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14027f960
add rsp, 0xa8
pop rdi
pop rsi
ret