joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rsi, rcx
mov ecx, dword [rcx]
cmp ecx, dword [rdx]
mov rbx, rdx
je 0x140098650
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
mov edx, dword [rsi + 4]
call sym.libvlccore.dll_vlc_fourcc_GetCodec
mov edx, dword [rbx + 4]
mov ecx, dword [rbx]
mov edi, eax
call sym.libvlccore.dll_vlc_fourcc_GetCodec
cmp edi, eax
jne 0x140098643
mov eax, dword [rsi]
cmp eax, 1
je 0x140098720
cmp eax, 2
jne 0x140098710
mov eax, dword [rsi + 0x38]
mov edx, dword [rbx + 0x38]
mov r9d, dword [rsi + 0x3c]
movzx edi, word [rsi + 0x40]
movzx r11d, word [rsi + 0x42]
mov r8d, dword [rsi + 0x44]
test eax, eax
movzx r10d, byte [rsi + 0x58]
setne cl
cmp eax, edx
setne al
test cl, al
je 0x1400986aa
test edx, edx
jne 0x140098643
cmp dword [rbx + 0x3c], r9d
setne r9b
cmp dword [rbx + 0x44], r8d
setne r8b
or r9b, r8b
jne 0x140098643
cmp byte [rbx + 0x58], r10b
jne 0x140098643
movzx r10d, word [rbx + 0x40]
movzx edx, word [rbx + 0x42]
mov word [rsp + 0x28], di
mov word [rsp + 0x2a], r11w
mov word [rsp + 0x58], r10w
mov word [rsp + 0x5a], dx
mov edi, dword [rsp + 0x58]
cmp dword [rsp + 0x28], edi
jne 0x140098643
mov ebx, dword [rbx + 0xec]
cmp dword [rsi + 0xec], ebx
sete al
jmp 0x140098645
mov eax, 1
jmp 0x140098645
mov r11d, dword [rsi + 0x38]
mov edi, dword [rbx + 0x38]
test r11d, r11d
je 0x140098744
test edi, edi
je 0x140098753
lea rdx, [rbx + 0x38]
lea rcx, [rsi + 0x38]
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
jmp sym.libvlccore.dll_video_format_IsSimilar
mov edx, dword [rsi + 4]
mov ecx, 1
call sym.libvlccore.dll_vlc_fourcc_GetCodec
jmp 0x14009872c
mov edx, dword [rbx + 4]
mov ecx, dword [rbx]
call sym.libvlccore.dll_vlc_fourcc_GetCodec
jmp 0x140098730

Function at 0x14009c150
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__read
cdqe
add rsp, 0x28
ret

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1402840b0]
mov r12, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
mov ebx, ecx
lea rcx, [rsp + 0x30]
mov rdi, rdx
mov rbp, r8
mov edx, 1
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov r8d, 0xffffffff
mov eax, 0x300
mov r14d, r9d
mov r13, qword [rsp + 0xa8]
mov word [rsp + 0x34], ax
call sym.libvlccore.dll_vlc_poll_i11e
test eax, eax
js 0x14009c230
movsxd rcx, ebx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov r9d, r14d
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rbx, eax
test rbx, rbx
js 0x14009c211
mov rdi, qword [rsp + 0x38]
xor rdi, qword [rsi]
mov rax, rbx
jne 0x14009c239
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14009c1f5
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x14009c1f5
mov rbx, 0xffffffffffffffff
jmp 0x14009c1f5
call fcn.1400c4db0
nop
nop
Function at 0x14009c240
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [0x1402840b0]
mov r12, qword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
mov ebx, ecx
lea rcx, [rsp + 0x30]
mov rdi, rdx
mov rbp, r8
mov edx, 1
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov r8d, 0xffffffff
mov eax, 0x30
mov r13d, r9d
mov word [rsp + 0x34], ax
call sym.libvlccore.dll_vlc_poll_i11e
test eax, eax
js 0x14009c300
mov edx, dword [rsp + 0xa8]
movsxd rcx, ebx
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8d, ebp
mov dword [rsp + 0x28], edx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rbx, eax
test rbx, rbx
js 0x14009c2e0
mov rdi, qword [rsp + 0x38]
xor rdi, qword [rsi]
mov rax, rbx
jne 0x14009c309
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14009c2c1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
jmp 0x14009c2c1
mov rbx, 0xffffffffffffffff
jmp 0x14009c2c1
call fcn.1400c4db0
nop
nop
Function at 0x1400a13c0
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [rsp + 0xb0]
mov rsi, qword [0x1402840b0]
mov rdi, r9
movsxd r12, ecx
mov r14, rdx
xor ecx, ecx
xor edx, edx
mov r13, r8
mov r9, rbp
mov r8, rdi
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
call fcn.140160800
test eax, eax
mov ebx, eax
jle 0x1400a1540
lea ecx, [rax + 2]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
test rax, rax
mov r15, rax
je 0x1400a1540
lea edx, [rbx + 1]
mov r9, rbp
mov r8, rdi
mov rcx, rax
movsxd rdx, edx
call fcn.140160800
test eax, eax
jle 0x1400a151b
cdqe
cmp byte [r15 + rax - 1], 0xa
je 0x1400a1456
mov byte [r15 + rax], 0xa
mov byte [r15 + rax + 1], 0
lea r8, [0x14019a100]
lea rax, [r12 + r12*8]
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x30]
lea rdx, str._s__s_s:__s
mov qword [rsp + 0x30], 0
add rax, r8
mov qword [rsp + 0x20], rax
mov r9, qword [r14]
mov r8, qword [r13]
call fcn.1400a1370
test eax, eax
jle 0x1400a151b
mov r12, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov r14, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
mov r8, r12
call r14
test eax, eax
mov r13d, eax
je 0x1400a1500
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x1400a1500
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.14016b5d8
mov rcx, qword [rsp + 0x30]
call fcn.14016b5d8
mov rax, qword [rsp + 0x38]
xor rax, qword [rsi]
jne 0x1400a155b
mov rcx, r15
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14016b5d8
mov rax, qword [rsp + 0x38]
xor rax, qword [rsi]
jne 0x1400a155b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c4db0
nop
nop dword [rax + rax]
nop word cs:[rax + rax]
Function at 0x1400ac9b0
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rdi, qword [0x1402840b0]
xor r9d, r9d
xor r8d, r8d
lea rbx, [rsp + 0x40]
mov edx, ecx
xor ecx, ecx
or dh, 0x80
mov rax, qword [rdi]
mov qword [rsp + 0x248], rax
xor eax, eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400acaa0
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rbp
movsxd rcx, eax
test rcx, rcx
mov r12, rcx
je 0x1400acaa0
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400aca78
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call rbp
mov rax, rsi
mov rsi, qword [rsp + 0x248]
xor rsi, qword [rdi]
jne 0x1400acaa4
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
jmp 0x1400aca78
call fcn.1400c4db0
nop
nop word [rax + rax]
cmp ecx, 0x84
ja 0x1400ace54
cmp ecx, 0x80
jae 0x1400ace4a
cmp ecx, 2
ja 0x1400ace70
cmp ecx, 1
jae 0x1400ace75
mov ecx, 5
jmp 0x1400ac9b0
cmp ecx, 0x86
je 0x1400ace90
jb 0x1400ace80
cmp ecx, 0x87
jne 0x1400ace90
mov ecx, 0xe
jmp 0x1400ac9b0
cmp ecx, 3
jne 0x1400ace90
jmp 0x1400acbe0
mov ecx, 0xd
jmp 0x1400ac9b0
mov ecx, 0x27
jmp 0x1400ac9b0
Function at 0x1400ace00
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.VLC_DATA_PATH
call sub.msvcrt.dll_getenv
test rax, rax
je 0x1400ace21
mov rcx, rax
add rsp, 0x28
jmp sub.msvcrt.dll__strdup
add rsp, 0x28
jmp sym.libvlccore.dll_config_GetLibDir

Function at 0x1400ace30
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rdi, qword [0x1402840b0]
xor r9d, r9d
xor r8d, r8d
lea rbx, [rsp + 0x40]
mov edx, ecx
xor ecx, ecx
or dh, 0x80
mov rax, qword [rdi]
mov qword [rsp + 0x248], rax
xor eax, eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400acaa0
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r9d, 0xffffffff
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rbp
movsxd rcx, eax
test rcx, rcx
mov r12, rcx
je 0x1400acaa0
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400aca78
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call rbp
mov rax, rsi
mov rsi, qword [rsp + 0x248]
xor rsi, qword [rdi]
jne 0x1400acaa4
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
jmp 0x1400aca78
call fcn.1400c4db0
nop
nop word [rax + rax]
cmp ecx, 0x84
ja 0x1400ace54
cmp ecx, 0x80
jae 0x1400ace4a
cmp ecx, 2
ja 0x1400ace70
cmp ecx, 1
jae 0x1400ace75
mov ecx, 5
jmp 0x1400ac9b0
cmp ecx, 0x86
je 0x1400ace90
jb 0x1400ace80
cmp ecx, 0x87
jne 0x1400ace90
mov ecx, 0xe
jmp 0x1400ac9b0
cmp ecx, 3
jne 0x1400ace90
jmp 0x1400acbe0
mov ecx, 0xd
jmp 0x1400ac9b0
mov ecx, 0x27
jmp 0x1400ac9b0

Function at 0x1400ad180
Capabilities:
Create directory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
call r12
xor edx, edx
mov dword [rax], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, rbp
mov ecx, 0xfde9
mov rdi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rdi
test eax, eax
mov esi, eax
je 0x1400ad220
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400ad220
mov r8, rbp
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call rdi
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wmkdir]
mov rcx, rbx
mov ebp, eax
call fcn.14016b5d8
mov eax, ebp
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
mov eax, dword [rax]
test eax, eax
je 0x1400ad240
mov ebp, 0xffffffff
mov eax, ebp
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
mov ebp, 0xffffffff
mov dword [rax], 2
jmp 0x1400ad20e
Function at 0x1400ad310
Capabilities:
Get disk information

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
call r12
xor edx, edx
mov dword [rax], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, rbp
mov ecx, 0xfde9
mov rdi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rdi
test eax, eax
mov ebx, eax
je 0x1400ad440
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400ad440
mov r8, rbp
xor edx, edx
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call rdi
mov ecx, 0x18
call sub.msvcrt.dll_malloc
test rax, rax
mov rbp, rax
je 0x1400ad460
cmp word [rsi], 0
je 0x1400ad3c2
lea rdx, [0x14019d026]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400ad3f1
mov rcx, rsi
call fcn.14016b5d8
mov qword [rbp], 0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], eax
mov rax, rbp
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, [0x14019d02a]
lea rcx, [rsi + 2]
call sub.msvcrt.dll_wcscmp
test eax, eax
mov rcx, rsi
sete byte [rbp + 0x10]
call fcn.14015cae0
mov rcx, rsi
mov r12, rax
call fcn.14016b5d8
test r12, r12
je 0x1400ad480
mov rax, rbp
mov qword [rbp], r12
mov qword [rbp + 8], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
mov eax, dword [rax]
test eax, eax
je 0x1400ad470
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call fcn.14016b5d8
xor eax, eax
jmp 0x1400ad3e6
call r12
mov dword [rax], 2
xor eax, eax
jmp 0x1400ad3e6
mov rcx, rbp
call fcn.14016b5d8
xor eax, eax
jmp 0x1400ad3e6
Function at 0x1400ad8a0
Capabilities:
Delete file
Move file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov r12, rcx
mov r13, rdx
call rbp
xor edx, edx
mov dword [rax], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r12
mov ecx, 0xfde9
mov rdi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rdi
test eax, eax
mov esi, eax
je 0x1400ada13
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400ada13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call rdi
call rbp
xor edx, edx
mov dword [rax], 0
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r13
mov ecx, 0xfde9
call rdi
test eax, eax
mov r12d, eax
je 0x1400ada02
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400ada02
xor edx, edx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r13
mov ecx, 0xfde9
call rdi
test rbx, rbx
je 0x1400ada0c
mov rdx, rsi
mov rcx, rbx
mov r13, qword [sym.imp.msvcrt.dll__wrename]
call r13
test eax, eax
mov edi, eax
jne 0x1400ad9d0
mov rcx, rsi
call fcn.14016b5d8
mov rcx, rbx
call fcn.14016b5d8
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call rbp
cmp dword [rax], 0xd
je 0x1400ad9e0
call rbp
xor edi, edi
cmp dword [rax], 0x11
jne 0x1400ad9ab
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wremove]
test eax, eax
jne 0x1400ada45
xor edi, edi
mov rdx, rsi
mov rcx, rbx
call r13
test eax, eax
setne dil
neg edi
jmp 0x1400ad9ab
call rbp
mov eax, dword [rax]
test eax, eax
je 0x1400ada31
xor esi, esi
mov edi, 0xffffffff
jmp 0x1400ad9ab
call rbp
mov edx, dword [rax]
test edx, edx
je 0x1400ada22
xor ebx, ebx
jmp 0x1400ad927
call rbp
xor ebx, ebx
mov dword [rax], 2
jmp 0x1400ad927
call rbp
xor esi, esi
mov dword [rax], 2
mov edi, 0xffffffff
jmp 0x1400ad9ab
call rbp
mov edi, 0xffffffff
mov dword [rax], 0xd
jmp 0x1400ad9ab

Function at 0x1400adac0
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x1402840b0]
mov edi, r9d
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
call qword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov rbx, rax
je 0x1400adb09
test dil, dil
je 0x1400adb09
mov dword [rsp + 0x24], 1
movsxd rcx, eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, qword [rsp + 0x28]
xor rdi, qword [rsi]
mov eax, ebx
jne 0x1400adb1d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4db0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400adb50
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x1402840b0]
mov edi, r9d
movsxd rcx, ecx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
call qword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov rbx, rax
je 0x1400adb9c
test dil, dil
je 0x1400adb9c
mov dword [rsp + 0x24], 1
movsxd rcx, eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, qword [rsp + 0x28]
xor rdi, qword [rsi]
mov eax, ebx
jne 0x1400adbb0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4db0
nop
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x440
mov rbx, qword [0x1402840b0]
mov ecx, 0xf6
lea rsi, [rsp + 0x40]
mov rax, qword [rbx]
mov qword [rsp + 0x438], rax
xor eax, eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400adcb0
lea rdi, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14019d034]
mov rcx, rsi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400adcb0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
mov edx, 0xc0010000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400adcb0
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp eax, 0xffffffff
mov edi, eax
je 0x1400adca0
lea rdx, [0x14019d03c]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fdopen]
test rax, rax
mov rsi, rax
je 0x1400adcb4
mov rdx, qword [rsp + 0x438]
xor rdx, qword [rbx]
mov rax, rsi
jne 0x1400adcbe
add rsp, 0x440
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
xor esi, esi
jmp 0x1400adc7e
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
jmp 0x1400adc7e
call fcn.1400c4db0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400adbc0
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x1402840b0]
mov edi, r9d
movsxd rcx, ecx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
call qword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov rbx, rax
je 0x1400adb9c
test dil, dil
je 0x1400adb9c
mov dword [rsp + 0x24], 1
movsxd rcx, eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, qword [rsp + 0x28]
xor rdi, qword [rsi]
mov eax, ebx
jne 0x1400adbb0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4db0
nop
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x440
mov rbx, qword [0x1402840b0]
mov ecx, 0xf6
lea rsi, [rsp + 0x40]
mov rax, qword [rbx]
mov qword [rsp + 0x438], rax
xor eax, eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400adcb0
lea rdi, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14019d034]
mov rcx, rsi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400adcb0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
mov edx, 0xc0010000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400adcb0
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp eax, 0xffffffff
mov edi, eax
je 0x1400adca0
lea rdx, [0x14019d03c]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fdopen]
test rax, rax
mov rsi, rax
je 0x1400adcb4
mov rdx, qword [rsp + 0x438]
xor rdx, qword [rbx]
mov rax, rsi
jne 0x1400adcbe
add rsp, 0x440
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax]
xor esi, esi
jmp 0x1400adc7e
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
jmp 0x1400adc7e
call fcn.1400c4db0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400ae1e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [0x1402840b0]
mov r12, rcx
mov rdi, rdx
mov rsi, rcx
mov rbx, rdx
mov rax, qword [r13]
mov qword [rsp + 0x38], rax
xor eax, eax
test rdx, rdx
je 0x1400ae3b2
mov rbp, rdx
shr rbp, 2
and ebp, 7
je 0x1400ae30d
mov rbx, rdi
lea rsi, [r12 + 4]
call sub.msvcrt.dll_rand
sub rbx, 4
mov dword [rsp + 0x30], eax
mov dword [r12], eax
je 0x1400ae3b2
cmp rbp, 1
je 0x1400ae30d
cmp rbp, 2
je 0x1400ae2f3
cmp rbp, 3
je 0x1400ae2d9
cmp rbp, 4
je 0x1400ae2bf
cmp rbp, 5
je 0x1400ae2a5
cmp rbp, 6
je 0x1400ae28b
mov rbx, rdi
call sub.msvcrt.dll_rand
sub rbx, 8
mov dword [rsi], eax
mov dword [rsp + 0x30], eax
lea rsi, [r12 + 8]
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 3
mov dword [rsp + 0x30], eax
jbe 0x1400ae410
cmp rbx, 4
mov dword [rsi], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 8
mov dword [rsp + 0x30], eax
mov dword [rsi + 4], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 0xc
mov dword [rsp + 0x30], eax
mov dword [rsi + 8], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 0x10
mov dword [rsp + 0x30], eax
mov dword [rsi + 0xc], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 0x14
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x10], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 0x18
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x14], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
cmp rbx, 0x1c
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x18], eax
je 0x1400ae3b2
call sub.msvcrt.dll_rand
add rsi, 0x20
mov dword [rsi - 4], eax
sub rbx, 0x20
mov dword [rsp + 0x30], eax
jne 0x1400ae30d
lea rbp, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400ae3f8
mov edx, edi
mov rcx, qword [rsp + 0x30]
mov r8, r12
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x38]
xor rax, qword [r13]
jne 0x1400ae425
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rbp, [rsp + 0x30]
mov r8, rbx
mov rcx, rsi
mov rdx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x1400ae3b7
call fcn.1400c4db0
nop
nop
nop
nop
nop
nop
Function at 0x1400ae430
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov rbx, qword [0x1402840b0]
mov eax, edx
movzx ecx, cl
shl eax, 8
or ecx, eax
mov rdx, qword [rbx]
mov qword [rsp + 0x1b8], rdx
xor edx, edx
movzx ecx, cx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400ae4a0
movzx edx, word [rsp + 0x20]
cmp dl, 2
jne 0x1400ae492
shr dx, 8
cmp dx, 2
jne 0x1400ae492
mov rdx, qword [rsp + 0x1b8]
xor rdx, qword [rbx]
jne 0x1400ae4a7
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x1400ae47c
mov eax, 0xffffffff
jmp 0x1400ae47c
call fcn.1400c4db0
nop
nop dword [rax]

Function at 0x1400ae4b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov edx, 2
mov ecx, 2
call fcn.1400ae430
test eax, eax
jne 0x1400ae500
lea rcx, [0x14019d1c4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ae4f3
mov dword [0x1402a2180], 0x800
add rsp, 0x28
ret
mov edx, 1
mov ecx, 1
call fcn.1400ae430
test eax, eax
je 0x1400ae4c7
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.Error:_cannot_initialize_Winsocks_n
lea r9, [rax + 0x60]
mov r8d, 0x22
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x1400ae4c7