joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e9128c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0x2c]
mov word [ebp - 0x12], ax
movzx eax, word [ebp - 0x12]
test ax, ax
je 0x6e912902
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x12]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9129f6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
jmp 0x6e9129f6
movzx eax, word [ebp - 0x12]
sub eax, 1
mov word [ebp - 0x12], ax
movzx edx, word [ebp - 0x12]
mov eax, dword [ebp - 0x20]
mov word [eax + 0x2c], dx
movzx eax, word [ebp - 0x12]
test ax, ax
jne 0x6e91295a
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x20]
mov ebx, dword [edx + 0x10]
mov edx, dword [ebp - 0x20]
movzx edx, word [edx + 0x36]
movsx ecx, dx
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9129a9
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9129db
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
cmp dword [ebp - 0x10], 0
je 0x6e9129f6
movzx eax, word [ebp - 0x12]
test ax, ax
je 0x6e912a05
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], 0
jmp 0x6e912a06
movzx eax, word [ebp - 0x12]
test ax, ax
jne 0x6e912931
jmp 0x6e912a06
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e912a16
call sym.___stack_chk_fail
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x6e915c2b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x140]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea eax, [ebp - 0xd]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jns 0x6e915ca2
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
cmp eax, 0x2733
je 0x6e915ca2
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
cmp eax, 0xb
je 0x6e915ca2
mov eax, 0xffffffff
jmp 0x6e915ca7
mov eax, 0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e915cb7
call sym.___stack_chk_fail
leave
ret

Function at 0x6e91890f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x410], eax
nop
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea edx, [ebp - 0x40c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
test eax, eax
jg 0x6e918942
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e91899c
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x410]
mov dword [eax + 0x138], 0
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9189d8
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e9189e9
call sym.___stack_chk_fail
leave
ret
Function at 0x6e91911e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e91914a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], str.Inserted_events:_n
call sym._fwrite
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], sym._dump_inserted_event_fn
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_base_foreach_event_nolock_
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xf
mov dword [esp + 4], 1
mov dword [esp], str.Active_events:_n
call sym._fwrite
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], sym._dump_active_event_fn
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_base_foreach_event_nolock_
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x6e9191ea
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_unlock_
nop
leave
ret

Function at 0x6e9194ba
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.6e9192b5
out 0xda, eax
jb 0x6e9194b6
movzx eax, word [edi + 6]

Function at 0x6e919561
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.6e9192c5
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.6e91927a
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x6e9195a3
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
invalid
inc ebp
invalid

Function at 0x6e919f94
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xfffffc
je 0x6e91a173
cmp dword [ebp + 0xc], 1
je 0x6e91a173
cmp dword [ebp + 0xc], 8
jne 0x6e91a13b
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
invalid
Function at 0x6e91a6d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x6e91a70b
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x6e91a6b5
call fcn.6e9192b5
imul ebx, dword [eax + 0x7f], 0xfffffff7
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
Function at 0x6e91db66
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x6e91dbc2
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.fcntl__d__F_GETFL_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_sock_warn
mov eax, 0xffffffff
jmp 0x6e91dbc7
mov eax, 0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e91dbd7
call sym.___stack_chk_fail
leave
ret

Function at 0x6e91dcdf
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jns 0x6e91dd47
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
js 0x6e91ddbf
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_make_socket_nonblocking
test eax, eax
js 0x6e91ddc2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
test eax, eax
jns 0x6e91ddb8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_socket_geterror
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x6e91dda1
cmp dword [ebp - 0xc], 0x2714
je 0x6e91dda1
cmp dword [ebp - 0xc], 0x2734
je 0x6e91dda1
cmp dword [ebp - 0xc], 0x2726
jne 0x6e91dda8
mov eax, 0
jmp 0x6e91dde7
cmp dword [ebp - 0xc], 0x274d
jne 0x6e91ddc5
mov eax, 2
jmp 0x6e91dde7
mov eax, 1
jmp 0x6e91dde7
nop
jmp 0x6e91ddc6
nop
jmp 0x6e91ddc6
nop
cmp dword [ebp - 0x10], 0
je 0x6e91dde2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_closesocket
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
mov eax, 0xffffffff
leave
ret
Function at 0x6e91eea9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x44], 0
je 0x6e91ef01
mov dword [esp + 8], 0x20
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._memcpy
jmp 0x6e91ef23
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_adjust_hints_for_addrconfig_
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_getaddrinfo_common_
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xfffea06e
je 0x6e91ef69
mov eax, dword [ebp - 0x30]
jmp 0x6e91f065
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], 0
jne 0x6e91efdf
cmp dword [ebp - 0x30], 0x2afc
je 0x6e91efd5
cmp dword [ebp - 0x30], 0x2afc
jg 0x6e91efc1
cmp dword [ebp - 0x30], 0x2af9
je 0x6e91efcb
cmp dword [ebp - 0x30], 0x2afa
jne 0x6e91efc1
mov eax, 0xfffffc7a
jmp 0x6e91f065
mov eax, 0xfffffc78
jmp 0x6e91f065
mov eax, 0xfffffc74
jmp 0x6e91f065
mov eax, 0xfffffc75
jmp 0x6e91f065
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
movsx edx, ax
mov eax, dword [ebp - 0x28]
cmp edx, eax
je 0x6e91effe
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x6e91effe
mov eax, 0xfffffc74
jmp 0x6e91f065
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0xa]
test ax, ax
jne 0x6e91f011
mov eax, 0xfffffc75
jmp 0x6e91f065
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
cmp ax, 2
je 0x6e91f032
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 8]
cmp ax, 0x17
je 0x6e91f032
mov eax, 0xfffffc77
jmp 0x6e91f065
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._addrinfo_from_hostent
mov edx, dword [ebp - 0x48]
mov dword [edx], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
test eax, eax
jne 0x6e91f060
mov eax, 0xfffffc76
jmp 0x6e91f065
mov eax, 0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e91f075
call sym.___stack_chk_fail
leave
ret
Function at 0x6e91f2fb
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x85ebca6b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0xd
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0xc2b2ae35
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 0x10
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x6e9213b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x134
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 dword [esp + 4], 0x104
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x6e92141d
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x114]
add eax, edx
add eax, 2
cmp eax, 0x103
jbe 0x6e921424
mov eax, 0
jmp 0x6e921479
lea eax, [ebp - 0x110]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x110]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov edi, dword [ebp - 0xc]
xor edi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e921489
call sym.___stack_chk_fail
mov edi, dword [ebp - 4]
leave
ret

Function at 0x6e92179e
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [0x6e9301f0]
test eax, eax
jne 0x6e92180b
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x6e9301f4
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call eax
sub esp, 0x14
test eax, eax
jne 0x6e921801
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x80090016
je 0x6e921801
mov eax, 0xffffffff
jmp 0x6e92186c
mov dword [0x6e9301f0], 1
mov eax, dword [0x6e9301f4]
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
call eax
sub esp, 0xc
test eax, eax
jne 0x6e921837
mov eax, 0xffffffff
jmp 0x6e92186c
mov dword [esp + 4], 0x20
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._arc4_addrandom
mov dword [esp + 4], 0x20
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_memclear_
mov dword [0x6e9301ec], 1
mov eax, 0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e92187c
call sym.___stack_chk_fail
leave
ret
Function at 0x6e922378
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 [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x38], 0
je 0x6e9223b8
mov eax, dword [ebp - 0x38]
movzx eax, word [eax]
movzx eax, ax
jmp 0x6e9223bd
mov eax, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x4000001
cmp dword [ebp + 0x18], 0
jne 0x6e9223d7
mov eax, 0
jmp 0x6e922529
mov eax, dword [ebp + 0x14]
and eax, 4
test eax, eax
je 0x6e9223ec
mov eax, dword [ebp - 0x1c]
or eax, 0x80000000
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_socket_
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x6e922419
mov eax, 0
jmp 0x6e922529
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], 4
lea edx, [ebp - 0x20]
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 0x6e922509
mov eax, dword [ebp + 0x14]
and eax, 8
test eax, eax
je 0x6e92246d
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_make_listen_socket_reuseable
test eax, eax
js 0x6e92250c
mov eax, dword [ebp + 0x14]
and eax, 0x80
test eax, eax
je 0x6e92248c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_make_listen_socket_reuseable_port
test eax, eax
js 0x6e92250f
mov eax, dword [ebp + 0x14]
and eax, 0x40
test eax, eax
je 0x6e9224a5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_make_tcp_listen_socket_deferred
test eax, eax
js 0x6e922512
cmp dword [ebp - 0x38], 0
je 0x6e9224cd
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x20]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
test eax, eax
js 0x6e922515
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evconnlistener_new
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6e922518
mov eax, dword [ebp - 0x10]
jmp 0x6e922529
nop
jmp 0x6e922519
nop
jmp 0x6e922519
nop
jmp 0x6e922519
nop
jmp 0x6e922519
nop
jmp 0x6e922519
nop
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evutil_closesocket
mov eax, 0
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e922539
call sym.___stack_chk_fail
leave
ret
Function at 0x6e925a0b
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x3c], 0xb5367df1
mov word [ebp - 0x38], 0xcbac
mov word [ebp - 0x36], 0x11cf
mov dword [ebp - 0x34], 0x8000ca95
mov dword [ebp - 0x30], 0x92a1485f
mov dword [ebp - 0x2c], 0x25a207b9
mov word [ebp - 0x28], 0xddf3
mov word [ebp - 0x26], 0x4660
mov dword [ebp - 0x24], 0xe576e98e
mov dword [ebp - 0x20], 0x3e06748c
mov dword [ebp - 0x1c], 0xb5367df2
mov word [ebp - 0x18], 0xcbac
mov word [ebp - 0x16], 0x11cf
mov dword [ebp - 0x14], 0x8000ca95
mov dword [ebp - 0x10], 0x92a1485f
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
je 0x6e925b17
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._get_extension_function
mov edx, eax
mov eax, dword [ebp - 0x4c]
mov dword [eax], edx
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._get_extension_function
mov edx, eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], edx
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._get_extension_function
mov edx, eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
call eax
sub esp, 4
mov dword [0x6e930218], 1
jmp 0x6e925b18
nop
mov eax, dword [ebp - 0xc]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x6e925b28
call sym.___stack_chk_fail
leave
ret
Function at 0x6e92685c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._upcast_connect
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x6e9268a2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xf8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_core_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 0xc8]
and eax, 8
test al, al
sete al
movzx eax, al
test eax, eax
je 0x6e9268ef
mov dword [esp + 0x14], str.connect_complete
mov dword [esp + 0x10], str.bev_a__bev.connecting
mov dword [esp + 0xc], 0x1a4
mov dword [esp + 8], str.bufferevent_async.c
mov dword [esp + 4], 0x6e92e6a4
mov dword [esp], 0xdeaddead
call sym.libevent_core_2_1_6.dll_event_errx
mov eax, dword [ebp - 0x18]
movzx edx, byte [eax + 0xc8]
and edx, 0xfffffff7
mov byte [eax + 0xc8], dl
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x88]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_evbuffer_overlapped_get_fd_
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x7010
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
cmp dword [ebp + 0x14], 0
je 0x6e926959
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_bufferevent_async_set_connected_
jmp 0x6e92696b
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._bev_async_set_wsa_error
cmp dword [ebp + 0x14], 0
je 0x6e926978
mov eax, pe_nt_image_headers32
jmp 0x6e92697d
mov eax, 0x20
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_bufferevent_run_eventcb_
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_event_base_del_virtual_
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym.libevent_core_2_1_6.dll_bufferevent_decref_and_unlock_
nop
leave
ret