joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400acac0
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rdi, qword [0x140285110]
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 0x1400acbb0
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 0x1400acbb0
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400acb88
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 0x1400acbb4
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
jmp 0x1400acb88
call fcn.1400c4ec0
nop
nop word [rax + rax]
cmp ecx, 0x84
ja 0x1400acf64
cmp ecx, 0x80
jae 0x1400acf5a
cmp ecx, 2
ja 0x1400acf80
cmp ecx, 1
jae 0x1400acf85
mov ecx, 5
jmp 0x1400acac0
cmp ecx, 0x86
je 0x1400acfa0
jb 0x1400acf90
cmp ecx, 0x87
jne 0x1400acfa0
mov ecx, 0xe
jmp 0x1400acac0
cmp ecx, 3
jne 0x1400acfa0
jmp 0x1400accf0
mov ecx, 0xd
jmp 0x1400acac0
mov ecx, 0x27
jmp 0x1400acac0
Function at 0x1400acf10
Capabilities:
Query environment variable

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

Function at 0x1400acf40
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 [0x140285110]
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 0x1400acbb0
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 0x1400acbb0
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400acb88
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 0x1400acbb4
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
jmp 0x1400acb88
call fcn.1400c4ec0
nop
nop word [rax + rax]
cmp ecx, 0x84
ja 0x1400acf64
cmp ecx, 0x80
jae 0x1400acf5a
cmp ecx, 2
ja 0x1400acf80
cmp ecx, 1
jae 0x1400acf85
mov ecx, 5
jmp 0x1400acac0
cmp ecx, 0x86
je 0x1400acfa0
jb 0x1400acf90
cmp ecx, 0x87
jne 0x1400acfa0
mov ecx, 0xe
jmp 0x1400acac0
cmp ecx, 3
jne 0x1400acfa0
jmp 0x1400accf0
mov ecx, 0xd
jmp 0x1400acac0
mov ecx, 0x27
jmp 0x1400acac0

Function at 0x1400ad290
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 0x1400ad330
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400ad330
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.14016b6d8
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 0x1400ad350
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 0x1400ad31e
Function at 0x1400ad420
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 0x1400ad550
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400ad550
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 0x1400ad570
cmp word [rsi], 0
je 0x1400ad4d2
lea rdx, [0x14019e086]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400ad501
mov rcx, rsi
call fcn.14016b6d8
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, [0x14019e08a]
lea rcx, [rsi + 2]
call sub.msvcrt.dll_wcscmp
test eax, eax
mov rcx, rsi
sete byte [rbp + 0x10]
call fcn.14015cbe0
mov rcx, rsi
mov r12, rax
call fcn.14016b6d8
test r12, r12
je 0x1400ad590
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 0x1400ad580
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call fcn.14016b6d8
xor eax, eax
jmp 0x1400ad4f6
call r12
mov dword [rax], 2
xor eax, eax
jmp 0x1400ad4f6
mov rcx, rbp
call fcn.14016b6d8
xor eax, eax
jmp 0x1400ad4f6
Function at 0x1400ad9b0
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 0x1400adb23
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400adb23
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 0x1400adb12
movsxd rcx, eax
add rcx, rcx
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x1400adb12
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 0x1400adb1c
mov rdx, rsi
mov rcx, rbx
mov r13, qword [sym.imp.msvcrt.dll__wrename]
call r13
test eax, eax
mov edi, eax
jne 0x1400adae0
mov rcx, rsi
call fcn.14016b6d8
mov rcx, rbx
call fcn.14016b6d8
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 0x1400adaf0
call rbp
xor edi, edi
cmp dword [rax], 0x11
jne 0x1400adabb
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wremove]
test eax, eax
jne 0x1400adb55
xor edi, edi
mov rdx, rsi
mov rcx, rbx
call r13
test eax, eax
setne dil
neg edi
jmp 0x1400adabb
call rbp
mov eax, dword [rax]
test eax, eax
je 0x1400adb41
xor esi, esi
mov edi, 0xffffffff
jmp 0x1400adabb
call rbp
mov edx, dword [rax]
test edx, edx
je 0x1400adb32
xor ebx, ebx
jmp 0x1400ada37
call rbp
xor ebx, ebx
mov dword [rax], 2
jmp 0x1400ada37
call rbp
xor esi, esi
mov dword [rax], 2
mov edi, 0xffffffff
jmp 0x1400adabb
call rbp
mov edi, 0xffffffff
mov dword [rax], 0xd
jmp 0x1400adabb

Function at 0x1400adbd0
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x140285110]
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 0x1400adc19
test dil, dil
je 0x1400adc19
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 0x1400adc2d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4ec0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400adc60
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x140285110]
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 0x1400adcac
test dil, dil
je 0x1400adcac
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 0x1400adcc0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4ec0
nop
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x440
mov rbx, qword [0x140285110]
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 0x1400addc0
lea rdi, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14019e094]
mov rcx, rsi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400addc0
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 0x1400addc0
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp eax, 0xffffffff
mov edi, eax
je 0x1400addb0
lea rdx, [0x14019e09c]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fdopen]
test rax, rax
mov rsi, rax
je 0x1400addc4
mov rdx, qword [rsp + 0x438]
xor rdx, qword [rbx]
mov rax, rsi
jne 0x1400addce
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 0x1400add8e
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
jmp 0x1400add8e
call fcn.1400c4ec0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400adcd0
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x140285110]
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 0x1400adcac
test dil, dil
je 0x1400adcac
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 0x1400adcc0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.1400c4ec0
nop
nop word cs:[rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x440
mov rbx, qword [0x140285110]
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 0x1400addc0
lea rdi, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14019e094]
mov rcx, rsi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400addc0
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 0x1400addc0
xor edx, edx
mov rcx, rax
call qword [sym.imp.msvcrt.dll__open_osfhandle]
cmp eax, 0xffffffff
mov edi, eax
je 0x1400addb0
lea rdx, [0x14019e09c]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__fdopen]
test rax, rax
mov rsi, rax
je 0x1400addc4
mov rdx, qword [rsp + 0x438]
xor rdx, qword [rbx]
mov rax, rsi
jne 0x1400addce
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 0x1400add8e
mov ecx, edi
call qword [sym.imp.msvcrt.dll__close]
jmp 0x1400add8e
call fcn.1400c4ec0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400ae2f0
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 [0x140285110]
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 0x1400ae4c2
mov rbp, rdx
shr rbp, 2
and ebp, 7
je 0x1400ae41d
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 0x1400ae4c2
cmp rbp, 1
je 0x1400ae41d
cmp rbp, 2
je 0x1400ae403
cmp rbp, 3
je 0x1400ae3e9
cmp rbp, 4
je 0x1400ae3cf
cmp rbp, 5
je 0x1400ae3b5
cmp rbp, 6
je 0x1400ae39b
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 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 4
mov dword [rsi - 4], eax
sub rbx, 4
mov dword [rsp + 0x30], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 3
mov dword [rsp + 0x30], eax
jbe 0x1400ae520
cmp rbx, 4
mov dword [rsi], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 8
mov dword [rsp + 0x30], eax
mov dword [rsi + 4], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 0xc
mov dword [rsp + 0x30], eax
mov dword [rsi + 8], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 0x10
mov dword [rsp + 0x30], eax
mov dword [rsi + 0xc], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 0x14
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x10], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 0x18
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x14], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
cmp rbx, 0x1c
mov dword [rsp + 0x30], eax
mov dword [rsi + 0x18], eax
je 0x1400ae4c2
call sub.msvcrt.dll_rand
add rsi, 0x20
mov dword [rsi - 4], eax
sub rbx, 0x20
mov dword [rsp + 0x30], eax
jne 0x1400ae41d
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 0x1400ae508
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 0x1400ae535
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 0x1400ae4c7
call fcn.1400c4ec0
nop
nop
nop
nop
nop
nop
Function at 0x1400ae540
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov rbx, qword [0x140285110]
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 0x1400ae5b0
movzx edx, word [rsp + 0x20]
cmp dl, 2
jne 0x1400ae5a2
shr dx, 8
cmp dx, 2
jne 0x1400ae5a2
mov rdx, qword [rsp + 0x1b8]
xor rdx, qword [rbx]
jne 0x1400ae5b7
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x1400ae58c
mov eax, 0xffffffff
jmp 0x1400ae58c
call fcn.1400c4ec0
nop
nop dword [rax]

Function at 0x1400ae5c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov edx, 2
mov ecx, 2
call fcn.1400ae540
test eax, eax
jne 0x1400ae610
lea rcx, [0x14019e224]
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 0x1400ae603
mov dword [0x1402a3180], 0x800
add rsp, 0x28
ret
mov edx, 1
mov ecx, 1
call fcn.1400ae540
test eax, eax
je 0x1400ae5d7
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 0x1400ae5d7
Function at 0x1400aeec0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [rcx]
mov edi, 0xffffffff
mov rsi, qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
nop
mov ecx, dword [0x1402a3830]
call rbx
test rax, rax
je 0x1400aeef3
cmp byte [rax + 8], 0
jne 0x1400aef15
mov r8d, 1
mov edx, edi
mov rcx, rbp
call rsi
cmp eax, 0xc0
je 0x1400aeee0
cmp eax, 0xffffffff
je 0x1400aeee0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx edx, byte [rax + 9]
test dl, dl
je 0x1400aeef3
mov rbp, qword [rax + 0x10]
mov byte [rax + 8], 1
test rbp, rbp
je 0x1400aef44
mov qword [rsp + 0x28], rax
mov rcx, qword [rbp + 0x10]
call qword [rbp + 8]
mov rbp, qword [rbp]
mov rax, qword [rsp + 0x28]
test rbp, rbp
jne 0x1400aef2a
cmp qword [rax], 0
mov qword [rax + 0x20], 0
je 0x1400aef5a
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__endthreadex]
lea rcx, [rax + 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x28]
call fcn.14016b6d8
jmp 0x1400aef52

Function at 0x1400aef80
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x20
mov rdi, rdx
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400af015
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
je 0x1400af000
mov qword [rbx + 8], rdi
mov qword [rbx + 0x18], 0
lea rcx, [0x1402a3840]
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402a31a0]
test rax, rax
mov qword [rbx + 0x10], rax
je 0x1400aefdc
mov qword [rax + 0x18], rbx
lea rcx, [0x1402a3840]
mov qword [0x1402a31a0], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call fcn.14016b6d8
mov eax, 0xb
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov eax, dword [rax]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400af090
Capabilities:
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
mov edi, eax
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
mov edx, 0xc
jne 0x1400af0c3
mov eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400af0e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400af2b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ebp, 0xffffffff
mov rbx, rcx
mov r12, rdx
mov ecx, dword [0x1402a3830]
call rsi
test rax, rax
je 0x1400af2e6
cmp byte [rax + 8], 0
jne 0x1400af331
mov r8d, 1
mov edx, ebp
mov rcx, qword [rbx]
call rdi
cmp eax, 0xc0
je 0x1400af2d3
cmp eax, 0xffffffff
je 0x1400af2d3
test r12, r12
je 0x1400af30c
mov rax, qword [rbx + 0x20]
mov qword [r12], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14016b6d8
movzx edx, byte [rax + 9]
test dl, dl
je 0x1400af2e6
mov rbx, qword [rax + 0x10]
mov byte [rax + 8], 1
test rbx, rbx
je 0x1400af35f
mov qword [rsp + 0x28], rax
mov rcx, qword [rbx + 0x10]
call qword [rbx + 8]
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x28]
test rbx, rbx
jne 0x1400af346
cmp qword [rax], 0
mov qword [rax + 0x20], 0
je 0x1400af375
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__endthreadex]
lea rcx, [rax + 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsp + 0x28]
call fcn.14016b6d8
jmp 0x1400af36d

Function at 0x1400af390
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x140285110]
mov rsi, rcx
mov r13, rdx
mov r12, r8
mov edi, r9d
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rax, [rsp + 0x30]
test rcx, rcx
mov ecx, 0x58
cmove rsi, rax
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x1400af470
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r12
lea rcx, [rax + 0x30]
mov byte [rax + 8], 0
mov byte [rax + 9], 0
mov qword [rax + 0x10], 0
mov qword [rax + 0x28], 0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400aec50]
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
je 0x1400af480
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
mov qword [rbx], 0
mov qword [rsi], rbx
je 0x1400af453
mov edx, edi
xor edi, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rdx, qword [rsp + 0x38]
xor rdx, qword [rbp]
mov eax, edi
jne 0x1400af492
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 0xc
jmp 0x1400af453
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rbx
mov edi, dword [rax]
call fcn.14016b6d8
jmp 0x1400af453
call fcn.1400c4ec0
nop
nop dword [rax + rax]

Function at 0x1400af540
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1402a3830]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rdx, rax
je 0x1400af565
movzx eax, byte [rax + 8]
mov byte [rdx + 8], 0
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret