joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ffe0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140050029
mov dword [rsp + 0x30], 0x2719
call fcn.140146e40
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x1400500bd
mov qword [rsp + 0x298], rbp
mov qword [rsp + 0x58], rcx
xor ebp, ebp
xor ecx, ecx
mov qword [rsp + 0x270], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rbp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
lea rdx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x140050095
jle 0x1400500ab
mov dword [rsp + 0x30], ebp
call fcn.140146e40
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x278
pop rdi
pop rbx
ret

Function at 0x1400500e0
Capabilities:
Get socket status

Disassembly:
push rbx
push rdi
sub rsp, 0x278
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140050129
mov dword [rsp + 0x30], 0x2719
call fcn.140146e40
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x1400501bc
mov qword [rsp + 0x298], rbp
mov qword [rsp + 0x58], rcx
xor ebp, ebp
xor ecx, ecx
mov qword [rsp + 0x270], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rbp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
lea r8, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x140050194
jle 0x1400501aa
mov dword [rsp + 0x30], ebp
call fcn.140146e40
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x298]
mov eax, esi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x278
pop rdi
pop rbx
ret
Function at 0x1400501e0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14005022c
mov dword [rsp + 0x30], 0x2719
call fcn.140146e40
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x1400502c6
mov qword [rsp + 0x258], rcx
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov dword [rsp + 0x250], 1
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x250]
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
js 0x1400502bc
mov dword [rsp + 0x30], 0
call fcn.140146e40
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x140050460
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov rbx, rcx
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 1
call fcn.140146e40
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x48]
lea r8d, [rax + 1]
mov rcx, rbx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.140146e40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1400504e4
cmp eax, 0x4d2
jne 0x1400504e9
call fcn.140146e40
test ebx, ebx
jne 0x1400504f2
call fcn.140146e40
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x60
pop rbx
ret

Function at 0x140052770
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140172000], eax
inc eax
cmp eax, 1
jne 0x1400527bd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140172004], eax
test dil, dil
je 0x1400527d0
xor eax, eax
lock xadd dword [0x140172004], eax
test eax, eax
jne 0x1400527f4
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rcx
call fcn.140146e40
lea rdx, str.winsock
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.14004e390
int3
Function at 0x1400540f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov rbx, rcx
call fcn.140146e40
mov rbp, qword [rbx]
mov edi, dword [rsi + 4]
cmp rbp, 0xffffffffffffffff
jne 0x14005412c
mov dword [rsp + 0x30], 0x2719
jmp 0x140054188
cmp edi, 0x80
jne 0x140054138
or byte [rbx + 8], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, rsi
mov r8d, edi
mov edx, 0xffff
mov rcx, rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
jne 0x14005419d
mov dword [rsp + 0x30], edi
call fcn.140146e40
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
cmp dword [rsp + 0x30], 0
jne 0x1400541c1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.set_option
lea rcx, [rsp + 0x30]
call fcn.14004e390
int3

Function at 0x140056950
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x22]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400569ce
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp dword [rbx], eax
jge 0x1400569ba
xor al, al
jmp 0x1400569d0
mov dword [rbx], eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
jmp 0x1400569d0
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x1400574e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x140172028]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xa]
mov r9d, 0x5e4c
mov dword [rsp + 0x20], 0x5e2d5e3b
mov dword [rsp + 0x24], 0x5e2d5e26
mov dword [rsp + 0x28], 0x5e625e21
mov dword [rsp + 0x2c], 0x5e345e29
mov qword [rsp + 0x30], 0x5e4c5e29
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.140016520
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x130
pop rbp
ret

Function at 0x1400577e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
mov r9d, 0x792e
lea r8, [0x140172078]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0xd]
mov dword [rsp + 0x20], 0x794f7959
mov dword [rsp + 0x24], 0x794f7944
mov dword [rsp + 0x28], 0x79717943
mov dword [rsp + 0x2c], 0x791a7918
mov dword [rsp + 0x30], 0x794b7900
mov dword [rsp + 0x34], 0x794b7956
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
call fcn.140016520
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x130
pop rbp
ret
Function at 0x140057d20
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r9d, r9d
mov rdi, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x270], rsi
mov rsi, rcx
lea edx, [r9 + 0x26]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ebx, ebx
test eax, eax
jne 0x140057daa
cmp word [rsp + 0x30], bx
jne 0x140057d88
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov rcx, rsi
call fcn.14003ca90
jmp 0x140057dbb
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140057d91
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003ca90
jmp 0x140057dbb
cmp qword [rsi + 0x18], 8
mov qword [rsi + 0x10], rbx
jb 0x140057db8
mov rsi, qword [rsi]
mov word [rsi], bx
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rsi, qword [rsp + 0x270]
test eax, eax
jne 0x140057e0f
cmp word [rsp + 0x30], ax
je 0x140057dfd
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140057df3
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, rdi
call fcn.14003ca90
jmp 0x140057e20
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rbx
jb 0x140057e1d
mov rdi, qword [rdi]
mov word [rdi], bx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
Function at 0x140057e50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor eax, eax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
cmp qword [rcx + 0x18], 8
jb 0x140057e8e
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005f270
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140057ed6
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140057f2c
jmp 0x140057ed9
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140057f2c
mov edx, eax
mov rcx, rbx
call fcn.140042d50
mov dword [rsp + 0x58], edi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140057f0d
mov rcx, rdi
jmp 0x140057f10
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140057f2c
mov dil, 1
jmp 0x140057f2f
xor dil, dil
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140057f5c
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
dec eax
jne 0x140057f5c
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x140057f5c
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140057f80
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor eax, eax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
cmp qword [rcx + 0x18], 8
jb 0x140057fbe
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005f270
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140058001
cmp qword [rax], 0xffffffffffffffff
je 0x140058036
mov dword [rsp + 0x58], edi
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, rdx
test rax, rax
jne 0x140058019
mov rax, rdi
jmp 0x14005801c
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005803b
xor dil, dil
jmp 0x14005803e
mov dil, 1
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14005806b
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
dec eax
jne 0x14005806b
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x14005806b
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140058090
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov qword [r11 - 0x28], 0
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [r11 - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400581ab
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14005f340
nop
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.140058300
nop
mov rsi, qword [rsp + 0x38]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
sub rdx, rbx
mov r8, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140058146
xor sil, sil
jmp 0x14005815b
mov r9, rsi
mov r8, rbx
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.140058d50
mov sil, 1
test rbx, rbx
je 0x14005817a
mov rcx, rbx
call fcn.1400ed78c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400581a7
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
dec eax
jne 0x1400581a7
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x1400581a7
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + ioctlsocket]
movzx eax, sil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140059e30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rbx, rcx
mov edi, 0xffff
cmp di, dx
jne 0x140059e81
xor r15d, r15d
movzx eax, r15w
jmp 0x14005a07b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140059ebe
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140059ebe
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x14005a07b
cmp qword [rcx + 0x90], 0
je 0x14005a078
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x80]
cmp qword [r8], rax
jne 0x140059efa
mov rdx, qword [rcx + 0x70]
mov rcx, qword [rcx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x140059f23
mov rdx, qword [rbx + 0x90]
movzx ecx, r14w
call fcn.1400f14a4
cmp ax, di
je 0x14005a078
movzx edi, r14w
jmp 0x14005a078
mov word [rbp - 1], r14w
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x1f], select
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140029810
nop
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop dword [rax]
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp + 7]
cmovae r8, r10
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x14005a058
cmp eax, 1
jg 0x14005a03a
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov rsi, qword [rbp - 9]
sub rsi, rax
je 0x14005a005
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x90]
mov r8, rsi
mov edx, 1
call fcn.1400ee8d8
cmp rsi, rax
jne 0x14005a058
mov r9, qword [rbp + 0x1f]
mov r10, qword [rbp + 7]
mov byte [rbx + 0x82], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x14005a054
test rsi, rsi
jne 0x140059f60
cmp qword [rbp + 0x17], 0x20
jae 0x14005a058
xor r8d, r8d
lea edx, [rsi + 8]
lea rcx, [rbp + 7]
call fcn.14001a600
jmp 0x140059f54
cmp eax, 3
jne 0x14005a058
mov rdx, qword [rbx + 0x90]
movzx ecx, word [rbp - 1]
call fcn.1400f14a4
cmp ax, di
je 0x14005a058
movzx edi, r14w
cmp qword [rbp + 0x1f], 0x10
jb 0x14005a068
mov rcx, qword [rbp + 7]
call fcn.1400ed78c
mov qword [rbp + 0x1f], select
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
movzx eax, di
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14005afd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x14005b157
cmp byte [rcx + 0x82], 0
je 0x14005b157
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14005b030
xor al, al
jmp 0x14005b159
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x18], select
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140029810
nop
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14005b0b0
dec eax
jne 0x14005b127
jmp 0x14005b0b7
mov byte [rdi + 0x82], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14005b101
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.1400ee8d8
cmp rbx, rax
jne 0x14005b12c
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x82], 0
je 0x14005b130
test rbx, rbx
jne 0x14005b070
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14001a600
jmp 0x14005b05c
sub eax, 2
je 0x14005b130
xor bl, bl
jmp 0x14005b132
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x14005b142
mov rcx, qword [rbp - 0x30]
call fcn.1400ed78c
mov qword [rbp - 0x18], select
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x14005b159
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret