joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x57b6c0]
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 [0x530e28]
sub esp, 8
fstp qword [esp]
call fcn.0050ac40
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 0x530dc4
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.0050a550
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.0050add6
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 [0x57b6c0]
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 [0x530e28]
sub esp, 8
fstp qword [esp]
call fcn.0050ac40
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 0x530de4
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.0050a550
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 0x530e00
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.0050add6
mov esp, ebp
pop ebp
ret 4
Function at 0x404a00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521dda
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x57b6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004056c0
mov eax, dword [ebp - 0x1a8]
mov dword [eax], vtable.DeHJfsvDa.0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x2c
call fcn.00401000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x3c
call fcn.00401000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x4c
call fcn.00401000
mov byte [ebp - 4], 2
push 0x530f90
push 0x530fa8
call fcn.00405720
add esp, 8
lea ecx, [ebp - 0x1a4]
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 - 0x1a8]
mov dword [edx + 4], eax
push 0
mov eax, dword [ebp - 0x1a8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0x64], 0xffffffff
mov edx, dword [ebp - 0x1a8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x1a8]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050add6
mov esp, ebp
pop ebp
ret

Function at 0x404b30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.DeHJfsvDa::Disconnect
push 0x530fc4
call fcn.00405720
add esp, 8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x404b56
jmp 0x404bc2
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 0x4052b0
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 0x4052ec
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 0x40535d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x40530d
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x405339
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 0x405337
jmp 0x405339
jmp 0x405304
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jne 0x405349
or eax, 0xffffffff
jmp 0x4053c9
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 0x4052e3
cmp dword [ebp - 0x14], 0
jle 0x4053b7
mov dword [ebp - 0x1c], 0
jmp 0x405375
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x4053a1
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 0x40539f
jmp 0x4053a1
jmp 0x40536c
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jne 0x4053ae
or eax, 0xffffffff
jmp 0x4053c9
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 0x4053c6
mov eax, dword [ebp - 4]
jmp 0x4053c9
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405730
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 0x40575a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x1b8], edx
jmp 0x405781
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
cmp ecx, dword [ebp - 0x28]
jbe 0x40576f
xor eax, eax
jmp 0x4058e9
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.004058f0
push 1
push 0
push 5
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004080f0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004080a0
push 0x57cb70
call fcn.00401750
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x48], 0
jne 0x4057e8
push 0x57cb70
call fcn.00401750
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.00405a10
test eax, eax
je 0x40589c
mov ecx, dword [ebp - 0x30]
add ecx, 0x58
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x405bf0
push 0
push 0
call fcn.0050b6ef
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x54], 0
je 0x405886
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.00408240
jmp 0x40589a
push 0x65f
push 0x531094
push 8
mov ecx, dword [ebp - 0x30]
call fcn.00406910
jmp 0x4058b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.FEWkMZwZu::Start
push 0xb
mov ecx, dword [ebp - 0x30]
call fcn.00406910
cmp dword [ebp - 0x24], 0
jne 0x4058e6
push 1
push 0
push 5
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004080f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
call fcn.00406590
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 0x405e60
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 0x405ea1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x405ea1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, 1
test eax, eax
je 0x40633a
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 0x4062e7
cmp dword [ebp - 4], 0x10
jne 0x406288
push 0x10
push 0x531084
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x70]
push eax
call fcn.0050b81a
add esp, 0xc
test eax, eax
jne 0x406288
push 0
push 0
push 5
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080f0
xor eax, eax
jmp 0x40633f
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.004074c0
cmp eax, 2
jne 0x4062e5
push 1
push 0x4c7
call fcn.00408080
add esp, 4
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080f0
xor eax, eax
jmp 0x40633f
jmp 0x406335
cmp dword [ebp - 4], 0xffffffff
jne 0x406335
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x406303
jmp 0x40633a
cmp dword [ebp - 8], 0x2744
je 0x406315
cmp dword [ebp - 8], 0x2746
jne 0x40631c
jmp 0x406219
push 1
mov edx, dword [ebp - 8]
push edx
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080f0
xor eax, eax
jmp 0x40633f
jmp 0x406219
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406350
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521e50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x57b6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, 1
test eax, eax
je 0x4064e1
mov ecx, dword [ebp - 0x2c]
call fcn.00406500
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x7c
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407590
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00407550
movzx edx, al
test edx, edx
je 0x4064bc
push 0
lea ecx, [ebp - 0x14]
call fcn.00407570
mov ecx, eax
call fcn.00401b30
push eax
lea ecx, [ebp - 0x14]
call fcn.00407570
mov ecx, eax
call fcn.00408060
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x406423
mov edx, dword [ebp - 0x2c]
add edx, 0x160
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401cc0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x194]
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x194], ecx
lea ecx, [ebp - 0x1c]
call fcn.00401d10
jmp 0x4064ba
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4064ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
jne 0x40648a
mov eax, dword [ebp - 0x2c]
add eax, 0x160
push eax
lea ecx, [ebp - 0x24]
call fcn.00401cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407520
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x178
call fcn.00407240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004075c0
jmp 0x4064e1
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 3
push 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.004080f0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004075c0
mov eax, dword [ebp - 0x28]
jmp 0x4064e6
jmp 0x4064cd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004075c0
jmp 0x4064e1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004075c0
jmp 0x406378
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x5310f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x53110c
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 0x53112c
call fcn.00405720
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]
push 0xa
push 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
push ecx
call fcn.0050b230
add esp, 0xc
push 8
mov edx, dword [ebp - 0x24]
add edx, 0x14
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x20
push eax
call fcn.0050a550
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x28], 0xca
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x29], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x64], 3
je 0x406c86
mov ecx, dword [ebp - 0x24]
call fcn.00406590
push 0
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00405730
mov dword [ebp - 0x10], eax
push 0x1770
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x406ccd
cmp dword [ebp - 0x28], 0x102
je 0x406d0e
cmp dword [ebp - 0x28], 0xffffffff
je 0x406d1e
jmp 0x406d2e
push 1
mov edx, dword [ebp - 0x24]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0x406d40
push 0
push 0
call fcn.0050b6ef
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x268], eax
mov al, 1
jmp 0x406d34
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406d34
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406d34
xor al, al
jmp 0x406d34
mov esp, ebp
pop ebp
ret 8

Function at 0x408670
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x57b6c0]
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 0x4086a2
mov eax, 0x190
call fcn.0050cda0
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.0050add6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 3
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4089ac
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x5311a0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], 0xa
jbe 0x408af0
push 0x7d0
push 0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.0050b230
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x1e
push ecx
push 0x5311c0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
push 0
mov edx, dword [ebp + 8]
add edx, 0x21c
push edx
push 0x5311c8
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0x258
push eax
push 0
push 0x5311d0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x25c
push ecx
push 0x5311d8
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
push 0
mov edx, dword [ebp + 8]
add edx, 0x45a
push edx
push 0x5311e0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0x498
push eax
push 0
push 0x5311e8
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x49c
push ecx
push 0x5311f0
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
push 0
mov edx, dword [ebp + 8]
add edx, 0x69a
push edx
push 0x5311f8
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0x6d8
push eax
push 0
push 0x531200
push str.0:db0:lk0:hs1:ld0:ll0:hb0:pj51.4_.4202:zb0.1:bb
call fcn.00408800
add esp, 0x10
mov esp, ebp
pop ebp
ret