joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f7f0
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 r13, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa8]
cmp rdx, 2
mov r15, rcx
mov rbx, rdx
mov r14, r8
mov rdi, r9
jbe 0x44f912
movzx eax, word [rcx]
cmp ax, 0x5c
je 0x44f940
cmp ax, 0x2f
je 0x44f94b
cmp ax, 0x5c
je 0x44f94b
cmp rbx, 1
jbe 0x44f859
cmp word [r15 + 2], 0x3a
je 0x44f9e0
lea rcx, [rdi + r13 + 4]
add rcx, r12
add rcx, rbx
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov r8, r12
mov rcx, rax
mov rsi, rax
lea rbp, [rsi + r12*2]
call sub.msvcrt.dll_wcsncpy
test r12, r12
jne 0x44f982
mov rcx, rbp
mov r8, rbx
mov rdx, r15
call sub.msvcrt.dll_wcsncpy
test rbx, rbx
lea rbp, [rbp + rbx*2]
jne 0x44f9b0
mov r8, rdi
mov rdx, r14
mov rcx, rbp
call sub.msvcrt.dll_wcsncpy
test r13, r13
lea rbx, [rbp + rdi*2]
je 0x44f8df
test rdi, rdi
jne 0x44f923
mov rdx, qword [rsp + 0x90]
mov rcx, rbx
lea rbx, [rbx + r13*2]
mov r8, r13
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 0x44fa50
test al, 0x10
jne 0x44fa50
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 0x44f859
movzx eax, word [rcx]
jmp 0x44f833
cmp word [rbx - 2], 0x2e
je 0x44f8c8
mov edx, 0x2e
add rbx, 2
mov word [rbx - 2], dx
jmp 0x44f8c8
cmp word [rcx + 2], 0x5c
je 0x44fa20
mov ebp, 4
mov r12d, 2
lea rcx, [rdi + r13 + 4]
add rcx, rbx
add rcx, r12
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov rsi, rax
mov r8, r12
mov rcx, rax
add rbp, rsi
call sub.msvcrt.dll_wcsncpy
movzx edx, word [rbp - 2]
lea rcx, [0x0051bdfe]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x44f88f
mov r8d, 0x5c
add rbp, 2
mov word [rbp - 2], r8w
jmp 0x44f88f
movzx edx, word [rbp - 2]
lea rcx, [0x0051bdfe]
call sub.msvcrt.dll_wcsrchr
test rax, rax
jne 0x44f8ab
mov ecx, 0x5c
add rbp, 2
mov word [rbp - 2], cx
jmp 0x44f8ab
cmp rbx, 2
je 0x44f9f7
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x44fa20
cmp ax, 0x5c
je 0x44fa20
cmp r12, 1
jbe 0x44fa20
mov r8d, 2
mov rdx, r15
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x44fa60
nop dword [rax + rax]
lea rcx, [rdi + r13 + 4]
add rcx, rbx
add rcx, rcx
call fcn.0043d450
mov rdx, qword [rsp + 0xa0]
mov rbp, rax
xor r8d, r8d
mov rcx, rax
mov rsi, rbp
call sub.msvcrt.dll_wcsncpy
jmp 0x44f88f
mov rcx, rsi
xor esi, esi
call fcn.0043d460
jmp 0x44f8fe
add r15, 4
sub rbx, 2
lea rbp, [r12 + r12]
jmp 0x44f956
Function at 0x4528d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x452940
test eax, 0x10000
je 0x452950
mov r9d, dword [rcx + 0x10]
cmp r9d, 0xc
je 0x452930
cmp r9d, 0xe
je 0x452920
cmp r9d, 7
mov eax, 0xfffff008
je 0x45291b
lea rdx, str.src_win_stream.c
lea rcx, [0x0051c531]
mov r8d, 0xc8
call fcn.00472160
mov eax, 0xfffff02a
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0045c0b0
add rsp, 0x28
jmp 0x454710
mov eax, 0xfffff00d
jmp 0x45291b
mov eax, 0xfffff031
jmp 0x45291b
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
mov r9d, 0xfffff008
test eax, eax
jne 0x45475a
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 r9d, dword [rsp + 0x4c]
je 0x454762
mov eax, r9d
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
mov r9d, eax
jmp 0x45475a
Function at 0x452e70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rdx + 0x58]
mov rbp, rcx
mov rbx, rdx
test ah, 1
je 0x4530e1
test eax, 0x20000
jne 0x4530c0
lea rsi, [rbx + 0xc0]
mov edx, eax
lea rcx, [0x0054c940]
or edx, 0x80000
test eax, 0x100000
mov qword [rbx + 0xc0], 0
mov dword [rbx + 0x58], edx
lea rdi, [rbx + 0x80]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], 0
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
je 0x452f07
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x453102
or rax, 1
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x452fb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x453010
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rsi
test eax, eax
jle 0x453130
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x453140
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add dword [rbx + 0x78], 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0x58]
test eax, 0x40000
je 0x453013
or eax, 0x20000
add dword [rbx + 0x78], 1
mov qword [rbx + 0xe8], 0
mov dword [rbx + 0x58], eax
mov eax, dword [rsp + 0x48]
mov qword [rbx + 0xc8], rax
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x4530b0
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0x58]
mov edx, eax
add dword [rbx + 0x78], 1
or edx, 0x20000
test eax, 0x100000
mov dword [rbx + 0x58], edx
je 0x452fac
cmp qword [rbx + 0xf8], 0xffffffffffffffff
jne 0x452fac
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
mov r9, rdi
lea r8, [0x00453540]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x452fac
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
test eax, eax
jle 0x453150
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
jne 0x452fee
nop dword [rax]
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x452fac
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c628]
mov r8d, 0x1e6
call fcn.00472160
mov eax, dword [rbx + 0x58]
jmp 0x452e95
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c600]
mov r8d, 0x1e5
call fcn.00472160
mov eax, dword [rbx + 0x58]
jmp 0x452e8a
lea rdx, str.src_win_tcp.c
lea rcx, str.req__event_handle
mov r8d, 0x203
call fcn.00472160
mov rax, qword [rbx + 0xf0]
jmp 0x452efc
call rsi
cdqe
jmp 0x452f76
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x452fa8
call rsi
cdqe
jmp 0x45308a
Function at 0x453160
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x60], r8d
mov rsi, rcx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov r8d, 8
mov edx, 0xffff
call rbx
cmp eax, 0xffffffff
je 0x4531d2
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x4531b0
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x60]
mov r8d, 3
mov edx, 6
mov rcx, rsi
call rbx
cmp eax, 0xffffffff
jne 0x4531a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x4531e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [r8], 0xffffffffffffffff
mov eax, 0xfffff00e
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov rbx, r9
mov dword [rsp + 0x48], 1
jne 0x4532c3
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, r9
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x453313
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4532df
xor r9d, r9d
mov rdx, qword [rbp + 0x38]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x4532d0
mov edx, dword [rdi]
cmp dword [rsp + 0xa0], 0x17
je 0x453360
mov rax, qword [0x00523df0]
mov ecx, dword [rax]
mov rax, qword [0x00523d70]
mov rax, qword [rax]
test rax, rax
je 0x453290
test edx, 0x100000
jne 0x453290
test ecx, ecx
je 0x4533a1
test edx, 0x2000000
jne 0x453322
test edx, 0x4000000
jne 0x453370
cmp dword [rsp + 0xa0], 0x17
mov qword [rsi], rbx
je 0x453392
xor eax, eax
and edx, 0x1000000
jne 0x4532f0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0xa8]
test eax, eax
jne 0x4533c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c668]
mov r8d, 0x96
mov dword [rsp + 0x3c], eax
call fcn.00472160
mov eax, dword [rsp + 0x3c]
jmp 0x4532c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x4c]
mov r8d, 1
mov edx, 6
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4533d0
mov edx, dword [rdi]
jmp 0x45329c
mov rax, qword [0x00523e00]
mov ecx, dword [rax]
jmp 0x453271
mov r8d, 0x3c
mov edx, 1
mov rcx, rbx
call fcn.00453160
test eax, eax
jne 0x4532c3
mov edx, dword [rdi]
jmp 0x4532a8
or edx, 0x1000000
xor eax, eax
mov dword [rdi], edx
jmp 0x4532c3
mov edx, 3
mov rcx, rbx
call rax
test eax, eax
je 0x4533e3
mov edx, dword [rdi]
or edx, 0x40000
mov dword [rdi], edx
jmp 0x453290
mov edx, dword [rdi]
or edx, 0x100000
mov dword [rdi], edx
jmp 0x45325a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4532c3
jmp 0x453354
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
cmp eax, 1
jne 0x4533f8
mov edx, dword [rdi]
jmp 0x453290
call rbp
jmp 0x4532c3
Function at 0x454710
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x58]
test al, 1
jne 0x452940
test eax, 0x10000
je 0x452950
mov r9d, dword [rcx + 0x10]
cmp r9d, 0xc
je 0x452930
cmp r9d, 0xe
je 0x452920
cmp r9d, 7
mov eax, 0xfffff008
je 0x45291b
lea rdx, str.src_win_stream.c
lea rcx, [0x0051c531]
mov r8d, 0xc8
call fcn.00472160
mov eax, 0xfffff02a
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.0045c0b0
add rsp, 0x28
jmp 0x454710
mov eax, 0xfffff00d
jmp 0x45291b
mov eax, 0xfffff031
jmp 0x45291b
sub rsp, 0x58
mov eax, dword [rcx + 0x100]
mov r9d, 0xfffff008
test eax, eax
jne 0x45475a
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 r9d, dword [rsp + 0x4c]
je 0x454762
mov eax, r9d
add rsp, 0x58
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
mov r9d, eax
jmp 0x45475a
Function at 0x454ec0
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp dword [rdx + 0x10], 0xc
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
je 0x454eef
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
mov r8d, 0x460
call fcn.00472160
mov rcx, qword [rsi + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x454fd1
mov eax, dword [rsi + 0x40]
test eax, eax
js 0x454f2c
mov dword [rsp + 0x20], 8
lea r9, [rbx + 0x110]
mov r8d, 0x700b
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x454f80
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
test byte [rbx + 0x59], 8
mov qword [rsi + 0x70], 0xffffffffffffffff
jne 0x455041
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x454fb0
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x454f74
test dl, 1
je 0x454f74
test dl, 8
jne 0x454f74
mov rax, qword [rdi + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x50], rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rbx + 0x130]
mov qword [rsi + 0x1a8], rax
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x130], rsi
test rax, rax
je 0x454f44
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rbx + 0x78]
test eax, eax
jne 0x454f4b
nop
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c72f]
mov r8d, 0x488
call fcn.00472160
mov eax, dword [rbx + 0x78]
jmp 0x454f4b
mov eax, dword [rbx + 0x58]
test ah, 8
je 0x454f44
mov edx, eax
and dh, 0xf7
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x455051
test al, 1
jne 0x455010
test al, 0x40
je 0x455010
mov edx, eax
and edx, 0xfffff7bf
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x455010
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
nop word [rax + rax]
cmp qword [rbx + 0x100], 0
je 0x454f44
mov rcx, qword [rsi + 0x40]
call fcn.00460650
mov ecx, eax
mov rsi, qword [rbx + 0x100]
call fcn.00440300
mov rcx, rbx
mov edx, eax
call rsi
jmp 0x454f44
mov rdx, rsi
mov rcx, rbx
call fcn.00452ad0
jmp 0x454f44
jns 0x455010
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c869]
mov r8d, 0x469
call fcn.00472160
jmp 0x455010
Function at 0x455070
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp dword [rdx + 0x10], 0xc
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
je 0x4550a0
lea rdx, str.src_win_tcp.c
lea rcx, str.handle__type__UV_TCP
mov r8d, 0x490
call fcn.00472160
sub dword [rbx + 0x7c], 1
jne 0x455130
mov eax, dword [rbx + 0x58]
test al, 1
je 0x4551a0
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x455160
sub eax, 1
mov dword [rsi + 0x20], eax
mov rcx, qword [rdi + 0x40]
test ecx, ecx
js 0x45518e
test byte [rbx + 0x58], 1
mov ecx, 0x3e3
je 0x4551f0
mov rbp, qword [rdi + 0x70]
call fcn.00440300
mov rcx, rdi
mov edx, eax
call rbp
mov eax, dword [rbx + 0x78]
test eax, eax
je 0x4551c5
sub eax, 1
mov edx, dword [rbx + 0x58]
test eax, eax
mov dword [rbx + 0x78], eax
jne 0x455125
test dl, 1
je 0x455125
test dl, 8
jne 0x455125
mov rax, qword [rsi + 0x50]
or edx, 8
mov dword [rbx + 0x58], edx
mov qword [rbx + 0x50], rax
mov qword [rsi + 0x50], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
jns 0x4550b5
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c6f8]
mov r8d, 0x492
call fcn.00472160
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x4550c0
nop word [rax + rax]
lea rcx, [0x0051c713]
lea rdx, str.src_win_tcp.c
mov r8d, 0x492
call fcn.00472160
mov eax, dword [rsi + 0x20]
sub eax, 1
mov dword [rsi + 0x20], eax
mov rcx, qword [rdi + 0x40]
test ecx, ecx
jns 0x4550d2
call fcn.00460650
mov ecx, eax
jmp 0x4550e1
test al, 0x40
je 0x4550b5
mov edx, eax
and edx, 0xffffffbf
test al, 0x20
mov dword [rbx + 0x58], edx
je 0x4550b5
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x4550b5
lea rdx, str.src_win_tcp.c
lea rcx, [0x0051c72f]
mov r8d, 0x4a9
call fcn.00472160
mov eax, dword [rbx + 0x78]
jmp 0x4550fc
mov rcx, qword [rbx + 0x110]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, 0x7010
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, eax
jne 0x455230
or dword [rbx + 0x58], 0x19000
add dword [rsi + 0xa8], 1
jmp 0x4550e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
jmp 0x4550e1

Function at 0x455320
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov esi, edx
cmp rcx, 0xffffffffffffffff
je 0x45535f
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 1
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x455383
test esi, esi
jne 0x455373
and dword [rbx + 0x58], 0xfdffffff
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
or dword [rbx + 0x58], 0x2000000
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x45535f
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x45bb30
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
mov edx, ecx
and dh, 0xfe
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], edx
jne 0x45bb80
test cl, 1
je 0x45bba0
test edx, 0x20000
je 0x45bb6c
test edx, 0x2000000
jne 0x45bbc0
and edx, 0x400000
je 0x45bc10
xor esi, esi
mov eax, esi
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
jns 0x45bb50
lea rdx, [0x0051ca30]
lea rcx, [0x0051cfc7]
mov r8d, 0x406
call fcn.00472160
mov edx, dword [rbx + 0x58]
jmp 0x45bb50
test cl, 0x40
je 0x45bb50
mov edx, ecx
and edx, 0xfffffebf
and ecx, 0x20
mov dword [rbx + 0x58], edx
je 0x45bb50
mov rax, qword [rbx + 8]
sub dword [rax + 8], 1
jmp 0x45bb50
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x45bb6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x45bb6e
lea rcx, [0x0054c978]
call fcn.004563a0
mov eax, 2
xchg dword [0x0054c99c], eax
cmp eax, 1
je 0x45bc44
lea rcx, [0x0054c978]
call fcn.00456370
or dword [rbx + 0x58], 0x400000
jmp 0x45bb6c
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.conout_
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x45bd30
lea rdx, [0x0054c980]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x45bd30
lock or dword [0x0054c998], 1
mov eax, 1
mov edx, 1
mov ecx, 0xd
mov word [rsp + 0x58], dx
mov word [rsp + 0x5a], cx
xor edx, edx
mov ecx, 0xd
mov word [rsp + 0x50], ax
mov dword [rsp + 0x54], 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0xd
mov word [rsp + 0x5c], ax
mov dword [rsp + 0x60], 0
mov word [rsp + 0x5e], r8w
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x45bdc3
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45bb6e
jmp 0x45bc38
mov r9d, 1
mov r10d, 1
mov r11d, 0xd
mov esi, 0xd
xor edx, edx
mov word [rsp + 0x50], r9w
mov word [rsp + 0x58], r10w
mov word [rsp + 0x5a], r11w
mov ecx, 0xd
mov dword [rsp + 0x54], 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x5e], si
mov word [rsp + 0x5c], ax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x60], 0
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
je 0x45bdb0
cmp rdi, 0xffffffffffffffff
jne 0x45bd16
jmp 0x45bc38
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, 0xffffffffffffffff
jne 0x45bdc9
mov esi, eax
jmp 0x45bd21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x45bd18
Function at 0x45d550
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov eax, dword [rcx + 0x58]
mov rsi, rcx
mov r12, rdx
mov rdi, r8
mov ebp, r9d
and eax, 0x1000200
cmp eax, 0x200
je 0x45d630
mov rdx, qword [0x00523de0]
mov r9d, 4
mov r8d, 0x1c
call fcn.0045c9e0
test eax, eax
mov ebx, eax
jne 0x45d642
test rdi, rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
je 0x45d5d5
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call fcn.0043e620
test eax, eax
jne 0x45d630
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov rax, qword [r12 + 8]
mov rdx, qword [r12 + 0x10]
test ebp, ebp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
je 0x45d660
cmp ebp, 1
jne 0x45d630
mov r8d, 0xc
mov rcx, qword [rsi + 0x70]
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x45d635
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
mov ebx, eax
jmp 0x45d635
mov ebx, 0xfffff019
mov eax, ebx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, eax
call fcn.00440300
mov ebx, eax
mov eax, ebx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xd
jmp 0x45d5f8
Function at 0x45dec0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov esi, dword [rsp + 0x140]
test r8d, r8d
mov rbx, rcx
mov r12, rdx
mov edi, r8d
je 0x45df90
lea rbp, [rsp + 0x70]
mov rcx, r9
mov rdx, rbp
call fcn.00460f20
test eax, eax
jne 0x45df81
cmp qword [rbx + 0x68], 0
jne 0x45dff0
test byte [rbx + 0x59], 2
jne 0x45df3f
cmp esi, 0x10
je 0x45dfe0
cmp esi, 0x1c
mov eax, 0xfffff019
jne 0x45df81
mov rdx, qword [0x00523de0]
xor r9d, r9d
mov r8d, esi
mov rcx, rbx
call fcn.0045c9e0
test eax, eax
jne 0x45dfc6
mov rdx, r12
mov rcx, qword [rbx + 0x70]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], esi
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov edx, eax
mov eax, dword [rsp + 0x6c]
test edx, edx
jne 0x45dfc0
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.src_win_udp.c
lea rcx, str.nbufs___0
mov r8d, 0x3a1
mov qword [rsp + 0x58], r9
call fcn.00472160
mov r9, qword [rsp + 0x58]
jmp 0x45dee6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.00440300
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x00523dd0]
jmp 0x45df29
mov eax, 0xfffff008
jmp 0x45df81

Function at 0x45e600
Capabilities:
Enumerate processes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x150
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rsi, [rsp + 0x20]
xor edx, edx
mov ecx, 2
mov edi, eax
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x45e64f
jmp 0x45e660
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x45e660
cmp edi, dword [rsp + 0x28]
jne 0x45e640
mov esi, dword [rsp + 0x40]
jmp 0x45e665
mov esi, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
ret
Function at 0x460430
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x468
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x460634
lea r8, [0x0054e100]
lea rcx, str.0.0.0.0
xor edx, edx
call fcn.0043e5d0
test eax, eax
jne 0x460607
lea r8, [0x0054e110]
lea rcx, [0x0051d9d3]
xor edx, edx
call fcn.0043e620
test eax, eax
jne 0x460607
xor r8d, r8d
mov edx, 1
mov ecx, 2
mov rsi, qword [sym.imp.WS2_32.dll_socket]
call rsi
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x4605a0
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 0x274
lea r9, [rsp + 0x1e0]
mov r8d, 0x2005
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x460620
test byte [rsp + 0x1e2], 2
je 0x460580
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x46060c
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call rsi
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x4605e0
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 0x274
lea r9, [rsp + 0x1e0]
mov r8d, 0x2005
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x460620
test byte [rsp + 0x1e2], 2
je 0x460590
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x46060c
add rsp, 0x468
pop rbx
pop rsi
ret
mov dword [0x0054e130], 1
jmp 0x4604f3
mov dword [0x0054e12c], 1
jmp 0x460562
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
lea edx, [rax - 0x273b]
cmp edx, 1
jbe 0x460505
sub eax, 0x273e
cmp eax, 1
jbe 0x460505
call rbx
lea rdx, str.socket
mov ecx, eax
call fcn.00440240
nop word cs:[rax + rax]
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
lea edx, [rax - 0x273b]
cmp edx, 1
jbe 0x460574
sub eax, 0x273e
cmp eax, 1
ja 0x4605c6
jmp 0x460574
call sub.msvcrt.dll_abort
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.00440240
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.00440240
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.00440240
nop
nop dword [rax]
nop word cs:[rax + rax]