joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd900
Capabilities:
Hash data using fnv

Disassembly:
lea r12, [rsp - 8]
cmp r12, qword [r14 + 0x10]
jbe 0x4cdb80
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x4cd9c3
mov qword [rsp + 0x90], rax
lea rbx, [0x005e7620]
mov rcx, rax
lea rax, [0x007818c0]
call fcn.0046b940
test cl, cl
jne 0x4cd9a2
mov rax, qword [rsp + 0x90]
nop dword [rax + rax]
call fcn.004ca6a0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x38]
lea rbx, [0x0064352d]
nop dword [rax]
call fcn.0044d400
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], rbx
call fcn.004ceec0
mov rcx, qword [rsp + 0x90]
xor edx, edx
nop
jmp 0x4cd9ea
lea rdx, [0x005e7360]
cmp rax, rdx
jne 0x4cd9d8
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
call fcn.0045e240
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
mov rbx, rdx
lea rcx, [0x005c0020]
call fcn.0040ada0
inc rdx
cmp rbx, rdx
jle 0x4cda3e
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x4cd9e7
lea rax, [0x007818c0]
lea rbx, [0x005e7620]
lea rdi, [0x005e7360]
call fcn.0046c160
lea rdx, [0x005e7360]
nop word [rax + rax]
cmp rax, rdx
jne 0x4cdb70
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
lea rcx, [0x005b43e0]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
lea rax, [0x005ce3a0]
call fcn.0040da80
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
test byte [rcx], al
cmp dword [0x007d5be0], 0
jne 0x4cda9e
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
jmp 0x4cdaad
mov rbx, rax
lea rax, [0x005ce3a0]
call fcn.00413b00
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
xor edi, edi
xor esi, esi
nop dword [rax]
call fcn.004ca0e0
call fcn.0045e340
mov rsi, qword [rsp + 0x68]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x90]
mov edx, dword [rcx + 0x10]
mov byte [rsp + 0x2f], 0
mov byte [rsp + 0x2f], 0x2a
xor eax, eax
jmp 0x4cdb04
movzx r8d, byte [rsp + rax + 0x2f]
inc rax
imul edx, edx, 0x1000193
xor edx, r8d
cmp rax, 1
jl 0x4cdaf2
mov dword [rsi + 0x10], edx
cmp dword [0x007d5be0], 0
jne 0x4cdb1c
mov qword [rsi + 0x30], rcx
jmp 0x4cdb25
lea rdi, [rsi + 0x30]
call fcn.004629c0
lea rax, [0x007818c0]
lea rbx, [0x005e7620]
lea rdi, [0x005e7360]
call fcn.0046c160
lea rdx, [0x005e7360]
cmp rax, rdx
jne 0x4cdb61
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
nop
ret
mov rbx, rdx
lea rcx, [0x005c0020]
call fcn.0040ada0
mov rbx, rdx
lea rcx, [0x005c0020]
call fcn.0040ada0
nop
mov qword [rsp + 8], rax
call fcn.00460680
mov rax, qword [rsp + 8]
jmp fcn.004cd900
Function at 0x529200
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x529218
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x529218
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x529220
xor eax, eax
ret
cmp rbx, 3
je 0x52922c
cmp rbx, 4
jne 0x529259
cmp al, 0x2c
ja 0x529246
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x529256
cmp al, 0x24
je 0x529256
nop dword [rax]
cmp al, 0x26
jae 0x529256
jmp 0x529259
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x529256
cmp al, 0x5b
je 0x529256
cmp al, 0x5d
jne 0x529259
xor eax, eax
ret
cmp al, 0x2f
ja 0x529292
nop dword [rax]
cmp al, 0x26
ja 0x529271
cmp al, 0x24
je 0x5292b1
cmp al, 0x26
je 0x5292b1
jmp 0x52932b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x5292b1
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x529328
cmp al, 0x2f
je 0x5292b1
jmp 0x52932b
cmp al, 0x3d
ja 0x5292a9
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x5292b1
nop
cmp al, 0x3d
je 0x5292b1
jmp 0x52932b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x529320
cmp rbx, 2
jg 0x5292e7
cmp rbx, 1
je 0x5292e1
nop dword [rax]
cmp rbx, 2
jne 0x52932b
cmp al, 0x2f
je 0x5292d2
cmp al, 0x3b
je 0x5292d2
cmp al, 0x2c
jne 0x5292d9
mov ecx, 1
jmp 0x5292de
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x52930a
cmp al, 0x40
je 0x5292f9
cmp al, 0x2f
je 0x5292f9
cmp al, 0x3f
jne 0x529302
mov ecx, 1
nop
jmp 0x529307
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x529319
cmp rbx, 7
jne 0x52932b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x529328
cmp al, 0x7e
jne 0x52932b
xor eax, eax
ret
cmp rbx, 7
jne 0x529341
cmp al, 0x21
je 0x52933d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x529341
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x14002b100
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 ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14002b1a0
jmp 0x14002b18f
jae 0x14002b260
cmp r8, 0x201
jae 0x14002b1a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14002b1f8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14002b1cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400526d0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14002b221
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002b2c8
mov r8d, r14d
cmp r15, r8
jne 0x14002b180
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002b2f5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002b18f
jmp 0x14002b1a0
cmp rsi, r8
jb 0x14002b30f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14002e200
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 rbx, rbx
je 0x14002b2b1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14001e150
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14002b299
jmp 0x14002b2b1
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140053160
jmp 0x14002b324
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400535b0
ud2
Function at 0x14002e130
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 0x14002e16a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002e181
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 0x14002e190
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 0x14002e1c4
cdqe
jmp 0x14002e1d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14002e1db
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002e1ec
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 0x140030c40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [0x140039d90]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x140030ce0
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rsp + 0x34], 0
je 0x140030cb0
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x140030cfb
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140030d05
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140030d08
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x1400312c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, qword [rcx + 0x30]
mov rcx, rdi
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400312e0
xor esi, esi
jmp 0x14003134c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 5
jne 0x140031344
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140031305
cmp eax, 0x102
je 0x1400312dc
jmp 0x14003131f
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400312dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140025210
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140032040
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140051a00
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140039d90]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140039810
cmp qword [rbp + 0xfe8], 0
jne 0x140032217
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400321e3
cmp r12, 0x1000
ja 0x140032239
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x1400321b7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140032160
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400321bd
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400321a0
jbe 0x140032110
jmp 0x140032225
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400320c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140025210
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140025210
jmp 0x1400321e3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140053630
jmp 0x14003224d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1400535b0
ud2
Function at 0x140035f20
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140040fe0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140035fdf
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.140038650
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x140035fdf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140035fb3
test rdi, rdi
je 0x140035faf
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001e150
xor esi, esi
jmp 0x140035fdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140035fdc
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001e150
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400372b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140058778]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400372f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140037353
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140037362
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14003739a
cmp eax, 0x103
je 0x1400373a4
test eax, eax
js 0x14003737f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14003739a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400587d8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002dac0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400258b0
mov ecx, 7
int 0x29
ud2
Function at 0x140037410
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140058778]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140037454
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400374ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400374f1
test eax, eax
js 0x1400374cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400374e4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400587d8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002dac0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400258b0
mov ecx, 7
int 0x29
ud2

Function at 0x140037560
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 0x1400375b5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140037651
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400375c9
cmp eax, 0x2739
jne 0x14003761a
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 0x140037614
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14003762f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140037651
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140037651
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 0x140038e10
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x14003a250
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003a3a3
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14003a287
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003a368
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003a386
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003a2e9
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003a31b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14003a31f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x14003a323
cmp eax, 0x6d
jne 0x14003a34e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14003a328
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003a354
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140025210
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003a35e
cmp rax, 1
je 0x14003a2d2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003a2dc
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140052790
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003a294
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140052790
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14003a294
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140052480
int3
Function at 0x14003f1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140040fe0

Function at 0x140040100
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 0x140040143
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, [0x14002c5c0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140053090
ud2

Function at 0x1400407e0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax

Function at 0x140042ac0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14006a1f0]
cmp rax, 3
jne 0x140042bb6
cmp rbx, 0x17f
ja 0x140042bc8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14004bd70
cmp qword [rsp + 0x28], 0
je 0x140042b44
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140042bd9
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 0x140042b9e
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 0x140042bd9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140042bd9
call fcn.1400528f0
cmp rbx, 0x17f
jbe 0x140042afa
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140052960
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140042bf0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140042c12
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140042ce7
mov rax, qword [0x14006a1f0]
cmp rax, 3
jne 0x140042cf2
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.140037560
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x140042c53
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140042ce7
cmp word [rbx], 0
je 0x140042c74
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140042c89
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140042cc5
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140042ce7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
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, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.1400528f0
jmp 0x140042c23