joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401112d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rbp, rcx
je 0x140111320
mov qword [rdx + 0x238], 0
lea rcx, [0x140112a80]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
jmp 0x1401113ab
xor edx, edx
lea rsi, [rdi + 0x40]
mov rcx, rsi
lea r8d, [rdx + 0x20]
call fcn.140145ba0
test dword [rbx + 0x58], 0x80000
je 0x140111347
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov rcx, qword [rbx + 0x118]
lea rdx, [0x1401da98c]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140111377
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1401113af
test dword [rbx + 0x58], 0x80000
je 0x1401113ff
lea rcx, [rdi + 0x78]
cmp qword [rcx], 0xffffffffffffffff
jne 0x1401113ff
mov rdx, qword [rdi + 0x70]
lea r8, [0x140110950]
mov dword [rsp + 0x28], 4
mov r9, rdi
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1401113ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401113c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1401113cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
and qword [rdi + 0x68], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x1401113f5
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rbp + 0x48]
mov qword [rax + 0x68], rdi
jmp 0x1401113f9
mov qword [rdi + 0x68], rdi
mov qword [rbp + 0x48], rdi
jmp 0x14011141e
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14011141e
xor r9d, r9d
lea rdx, [0x1401107c0]
lea r8d, [r9 + 0x32]
call fcn.140113a40
bts dword [rbx + 0x58], 0x10
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140111440
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov ebx, r8d
mov rdi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
mov esi, r9d
call fcn.14010c570
mov edx, ebx
lea r8, [rbp - 0x20]
mov rcx, rdi
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x20], xmm0
call qword [rdi + 0x68]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1401114eb
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1401114eb
mov rcx, qword [rdi + 0x118]
lea r9, [rbp + 0x30]
cmp esi, eax
cmova esi, eax
and qword [rsp + 0x20], 0
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401114d9
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp - 0x10]
mov rdx, rdi
mov r8d, eax
mov rcx, r14
call fcn.140111580
jmp 0x1401114fc
mov edx, dword [rbp + 0x30]
lea r8, [rbp - 0x20]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rbp + 0x30]
jmp 0x1401114fe
lea r8, [rbp - 0x20]
mov rdx, 0xfffffffffffff024
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x140111600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
je 0x14011164f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
add rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140111666
add ebx, dword [rsp + 0x50]
cmp ebx, edi
jb 0x140111624
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140111651
Function at 0x140113550
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
lea r8, [rsp + 0x50]
mov rsi, rcx
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1401135a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14011bfd0
jmp 0x1401136b1
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
mov edx, 0x48000022
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rdx, [rbx + 0x20]
mov dword [rbx + 0x58], 8
lea rcx, [rsi + 0x10]
mov qword [rbx + 8], rsi
mov qword [rdx], rcx
lea r9, [rsp + 0x70]
test eax, eax
mov dword [rbx + 0x10], 8
mov rax, qword [rcx + 8]
mov r8d, 0x2005
cmove rdi, qword [rsp + 0x60]
mov qword [rdx + 8], rax
mov qword [rax], rdx
lea rax, [rsp + 0x54]
mov qword [rcx + 8], rdx
mov edx, 0xffff
or dword [rbx + 0x30], 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov qword [rbx + 0x68], rdi
mov byte [rbx + 0x19c], 0
mov dword [rsp + 0x54], 0x274
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140113596
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140112bf0
cmp rax, 0xffffffffffffffff
je 0x140113673
mov qword [rbx + 0x70], rax
jmp 0x140113678
bts dword [rbx + 0x58], 0x18
and word [rbx + 0x198], 0
mov eax, reloc.WS2_32.dll_listen
and qword [rbx + 0xf8], 0
and qword [rbx + 0x168], 0
mov dword [rbx + 0xc0], eax
mov dword [rbx + 0x130], eax
xor eax, eax
mov qword [rbx + 0xb8], rbx
mov qword [rbx + 0x128], rbx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x300
pop rdi
pop rsi
pop rbx
ret

Function at 0x1401159c0
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r8d, dword [rcx + 0x168]
mov rbx, rcx
test r8b, 4
je 0x140115a05
mov qword [rcx + 0x88], 0xfffffffffffff02a
mov dword [rcx + 0x14c], 0x32
jmp 0x140115a9e
mov rdx, qword [rcx + 0x160]
and r8d, 1
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140115a96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
cmp rcx, 0xfffffffffffff00e
jne 0x140115a9e
mov rcx, qword [rbx + 0x150]
lea r8, [rsp + 0xa0]
xor edx, edx
call fcn.140118010
test eax, eax
jne 0x140115a9e
mov rcx, qword [rbx + 0x160]
lea r8, [rsp + 0x20]
xor edx, edx
call fcn.140118010
test eax, eax
jne 0x140115a9e
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0xa0], rax
jne 0x140115a9e
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0xd0], rax
jne 0x140115a9e
and qword [rbx + 0x88], 0
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x130
pop rbx
ret
Function at 0x1401165a0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401165c6
and qword [rbx + 0x88], 0
jmp 0x140116600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x14c], eax
call fcn.14011bfd0
movsxd rcx, eax
mov eax, dword [rbx + 0x14c]
mov qword [rbx + 0x88], rcx
cmp eax, 0x7b
je 0x1401165f5
cmp eax, 0x10b
jne 0x140116600
mov qword [rbx + 0x88], 0xfffffffffffff019
add rsp, 0x20
pop rbx
ret
Function at 0x140116ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, qword [rcx + 0x150]
mov rdi, rcx
xor ebx, ebx
mov rcx, r14
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140116cee
mov dword [rdi + 0x14c], 0x10b
mov rax, 0xfffffffffffff02c
jmp 0x140116db6
mov ecx, 0x290
call fcn.14010c380
mov rsi, rax
test rax, rax
jne 0x140116d16
mov dword [rdi + 0x14c], reloc.WS2_32.dll_ntohl
mov rax, 0xfffffffffffff027
jmp 0x140116db6
mov rcx, r14
call fcn.140155960
mov rbp, rax
test rax, rax
jne 0x140116d2f
lea r15, [0x14018aaf0]
jmp 0x140116d4f
cmp word [r14 + rax*2 - 2], 0x5c
je 0x140116d48
cmp word [r14 + rax*2 - 2], 0x2f
lea r15, [0x14018ab00]
jne 0x140116d4f
lea r15, [0x14018aaf8]
lea rcx, [rax*2 + 8]
call fcn.14010c380
mov r12, rax
test rax, rax
je 0x140116d00
lea rdx, [rbp + 3]
mov r9, r14
mov r8, r15
mov rcx, rax
call fcn.140115740
lea rdx, [rsi + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, r12
mov qword [rsi + 0x30], rax
call fcn.14010c1f0
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x140116dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140116dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.14011bfd0
cdqe
mov rcx, rsi
mov qword [rdi + 0x88], rax
call fcn.14010c1f0
xor ecx, ecx
call fcn.14010c1f0
jmp 0x140116dde
mov dword [rsi + 0x288], ebx
mov qword [rdi + 0x88], rbx
mov rbx, rsi
mov qword [rdi + 0x90], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140116e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov edi, dword [rcx + 0x150]
mov rbx, rcx
mov rsi, qword [rcx + 0x180]
cmp edi, 0xffffffff
jne 0x140116e52
mov qword [rcx + 0x88], 0xfffffffffffff00d
lea ecx, [rdi + 7]
mov dword [rbx + 0x14c], ecx
jmp 0x140116f9f
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.140118dd0
test eax, eax
je 0x140116e74
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140116fc0
jmp 0x140116f9f
mov ecx, edi
xor r14d, r14d
call fcn.140156620
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140116ea4
lea ecx, [rax + 7]
mov dword [rbx + 0x14c], ecx
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x140116f9f
mov edi, 1
cmp rsi, 0xffffffffffffffff
je 0x140116ee3
xor edx, edx
lea r8d, [rdi + 0x1f]
lea rcx, [rsp + 0x30]
call fcn.140145ba0
mov r9d, edi
lea r8, [rsp + 0xb8]
xor edx, edx
lea r13, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140116ee6
mov r14d, edi
jmp 0x140116ee6
xor r13d, r13d
xor r15d, r15d
xor edi, edi
cmp rsi, 0xffffffffffffffff
je 0x140116f02
mov eax, edi
add rax, rsi
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rdx, qword [rbx + 0x178]
lea r9, [rsp + 0xb0]
mov eax, r15d
mov rcx, rbp
add rax, rax
mov qword [rsp + 0x20], r13
mov r8d, dword [rdx + rax*8]
mov rdx, qword [rdx + rax*8 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [rsp + 0xb0]
inc r15d
mov r12d, eax
test eax, eax
je 0x140116f48
cmp r15d, dword [rbx + 0x170]
jb 0x140116eeb
test r14d, r14d
je 0x140116f64
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r12d, r12d
jne 0x140116f96
test edi, edi
jne 0x140116f96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140116f7f
mov eax, 0x3ec
jmp 0x140116f89
cmp eax, 0x26
je 0x140116f96
cmp eax, 0x6d
je 0x140116f96
mov dword [rbx + 0x14c], eax
mov ecx, eax
jmp 0x140116e90
mov eax, edi
mov qword [rbx + 0x88], rax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140116fc0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
mov r13d, dword [rcx + 0x150]
mov dword [rsp + 0x88], r13d
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x140117010
mov ecx, 0x3ec
mov dword [rdi + 0x14c], ecx
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1401171b7
cmp byte [rdx + 4], 0
je 0x140117027
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x140116ffc
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x140117038
mov rcx, qword [rdx + 0x18]
mov rsi, qword [rdx + 0x10]
cmp rcx, rsi
jge 0x1401171af
xor edx, edx
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x14011706b
mov r8, qword [rdi + 0x178]
mov r9d, eax
mov eax, dword [r8]
add rdx, rax
lea r8, [r8 + 0x10]
sub r9, 1
jne 0x14011705b
sub rsi, rcx
cmp rdx, rsi
cmovl rsi, rdx
test rsi, rsi
je 0x1401171af
lea rbx, [rsi + rcx]
mov r8d, dword [0x1401daa88]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x98], rdx
sub rcx, rdx
add rax, rsi
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1401170e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x140116ffc
xor r15d, r15d
xor r12d, r12d
cmp r12d, dword [rdi + 0x170]
jae 0x140117178
cmp r15, rsi
jae 0x140117178
mov ecx, r12d
add rcx, rcx
mov r9, qword [rdi + 0x178]
mov r13d, dword [r9 + rcx*8]
mov rax, rsi
sub rax, r15
cmp r13, rax
cmovae r13, rax
and dword [rsp + 0x30], 0
add rdx, r15
add rdx, qword [rsp + 0x98]
mov r8, r13
mov rcx, qword [r9 + rcx*8 + 8]
call fcn.140145200
nop
add r15, r13
inc r12d
mov rdx, qword [rsp + 0x90]
jmp 0x1401170e9
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1401170d0
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1401171a6
mov qword [r14 + 0x18], rbx
mov rdx, r14
mov ecx, dword [rsp + 0x88]
call fcn.140118c90
mov qword [rdi + 0x88], rsi
jmp 0x1401171b7
and qword [rdi + 0x88], 0
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140117c40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov edi, dword [rcx + 0x188]
mov r14d, 0x10000
mov r12d, dword [rcx + 0x150]
mov rsi, rcx
mov r13d, dword [rcx + 0x16c]
cmp rdi, r14
mov r15, qword [rcx + 0x180]
cmovb r14d, edi
xor ebx, ebx
mov ecx, r14d
call fcn.14010c380
mov rbp, rax
test rax, rax
je 0x140117d29
cmp r15, 0xffffffffffffffff
je 0x140117d22
xor r8d, r8d
mov rdx, r15
mov ecx, r12d
call fcn.1401587d0
cmp rax, 0xffffffffffffffff
jne 0x140117d22
or ebx, 0xffffffff
mov rcx, rbp
call fcn.14010c1f0
mov rbp, qword [rsp + 0x58]
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov qword [rsi + 0x88], rax
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8d, r14d
cmp rdi, r14
mov rdx, rbp
mov ecx, r12d
cmovb r8d, edi
call fcn.140157490
test eax, eax
je 0x140117cba
cmp eax, 0xffffffff
je 0x140117cb7
movsxd rcx, eax
mov r8d, eax
sub rdi, rcx
mov rdx, rbp
mov ecx, r13d
call fcn.140158270
cmp eax, 0xffffffff
je 0x140117cb7
add ebx, eax
test rdi, rdi
jne 0x140117ce9
jmp 0x140117cba
lea rdx, str.uv__malloc
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.14011bf20
int3
Function at 0x1401180b0
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rsi, qword [rcx + 0x150]
lea rax, [rbp + 0x48]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor ebx, ebx
test eax, eax
jne 0x1401181dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rdi + 0x150]
cmp r14d, 0x10b
jne 0x1401181bc
cmp rsi, rax
jne 0x1401181c1
mov ecx, 0x20a
mov r14d, 0x105
call fcn.14010c380
mov rsi, rax
test rax, rax
je 0x1401181a9
mov rcx, qword [rdi + 0x150]
lea r9, [rbp - 0x10]
mov r8, rax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140118190
mov eax, eax
cmp rax, r14
jbe 0x140118161
lea rdx, [rax + rax]
mov rcx, rsi
mov r14d, eax
call fcn.14010c480
jmp 0x140118126
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x14011816d
mov word [rax], bx
lea rax, [rbp + 0x48]
mov rcx, rsi
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1401180e8
mov rcx, rsi
call fcn.14010c1f0
mov ecx, 0x10b
mov dword [rdi + 0x14c], 0x10b
jmp 0x1401181d3
mov dword [rdi + 0x14c], reloc.WS2_32.dll_ntohl
mov rbx, 0xfffffffffffff027
jmp 0x140118239
cmp rsi, rax
je 0x1401181c9
mov rcx, rsi
call fcn.14010c1f0
mov dword [rdi + 0x14c], r14d
mov ecx, r14d
call fcn.14011bfd0
movsxd rbx, eax
jmp 0x140118239
cmp rsi, qword [rdi + 0x150]
je 0x1401181ee
mov rcx, rsi
call fcn.14010c1f0
mov ecx, 0x58
call fcn.14010c380
mov rcx, rax
test rax, rax
je 0x1401181a9
mov qword [rax], rbx
mov eax, dword [rbp + 0x38]
imul eax, dword [rbp + 0x40]
mov qword [rcx + 8], rax
mov eax, dword [rbp + 0x48]
mov qword [rcx + 0x10], rax
mov eax, dword [rbp + 0x30]
mov qword [rcx + 0x18], rax
mov eax, dword [rbp + 0x30]
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rbx
or dword [rdi + 0x148], 8
mov qword [rdi + 0x90], rcx
mov qword [rdi + 0x88], rbx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140118790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov edi, dword [rcx + 0x150]
mov rbx, rcx
mov rbp, qword [rcx + 0x180]
cmp edi, 0xffffffff
jne 0x1401187d2
mov qword [rcx + 0x88], 0xfffffffffffff00d
lea ecx, [rdi + 7]
mov dword [rbx + 0x14c], ecx
jmp 0x140118917
mov ecx, edi
xor r15d, r15d
call fcn.140156620
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140118802
lea ecx, [rax + 7]
mov dword [rbx + 0x14c], ecx
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rbx + 0x88], rcx
jmp 0x140118917
lea rdx, [rsp + 0x50]
mov ecx, edi
call fcn.140118dd0
test eax, eax
je 0x140118827
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, rbx
call fcn.140118930
jmp 0x140118917
mov edi, 1
cmp rbp, 0xffffffffffffffff
je 0x140118866
xor edx, edx
lea r8d, [rdi + 0x1f]
lea rcx, [rsp + 0x30]
call fcn.140145ba0
mov r9d, edi
lea r8, [rsp + 0xb8]
xor edx, edx
lea r13, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140118869
mov r15d, edi
jmp 0x140118869
xor r13d, r13d
xor r14d, r14d
xor edi, edi
cmp rbp, 0xffffffffffffffff
je 0x140118885
mov eax, edi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rdx, qword [rbx + 0x178]
lea r9, [rsp + 0xb0]
mov eax, r14d
mov rcx, rsi
add rax, rax
mov qword [rsp + 0x20], r13
mov r8d, dword [rdx + rax*8]
mov rdx, qword [rdx + rax*8 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [rsp + 0xb0]
inc r14d
mov r12d, eax
test eax, eax
je 0x1401188cb
cmp r14d, dword [rbx + 0x170]
jb 0x14011886e
test r15d, r15d
je 0x1401188e7
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r12d, r12d
jne 0x14011890e
test edi, edi
jne 0x14011890e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x3ec
cmp eax, 5
cmove eax, ecx
mov dword [rbx + 0x14c], eax
mov ecx, eax
jmp 0x1401187ee
mov eax, edi
mov qword [rbx + 0x88], rax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401190e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x1401daa60]
mov dword [0x1401daa88], eax
call fcn.14010bc40
test eax, eax
jne 0x14011913a
lea rax, [0x140462a98]
mov edx, 0x100
lea rcx, [0x1401daa90]
and qword [rax - 8], 0
mov qword [rax], rcx
add rcx, 0x2880
lea rax, [rax + 0x10]
sub rdx, 1
jne 0x14011911c
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.14011bf20
int3
Function at 0x140119ac0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rdi, r8
mov rcx, qword [r8 + 0x70]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
jne 0x140119b3f
mov edx, dword [rdx + 0x58]
test dl, 0x40
je 0x140119bb4
mov eax, edx
and eax, 0xffffffbf
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], eax
jne 0x140119b14
and al, 5
cmp al, 4
jne 0x140119b14
and edx, 0xffffffbb
mov dword [rbx + 0x58], edx
test dl, 8
je 0x140119b14
mov rax, qword [rbx + 8]
dec dword [rax + 8]
cmp qword [rbx + 0x100], 0
je 0x140119bb4
mov ecx, dword [r8 + 0x40]
call fcn.14011de30
mov ecx, eax
call fcn.14011bfd0
mov edx, eax
mov rcx, rbx
call qword [rbx + 0x100]
jmp 0x140119bb4
cmp dword [r8 + 0x40], 0
jl 0x140119b94
lea r9, [rdx + 0x110]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140119b94
mov rax, qword [rbx + 0x130]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rdi
test rax, rax
je 0x140119bb4
xor edx, edx
mov rcx, rbx
call rax
jmp 0x140119bb4
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
or qword [rdi + 0x70], 0xffffffffffffffff
test byte [rbx + 0x58], 0x40
je 0x140119bb4
mov rdx, rdi
mov rcx, rbx
call fcn.14011a8c0
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140119bdd
test ecx, ecx
jne 0x140119bdd
test al, 0x20
jne 0x140119bdd
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140119bf0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbp, r8
or ecx, 0xffffffff
mov rbx, rdx
sub dword [rdx + 0x7c], 1
jne 0x140119c33
mov edx, dword [rdx + 0x58]
mov eax, edx
and al, 5
cmp al, 4
jne 0x140119c33
and edx, 0xfffffffb
mov dword [rbx + 0x58], edx
test dl, 8
je 0x140119c33
mov rax, qword [rbx + 8]
add dword [rax + 8], ecx
add dword [rsi + 0x20], ecx
xor edi, edi
mov eax, dword [rbx + 0x118]
test eax, eax
je 0x140119c4a
and dword [rbx + 0x118], edi
jmp 0x140119c98
mov ecx, dword [r8 + 0x40]
test ecx, ecx
js 0x140119c93
test byte [rbx + 0x58], 1
je 0x140119c5f
mov edi, 0x3e3
jmp 0x140119c9a
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
and dword [rsp + 0x20], edi
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140119c8b
or dword [rbx + 0x58], 0xc080
jmp 0x140119c9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140119c98
call fcn.14011de30
mov edi, eax
mov ecx, edi
call fcn.14011bfd0
mov edx, eax
mov rcx, rbp
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
mov ecx, dword [rbx + 0x78]
mov eax, dword [rbx + 0x58]
dec ecx
mov dword [rbx + 0x78], ecx
test al, 1
je 0x140119cd2
test ecx, ecx
jne 0x140119cd2
test al, 0x20
jne 0x140119cd2
or eax, 0x20
mov dword [rbx + 0x58], eax
mov rax, qword [rsi + 0x50]
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret