joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x10]
cmp eax, 2
push esi
push edi
jne 0x40bd06
mov eax, dword [ebx + 0x18]
test eax, eax
lea ebp, [ebx + 0x14]
je 0x40bcf0
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x40bcf0
test eax, eax
jne 0x40bc2c
xor esi, esi
jmp 0x40bc31
mov esi, dword [ebp + 8]
sub esi, eax
test eax, eax
je 0x40bc3c
mov edx, dword [ebp + 8]
sub edx, eax
jne 0x40bc41
call fcn.0042931e
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
mov ecx, dword [ebp + 4]
je 0x40bc59
push 0
push esi
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40bc5c
or eax, 0xffffffff
mov edx, dword [ebp + 4]
test edx, edx
jne 0x40bc67
xor ecx, ecx
jmp 0x40bc6c
mov ecx, dword [ebp + 8]
sub ecx, edx
cmp eax, ecx
jne 0x40bc8f
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push eax
call fcn.00410170
xor eax, eax
mov ecx, ebp
call fcn.0040e0f0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
jle 0x40bd38
test edx, edx
jne 0x40bc9f
xor ecx, ecx
jmp 0x40bca4
mov ecx, dword [ebp + 8]
sub ecx, edx
cmp eax, ecx
jge 0x40bd38
push eax
lea esi, [esp + 0x14]
mov edi, ebp
call fcn.004064c0
lea ebx, [esp + 0x1c]
call fcn.0040e040
lea esi, [esp + 0x20]
mov ebx, eax
call fcn.004064c0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
mov ebx, ebp
call fcn.00406500
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push ecx
call fcn.00410170
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x40bd38
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push edx
mov dword [ebx + 0x10], 2
call fcn.00410170
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
push ebx
push eax
call fcn.0040ff70
push 0
push 1
push 1
mov esi, ebx
call fcn.0040f560
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bdc0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], 0x10000
je 0x40be22
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x14]
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push esi
call ebx
cmp esi, 0xffffffff
mov dword [edi + 0xc], esi
je 0x40beb7
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x40beae
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax]
mov eax, dword [edi + 0xc]
mov word [esp + 0x16], cx
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
mov word [esp + 0x20], 2
mov dword [esp + 0x24], edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40beae
mov edx, dword [edi + 0xc]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x40beae
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 4]
push edi
push eax
call fcn.0040ff70
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042877c
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0042877c
mov esp, ebp
pop ebp
ret 4

Function at 0x40c020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43fdfe
mov eax, dword fs:[0]
push eax
mov eax, dword [0x44e2d0]
push ecx
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
or edx, 0xffffffff
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x38], edx
mov dword [eax], vtable.XFQuery::CSock5Proxy_class_XFQuery::QQDiskBinPacket__class_XFQuery::CTcpClient_class_XFQuery::QQDiskBinPacket__.0
mov dword [eax + 0x3c], ecx
mov word [eax + 0x40], cx
mov dword [eax + 0x42], ecx
mov word [eax + 0x46], cx
mov dword [eax + 0x6c], ecx
mov edx, 0xf
mov dword [eax + 0x70], edx
mov byte [eax + 0x5c], cl
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], ecx
mov byte [eax + 0x78], cl
mov byte [eax + 0x90], cl
mov byte [eax + 0x91], cl
mov byte [eax + 0x92], cl
mov byte [eax + 0x93], 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 8
Function at 0x40c400
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
cmp eax, 1
push esi
push edi
jne 0x40c46f
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push eax
mov dword [ebx + 0x10], 5
call fcn.00410170
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
push ebx
push ecx
call fcn.0040ff70
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov al, 2
mov byte [esp + 0xc], 5
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], al
je 0x40c546
push 0
push 4
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 7
jne 0x40c4ce
mov edi, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.00410170
mov cl, byte [ebx + 0x38]
mov dx, word [ebx + 0x40]
mov eax, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov byte [esp + 0xc], 5
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
mov word [esp + 0x14], dx
mov dword [esp + 0x10], eax
je 0x40c546
push 0
push 0xa
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 6
jne 0x40c53b
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push edx
mov dword [ebx + 0x10], eax
call fcn.00410170
mov eax, 0x10
cmp dword [ebx + 0x8c], eax
jb 0x40c4f4
mov edi, dword [ebx + 0x78]
jmp 0x40c4f7
lea edi, [ebx + 0x78]
cmp dword [ebx + 0x70], eax
jb 0x40c501
mov eax, dword [ebx + 0x5c]
jmp 0x40c504
lea eax, [ebx + 0x5c]
push eax
lea esi, [esp + 0x10]
call fcn.00401c90
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov esi, dword [esp + 0xc]
je 0x40c529
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.00429393
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.0040bbf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d2a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
cmp eax, 1
push esi
push edi
jne 0x40d30f
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push eax
mov dword [ebx + 0x10], 5
call fcn.00410170
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
push ebx
push ecx
call fcn.0040ff70
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov al, 2
mov byte [esp + 0xc], 5
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], al
je 0x40d3f5
push 0
push 4
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 7
jne 0x40d36e
mov edi, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.00410170
mov cl, byte [ebx + 0x70]
mov dx, word [ebx + 0x78]
mov eax, dword [ebx + 0x74]
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov byte [esp + 0xc], 5
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
mov word [esp + 0x14], dx
mov dword [esp + 0x10], eax
je 0x40d3f5
push 0
push 0xa
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 6
jne 0x40d3ea
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push edx
mov dword [ebx + 0x10], eax
call fcn.00410170
mov eax, 0x10
cmp dword [ebx + 0xc4], eax
jb 0x40d397
mov edi, dword [ebx + 0xb0]
jmp 0x40d39d
lea edi, [ebx + 0xb0]
cmp dword [ebx + 0xa8], eax
jb 0x40d3ad
mov eax, dword [ebx + 0x94]
jmp 0x40d3b3
lea eax, [ebx + 0x94]
push eax
lea esi, [esp + 0x10]
call fcn.00401c90
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
mov esi, dword [esp + 0xc]
je 0x40d3d8
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.00429393
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.0040bbf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43fd7e
mov eax, dword fs:[0]
push eax
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax], vtable.XFQuery::CHttpProxy_class_XFQuery::QQDiskBinPacket__class_XFQuery::CTcpClient_class_XFQuery::QQDiskBinPacket__.0
mov dword [eax + 0x34], ecx
mov word [eax + 0x38], cx
mov edx, 0xf
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], ecx
mov byte [eax + 0x40], cl
mov dword [eax + 0x70], edx
mov dword [eax + 0x6c], ecx
mov byte [eax + 0x5c], cl
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x40dbd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43fd7e
mov eax, dword fs:[0]
push eax
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax], vtable.XFQuery::CSock4Proxy_class_XFQuery::QQDiskBinPacket__class_XFQuery::CTcpClient_class_XFQuery::QQDiskBinPacket__.0
mov dword [eax + 0x34], ecx
mov word [eax + 0x38], cx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x40f680
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
cmp byte [ebp + 0x34], 0
push esi
lea ebx, [ebp + 0x34]
push edi
mov edi, eax
jne 0x40f6b0
mov edx, ebx
mov ecx, ebp
call fcn.004103d0
test al, al
je 0x40f801
cmp byte [ebx], 0
je 0x40f801
mov esi, dword [ebp + 0x3d]
test esi, esi
je 0x40f801
mov eax, dword [edi + 4]
test eax, eax
jne 0x40f6c6
xor ebx, ebx
jmp 0x40f6cb
mov ebx, dword [edi + 8]
sub ebx, eax
lea eax, [ebx + esi]
mov ecx, edi
call fcn.0040e0f0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40f6e5
mov eax, dword [edi + 8]
sub eax, ecx
cmp ebx, eax
jb 0x40f6ea
call fcn.0042931e
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
add eax, ebx
cmp ecx, 0xffffffff
je 0x40f787
push 0
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jle 0x40f763
cmp ebp, esi
je 0x40f761
lea esi, [esp + 0x10]
call fcn.004064e0
push ebp
push ecx
push ebx
lea esi, [esp + 0x24]
mov dword [esp + 0x48], eax
call fcn.004064c0
lea ebx, [esp + 0x2c]
call fcn.0040e040
add esp, 4
lea ebx, [esp + 0x2c]
call fcn.0040e040
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ebx, edi
call fcn.00406500
jmp 0x40f7eb
test ebp, ebp
jne 0x40f782
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 0x10], 2
jne 0x40f77e
push 0
push 1
push 2
mov esi, ecx
call fcn.0040f560
mov ecx, esi
mov edx, dword [ecx]
jmp 0x40f7e6
cmp ebp, 0xffffffff
jne 0x40f7eb
lea esi, [esp + 0x30]
call fcn.004064e0
push ebx
lea esi, [esp + 0x2c]
mov ebp, eax
call fcn.004064c0
lea ebx, [esp + 0x24]
call fcn.0040e040
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, edi
call fcn.00406500
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40f7eb
mov esi, dword [esp + 0x3c]
cmp dword [esi + 0x10], 2
jne 0x40f7e2
push 0
push 1
push 2
call fcn.0040f560
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40f801
mov eax, dword [edi + 8]
sub eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 4
Function at 0x40f810
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
push esi
push edi
jne 0x40f824
xor edi, edi
jmp 0x40f829
mov edi, dword [ebx + 8]
sub edi, eax
lea eax, [edi + 0x4000]
mov ecx, ebx
call fcn.0040e0f0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40f846
mov eax, dword [ebx + 8]
sub eax, ecx
cmp edi, eax
jb 0x40f84b
call fcn.0042931e
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0xc]
add eax, edi
cmp ecx, 0xffffffff
je 0x40f8e4
push 0
push 0x4000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jle 0x40f8dd
cmp ebp, 0x4000
je 0x40f8db
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0x1c], eax
jbe 0x40f88e
call fcn.0042931e
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x40f89b
call fcn.0042931e
mov dword [esp + 0x14], esi
add esi, edi
cmp esi, dword [ebx + 8]
ja 0x40f8ab
cmp esi, dword [ebx + 4]
jae 0x40f8b0
call fcn.0042931e
mov dword [esp + 0x14], esi
add esi, ebp
cmp esi, dword [ebx + 8]
mov edi, ebx
ja 0x40f8c2
cmp esi, dword [ebx + 4]
jae 0x40f8c7
call fcn.0042931e
mov eax, dword [esp + 0x1c]
push eax
push ebx
push esi
push edi
lea ecx, [esp + 0x20]
push ecx
call fcn.00406500
jmp 0x40f94c
test ebp, ebp
je 0x40f932
cmp ebp, 0xffffffff
jne 0x40f94c
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x40f8f1
call fcn.0042931e
mov ebp, dword [ebx + 4]
cmp ebp, dword [ebx + 8]
jbe 0x40f8fe
call fcn.0042931e
add edi, ebp
cmp edi, dword [ebx + 8]
mov dword [esp + 0x14], ebp
ja 0x40f90e
cmp edi, dword [ebx + 4]
jae 0x40f913
call fcn.0042931e
push esi
push ebx
push edi
push ebx
lea ecx, [esp + 0x20]
push ecx
call fcn.00406500
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40f94c
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x10], 2
jne 0x40f943
push 0
push 1
push 2
call fcn.0040f560
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x40f95f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [ebx + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 8
ret 4
Function at 0x40f970
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x3c4]
mov edx, dword [eax + 0x3c0]
mov ebx, dword [edx + ecx*4]
add eax, 0x3b4
push edi
lea ebp, [esi + 0x90]
mov eax, dword [esi + 0x34]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x48]
push ecx
push 0
push 0x400b
push ebp
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xa
mov dword [esp + 0x14], eax
jbe 0x40fa40
cmp byte [ebp], 0
jne 0x40fa40
cmp byte [ebp + 1], 0
jne 0x40fa40
cmp byte [ebp + 2], 0
jne 0x40fa40
cmp byte [ebp + 3], 1
jne 0x40fa40
push 0
lea edx, [ebp + 0xa]
push 0
lea edi, [eax - 0xa]
push edx
call fcn.004026b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40fa38
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp + 4]
mov dword [ebx + 9], eax
mov cx, word [ebp + 8]
push esi
lea edi, [ebx + 0x44]
mov word [ebx + 0xd], cx
mov dword [ebx], 3
mov byte [ebx + 8], 0
call fcn.00402420
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, dword [esp + 0x1c]
push ebx
call fcn.0040f5e0
mov esi, edi
jmp 0x40fa3c
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, 0x400b
je 0x40f998
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x3c4]
mov edx, dword [eax + 0x3c0]
mov ebx, dword [edx + ecx*4]
add eax, 0x3b4
push edi
lea ebp, [esi + 0xc8]
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x80]
push ecx
push 0
push 0x400b
push ebp
push eax
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xa
mov dword [esp + 0x14], eax
jbe 0x40fb33
cmp byte [ebp], 0
jne 0x40fb33
cmp byte [ebp + 1], 0
jne 0x40fb33
cmp byte [ebp + 2], 0
jne 0x40fb33
cmp byte [ebp + 3], 1
jne 0x40fb33
push 0
lea edx, [ebp + 0xa]
push 0
lea edi, [eax - 0xa]
push edx
call fcn.004026b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40fb2b
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, dword [ebp + 4]
mov dword [ebx + 9], eax
mov cx, word [ebp + 8]
push esi
lea edi, [ebx + 0x44]
mov word [ebx + 0xd], cx
mov dword [ebx], 3
mov byte [ebx + 8], 0
call fcn.00402420
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edi, dword [esp + 0x1c]
push ebx
call fcn.0040f5e0
mov esi, edi
jmp 0x40fb2f
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, 0x400b
je 0x40fa88
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x411ed0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x440758
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor bl, bl
xor ebp, ebp
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], bl
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov dword [esp + 0x58], ebp
call fcn.00404dc0
mov dword [esp + 0x4c], 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x411f39
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004293c2
add esp, 4
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x411f8d
push ebp
push 1
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
jne 0x411f88
cmp dword [esi + 0x10], 2
jne 0x411f68
push ebp
push 1
push 2
call fcn.0040f560
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
cmp eax, 0xffffffff
jne 0x411f9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x411f58
cmp byte [esp + 0x10], 0xa
je 0x41207d
test bl, bl
je 0x411ffb
mov esi, dword [edi + 0x18]
cmp esi, 0x10
lea eax, [edi + 4]
jb 0x411fb8
mov ecx, dword [eax]
jmp 0x411fba
mov ecx, eax
mov edx, dword [edi + 0x14]
lea ebp, [edx + ecx]
test ebp, ebp
je 0x411fe0
cmp esi, 0x10
jb 0x411fcd
mov ecx, dword [eax]
jmp 0x411fcf
mov ecx, eax
cmp ecx, ebp
ja 0x411fe0
cmp esi, 0x10
jb 0x411fda
mov eax, dword [eax]
add edx, eax
cmp ebp, edx
jbe 0x411fe5
call fcn.0042931e
push ebp
push edi
push 0xd
lea eax, [esp + 0x20]
push eax
mov eax, edi
call fcn.004121d0
mov esi, dword [esp + 0x54]
xor bl, bl
cmp byte [esp + 0x10], 0xd
jne 0x412006
mov bl, 1
jmp 0x412059
mov esi, dword [edi + 0x18]
cmp esi, 0x10
lea eax, [edi + 4]
jb 0x412015
mov ecx, dword [eax]
jmp 0x412017
mov ecx, eax
mov edx, dword [edi + 0x14]
lea ebp, [edx + ecx]
test ebp, ebp
je 0x41203d
cmp esi, 0x10
jb 0x41202a
mov ecx, dword [eax]
jmp 0x41202c
mov ecx, eax
cmp ecx, ebp
ja 0x41203d
cmp esi, 0x10
jb 0x412037
mov eax, dword [eax]
add edx, eax
cmp ebp, edx
jbe 0x412042
call fcn.0042931e
mov ecx, dword [esp + 0x10]
push ebp
push edi
push ecx
lea edx, [esp + 0x28]
push edx
mov eax, edi
call fcn.004121d0
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x411f9a
push 0
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x411f9a
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4

Function at 0x412ba0
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push esi
mov ebx, 0x455ca0
xor esi, esi
call fcn.00414610
mov eax, dword [0x45330c]
cmp eax, 1
jne 0x412bc2
push 0xffffffffffffffff
push str.QQPlayerSetup.exe
jmp 0x412bce
cmp eax, 2
jne 0x412bdb
push 0xffffffffffffffff
push str.QQDownloadSetup.exe
push 0x455ca0
call fcn.0042970d
add esp, 0xc
push 0x455ca0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00413660
pop esi
pop ebx
pop ecx
ret
Function at 0x412bf0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x412c20
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x412c1b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret

Function at 0x413860
Capabilities:
Resolve dns

Disassembly:
push ecx
lea eax, [esp]
push eax
push edi
mov byte [esp + 8], 0x2e
call fcn.00404ed0
cmp eax, 0xffffffff
je 0x4138d1
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x413883
mov eax, dword [esi]
jmp 0x413885
mov eax, esi
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4138ba
cmp dword [edi + 0x18], 0x10
jb 0x41389c
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4138b4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
pop ebx
pop esi
pop ecx
ret 4
cmp dword [edi + 0x18], 0x10
jb 0x4138c2
mov esi, dword [esi]
push esi
call ebx
mov edx, dword [esp + 0x10]
pop ebx
mov dword [edx], eax
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
mov dword [eax], 0xffffffff
pop ecx
ret 4

Function at 0x4144b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push 0x7fe
lea eax, [esp + 0x12]
push 0
push eax
mov esi, ecx
mov word [esp + 0x18], 0
call fcn.004307b0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 1
push 0
push esi
push 0x80000002
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414562
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414562
cmp dword [esp + 4], 0x800
ja 0x414562
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00429c25
add esp, 8
cmp eax, 0xffffffff
setne al
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0042877c
add esp, 0x80c
ret
mov ecx, dword [esp + 0x80c]
pop esi
xor ecx, esp
xor al, al
call fcn.0042877c
add esp, 0x80c
ret