joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dd80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6e1c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0
push dword [esi + 0x264]
call dword [sym.imp.USER32.dll_EnableWindow]
push 6
xor eax, eax
mov dword [ebp - 0x2c], 0
push str.lbtext
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
call fcn.0044e410
push 0
push 0x6e4780
push 0x6e47b0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004c0b70
push eax
call fcn.0061c2c6
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x28]
mov edi, eax
cmp edx, 8
jb 0x46de4a
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46df42
push edx
push ecx
call fcn.0060223e
add esp, 8
test edi, edi
je 0x46deef
mov ecx, ebx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46de70
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.0044e410
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x128]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x46dedb
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ded1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46df47
push edx
push ecx
call fcn.0060223e
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov ecx, esi
call fcn.004be020
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
cmp eax, vtable.CMarchMsgDlg.2.0
jne 0x46df4c
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46df2e
push 1
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00621ffe
call fcn.00621ffe
push 1
push 1
mov ecx, esi
call edx
jmp 0x46df2e
Function at 0x46fdd0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0
push eax
push 0x6a145c
push 1
push 0
push 0x6a147c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46ff3f
mov ecx, dword [ebp - 0x62c]
test ecx, ecx
je 0x46ff3f
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x50]
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00619cc0
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0062342e
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x62c]
lea edx, [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x62c]
lea edx, [ebp - 0x630]
push edx
mov dword [ebp - 0x630], 0
push 0x6a146c
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x46ff33
cmp dword [ebp - 0x630], 0
je 0x46ff33
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00619cc0
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00619cc0
push edi
lea eax, [ebp - 0x41c]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0044cce0
mov eax, dword [ebp - 0x630]
lea edx, [ebp - 0x628]
add esp, 0x24
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x630]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x62c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x475b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6efae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475b3a
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp - 4]
call fcn.00489bf0
add esp, 8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [ebp - 4]
call fcn.00489bf0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x475b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x6efae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475b69
mov esi, dword [eax + 4]
jmp 0x475b6b
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x475b8c
test esi, esi
je 0x475b8c
xor edx, edx
nop dword [eax + eax]
cmp dword [esi + edx*4], 0
je 0x475b9a
inc edx
cmp edx, 2
jl 0x475b80
push dword [ebp + 8]
call fcn.006026ef
add esp, 4
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [esi + edx*4], ecx
pop esi
pop ebp
ret

Function at 0x4760f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x6efa78
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x476154
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
push fcn.00450c50
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006021fd
mov esp, ebp
pop ebp
ret
Function at 0x4766c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647b19
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00475c80
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4767ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6efa1c]
cmp eax, dword [ecx + 4]
jg 0x476894
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x6ef9f8
test edi, edi
jne 0x4768e1
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x476872
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.0060220e
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0060220e
mov ecx, 0xc4830018
add al, 0x89
inc ebp
call 0x8c07bf49
iretd
movups xmmword [eax], xmm0
push 0
push eax
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.00476180
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x47686f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0060223e
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0x6efa1c
call fcn.00602894
add esp, 4
cmp dword [0x6efa1c], 0xffffffff
jne 0x4767d8
push 0x6532d0
mov dword [0x6ef9fc], 0x6ef9f8
mov dword [0x6ef9f8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6efa1c
call fcn.0060284a
add esp, 4
jmp 0x4767d8
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.0044fae0
int3
Function at 0x476d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647b80
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x476dca
mov ecx, esi
call fcn.00476f70
push 0x6efa14
push 0x450a50
push 0x6efa4c
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x476eda
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x6efa14
jmp 0x476ebc
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.005ffa86
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 1
push dword [0x6efae0]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x6efae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.00477240
test eax, eax
je 0x476e7c
nop word [eax + eax]
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00477240
test eax, eax
jne 0x476e60
push dword [ebp - 0x18]
push dword [0x6efae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x476ea1
push eax
call fcn.006026ef
add esp, 4
inc esi
cmp esi, 0xa
jl 0x476e90
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
call fcn.005ffac0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 4
call fcn.0062204e
int3
Function at 0x477ce0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x14], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x477ded
cmp byte [ebp + 8], 0
je 0x477d4d
test byte [esi], 8
je 0x477d4d
xor eax, eax
lea ecx, [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 8], eax
movlpd qword [ebp - 0x10], xmm0
call fcn.0044f190
or byte [esi], 8
lea eax, [ebp - 8]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.00477c60
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00477c60
test esi, esi
je 0x477dda
mov edx, 0x2733
lea ecx, [ebp - 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x477d87
cmp dword [edi], edx
je 0x477da8
mov edx, 0x4d5
lea ecx, [ebp - 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x477dda
cmp dword [edi], edx
jne 0x477dda
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x14]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00477c60
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006021fd
mov esp, ebp
pop ebp
ret

Function at 0x477e00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x477e38
je 0x477e31
cmp eax, 0x79
je 0x477e2a
cmp eax, 0x4c9
jne 0x477e56
mov edx, 0x274d
jmp 0x477e44
mov edx, 0x274c
jmp 0x477e44
mov edx, 0x2743
jmp 0x477e44
cmp eax, 0x4d0
jne 0x477e56
mov edx, 0x2751
lea ecx, [ebp - 8]
call fcn.00475810
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp dword [esi], 0
jne 0x477e9e
cmp edi, 0xffffffff
jne 0x477e7d
mov edx, 0x2719
lea ecx, [ebp - 8]
call fcn.00475810
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.00477c60
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x477f40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 1
push 0
push 0
push dword [ebp + 8]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
mov ecx, esi
cmp edi, 0xffffffff
sete dl
call fcn.00477c60
cmp edi, 0xffffffff
jne 0x477f90
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
cmp ebx, 0x17
jne 0x477fad
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006021fd
mov esp, ebp
pop ebp
ret

Function at 0x478050
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, edx
push edi
cmp ecx, 0xffffffff
jne 0x478084
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.00475810
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
push ebx
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0x10]
mov edi, eax
test edi, edi
sets dl
call fcn.00477c60
test edi, edi
js 0x4780c1
cmp dword [ebx], 0
mov cl, byte [esi]
je 0x4780bc
or cl, 1
mov eax, edi
mov byte [esi], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and cl, 0xfc
mov byte [esi], cl
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478280
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx + 4]
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
test eax, eax
je 0x478407
cmp dword [eax + 4], 0
je 0x478407
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x4782af
cmp byte [edi], 0
jne 0x4782b1
xor edi, edi
test esi, esi
je 0x4782ba
cmp byte [esi], 0
jne 0x4782bc
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x273f
jg 0x47837c
je 0x478372
cmp eax, 0x2726
jg 0x478352
je 0x47832b
test eax, eax
je 0x478313
cmp eax, 8
jne 0x4783be
push 0xe
lea ecx, [ebp - 0xc]
call fcn.00489de0
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
lea ecx, [ebp - 0xc]
call fcn.0044f190
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x2726
lea ecx, [ebp - 0x14]
call fcn.00475810
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x47841e
cmp eax, 0x273c
jne 0x4783be
push eax
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x273f
lea ecx, [ebp - 0x1c]
jmp 0x478333
cmp eax, 0x2afa
jg 0x4783b7
je 0x4783b0
cmp eax, 0x277d
je 0x478396
cmp eax, 0x2af9
jne 0x4783be
push eax
jmp 0x4783f2
push 0x277d
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
push 0x2afa
jmp 0x4783f2
cmp eax, 0x2afb
je 0x4783ed
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6efa1c]
cmp eax, dword [ecx + 4]
jg 0x478434
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x6ef9f8
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
push 0x2afb
lea ecx, [ebp - 0xc]
call fcn.00489e20
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
jmp 0x47841e
mov edx, 0x3e3
lea ecx, [ebp - 0x1c]
call fcn.00475810
mov edx, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [edx + 4]
pop edi
mov dword [ebx + 4], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6efa1c
call fcn.00602894
add esp, 4
cmp dword [0x6efa1c], 0xffffffff
jne 0x4783d3
push 0x6532d0
mov dword [0x6ef9fc], 0x6ef9f8
mov dword [0x6ef9f8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6efa1c
call fcn.0060284a
add esp, 4
jmp 0x4783d3
Function at 0x478a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x6efa14
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push 0x450a50
push 0x6efa4c
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x478b36
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 1
lea eax, [esp + 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6efa1c]
cmp eax, dword [ecx + 4]
jg 0x478b3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x478b11
mov edx, 0x2746
jmp 0x478b1d
cmp eax, 0x4d2
jne 0x478b26
mov edx, 0x274d
lea ecx, [esp + 4]
call fcn.00475810
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.0062204e
push 0x6efa1c
call fcn.00602894
add esp, 4
cmp dword [0x6efa1c], 0xffffffff
jne 0x478aff
push 0x6532d0
mov dword [0x6ef9fc], 0x6ef9f8
mov dword [0x6ef9f8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6efa1c
call fcn.0060284a
add esp, 4
jmp 0x478aff
Function at 0x478b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x6e1c7c]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
push 0x6efa14
mov ebx, ecx
mov dword [esp + 0x34], 0x400
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], ebx
push 0x450a50
push 0x6efa4c
mov dword [esp + 0x40], eax
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x478d14
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
nop
push 0
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
push 1
lea eax, [esp + 0x44]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [0x6efa1c]
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp ecx, dword [eax + 4]
jg 0x478d19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x6ef9f8
cmp esi, 0x40
jne 0x478c5c
mov edx, 0x2746
lea ecx, [esp + 0x18]
call fcn.00475810
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x478c89
cmp esi, 0x4d2
jne 0x478c79
mov edx, 0x274d
lea ecx, [esp + 0x20]
call fcn.00475810
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x478c89
cmp esi, 0x2738
je 0x478c8d
cmp esi, 0xea
je 0x478c8d
test ebx, ebx
jne 0x478ca8
mov eax, dword [esp + 0x28]
xor esi, esi
mov ebx, dword [esp + 0x10]
cmp eax, 0x400
je 0x478bf0
test eax, eax
jg 0x478cfd
je 0x478ce6
mov edx, 0x2733
lea ecx, [esp + 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + 4]
jne 0x478cc7
cmp esi, edx
je 0x478cfd
mov edx, 0x4d5
lea ecx, [esp + 0x10]
call fcn.00475810
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 4]
cmp eax, dword [ecx + 4]
jne 0x478ce6
cmp esi, edx
je 0x478cfd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x43c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006021fd
mov esp, ebp
pop ebp
ret
call fcn.0062204e
push 0x6efa1c
call fcn.00602894
add esp, 4
cmp dword [0x6efa1c], 0xffffffff
jne 0x478c35
push 0x6532d0
mov dword [0x6ef9fc], 0x6ef9f8
mov dword [0x6ef9f8], 0x6af23c
call fcn.006026d1
add esp, 4
push 0x6efa1c
call fcn.0060284a
add esp, 4
jmp 0x478c35
Function at 0x479b20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x479b74
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.00477170
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x479b9c
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00477170
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x479bf8
cmp eax, 0x3e5
je 0x479bf8
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00477170
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.00477100
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006021fd
mov esp, ebp
pop ebp
ret 0x18