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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbp, rdx
mov r12, r8
call sub.msvcrt.dll_wcslen
test rax, rax
mov rdi, rax
je 0x44cc69
lea rbx, [rax - 1]
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
je 0x44ccc0
cmp ax, 0x2f
jne 0x44cc64
jmp 0x44ccc0
sub rbx, 1
movzx eax, word [rsi + rbx*2]
cmp ax, 0x2f
je 0x44ccc0
cmp ax, 0x5c
je 0x44ccc0
test rbx, rbx
jne 0x44cc50
test rbp, rbp
je 0x44cc9b
mov ecx, 0x20a
call fcn.00449730
test rax, rax
mov qword [rbp], rax
je 0x44cd56
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44cd3e
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
mov qword [r12], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbx, rbx
je 0x44cc69
test rbp, rbp
je 0x44ccfb
lea r13, [rbx + rbx + 4]
mov rcx, r13
call fcn.00449730
test rax, rax
mov qword [rbp], rax
je 0x44cd56
lea r8, [rbx + 1]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_wcsncpy
mov rax, qword [rbp]
xor ecx, ecx
mov word [rax + r13 - 2], cx
sub rdi, rbx
lea rbp, [rdi + rdi]
mov rcx, rbp
call fcn.00449730
test rax, rax
mov qword [r12], rax
je 0x44cd56
lea rdx, [rsi + rbx*2 + 2]
lea r8, [rdi - 1]
mov rcx, rax
call sub.msvcrt.dll_wcsncpy
mov rax, qword [r12]
xor edx, edx
mov word [rax + rbp - 2], dx
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rbp]
call fcn.00449740
mov qword [rbp], 0
mov eax, 0xffffffff
jmp 0x44cd31
lea rdx, [0x004c9510]
mov ecx, 0xe
call fcn.0044c530
nop
nop dword [rax + rax]
Function at 0x44e5f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x44e634
mov qword [rsi + 0x88], 0xfffffffffffff00d
mov dword [rsi + 0x14c], 6
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rsi + 0x180]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x44e790
cmp rbp, 0xffffffffffffffff
jne 0x44e6f0
mov dword [rsp + 0x38], 0
xor r13d, r13d
xor ebx, ebx
xor edi, edi
lea r15, [rsp + 0x44]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x44e67d
cmp dword [rsi + 0x170], ebx
jbe 0x44e6c7
cmp rbp, 0xffffffffffffffff
je 0x44e694
mov eax, edi
add rax, rbp
mov dword [rsp + 0x60], eax
sar rax, 0x20
mov dword [rsp + 0x64], eax
mov eax, ebx
mov r9, r15
mov rcx, r12
shl rax, 4
add rax, qword [rsi + 0x178]
add ebx, 1
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call r14
add edi, dword [rsp + 0x44]
test eax, eax
mov r11d, eax
mov r10d, edi
jne 0x44e675
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x44e760
or r11d, r10d
je 0x44e740
mov eax, r10d
mov qword [rsi + 0x88], rax
jmp 0x44e623
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r9d, 1
lea r8, [rsp + 0x48]
mov rcx, rax
lea r13, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne al
movzx eax, al
mov dword [rsp + 0x38], eax
jmp 0x44e663
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x44e7b2
mov qword [rsi + 0x88], 0
jmp 0x44e623
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], r11d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x38]
jmp 0x44e6d3
mov dword [rsi + 0x14c], 6
mov ecx, 6
call fcn.0044c5f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x44e623
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.0044c5f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x44e623
Function at 0x44e7d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov ecx, dword [rcx + 0x150]
cmp ecx, 0xffffffff
jne 0x44e814
mov qword [rsi + 0x88], 0xfffffffffffff00d
mov dword [rsi + 0x14c], 6
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rsi + 0x180]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x44e970
cmp rbp, 0xffffffffffffffff
jne 0x44e8d0
mov dword [rsp + 0x38], 0
xor r13d, r13d
xor ebx, ebx
xor edi, edi
lea r15, [rsp + 0x44]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44e85d
cmp dword [rsi + 0x170], ebx
jbe 0x44e8a7
cmp rbp, 0xffffffffffffffff
je 0x44e874
mov eax, edi
add rax, rbp
mov dword [rsp + 0x60], eax
sar rax, 0x20
mov dword [rsp + 0x64], eax
mov eax, ebx
mov r9, r15
mov rcx, r12
shl rax, 4
add rax, qword [rsi + 0x178]
add ebx, 1
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call r14
add edi, dword [rsp + 0x44]
test eax, eax
mov r11d, eax
mov r10d, edi
jne 0x44e855
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x44e941
or r11d, r10d
je 0x44e920
mov eax, r10d
mov qword [rsi + 0x88], rax
jmp 0x44e803
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r9d, 1
lea r8, [rsp + 0x48]
mov rcx, rax
lea r13, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne al
movzx eax, al
mov dword [rsp + 0x38], eax
jmp 0x44e843
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.0044c5f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x44e803
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], r11d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r10d, dword [rsp + 0x3c]
mov r11d, dword [rsp + 0x38]
jmp 0x44e8b3
mov dword [rsi + 0x14c], 6
mov ecx, 6
call fcn.0044c5f0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x44e803

Function at 0x44e9a0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wrmdir]
cdqe
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x88], rax
je 0x44e9d0
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret

Function at 0x44ec10
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
cdqe
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x88], rax
je 0x44ec40
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
add rsp, 0x20
pop rbx
ret
Function at 0x44ec70
Capabilities:
Create directory
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov rcx, qword [rcx + 0x150]
call sub.msvcrt.dll_wcslen
cmp rax, 5
ja 0x44ecc0
mov qword [rbx + 0x88], 0xfffffffffffff019
mov dword [rbx + 0x14c], 0x57
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r13, qword [rbx + 0x150]
lea rdi, [rax + rax]
lea rdx, str.XXXXXX
mov r8d, 6
lea r12, [r13 + rdi - 0xc]
mov rcx, r12
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x44ec95
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44ee30
lea rax, [rsp + 0x48]
mov r14, qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea r15, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
mov ebp, 0x7fff
movabs rsi, 0x8421084210842109
mov qword [rsp + 0x38], rax
nop word cs:[rax + rax]
mov r8, qword [rsp + 0x38]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call r14
test eax, eax
je 0x44ee51
mov rcx, qword [rsp + 0x48]
lea r10, [r13 + rdi]
mov r8, r12
nop word [rax + rax]
mov rdx, rcx
add r8, 2
shr rdx, 1
mov rax, rdx
mul rsi
shr rdx, 4
mov rax, rdx
shl rax, 5
sub rax, rdx
add rax, rax
sub rcx, rax
cmp r10, r8
movzx eax, word [r15 + rcx*2]
mov rcx, rdx
mov word [r8 - 2], ax
jne 0x44ed70
mov qword [rsp + 0x48], rdx
mov rcx, qword [rbx + 0x150]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x44eea0
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x11
jne 0x44eecf
sub ebp, 1
jne 0x44ed40
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x44ee02
lea rdx, str.src_win_fs.c
lea rcx, str.released
mov r8d, 0x36c
call fcn.0048c6c0
mov qword [rbx + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44ecaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44ecaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x44ecaa
lea rdx, str.src_win_fs.c
lea rcx, str.released
mov r8d, 0x36c
call fcn.0048c6c0
jmp 0x44ecaa
mov rsi, qword [rbx + 0x98]
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rsi + rax - 6]
mov r8d, 6
mov rdx, r12
call sub.msvcrt.dll_wcstombs
mov qword [rbx + 0x88], 0
jmp 0x44ee6d
mov qword [rbx + 0x88], 0xffffffffffffffff
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call fcn.0044c5f0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x44ee6d
Function at 0x455a80
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0x48]
mov rdx, qword [rcx + 0x40]
mov rbx, rcx
mov qword [rcx + 0x48], 0
mov rcx, qword [rcx + 0x38]
lea r9, [rbx + 0x48]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov ecx, eax
call fcn.004559c0
mov dword [rbx + 0x58], eax
add rsp, 0x20
pop rbx
ret

Function at 0x456bb0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test byte [rdx + 0x59], 8
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
je 0x456d41
test r9d, r9d
mov rcx, qword [rbx + 0x70]
jne 0x456c65
cmp rcx, 0xffffffffffffffff
je 0x456bf7
lea rdx, str.src_win_pipe.c
lea rcx, str.req__pipeHandle__INVALID_HANDLE_VALUE
mov r8d, 0x326
call fcn.0048c6c0
xor r8d, r8d
mov rcx, qword [rsi + 0x120]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov r9d, 0xff
mov dword [rsp + 0x20], 0x10000
mov edx, 0x40040003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x70], rax
je 0x456cee
mov rcx, rdi
mov dword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov rdx, rsi
call fcn.00456990
test eax, eax
mov rcx, qword [rbx + 0x70]
jne 0x456ce0
cmp rcx, 0xffffffffffffffff
je 0x456da0
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x40], 0
mov qword [rbx + 0x48], 0
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], 0
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x456cb0
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 0x3e5
je 0x456c9d
call rbp
cmp eax, 0x217
jne 0x456d70
mov qword [rbx + 0x40], 0
jmp 0x456d0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
test eax, eax
jle 0x456d90
call rbp
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0x40], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x68], 0
test rax, rax
je 0x456dc2
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0x68], rdx
mov qword [rax + 0x68], rbx
mov qword [rdi + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_pipe.c
lea rcx, [0x004c9be8]
mov r8d, 0x323
mov dword [rsp + 0x4c], r9d
call fcn.0048c6c0
mov r9d, dword [rsp + 0x4c]
jmp 0x456bcb
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x70], 0xffffffffffffffff
call rbp
test eax, eax
jg 0x456cff
nop dword [rax]
call rbp
cdqe
jmp 0x456d0b
lea rcx, str.req__pipeHandle___INVALID_HANDLE_VALUE
lea rdx, str.src_win_pipe.c
mov r8d, 0x33e
call fcn.0048c6c0
mov rcx, qword [rbx + 0x70]
jmp 0x456c6f
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
add dword [rsi + 0x78], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4588d0
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [rsp + 0xc0]
lea rbp, str._pipeuv_p__lu
mov edi, r8d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rdx
mov rsi, r9
or edi, 0x400c0000
mov rbx, rdx
mov r12, qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x45893e
call r15
cmp eax, 0xe7
mov edx, eax
je 0x45893a
cmp eax, 5
jne 0x4589e8
add rbx, 1
call r13
mov r9, rbx
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.004587d0
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov r9d, 1
mov edx, edi
mov rcx, rsi
call r12
cmp rax, 0xffffffffffffffff
mov r10, rax
je 0x458925
mov rax, qword [rsp + 0xa0]
xor r9d, r9d
mov rcx, r10
mov qword [rsp + 0x40], r10
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
mov r10, qword [rsp + 0x40]
je 0x458a00
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x40], r10
call fcn.00457520
mov rax, qword [rsp + 0xa8]
mov r10, qword [rsp + 0x40]
xor edx, edx
mov qword [rax + 0x118], r10
mov eax, edx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x48], r10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
jmp 0x4589e8

Function at 0x459da0
Capabilities:
Write file on windows

Disassembly:
cmp dword [r8 + 0x110], 0
mov r10d, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov r11, qword [rsp + 0x38]
je 0x459de0
cmp r10d, 1
je 0x459df0
test r10d, r10d
jne 0x459dd8
test rax, rax
je 0x459dd8
cmp dword [rax + 0x10], 0xc
jne 0x459dd8
test dword [rax + 0x58], 0x1200
jne 0x459df5
mov eax, 0x32
ret
mov eax, 0x2726
ret
test rax, rax
jne 0x459dc9
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r10d
jmp fcn.00457c60
Function at 0x45b980
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2e8
xor r9d, r9d
lea rax, [rsp + 0x54]
mov rbp, r8
mov rsi, rcx
xor r8d, r8d
mov rbx, rdx
mov qword [rsp + 0x58], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 8
mov edx, 0x48000022
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x45b9fa
mov rbp, qword [rsp + 0x58]
lea rax, [rbp - 1]
cmp rax, 0xfffffffffffffffd
ja 0x45bb35
lea rax, [rsi + 0x10]
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], 8
mov dword [rbx + 0x58], 0x20
lea rdi, [rsp + 0x60]
mov rcx, rbp
mov qword [rbx + 0x20], rax
mov rdx, qword [rsi + 0x18]
lea rax, [rbx + 0x20]
mov r9, rdi
mov r8d, 0x2005
mov qword [rbx + 0x28], rdx
mov qword [rdx], rax
mov edx, 0xffff
mov qword [rsi + 0x18], rax
lea rax, [rsp + 0x50]
mov qword [rbx + 0x68], rbp
mov dword [rbx + 0x30], 0xffffffff
mov byte [rbx + 0x19c], 0
mov dword [rsp + 0x50], 0x274
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov ebp, eax
jne 0x45bb24
lea rdx, [0x004ca5a0]
xor eax, eax
mov r9d, 0xffffffff
mov rcx, qword [rdi + 0x14]
mov r8, qword [rdi + 0x1c]
xor rcx, qword [rdx]
xor r8, qword [rdx + 8]
or r8, rcx
cmove r9d, eax
add eax, 1
add rdx, 0x10
cmp eax, 3
jne 0x45ba80
cmp r9d, 0xffffffff
je 0x45bb74
movsxd r9, r9d
lea r13, [rsi + r9*8]
mov r12, qword [r13 + 0x90]
test r12, r12
je 0x45bb80
cmp r12, 0xffffffffffffffff
je 0x45bb74
mov qword [rbx + 0x70], r12
xor eax, eax
mov dword [rbx + 0xc0], 0xc
mov qword [rbx + 0xf8], 0
mov qword [rbx + 0xb8], rbx
mov word [rbx + 0x198], ax
mov dword [rbx + 0x130], 0xc
mov qword [rbx + 0x168], 0
mov qword [rbx + 0x128], rbx
mov eax, ebp
add rsp, 0x2e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.0044c5f0
mov ebp, eax
jmp 0x45bb12
lea rdx, str.src_win_poll.c
lea rcx, str.base_socket___0__base_socket___INVALID_SOCKET
mov r8d, 0x21e
call fcn.0048c6c0
mov rbp, qword [rsp + 0x58]
jmp 0x45b9fa
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r13 + 0x90], 0xffffffffffffffff
or dword [rbx + 0x58], 0x2000000
jmp 0x45bad1
mov rsi, qword [rsi + 0x38]
mov r9, rdi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r8d, dword [rsp + 0xbc]
mov edx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xac]
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x45bc00
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x45bb60
xor r9d, r9d
mov r8, r12
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x45bb60
mov qword [r13 + 0x90], r12
jmp 0x45bacd
mov qword [r13 + 0x90], rax
jmp 0x45bb74
Function at 0x45c380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa8]
cmp rdx, 2
mov r15, rcx
mov rbx, rdx
mov r14, r8
mov rbp, r9
jbe 0x45c4b4
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x45c554
cmp ax, 0x2f
je 0x45c4f0
cmp ax, 0x5c
je 0x45c4f0
cmp rbx, 1
jbe 0x45c3e9
cmp word [r15 + 2], 0x3a
je 0x45c590
lea rcx, [rbp + r12 + 4]
add rcx, r13
add rcx, rbx
add rcx, rcx
call fcn.00449730
mov rdx, qword [rsp + 0xa0]
mov r8, r13
mov rcx, rax
mov rsi, rax
lea rdi, [rsi + r13*2]
call sub.msvcrt.dll_wcsncpy
test r13, r13
jne 0x45c527
mov rcx, rdi
mov r8, rbx
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
lea rdi, [rdi + rbx*2]
jne 0x45c4c5
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_wcsncpy
test r12, r12
lea rbx, [rdi + rbp*2]
je 0x45c481
test rbp, rbp
je 0x45c46a
cmp word [rbx - 2], 0x2e
je 0x45c46a
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
lea rbx, [rbx + r12*2]
mov r8, r12
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov rcx, rsi
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c5e0
test al, 0x10
jne 0x45c5e0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test rdx, rdx
je 0x45c3e9
movzx eax, word [rcx]
jmp 0x45c3c3
movzx edx, word [rdi - 2]
lea rcx, [0x004ca5fe]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x45c43a
mov ecx, 0x5c
add rdi, 2
mov word [rdi - 2], cx
jmp 0x45c43a
mov edi, 4
mov r13d, 2
lea rcx, [rbp + r12 + 4]
add rcx, rbx
add rcx, r13
add rcx, rcx
call fcn.00449730
mov rdx, qword [rsp + 0xa0]
mov rsi, rax
mov r8, r13
mov rcx, rax
add rdi, rsi
call sub.msvcrt.dll_wcsncpy
movzx edx, word [rdi - 2]
lea rcx, [0x004ca5fe]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x45c41f
mov r8d, 0x5c
add rdi, 2
mov word [rdi - 2], r8w
jmp 0x45c41f
cmp word [rcx + 2], 0x5c
jne 0x45c4f0
lea rcx, [rbp + r12 + 4]
add rcx, rbx
add rcx, rcx
call fcn.00449730
mov rdx, qword [rsp + 0xa0]
mov rdi, rax
xor r8d, r8d
mov rcx, rax
mov rsi, rdi
call sub.msvcrt.dll_wcsncpy
jmp 0x45c41f
cmp rbx, 2
je 0x45c5a7
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x45c55b
cmp ax, 0x5c
je 0x45c55b
cmp r13, 1
jbe 0x45c55b
mov r8d, 2
mov rdx, r15
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x45c55b
add r15, 4
sub rbx, 2
lea rdi, [r13 + r13]
jmp 0x45c4fb
mov rcx, rsi
xor esi, esi
call fcn.00449740
jmp 0x45c4a0
Function at 0x45c830
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp edx, 0x16
mov rsi, rcx
mov ebx, edx
ja 0x45c900
cmp edx, 2
je 0x45c890
jg 0x45c875
test edx, edx
jne 0x45c87f
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45c8c1
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
cmove eax, ebx
add rsp, 0x38
pop rbx
pop rsi
ret
cmp edx, 9
je 0x45c890
cmp edx, 0xf
je 0x45c890
mov eax, 0xfffff02a
add rsp, 0x38
pop rbx
pop rsi
ret
mov edx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x45c86e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov ebx, eax
je 0x45c8d5
mov ecx, ebx
call fcn.0044c5f0
add rsp, 0x38
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0044c5f0
add rsp, 0x38
pop rbx
pop rsi
ret
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x45c8b3
cmp dword [rsp + 0x2c], 0x103
mov eax, 0xfffff038
jne 0x45c86e
jmp 0x45c8b3
mov eax, 0xfffff019
jmp 0x45c86e
Function at 0x45f4b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x45f520
test eax, 0x10000
je 0x45f530
mov r9d, dword [rcx + 0x10]
cmp r9d, 0xc
je 0x45f510
cmp r9d, 0xe
je 0x45f500
cmp r9d, 7
mov eax, 0xfffff008
je 0x45f4fb
lea rdx, str.src_win_stream.c
lea rcx, [0x004cad31]
mov r8d, 0xc8
call fcn.0048c6c0
mov eax, 0xfffff02a
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.00468c90
add rsp, 0x28
jmp 0x4613e0
mov eax, 0xfffff00d
jmp 0x45f4fb
mov eax, 0xfffff031
jmp 0x45f4fb
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
test eax, eax
jne 0x461450
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
mov edx, dword [rsp + 0x4c]
je 0x461430
mov eax, edx
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.0044c5f0
mov edx, eax
mov eax, edx
add rsp, 0x58
ret
mov edx, 0xfffff008
jmp 0x461423