joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800122c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov rsi, rdx
mov qword [rbp - 0x10], r15
mov r13, rcx
call fcn.180012508
mov rbx, rax
test rax, rax
je 0x1800124d1
mov edi, dword [rax + 0x18]
test edi, edi
je 0x1800124b2
mov r14d, dword [rsi]
test r14d, r14d
jne 0x180012316
mov r14d, r15d
jmp 0x18001232a
cmp r14d, 0xffffffff
jne 0x180012321
mov r14d, r15d
jmp 0x18001232f
cmp r14d, edi
jae 0x180012493
mov edi, 1
mov ecx, edi
mov edx, 0x20
mov dword [rsi], edi
call qword [sym.imp.msvcrt.dll_calloc]
nop dword [rax + rax]
mov qword [rbp - 0x10], rax
mov r15, rax
test rax, rax
je 0x180012446
xor r12d, r12d
test edi, edi
je 0x18001245a
mov ecx, dword [rbx + 0x1c]
cmp ecx, 0x3fff
ja 0x180012475
cmp dword [rbx + 0x20], 0x100000
ja 0x180012475
inc ecx
mov dword [rbp + 0x58], ecx
mov eax, dword [rbx + 0x20]
mov edx, ecx
mov ecx, 2
lea eax, [rax*2 + 2]
mov dword [rbp + 0x50], eax
call qword [sym.imp.msvcrt.dll_calloc]
nop dword [rax + rax]
mov qword [rbp - 8], rax
mov qword [r15], rax
test rax, rax
je 0x18001243b
mov edx, dword [rbp + 0x50]
mov ecx, 1
call qword [sym.imp.msvcrt.dll_calloc]
nop dword [rax + rax]
mov qword [r15 + 0x10], rax
test rax, rax
je 0x18001243b
mov r8, qword [rbp - 8]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x38], rdx
lea rcx, [r15 + 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x58]
mov qword [rsp + 0x28], rcx
mov edx, r14d
and qword [rsp + 0x20], 0
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
mov r13d, eax
test eax, eax
jne 0x18001242b
mov eax, dword [rbp + 0x50]
inc r12d
mov r13, qword [rbp + 0x40]
inc r14d
mov dword [r15 + 0x18], eax
add r15, 0x20
cmp r12d, edi
jb 0x18001235f
jmp 0x18001245a
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.180012d14
mov ecx, r13d
jmp 0x18001244b
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.180012d14
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
and dword [rsi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001246b
call sub.msvcrt.dll_free
and qword [rbx], 0
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1800124e5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.180012d14
jmp 0x180012457
mov rcx, qword [rax]
test rcx, rcx
je 0x1800124a3
call sub.msvcrt.dll_free
mov qword [rbx], r15
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, 0x57
jmp 0x1800124d6
mov rcx, qword [rax]
test rcx, rcx
je 0x1800124c2
call sub.msvcrt.dll_free
mov qword [rbx], r15
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, 0x103
jmp 0x1800124d6
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov dword [rsi], r15d
mov rax, qword [rbp - 0x10]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012700
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x20], r9
mov rsi, r9
mov r9, r8
mov rbp, r8
xor r12d, r12d
xor r8d, r8d
mov r14, rdx
mov qword [rax - 0x28], r12
mov r15, rcx
mov ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180012806
cmp dword [rbp], 7
jne 0x180012761
mov eax, dword [rsi]
and eax, 0xfffffffe
add eax, 2
mov dword [rsi], eax
mov ecx, dword [rsi]
mov edx, 1
call qword [sym.imp.msvcrt.dll_calloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x18001279d
lea ecx, [rax + 8]
jmp 0x180012808
mov edx, dword [rsi]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_realloc]
nop dword [rax + rax]
test rax, rax
je 0x1800127db
mov rbx, rax
mov qword [rsp + 0x28], rsi
mov r9, rbp
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
je 0x180012784
test eax, eax
je 0x1800127e2
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, edi
mov rbx, r12
jmp 0x180012808
mov edi, 8
jmp 0x1800127cc
test rbx, rbx
je 0x180012814
cmp dword [rbp], 1
je 0x1800127f9
cmp dword [rbp], 7
je 0x1800127f9
cmp dword [rbp], 2
jne 0x180012814
mov eax, dword [rsi]
shr rax, 1
mov word [rbx + rax*2 - 2], r12w
jmp 0x180012814
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180012ba0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
and dword [r11 + 0x38], 0
lea rax, [r11 + 0x38]
mov qword [r11 - 0x18], rax
mov rdi, r9
lea rax, [r11 + 0x40]
mov rsi, r8
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov ebx, 1
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180012c6c
mov eax, dword [rsp + 0x88]
xor r8d, r8d
mov r9d, dword [rsp + 0x80]
mov rdx, rsi
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x180012c40
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x180012c56
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x180012c56
mov eax, dword [rsp + 0x90]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x180012c7c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor ebx, ebx
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000faa0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x14000fb40
jmp 0x14000fb2f
jae 0x14000fbfe
cmp r8, 0x201
jae 0x14000fb40
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x14000fb97
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14000fb6f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.140036a80
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x14000fbbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000fc66
mov r8d, r15d
cmp rsi, r8
jne 0x14000fb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000fc89
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x14000fb2f
jmp 0x14000fb40
cmp r14, r8
jb 0x14000fca3
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.1400142d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x14000fc4f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.140007dd0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x14000fc37
jmp 0x14000fc4f
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140037730
jmp 0x14000fcb8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140037b20
ud2
Function at 0x140014200
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x14001423a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140014251
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140014260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14001429f
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400142c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400142b4
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400142c7
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x140014bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140014bf3
test ecx, ecx
jne 0x140014c42
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140014c00
test ecx, ecx
jne 0x140014c42
mov rcx, rdi
call fcn.140014aa0
movzx r10d, al
test bl, bl
jne 0x140014c49
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140014c36.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140014dbc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140014c36.2
xor r10d, r10d
test bl, bl
je 0x140014c10
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140014d9e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x140014c7b
xor edi, edi
jmp 0x140014cf8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140014cc0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x140014cdb
inc rsi
dec rax
cmp rsi, 1
jne 0x140014ca0
jmp 0x140014cf8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140014cdb
cmp ebx, 0x5c
je 0x140014cdb
inc rsi
dec rax
cmp rsi, 1
jne 0x140014cc0
jmp 0x140014cf8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140014dac
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140014d22
mov al, 9
cmp rdx, 2
je 0x140014d26
cmp rdx, 1
jne 0x140014d36
cmp byte [r9], 0x2e
jne 0x140014d36
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140014d36
mov al, 0xa
jmp 0x140014d36
cmp byte [r9], 0x2e
jne 0x140014d36
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140014c36.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140014c36.2
mov esi, 2
jmp case.0x140014c36.2
lea r8, str.library_std_srcpath.rs
call fcn.140037b10
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140037b10
ud2
Function at 0x140018580
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.140035d50
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfc0], rcx
mov qword [rbp + 0xfc8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xff8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
lea r14, [0x14001f5a0]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xfd0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400187a5
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r13d, 0xffffffff
lea r12, [rbp + 0xfd0]
mov qword [rbp + 0xff0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x140018650
cmp dword [rbp + 0xffc], 0
jne 0x1400187ba
mov edi, dword [rbp + 0x1000]
mov qword [rbp + 0xfb0], 0
mov qword [rbp + 0xfb8], rdi
test rdi, rdi
je 0x1400187ba
cmp edi, 0x1000
ja 0x1400187fa
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rdi
ja 0x1400187e6
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov r8, rdi
sub r8, rbx
cmp r8, r13
cmovae r8, r13
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x1400187ad
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x140018720
cmp dword [rbp + 0xffc], 0
jne 0x1400187b3
mov eax, dword [rbp + 0x1000]
add rbx, rax
cmp rbx, rdi
jne 0x1400186b0
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp + 0xff0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140018650
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400187ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xff0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov rdx, rdi
call fcn.140037b30
jmp 0x14001880d
mov ecx, edi
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.140037b20
ud2
Function at 0x14001c3f0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14001e160
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14001c42c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001c431
xor ebx, ebx
test rsi, rsi
jne 0x14001c446
jmp 0x14001c45a
mov rbx, rsi
jmp 0x14001c45a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14001c45a
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140007dd0
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001cea0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14001cef5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001cf91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14001cf09
cmp eax, 0x2739
jne 0x14001cf5a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14001cf54
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14001cf6f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14001cf91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14001cf91
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001fa30
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001fb3d
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14001fa67
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001fb02
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001fb20
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001fabe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001fadb
jmp 0x14001fad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001fad6
cmp eax, 0x6d
jne 0x14001faf2
mov byte [rsi + 1], 0
jmp 0x14001fae6
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14001fae8
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140036b40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001fa74
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140036b40
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14001fa74
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140036810
ud2
Function at 0x140024180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.14001e160
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400241cf
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002423a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14002422f
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140024227
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rdi, qword [rbp - 0x18]
je 0x140024214
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140007dd0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140007dd0
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x14002422f
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140007dd0

Function at 0x140024dc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140024e03
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140010980]
mov qword [rbp - 0x28], rax
lea rax, [0x14003bcd0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140037690
ud2
Function at 0x1400254f0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140007dc0
mov rsi, rax
test rax, rax
je 0x1400255ca
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140025650]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400255bc
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140025594
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140007dd0
mov edx, reloc.WS2_32.dll_recv
mov r8d, 8
mov rcx, rsi
call fcn.140007dd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140037670
ud2

Function at 0x140027410
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx r14d, word [rdx + 0x10]
mov rax, qword [0x140047228]
cmp rax, 3
jne 0x140027507
cmp rbx, 0x17f
ja 0x140027519
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, rbp
mov r8, rbx
call fcn.140030360
cmp qword [rsp + 0x28], 0
je 0x140027494
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14002752a
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400274ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x14002752a
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r14w
xor eax, eax
mov qword [rsi], rax
jmp 0x14002752a
call fcn.140036c50
cmp rbx, 0x17f
jbe 0x14002744a
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, r14d
call fcn.140036d30
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret