joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b85
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404871
mov dword [ebp - 0x14], eax
cmp dword [0x435038], esi
jne 0x408c78
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x408c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408d58
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x408d58
push 0x4101f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d58
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x435038], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43503c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x435040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435048], eax
test eax, eax
je 0x408c75
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435044], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408c9d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408c90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408cb2
push 4
pop eax
jmp 0x408d5a
cmp dword [ebp - 0x14], esi
je 0x408cb2
push dword [0x435038]
call dword [0x413004]
push 3
jmp 0x408c97
mov eax, dword [0x435044]
mov ebx, dword [0x413004]
cmp eax, edi
je 0x408d10
cmp dword [0x435048], edi
je 0x408d10
push eax
call ebx
push dword [0x435048]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408d10
test eax, eax
je 0x408d10
call ecx
test eax, eax
je 0x408d05
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408d05
test byte [ebp - 8], 1
jne 0x408d10
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x408d40
mov eax, dword [0x43503c]
cmp eax, edi
je 0x408d3d
push eax
call ebx
test eax, eax
je 0x408d3d
call eax
mov esi, eax
test esi, esi
je 0x408d3d
mov eax, dword [0x435040]
cmp eax, edi
je 0x408d3d
push eax
call ebx
test eax, eax
je 0x408d3d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x435038]
call ebx
test eax, eax
je 0x408d58
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x408d5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004026af
mov esp, ebp
pop ebp
ret
Function at 0x4011d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5a42e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
call fcn.00401180
cmp dword [ebp + 8], eax
jae 0x4011f7
xor eax, eax
jmp 0x401302
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
fild qword [ebp - 0x30]
fdiv qword [0x580be8]
sub esp, 8
fstp qword [esp]
call fcn.0052b0d0
add esp, 8
fnstcw word [ebp - 0x32]
movzx eax, word [ebp - 0x32]
or eax, 0xc00
mov dword [ebp - 0x38], eax
fldcw word [ebp - 0x38]
fistp qword [ebp - 0x40]
fldcw word [ebp - 0x32]
mov ecx, dword [ebp - 0x40]
shl ecx, 0xa
mov dword [ebp - 4], ecx
mov byte [ebp - 0x18], 0x56
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x74
mov byte [ebp - 0x14], 0x75
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x63
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
push edx
push 0x57fdcc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push 4
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
call fcn.004011a0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0052e1a0
add esp, 0xc
mov edx, dword [ebp - 0x28]
cmp dword [edx + 4], 0
je 0x4012db
push 0x8000
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret 4
Function at 0x401320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5a42e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
call fcn.004011a0
cmp dword [ebp + 8], eax
jae 0x401347
xor eax, eax
jmp 0x4014a6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
fild qword [ebp - 0x40]
fdiv qword [0x580be8]
sub esp, 8
fstp qword [esp]
call fcn.0052b0d0
add esp, 8
fnstcw word [ebp - 0x42]
movzx eax, word [ebp - 0x42]
or eax, 0xc00
mov dword [ebp - 0x48], eax
fldcw word [ebp - 0x48]
fistp qword [ebp - 0x50]
fldcw word [ebp - 0x42]
mov ecx, dword [ebp - 0x50]
shl ecx, 0xa
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x38]
call fcn.00401180
cmp dword [ebp - 4], eax
jae 0x4013a0
xor eax, eax
jmp 0x4014a6
mov byte [ebp - 0x20], 0x56
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x41
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
push edx
push 0x57fdec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 4
push 0x1000
mov eax, dword [ebp - 4]
push eax
push 0
call dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
call fcn.004011a0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052e1a0
add esp, 0xc
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x46
mov byte [ebp - 0x2c], 0x72
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x65
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0x34]
push edx
push 0x57fe08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret 4
Function at 0x4049f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5a42e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x19c], ecx
mov ecx, dword [ebp - 0x19c]
call fcn.004056b0
mov eax, dword [ebp - 0x19c]
mov dword [eax], vtable.DeHJfsvDa.0
mov ecx, dword [ebp - 0x19c]
add ecx, 0x2c
call fcn.00401000
mov ecx, dword [ebp - 0x19c]
add ecx, 0x3c
call fcn.00401000
mov ecx, dword [ebp - 0x19c]
add ecx, 0x4c
call fcn.00401000
push str.DeHJfsvDa::DeHJfsvDa
push 0x57fbec
call fcn.00401c90
add esp, 8
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x19c]
mov dword [edx + 4], eax
push 0
mov eax, dword [ebp - 0x19c]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 0x64], 0xffffffff
mov edx, dword [ebp - 0x19c]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x19c]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 0x14], 0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret

Function at 0x404ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.DeHJfsvDa::Disconnect
push 0x57fc08
call fcn.00401c90
add esp, 8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x404b06
jmp 0x404b72
mov ecx, 1
mov word [ebp - 4], cx
xor edx, edx
mov word [ebp - 2], dx
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x64], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x405250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x40528c
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x4052fd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x4052ad
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x4052d9
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4052d7
jmp 0x4052d9
jmp 0x4052a4
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jne 0x4052e9
or eax, 0xffffffff
jmp 0x405369
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x405283
cmp dword [ebp - 0x14], 0
jle 0x405357
mov dword [ebp - 0x1c], 0
jmp 0x405315
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x405341
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40533f
jmp 0x405341
jmp 0x40530c
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jne 0x40534e
or eax, 0xffffffff
jmp 0x405369
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jne 0x405366
mov eax, dword [ebp - 4]
jmp 0x405369
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4056e0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], 0x598
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x198], 0
jne 0x40570a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x1b8], edx
jmp 0x405731
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
cmp ecx, dword [ebp - 0x28]
jbe 0x40571f
xor eax, eax
jmp 0x405899
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
mov dword [edx + 0x1b8], ecx
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x64], 0
mov ecx, dword [ebp - 0x30]
call fcn.004058a0
push 1
push 0
push 5
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004082a0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00408270
push 0x5ae924
call fcn.00401a50
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x48], 0
jne 0x405798
push 0x5ae924
call fcn.00401a50
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0x20], 0x40000
push 4
lea edx, [ebp - 0x20]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x20], 0x40000
push 4
lea edx, [ebp - 0x20]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00405980
test eax, eax
je 0x40584c
mov ecx, dword [ebp - 0x30]
add ecx, 0x58
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x405b60
push 0
push 0
call fcn.0052b6bb
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x54], 0
je 0x405836
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.00408220
jmp 0x40584a
push 0x65f
push 0x57fae0
push 8
mov ecx, dword [ebp - 0x30]
call fcn.00406760
jmp 0x405862
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.FEWkMZwZu::Start
push 0xb
mov ecx, dword [ebp - 0x30]
call fcn.00406760
cmp dword [ebp - 0x24], 0
jne 0x405896
push 1
push 0
push 5
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004082a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
call fcn.00406460
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x405e11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x405e11
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov dword [ebp - 0xc], ecx
mov eax, 1
test eax, eax
je 0x4062a8
push 0
push 0x598
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x406255
cmp dword [ebp - 4], 0x10
jne 0x4061f6
mov ecx, 4
mov edi, 0x57fad0
mov edx, dword [ebp - 0xc]
mov esi, dword [edx + 0x70]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4061f6
push 0
push 0
push 5
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004082a0
xor eax, eax
jmp 0x4062ad
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c0]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x1d8
call fcn.00407230
cmp eax, 2
jne 0x406253
push 1
push 0x4c7
call fcn.00408160
add esp, 4
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004082a0
xor eax, eax
jmp 0x4062ad
jmp 0x4062a3
cmp dword [ebp - 4], 0xffffffff
jne 0x4062a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x406271
jmp 0x4062a8
cmp dword [ebp - 8], 0x2744
je 0x406283
cmp dword [ebp - 8], 0x2746
jne 0x40628a
jmp 0x40618b
push 1
mov edx, dword [ebp - 8]
push edx
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004082a0
xor eax, eax
jmp 0x4062ad
jmp 0x40618b
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, 1
test eax, eax
je 0x406400
mov ecx, dword [ebp - 0x20]
call fcn.00406410
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x7c
push ecx
lea ecx, [ebp - 8]
call fcn.00407300
lea ecx, [ebp - 8]
call fcn.004072c0
movzx edx, al
test edx, edx
je 0x4063e9
push 0
lea ecx, [ebp - 8]
call fcn.004072e0
mov ecx, eax
call fcn.00401f20
push eax
lea ecx, [ebp - 8]
call fcn.004072e0
mov ecx, eax
call fcn.004080f0
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40636a
mov edx, dword [ebp - 0x20]
add edx, 0x160
push edx
lea ecx, [ebp - 0x10]
call fcn.00401d00
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x194]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x194], ecx
lea ecx, [ebp - 0x10]
call fcn.00401cc0
jmp 0x4063e7
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4063e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
jne 0x4063be
mov eax, dword [ebp - 0x20]
add eax, 0x160
push eax
lea ecx, [ebp - 0x18]
call fcn.00401d00
lea ecx, [ebp - 8]
call fcn.00407290
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x178
call fcn.00406ff0
lea ecx, [ebp - 0x18]
call fcn.00401cc0
lea ecx, [ebp - 8]
call fcn.00407330
jmp 0x406400
push 1
mov ecx, dword [ebp - 0x14]
push ecx
push 3
push 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x30
call fcn.004082a0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00407330
mov eax, dword [ebp - 0x1c]
jmp 0x406405
jmp 0x4063f3
lea ecx, [ebp - 8]
call fcn.00407330
jmp 0x406400
lea ecx, [ebp - 8]
call fcn.00407330
jmp 0x4062c9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4069b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x57fb3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x57fb58
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push str.FEWkMZwZu::Connect
push 0x57fb78
call fcn.00401c90
add esp, 8
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x14], eax
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor ecx, ecx
mov edx, dword [ebp - 0x24]
add edx, 0x20
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x20], edx
mov ecx, dword [ecx + 0x18]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x28], 0xca
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x29], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x64], 3
je 0x406a4e
mov ecx, dword [ebp - 0x24]
call fcn.00406460
push 0
push 0
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004056e0
mov dword [ebp - 0x10], eax
push 0x1770
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x406a95
cmp dword [ebp - 0x28], 0x102
je 0x406ad6
cmp dword [ebp - 0x28], 0xffffffff
je 0x406ae6
jmp 0x406af6
push 1
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0x406b10
push 0
push 0
call fcn.0052b6bb
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x268], eax
mov al, 1
jmp 0x406afc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406afc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406afc
xor al, al
jmp 0x406afc
mov esp, ebp
pop ebp
ret 8

Function at 0x408310
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5a42e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408342
mov eax, 0x190
call fcn.0052e8a0
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
movzx eax, byte [ebp + 0x10]
and eax, 0xff
movzx ecx, al
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
shl eax, 8
or ecx, eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x408570
push 0
push 0
call fcn.0052b6bb
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.004046a0
mov esp, ebp
pop ebp
ret