joyce8/EMBER2024-capa huggingface dataset:
Function at 0x623eb75d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6fc], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x6f4], pe_nt_image_headers32
mov eax, dword [ebp - 0x6fc]
mov eax, dword [eax + 0x124]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x623eb7fc
call sym.libevent_2_1_6.dll_evthreadimpl_is_lock_debugging_enabled_
test eax, eax
je 0x623eb7fc
mov eax, dword [ebp - 0x6fc]
mov eax, dword [eax + 0x124]
mov eax, dword [eax + 0xf0]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evthread_is_debug_lock_held_
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x623eb7fc
mov dword [esp + 0x14], str.nameserver_read
mov dword [esp + 0x10], str.evthread_is_debug_lock_held___ns__base___lock_
mov dword [esp + 0xc], 0x560
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
mov eax, dword [ebp - 0x6fc]
mov eax, dword [eax]
mov edx, eax
lea eax, [ebp - 0x6f4]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x6e8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5dc
lea eax, [ebp - 0x5e8]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0x6f0], eax
cmp dword [ebp - 0x6f0], 0
jns 0x623eb8ab
mov eax, dword [ebp - 0x6fc]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_geterror
mov dword [ebp - 0x6ec], eax
cmp dword [ebp - 0x6ec], 0x2733
je 0x623eb949
cmp dword [ebp - 0x6ec], 0x2714
je 0x623eb949
mov eax, dword [ebp - 0x6ec]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_error_to_string
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6fc]
mov dword [esp], eax
call sym._nameserver_failed
jmp 0x623eb94a
mov eax, dword [ebp - 0x6fc]
add eax, 8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x6e8]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_sockaddr_cmp
test eax, eax
je 0x623eb90c
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [ebp - 0x668]
mov dword [esp + 4], eax
lea eax, [ebp - 0x6e8]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_format_sockaddr_port_
mov dword [esp + 8], eax
mov dword [esp + 4], str.Address_mismatch_on_received_DNS_packet.__Apparent_source_was__s
mov dword [esp], 2
call sym._evdns_log_
jmp 0x623eb94a
mov eax, dword [ebp - 0x6fc]
mov dword [eax + 0x90], 0
mov eax, dword [ebp - 0x6fc]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 0x6f0]
mov dword [esp + 8], edx
lea edx, [ebp - 0x5e8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._reply_parse
jmp 0x623eb7fc
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623eb95a
call sym.___stack_chk_fail
leave
ret
Function at 0x623eb95c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x67c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x623eb9df
call sym.libevent_2_1_6.dll_evthreadimpl_is_lock_debugging_enabled_
test eax, eax
je 0x623eb9df
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax + 0x5c]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evthread_is_debug_lock_held_
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x623eb9df
mov dword [esp + 0x14], str.server_port_read
mov dword [esp + 0x10], str.evthread_is_debug_lock_held___s___lock_
mov dword [esp + 0xc], 0x585
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
mov dword [ebp - 0x674], pe_nt_image_headers32
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax]
mov edx, eax
lea eax, [ebp - 0x674]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x668]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5dc
lea eax, [ebp - 0x5e8]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0x670], eax
cmp dword [ebp - 0x670], 0
jns 0x623eba9d
mov eax, dword [ebp - 0x67c]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_geterror
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0x2733
je 0x623ebad8
cmp dword [ebp - 0x66c], 0x2714
je 0x623ebad8
mov eax, dword [ebp - 0x66c]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_error_to_string
mov edx, dword [ebp - 0x66c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error__s___d__while_reading_request.
mov dword [esp], 2
call sym._evdns_log_
jmp 0x623ebad9
mov eax, dword [ebp - 0x674]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x668]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x67c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x670]
mov dword [esp + 4], eax
lea eax, [ebp - 0x5e8]
mov dword [esp], eax
call sym._request_parse
jmp 0x623eb9df
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623ebae9
call sym.___stack_chk_fail
leave
ret
Function at 0x623ee142
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x623ee1b7
call sym.libevent_2_1_6.dll_evthreadimpl_is_lock_debugging_enabled_
test eax, eax
je 0x623ee1b7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf0]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evthread_is_debug_lock_held_
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x623ee1b7
mov dword [esp + 0x14], str.evdns_request_transmit_to
mov dword [esp + 0x10], str.evthread_is_debug_lock_held___req__base___lock_
mov dword [esp + 0xc], 0x89f
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
test eax, eax
sete al
movzx eax, al
test eax, eax
jne 0x623ee1de
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
mov eax, dword [eax]
cmp dword [ebp + 8], eax
setne al
movzx eax, al
test eax, eax
je 0x623ee212
mov dword [esp + 0x14], str.evdns_request_transmit_to
mov dword [esp + 0x10], str._req___handle___req___handle__current_req___req_
mov dword [esp + 0xc], 0x8a0
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x128]
cmp eax, 1
jne 0x623ee256
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0xf4]
test eax, eax
je 0x623ee256
mov eax, dword [ebp + 0xc]
add eax, 0x94
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_add
test eax, eax
jns 0x623ee256
mov eax, 1
jmp 0x623ee309
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x623ee2f2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_geterror
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x623ee2c7
cmp dword [ebp - 0xc], 0x2714
jne 0x623ee2ce
mov eax, 1
jmp 0x623ee309
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_error_to_string
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._nameserver_failed
mov eax, 2
jmp 0x623ee309
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x10], eax
je 0x623ee304
mov eax, 1
jmp 0x623ee309
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x623f0c56
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x623f0cdf
call sym.libevent_2_1_6.dll_evthreadimpl_is_lock_debugging_enabled_
test eax, eax
je 0x623f0cdf
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 0xf0]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evthread_is_debug_lock_held_
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x623f0cdf
mov dword [esp + 0x14], str.search_set_from_hostname
mov dword [esp + 0x10], str.evthread_is_debug_lock_held___base___lock_
mov dword [esp + 0xc], 0xc5e
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sym._search_postfix_clear
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x10c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostname]
call eax
sub esp, 8
test eax, eax
jne 0x623f0d4b
mov dword [esp + 4], 0x2e
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strchr
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
je 0x623f0d4e
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sym._search_postfix_add
jmp 0x623f0d4f
nop
jmp 0x623f0d4f
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623f0d5f
call sym.___stack_chk_fail
leave
ret

Function at 0x623f2266
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x144
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x25
lea eax, [ebp - 0x111]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call eax
sub esp, 0x10
test eax, eax
jne 0x623f22b0
mov eax, 0
jmp 0x623f2323
lea eax, [ebp - 0x111]
mov dword [esp], eax
call sym._strlen
mov ebx, eax
mov dword [esp], str.driversetchosts
call sym._strlen
add eax, ebx
add eax, 1
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_malloc_
mov dword [ebp - 0x118], eax
mov dword [esp + 0x10], str.driversetchosts
lea eax, [ebp - 0x111]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_snprintf
mov eax, dword [ebp - 0x118]
mov edx, dword [ebp - 0xc]
xor edx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623f2333
call sym.___stack_chk_fail
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x623f29c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xf0]
test eax, eax
je 0x623f2a67
call sym.libevent_2_1_6.dll_evthreadimpl_is_lock_debugging_enabled_
test eax, eax
je 0x623f2a67
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xf0]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evthread_is_debug_lock_held_
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x623f2a67
mov dword [esp + 0x14], str.config_nameserver_from_reg_key
mov dword [esp + 0x10], str.evthread_is_debug_lock_held___base___lock_
mov dword [esp + 0xc], 0xec9
mov dword [esp + 8], str.evdns.c
mov dword [esp + 4], 0x6240bb74
mov dword [esp], 0xdeaddead
call sym._event_errx
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
cmp eax, 0xea
je 0x623f2aaa
mov eax, 0xffffffff
jmp 0x623f2b28
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_malloc_
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x623f2ac5
mov eax, 0xffffffff
jmp 0x623f2b28
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
test eax, eax
jne 0x623f2b1a
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jbe 0x623f2b1a
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._evdns_nameserver_ip_add_line
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
xor edx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623f2b38
call sym.___stack_chk_fail
leave
ret
Function at 0x623fd45b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 0x14], 1
sete al
movzx eax, al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
jmp 0x623fd58b
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0x3f
jne 0x623fd4c1
cmp dword [ebp + 0x14], 0
jns 0x623fd571
mov dword [ebp - 0x18], 1
jmp 0x623fd571
cmp byte [ebp - 0x1d], 0x2b
jne 0x623fd4d6
cmp dword [ebp - 0x18], 0
je 0x623fd4d6
mov byte [ebp - 0x1d], 0x20
jmp 0x623fd571
mov eax, dword [ebp - 0x14]
add eax, 2
cmp dword [ebp + 0xc], eax
jbe 0x623fd571
cmp byte [ebp - 0x1d], 0x25
jne 0x623fd571
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call sym.libevent_2_1_6.dll_EVUTIL_ISXDIGIT_
test eax, eax
je 0x623fd571
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call sym.libevent_2_1_6.dll_EVUTIL_ISXDIGIT_
test eax, eax
je 0x623fd571
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov eax, dword [ebp - 0x2c]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0xf]
mov dword [esp], eax
call sym._strtol
mov byte [ebp - 0x1d], al
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
mov edx, eax
mov eax, dword [ebp - 0x30]
add edx, eax
movzx eax, byte [ebp - 0x1d]
mov byte [edx], al
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x623fd497
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623fd5b5
call sym.___stack_chk_fail
leave
ret
Function at 0x623ff39c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x2c], 0
je 0x623ff3c7
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
jmp 0x623ff3cc
mov eax, 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x84000001
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_socket_
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x623ff40b
mov dword [esp + 4], str.socket
mov dword [esp], 0xffffffff
call sym.libevent_2_1_6.dll_event_sock_warn
mov eax, 0xffffffff
jmp 0x623ff4be
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 4
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 8
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
test eax, eax
js 0x623ff48d
cmp dword [ebp + 0xc], 0
je 0x623ff453
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_make_listen_socket_reuseable
test eax, eax
js 0x623ff490
cmp dword [ebp - 0x2c], 0
je 0x623ff488
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x623ff493
mov eax, dword [ebp - 0x18]
jmp 0x623ff4be
nop
jmp 0x623ff494
nop
jmp 0x623ff494
nop
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evutil_closesocket
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSASetLastError]
call eax
sub esp, 4
mov eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623ff4ce
call sym.___stack_chk_fail
leave
ret

Function at 0x62400de0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x62400e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x624119d8]
test esi, esi
jle 0x62400f40
mov eax, dword [0x624119dc]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x62400e70
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x62400eef
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x62400e60
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x62400f67
mov eax, dword [0x624119dc]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x624119dc]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x62400f47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x62400ee8
sub eax, 4
and eax, 0xfffffffb
jne 0x62400ef6
add dword [0x624119d8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x624119dc]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x62400ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x62400e7a
mov eax, dword [0x624119dc]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x1000db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0x16], 0
je 0x1000dc4f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
mov eax, edi
setne cl
cmp byte [ebp + 0xc], 0
je 0x1000db90
test cl, cl
je 0x1000db90
push dword [edi + 0x26]
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
mov eax, dword [esi + 4]
push dword [eax + 0x12]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
mov edi, eax
test edi, edi
jne 0x1000dbd0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000dbd0
mov eax, dword [esi + 4]
push dword [eax + 0x16]
push 1
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0x34
cmp eax, 1
cmovne edi, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x16]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
mov eax, dword [esi + 4]
push dword [eax + 0x16]
je 0x1000dc14
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
lea ecx, [ebp - 0x10]
mov edi, 0x34
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [esi + 4]
add esp, 4
cmp edx, dword [ecx + 0x1e]
jl 0x1000dc32
jg 0x1000dc2c
cmp eax, dword [ecx + 0x1a]
jbe 0x1000dc32
mov dword [ecx + 0x1a], eax
mov dword [ecx + 0x1e], edx
lea ecx, [ebp - 0x10]
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10010020
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call sym.ScCore.dll_protected:_class_ScCore::Refcountable____thiscall_ScCore::WeakRefBase::assign_class_ScCore::Refcountable__
cwde
test eax, eax
je 0x10010052
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x10010049
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033360
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033590
mov eax, 0x30
pop esi
pop ebp
ret