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

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140060eb0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020d43
mov qword [rsp], rbx
lea rbx, [0x14004ecb0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020d23
cmp byte [r8], r9b
jne 0x140020d23
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140020d10
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f78]
not eax
mov r8, qword [r10 + 0x5f80]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140020d6f
cmp dword [r8 + 8], eax
je 0x140020d76
add r8, 0x48
cmp r8, rcx
jne 0x140020d60
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400348f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140060eb0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140034b0e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140034b0e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140060eb0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400349c4
movsx rdx, word [r8 + 0x60e0]
lea rax, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400349b9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60e4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60d8]
test rdi, rdi
je 0x1400349e1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400349e4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140054b68]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140034a27
mov rsi, qword [r8 + 0x90]
jmp 0x140034a2a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140034a55
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140060eb0]
mov rcx, qword [rax + 0x4b18]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140034ace
inc rbx
cmp rbx, 5
jl 0x140034ab0
jmp 0x140034afa
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140034b10
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004a5e0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140040c70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x140060ef8], 0
mov ebx, ecx
ja 0x140040ca9
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
inc dword [0x140060f08]
mov dword [0x140060f0c], 0x9823ae8d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x140060f04], eax
test ebx, ebx
je 0x140040cd2
or dword [0x140060ec0], 1
jmp 0x140040cd9
and dword [0x140060ec0], 0xfffffffe
movups xmm0, xmmword [0x140060ec0]
mov rcx, qword [0x140060ef8]
lea rax, [0x140061740]
movups xmm1, xmmword [0x140060ed0]
lea rdx, [0x140060f00]
mov dword [rsp + 0x28], recvfrom
movaps xmmword [0x140060f10], xmm0
xor r9d, r9d
movups xmm0, xmmword [0x140060ee0]
mov r8d, 0x48
mov qword [rsp + 0x20], rax
movaps xmmword [0x140060f20], xmm1
movsd xmm1, qword [0x140060ef0]
movaps xmmword [0x140060f30], xmm0
movsd qword [0x140060f40], xmm1
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140040d99
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x140040dbf
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
mov ecx, dword [0x140060f08]
xor eax, eax
cmp dword [0x140061328], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
Function at 0x140040df0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0xe0]
xor ebx, ebx
lea rdx, [0x140000000]
mov r8d, ecx
cmp eax, 7
ja case.default.0x140040e28
cdqe
mov eax, dword [rdx + rax*4 + 0x41030]
add rax, rdx
jmp rax
or byte [0x140061310], 1
jmp 0x140040ef6
or byte [0x140061310], 2
jmp 0x140040ef6
or byte [0x140061310], 4
jmp 0x140040ef6
or byte [0x140061310], 8
jmp 0x140040ef6
or byte [0x140061310], 0x10
jmp 0x140040ef6
or byte [0x140061310], 0x20
jmp 0x140040ef6
or byte [0x140061310], 0x40
jmp 0x140040ef6
or byte [0x140061310], 0x80
jmp 0x140040ef6
mov rcx, rbx
nop word [rax + rax]
movsx eax, byte [rcx + rdx + 0x61312]
cmp eax, r8d
je 0x140040ef6
inc rcx
cmp rcx, 0xa
jl 0x140040e90
mov ecx, ebx
mov rax, rbx
nop dword [rax + rax]
cmp byte [rax + rdx + 0x61312], bl
je 0x140040eeb
inc ecx
inc rax
cmp rax, 0xa
jl 0x140040eb0
movzx eax, word [0x14006131b]
movsd xmm0, qword [0x140061313]
mov word [0x14006131a], ax
mov byte [0x14006131b], r8b
movsd qword [0x140061312], xmm0
jmp 0x140040ef6
movsxd rax, ecx
mov byte [rax + rdx + 0x61312], r8b
cmp qword [0x140060ef8], rbx
ja 0x140040f17
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
inc dword [0x140060f08]
mov dword [0x140060f0c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x140061311]
lea rdx, [0x140060f00]
mov rcx, qword [0x140060ef8]
xor r9d, r9d
mov dword [0x140060f04], eax
mov r8d, 0x1c
movzx eax, byte [0x140061310]
mov byte [0x140060f10], al
movzx eax, word [0x140061319]
mov word [0x140060f19], ax
movzx eax, byte [0x14006131b]
mov byte [0x140060f1b], al
lea rax, [0x140061740]
mov dword [rsp + 0x28], recvfrom
mov qword [rsp + 0x20], rax
movsd qword [0x140060f11], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140040ff1
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x140041006
mov ebx, 0xffffdcdc
jmp 0x14004101a
mov ecx, dword [0x140060f08]
mov eax, 0xffffdcdd
cmp dword [0x140061328], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
Function at 0x140041050
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov r8d, ecx
cmp ecx, 0xe0
jl 0x1400410ea
add r8d, 0xffffff20
cmp r8d, 7
ja case.default.0x140041097
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x41278]
add rcx, rdx
jmp rcx
and byte [0x140061310], 0xfe
jmp case.default.0x140041097
and byte [0x140061310], 0xfd
jmp case.default.0x140041097
and byte [0x140061310], 0xfb
jmp case.default.0x140041097
and byte [0x140061310], 0xf7
jmp case.default.0x140041097
and byte [0x140061310], 0xef
jmp case.default.0x140041097
and byte [0x140061310], 0xdf
jmp case.default.0x140041097
and byte [0x140061310], 0xbf
jmp case.default.0x140041097
and byte [0x140061310], 0x7f
jmp case.default.0x140041097
mov r9d, ebx
lea r10, [0x140061312]
mov rcx, rbx
nop word [rax + rax]
movsx eax, byte [rcx + r10]
lea edx, [r9 + 1]
cmp eax, r8d
je 0x14004111c
inc rcx
mov r9d, edx
cmp rcx, 0xa
jl 0x140041100
jmp case.default.0x140041097
mov eax, 0xa
movsxd rdx, edx
sub eax, r9d
movsxd rcx, r9d
movsxd r8, eax
add rdx, r10
add rcx, r10
call sub.VCRUNTIME140.dll_memcpy
mov byte [0x14006131b], bl
cmp qword [0x140060ef8], rbx
ja 0x14004115f
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
inc dword [0x140060f08]
mov dword [0x140060f0c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x140061311]
lea rdx, [0x140060f00]
mov rcx, qword [0x140060ef8]
xor r9d, r9d
mov dword [0x140060f04], eax
mov r8d, 0x1c
movzx eax, byte [0x140061310]
mov byte [0x140060f10], al
movzx eax, word [0x140061319]
mov word [0x140060f19], ax
movzx eax, byte [0x14006131b]
mov byte [0x140060f1b], al
lea rax, [0x140061740]
mov dword [rsp + 0x28], recvfrom
mov qword [rsp + 0x20], rax
movsd qword [0x140060f11], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140041239
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x14004124e
mov ebx, 0xffffdcdc
jmp 0x140041262
mov ecx, dword [0x140060f08]
mov eax, 0xffffdcdd
cmp dword [0x140061328], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
Function at 0x1400412a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, ecx
mov rcx, qword [0x140060ef8]
test rcx, rcx
jne 0x1400412d8
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x58
ret
inc dword [0x140060f08]
test eax, eax
mov dword [0x140060f0c], 0x23234343
mov eax, dword [0x140061828]
je 0x1400412f7
or eax, 1
jmp 0x1400412fa
and eax, 0xfffffffe
mov dword [0x140060f04], eax
lea rdx, [0x140060f00]
mov dword [0x140061828], eax
xor r9d, r9d
lea rax, [0x140061740]
mov dword [rsp + 0x28], recvfrom
mov r8d, recvfrom
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140041384
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x58
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x1400413a9
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x58
ret
mov ecx, dword [0x140060f08]
xor eax, eax
cmp dword [0x140061328], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x58
ret
Function at 0x140042d70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140042d98
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140042e26
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140042fc0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140042e3b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x50
pop rbx
ret

Function at 0x140042e50
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable._thread_com.0
mov rbx, rcx
mov qword [rcx], rax
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140042eed
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140042eb6
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x140042f00
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140042c70
Function at 0x140042f20
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140042fb9
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140042f7c
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret

Function at 0x140043140
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.14004b700
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
comiss xmm0, xmm1
movaps xmm6, xmm1
movaps xmm7, xmm0
jbe 0x140043180
movaps xmm6, xmm0
movaps xmm7, xmm1
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x1400431a0
movss xmm1, dword [0x140055704]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x20], r9d
xorps xmm2, xmm2
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400431d0
mov eax, dword [rsp + 0x20]
subss xmm6, xmm7
xorps xmm0, xmm0
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm2
mulss xmm0, xmm1
mulss xmm1, dword [0x14005580c]
addss xmm0, xmm2
divss xmm0, xmm1
addss xmm0, xmm2
mulss xmm0, xmm6
addss xmm0, xmm7
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14004a5e0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x140043930
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov r15d, r8d
mov rsi, qword [rbx + 0x10]
mov r14d, edx
mov rcx, rbx
jbe 0x140043972
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x140043a83
mov r8, rsi
lea rdx, [0x140054ef0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043a83
cmp qword [0x140060ef8], 0
jbe 0x140043b64
inc dword [0x140060f08]
mov dword [0x140060f0c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140060ed0]
mov rcx, qword [0x140060ef8]
lea rdx, [0x140060f00]
mov dword [0x140060f04], eax
xor r9d, r9d
movsx eax, r14w
mov r8d, 0x48
mov dword [0x140060ec4], eax
movsx eax, r15w
mov dword [0x140060ec8], eax
lea rax, [0x140061740]
movups xmm0, xmmword [0x140060ec0]
mov dword [rsp + 0x28], recvfrom
movaps xmmword [0x140060f20], xmm1
movsd xmm1, qword [0x140060ef0]
movaps xmmword [0x140060f10], xmm0
movups xmm0, xmmword [0x140060ee0]
mov qword [rsp + 0x20], rax
movsd qword [0x140060f40], xmm1
movaps xmmword [0x140060f30], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rdx, [0x140061320]
xor eax, eax
mov dword [rsp + 0x30], recvfrom
mov qword [0x140060ec4], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov r8d, 0x400
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x140043b64
cmp qword [rbx + 0x18], 0xf
jbe 0x140043a8d
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140043b64
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043b64
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
mov r9d, r15d
lea rdx, str.km.move__d___d__10__r_n
mov r8d, r14d
lea rcx, [rsp + 0x50]
call fcn.140048600
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140043ae6
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140043b64
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140043b2e
cmp dword [rsp + 0x30], 0
jbe 0x140043b2e
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea r9, [rsp + 0x34]
xor eax, eax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], eax
mov r8d, ebx
lea rax, [rdi + 0x168]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043b64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004a5e0
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140043b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
jbe 0x140043bcf
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x140043c1d
mov r8, rsi
lea rdx, [0x140054ef0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043c1d
mov ecx, 1
call fcn.140040c70
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x140055790]
cvtdq2ps xmm0, xmm0
call fcn.140043140
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140040c70
jmp 0x140043d00
cmp qword [rbx + 0x18], 0xf
jbe 0x140043c27
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140043d00
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043d00
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, str.km.click_0__r_n
lea rcx, [rsp + 0x40]
call fcn.140048600
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140043c80
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140043d00
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140043cc8
cmp dword [rsp + 0x30], 0
jbe 0x140043cc8
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea rax, [rdi + 0x168]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043d00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004a5e0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret