joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fd750
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004f652a
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4be0c3
xor al, al
jmp 0x4be1ef
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4be0e5
xor al, al
jmp 0x4be1ef
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4be0f8
xor al, al
jmp 0x4be1ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4be10c
xor al, al
jmp 0x4be1ef
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004ea8e6
test eax, eax
jne 0x4be140
xor al, al
jmp 0x4be1ef
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x5152ac
mov dword [esp + 0x20], ebp
call fcn.004f652a
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004f3443
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004f349a
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4be1d4
mov ax, word [ebx]
test ax, ax
je 0x4be1c6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004be210
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4be1aa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004f349a
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4be710
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004f4af3
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4be756
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004daf28
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x53c060
push ecx
call fcn.004dcfa3
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4c12f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4c1393
test eax, eax
jbe 0x4c1393
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4c1393
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4c133e
xor esi, esi
jmp 0x4c1344
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4c136f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00434750
add esi, eax
push esi
mov ebx, esi
call fcn.00434750
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4c1350
pop ebp
test edi, edi
pop edi
jne 0x4c1393
test ebx, ebx
je 0x4c1393
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004dba40
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4c14b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c15cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c15cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ee065
mov esi, eax
test esi, esi
je 0x4c15cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4c15cd
mov ecx, esi
call fcn.004c1440
cmp edi, eax
jge 0x4c15cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4c1553
mov dword [esp + 0x34], 1
jmp 0x4c15ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4c15cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004c0a40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4c6150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5864dc]
xor edx, edx
cmp eax, edx
jne 0x4c6176
xor eax, eax
mov byte [eax + 0x5863dc], al
inc eax
cmp eax, 0x100
jl 0x4c615e
mov dword [0x5864dc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5863dc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c6207
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c61da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c61a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c6280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c62d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c62ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ccc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fdbce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004cd580
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x515a1c
call fcn.004ec36a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4cccf3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ec36a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4cccec
push 0
mov ecx, eax
call fcn.004c3d90
mov dword [esi + 0xc], eax
jmp 0x4cccf5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4cccf5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4eea09
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4eea41
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004eca84
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004eca5c
jmp 0x4eea4d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f0200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f0242
call fcn.004f652a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f0242
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f0239
xor eax, eax
jmp 0x4f024a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f0250
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f6a5a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f6a88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f6aa6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f69c0
jmp 0x4f6aa6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f6aa6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f69c0
test edi, edi
mov eax, edi
jne 0x4f6a90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001050
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov edx, dword [eax + 0x1001c030]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x1000105b
xor eax, eax
mov ecx, 0x100
mov edx, dword [edi + 4]
mov esi, dword [eax + 0x1001c078]
mov dword [eax + edx], esi
add eax, 4
dec ecx
jne 0x10001075
cmp eax, 0x1000
jl 0x10001070
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [edi]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
cdq
idiv ebp
lea eax, [esi + 2]
mov bl, byte [edx + ecx]
cdq
idiv ebp
mov bh, byte [esi + ecx]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
xor edx, ebx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebp
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x48
mov dword [esp + 0x18], eax
mov esi, edx
jl 0x1000109e
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.10001180
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x10001100
mov esi, 4
mov ebx, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.10001180
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec ebx
jne 0x10001136
cmp esi, 0x1004
jl 0x10001131
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x10001e10
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10001e42
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10001e30
pop esi
ret 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x100030e0
Capabilities:
Create raw socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
push edi
push edi
push 0x11
push 3
mov esi, ecx
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000315e
mov dword [ebp - 0x24], 0x1001d078
mov dword [ebp - 0x20], 0x31e
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x24]
push str.DealUDP_:_WSASocket_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push 4
push ecx
push 2
push edi
push ebx
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100031c1
mov dword [ebp - 0x24], 0x1001d078
mov dword [ebp - 0x20], 0x325
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x24]
push str.DealUDP_:_setsockopt_IP_HDRINCL__Failed._Error___d
push edx
call fcn.10006230
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x120]
mov ecx, esi
push eax
push 0
mov dword [ebp - 0x14], 0
call fcn.10005c10
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x1000328f
mov ecx, esi
call fcn.10005930
test eax, eax
jne 0x1000328f
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10003210
lea ecx, [esi + 0x124]
push ecx
mov ecx, esi
call fcn.10001e10
mov edi, eax
test edi, edi
je 0x100031d8
mov dx, word [esi + 0x120]
mov dword [ebp - 0x14], 1
push edx
mov word [ebp - 0x40], 2
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x3e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push 0x10
push eax
push 0
lea ecx, [esi + 0x3c240]
push 0x41c
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x100031d8
mov dword [ebp - 0x24], 0x1001d078
mov dword [ebp - 0x20], 0x347
mov dword [ebp - 0x1c], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x24]
push str.DealUDP_:_sendto_Error___d
push edx
call fcn.10006230
add esp, 0xc
jmp 0x100031d8
cmp ebx, 0xffffffff
je 0x1000329b
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10005d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003540
Capabilities:
Create raw socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
push 2
xor ebx, ebx
mov word [ebp - 0x13], ax
push 3
mov edi, ecx
push 2
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x11], al
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x100035c8
mov dword [ebp - 0x28], 0x1001d078
mov dword [ebp - 0x24], 0x3c2
mov dword [ebp - 0x20], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x28]
push str.DealIGMP_:_WSASocket_Failed._Error___d
push ecx
call fcn.10006230
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push 4
push edx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 0x1c], 0x7d0
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000362b
mov dword [ebp - 0x28], 0x1001d078
mov dword [ebp - 0x24], 0x3c9
mov dword [ebp - 0x20], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x28]
push str.DealIGMP_:_setsockopt_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [edi + 0x23c]
test eax, eax
je 0x1000370b
mov ecx, edi
call fcn.10005930
test eax, eax
jne 0x1000370b
test ebx, ebx
jne 0x10003662
lea ecx, [edi + 0x124]
push ecx
mov ecx, edi
call fcn.10001e10
mov esi, eax
test esi, esi
je 0x1000362d
push esi
mov ebx, 1
mov word [ebp - 0x44], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [ebp - 0x14]
push 4
push edx
mov ecx, edi
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x14], 0x12
mov byte [ebp - 0x13], 0
call fcn.10005970
mov edx, dword [ebp - 0x18]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x44]
push 0x10
push eax
push 0
lea ecx, [ebp - 0x14]
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1000362d
mov dword [ebp - 0x28], 0x1001d078
mov dword [ebp - 0x24], 0x3ec
mov dword [ebp - 0x20], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x28]
push str.IGMP:_sendto_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
jmp 0x1000362d
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x1000371a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.10005d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003920
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x23c]
test eax, eax
je 0x10003a7b
mov ecx, edi
call fcn.10005930
test eax, eax
jne 0x10003a7b
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10003983
lea eax, [edi + 0x124]
mov ecx, edi
push eax
call fcn.10001e10
mov ebx, eax
test ebx, ebx
je 0x1000394b
mov cx, word [edi + 0x120]
mov dword [ebp - 0x14], 1
push ecx
mov word [ebp - 0x48], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x46], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push 2
mov dword [ebp - 0x44], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100039f1
mov dword [ebp - 0x20], 0x1001d078
mov dword [ebp - 0x1c], 0x470
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x20]
push str.DealTCP_:_socket_Failed._Error___d
push edx
call fcn.10006230
add esp, 0xc
jmp 0x1000394b
lea eax, [ebp - 0x48]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003a30
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x477
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x2c]
push str.DealTCP_:_Connect_Failed._Error___d
push ecx
call fcn.10006230
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1000394b
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.10005d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100059c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], 0
je 0x10005a07
push esi
mov eax, edx
mov esi, dword [eax + 4]
add eax, 4
inc ecx
test esi, esi
jne 0x100059ee
mov edx, dword [edx + ecx*4 - 4]
pop esi
mov eax, dword [edx]
add esp, 0x104
ret
mov eax, dword [edx + ecx*4 - 4]
mov eax, dword [eax]
add esp, 0x104
ret
Function at 0x10006db0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10016338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.10007010
mov ecx, esi
call fcn.10007080
mov eax, dword [esi + 0x4c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
jne 0x10006e79
cmp dword [esi + 0x37c], edi
jne 0x10006e3e
push 0x90
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x10006e13
mov ecx, eax
call fcn.1000bdf0
jmp 0x10006e15
xor eax, eax
cmp eax, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x37c], eax
je 0x10006fef
push esi
mov ecx, eax
call fcn.10008520
mov ecx, dword [esi + 0x37c]
call fcn.1000bf20
lea eax, [esp + 8]
mov dword [esi + 0x374], edi
push eax
push edi
push esi
push 0x100070a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x378], eax
pop edi
mov eax, ecx
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp eax, 1
jne 0x10006ef3
cmp dword [esi + 0x380], edi
jne 0x10006ed7
push 0x80
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x18], 1
je 0x10006eac
mov ecx, eax
call fcn.10008360
jmp 0x10006eae
xor eax, eax
cmp eax, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x380], eax
je 0x10006fef
push esi
mov ecx, eax
call fcn.10008520
mov ecx, dword [esi + 0x380]
call fcn.10008470
mov ecx, dword [esi + 0x380]
call fcn.10008650
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [esi + 0x37c], edi
jne 0x10006f4c
push 0x90
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x18], 2
je 0x10006f21
mov ecx, eax
call fcn.1000bdf0
jmp 0x10006f23
xor eax, eax
cmp eax, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x37c], eax
je 0x10006fef
push esi
mov ecx, eax
call fcn.10008520
mov ecx, dword [esi + 0x37c]
call fcn.1000bf20
cmp dword [esi + 0x380], edi
jne 0x10006fa1
push 0x80
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov dword [esp + 0x18], 3
je 0x10006f7a
mov ecx, eax
call fcn.10008360
jmp 0x10006f7c
xor eax, eax
cmp eax, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 0x380], eax
je 0x10006fef
push esi
mov ecx, eax
call fcn.10008520
mov ecx, dword [esi + 0x380]
call fcn.10008470
lea edx, [esp + 8]
mov dword [esi + 0x374], edi
push edx
push edi
push esi
push 0x100070a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x380]
mov dword [esi + 0x378], eax
call fcn.10008650
test eax, eax
je 0x10006fef
cmp dword [esi + 0x378], 0xffffffff
je 0x10006fef
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x10]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret