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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14005456b
mov qword [rdx + 0x238], 0
lea rcx, [0x1400542e0]
mov rdx, rdi
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
jmp 0x140054625
xor eax, eax
lea rcx, [rdi + 0x40]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
test dword [rdx + 0x58], 0x80000
je 0x140054595
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x140296b38]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400545c5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x140054629
test dword [rbx + 0x58], 0x80000
je 0x140054680
cmp qword [rdi + 0x70], 0
jne 0x1400545f6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1400546b9
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x140054680
mov rdx, qword [rdi + 0x58]
lea r8, [0x140050f90]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x140054680
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14005463b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140054649
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140054676
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14005469f
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14005469f
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14005469f
xor r9d, r9d
lea rdx, [0x140055090]
lea r8d, [r9 + 0x32]
call fcn.14004ebf0
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.140053360
int3
Function at 0x1400547e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rcx, rbx
movaps xmm0, xmmword [rsp + 0x30]
mov edi, r9d
mov edx, r8d
lea r8, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [rbx + 0x68]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14005489f
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005489f
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x70]
cmp edi, eax
mov qword [rsp + 0x20], 0
cmova edi, eax
mov r8d, edi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x140054881
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov r8d, eax
call fcn.140054740
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov edx, dword [rsp + 0x70]
lea r8, [rsp + 0x30]
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, 0xfffffffffffff024
mov rcx, rbx
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x140055ee0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x14028a3e8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400560de
xor eax, eax
mov qword [rsp + 0x480], rbx
mov qword [0x140296d90], rax
mov ebx, 2
xor ecx, ecx
mov word [0x140296d90], bx
mov qword [0x140296d98], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [0x140296d94]
mov word [0x140296d92], ax
lea rcx, str.0.0.0.0
call fcn.140053060
test eax, eax
jne 0x14005616b
call fcn.1400461d0
test eax, eax
jne 0x14005616b
mov qword [rsp + 0x470], rdi
xor r8d, r8d
mov edi, 1
mov ecx, ebx
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140055ff1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400560ed
mov eax, dword [0x140296dc0]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x140296dc0], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x140056102
jmp 0x140056018
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140056156
cmp eax, 0x273a
jbe 0x140056156
cmp eax, 0x2740
jae 0x140056156
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005608f
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140056117
mov eax, dword [0x140296dbc]
mov rcx, rbx
test dword [rsp + 0x40], 0x20000
cmove eax, edi
mov dword [0x140296dbc], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14005612c
jmp 0x1400560b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x140056141
cmp eax, 0x273a
jbe 0x140056141
cmp eax, 0x2740
jae 0x140056141
mov rdi, qword [rsp + 0x470]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140189130
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.getsockopt
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.closesocket
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140053360
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, str.socket
call fcn.140053360
int3
call fcn.14019c3b8
int3
Function at 0x1400566a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400567fc
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d88], rax
test rax, rax
je 0x140056811
lea rdx, str.NtDeviceIoControlFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d48], rax
test rax, rax
je 0x140056826
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d60], rax
test rax, rax
je 0x14005683b
lea rdx, str.NtSetInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d70], rax
test rax, rax
je 0x140056850
lea rdx, str.NtQueryVolumeInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d68], rax
test rax, rax
je 0x140056865
lea rdx, str.NtQueryDirectoryFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp qword [0x140296d68], 0
mov qword [0x140296d78], rax
je 0x14005687a
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d58], rax
test rax, rax
je 0x14005688f
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x1400567cd
lea rdx, str.PowerRegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d50], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test rax, rax
je 0x1400567f6
lea rdx, str.SetWinEventHook
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140296d80], rax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x140269878]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, [0x1402698a8]
call fcn.140053360
int3
Function at 0x1400583b0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x20]
mov rsi, rcx
test dword [rdi + 0x194], 0x2000
jne 0x1400583ef
mov rcx, qword [0x140296808]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xa7b
lea rdx, [0x14028daf0]
call qword [0x140296800]
int3
lea rcx, [rdi + 0x130]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [rsi + 0x168], 1
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17b], 1
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp qword [rdi + 0x168], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
je 0x140058466
mov rcx, qword [rdi + 0x170]
lea rdx, [0x14028bbb4]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140058466
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140058466
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.140061980
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400589d0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14028a3e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rdi, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x158]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x140058bb7
movzx eax, byte [rdi + 0x179]
test al, al
jne 0x140058bb7
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
call qword [sym.imp.WS2_32.dll_accept]
xor bl, bl
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140058ae1
cmp dword [rsp + 0x30], 0
jle 0x140058ae1
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140058a94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140060f50
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rdi
call fcn.140061980
jmp 0x140058a96
mov bl, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x140058ab9
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rdi
call fcn.140061980
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov byte [rsp + 0x28], bl
mov rdx, rsi
mov rcx, rdi
mov byte [rsp + 0x20], 0
call fcn.140057580
mov eax, 1
jmp 0x140058bb9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea ecx, [rax - 0x2726]
test ecx, 0xffffffdf
je 0x140058bb7
cmp eax, 0x2733
je 0x140058b1b
mov ecx, eax
call fcn.140060f50
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rdi
call fcn.140061980
cmp rsi, 0xffffffffffffffff
je 0x140058b50
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140058b50
mov rcx, qword [0x140296808]
lea r9, [0x14028d388]
mov r8d, 0xb83
lea rdx, [0x14028d308]
call qword [0x140296800]
int3
cmp ebx, 0x2728
je 0x140058b60
cmp ebx, 0x2747
jne 0x140058bb7
cmp dword [rdi + 0x180], 0
jne 0x140058b80
lea rdx, str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
mov rcx, rdi
call fcn.140061980
jmp 0x140058bb7
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17a], 1
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov r8d, dword [rdi + 0x180]
lea rdx, str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov rcx, rdi
call fcn.140061980
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140189130
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140058fe0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rcx
mov byte [rcx + 0x17c], 0
mov rcx, qword [rcx + 0x168]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x14005903d
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14005903d
nop dword [rax + rax]
mov rcx, qword [r14 + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140059020
mov rcx, qword [r14 + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x14005906b
movzx eax, byte [r14 + 0x179]
test al, al
jne 0x14005906b
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14005906b
mov rcx, r14
call fcn.1400589d0
mov eax, dword [r14 + 0x194]
and eax, 4
test al, al
jne 0x14005912c
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x140059127
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov r15, qword [rbx + 0x118]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x140059106
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r14
mov rcx, r15
test eax, eax
setne sil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r12
mov rcx, r15
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movzx r9d, sil
movzx r8d, dil
test eax, eax
mov rcx, rbx
setne dl
call fcn.140056d30
mov rbx, rbp
test rbp, rbp
jne 0x1400590b0
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rcx, r14
call fcn.140058be0
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret
Function at 0x140059c70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push r15
sub rsp, 0x68
mov rax, qword [0x14028a3e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rcx + 0x178]
mov r15d, edx
mov rbx, rcx
test al, al
je 0x140059c9f
xor eax, eax
jmp 0x140059e53
mov eax, dword [rcx + 0x194]
and eax, 4
test al, al
jne 0x140059cb6
call fcn.140059920
jmp 0x140059e53
mov rcx, qword [rcx + 0x158]
xor eax, eax
mov qword [rsp + 0x88], rbp
mov ebp, 0xffffffff
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x60], r12
lea edi, [rax + 1]
xor r12d, r12d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r14
mov esi, r12d
mov qword [rsp + 0x28], rax
mov r14d, ebp
mov qword [rsp + 0x30], rax
mov r13d, 0x300
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
cmp rcx, 0xffffffffffffffff
je 0x140059d31
movzx eax, byte [rbx + 0x179]
test al, al
jne 0x140059d31
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x30], r13d
mov esi, edi
mov rcx, qword [rbx + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x140059d52
mov eax, esi
mov r14d, esi
add rax, rax
inc esi
mov qword [rsp + rax*8 + 0x28], rcx
mov dword [rsp + rax*8 + 0x30], r13d
test dword [rbx + 0x194], 0x2000
je 0x140059d66
mov rcx, rbx
call fcn.140058480
test esi, esi
je 0x140059e2a
mov eax, r12d
lea rcx, [rsp + 0x28]
sub eax, r15d
mov edx, esi
neg eax
sbb r8d, r8d
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jns 0x140059db9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140059e2a
mov ecx, eax
call fcn.140060f50
mov r8, rax
lea rdx, [0x14028d008]
mov rcx, rbx
call fcn.140061980
mov edi, r12d
jmp 0x140059e2a
cmp r14d, 0xffffffff
je 0x140059dfd
movsxd rax, r14d
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r13w
cmp r12w, cx
je 0x140059dfd
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140059de0
movzx eax, byte [rbx + 0x178]
test al, al
jne 0x140059db4
cmp ebp, 0xffffffff
je 0x140059e2a
movsxd rcx, ebp
add rcx, rcx
movzx edx, word [rsp + rcx*8 + 0x32]
and dx, r13w
cmp r12w, dx
je 0x140059e2a
mov rcx, rbx
call fcn.1400589d0
mov r14, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x98]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140189130
add rsp, 0x68
pop r15
pop rbx
ret
Function at 0x14005c390
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x40], 1
test rcx, rcx
je 0x14005c3d2
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, str.c:libx64libmicrohttpd_0.9.59_srcmicrohttpdconnection.c
lea rax, str.NULL___connection
mov r9d, 0x234
lea rdx, str._s:_u_Assertion_failed:__s_nProgram_aborted._n
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3

Function at 0x14005c420
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x14005c45f
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
lea edx, [rbx + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 1]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
lea r8, [0x140291248]
lea rax, [0x140291288]
mov r9d, 0x286
lea rdx, [0x140291218]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov ecx, 2
call fcn.1401925bc
mov rcx, rax
call fcn.140191344
call fcn.14019c3b8
int3
Function at 0x140061d30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rsi, r9
mov ecx, 0x18
mov rdi, r8
mov rbp, rdx
call fcn.140192c64
mov rbx, rax
test rax, rax
je 0x140061dc8
mov qword [rax], rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov eax, 0xffffffff
mov qword [rbx + 0x10], rbp
cmp rdi, rax
jbe 0x140061d99
call fcn.140193ba0
mov rcx, rbx
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140192488
xor eax, eax
jmp 0x140061dd1
xor eax, eax
lea r8, [0x140061ce0]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov edx, edi
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.14019ea44
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x140061dcc
mov rcx, rbx
call fcn.140192488
xor eax, eax
jmp 0x140061dd1
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400940d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, DecryptFileW
call fcn.140189b30
sub rsp, rax
mov rax, qword [rcx + 8]
lea rsi, [r9 + 1]
mov rbx, rdx
mov rdx, qword [rdx + 8]
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x60], 1
je 0x140094159
lea rax, [rsi + r8]
cmp rax, rdx
ja 0x14009415e
add qword [rbx + 0x20], r8
sub rdx, r8
add qword [rbx + 0x28], r8
sub qword [rbx + 0x10], r8
mov qword [rbx + 8], rdx
mov rax, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x430]
mov qword [rsp + 0x40], rdi
movzx edi, byte [rax + rdx - 1]
call fcn.1400989f0
mov rcx, rax
call fcn.1400b51e0
mov r8, qword [rbx + 8]
and eax, 0x200000
je 0x14009416b
sub r8, rdi
mov eax, 1
dec r8
jmp 0x140094226
cmp rsi, rdx
jbe 0x14009411c
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
lea rcx, [rdi + rsi]
mov qword [rsp + 0x38], rbp
mov ebp, 0x100
mov r9, r8
sub r9, rcx
mov rax, r8
xor r9, rcx
xor rax, rcx
or r9, rax
xor r9, r8
shr r9, 0x3f
dec r9
cmp r8, rbp
cmovb rbp, r8
xor r10d, r10d
test rbp, rbp
je 0x1400941fd
mov r11, qword [rbx + 0x20]
mov rsi, rdi
shr rsi, 0x3f
dec r11
add r11, r8
nop word [rax + rax]
mov rax, r10
lea r11, [r11 - 1]
shr rax, 0x3f
mov rcx, rdi
sub rcx, r10
inc r10
shr rcx, 0x3f
xor cl, al
xor al, sil
or cl, al
movzx eax, byte [r11 + 1]
dec cl
movzx edx, cl
mov rcx, rdi
xor rcx, rax
and rdx, rcx
not rdx
and r9, rdx
cmp r10, rbp
jb 0x1400941c0
mov rbp, qword [rsp + 0x38]
lea rax, [rdi + 1]
not r9
movzx ecx, r9b
dec rcx
shr rcx, 0x3f
neg rcx
and rax, rcx
sub r8, rax
mov eax, ecx
and eax, 1
not ecx
or eax, ecx
mov rdi, qword [rsp + 0x40]
mov qword [rbx + 8], r8
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x1400a5b10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140189b30
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400bcb20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140189b30
sub rsp, rax
lea rcx, [0x140294118]
add rsp, 0x28
jmp fcn.1400a5970
Function at 0x1400cb400
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x1400cb427
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1400cb410
movzx eax, r9b
ret