joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d05f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.005e9a80
mov eax, dword [0x7cf070]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x6d07b5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x6d0745
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.006d0000
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x6d06e0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x6d079c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005e9199
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005e9199
add esp, 0x2c
ret
Function at 0x6dacd0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.005e9a80
mov eax, dword [0x7cf070]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x6dadd9
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebx + 3]
sub ebx, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.006db090
movzx ecx, byte [edi - 3]
lea edi, [edi + 8]
movzx eax, byte [esp + 0x28]
lea esi, [esi + 8]
xor ecx, eax
add esp, 0xc
movzx eax, byte [esp + 0x1d]
mov byte [esi - 0xa], cl
mov byte [esp + 0x14], cl
movzx ecx, byte [edi - 0xa]
xor ecx, eax
movzx eax, byte [esp + 0x1e]
mov byte [esi - 9], cl
mov byte [esp + 0x15], cl
movzx ecx, byte [esi + ebx - 8]
xor ecx, eax
movzx eax, byte [esp + 0x1f]
mov byte [esi - 8], cl
mov byte [esp + 0x16], cl
movzx ecx, byte [edi - 8]
xor ecx, eax
movzx eax, byte [esp + 0x20]
mov byte [esi - 7], cl
mov byte [esp + 0x17], cl
movzx ecx, byte [edi - 7]
xor ecx, eax
movzx eax, byte [esp + 0x21]
mov byte [esi - 6], cl
mov byte [esp + 0x18], cl
movzx ecx, byte [edi - 6]
xor ecx, eax
movzx eax, byte [esp + 0x22]
mov byte [esi - 5], cl
mov byte [esp + 0x19], cl
movzx ecx, byte [edi - 5]
xor ecx, eax
movzx eax, byte [esp + 0x23]
mov byte [esi - 4], cl
mov byte [esp + 0x1a], cl
movzx ecx, byte [edi - 4]
xor ecx, eax
mov byte [esi - 3], cl
mov byte [esp + 0x1b], cl
sub ebp, 1
jne 0x6dad20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop ebp
xor ecx, esp
call fcn.005e9199
add esp, 0x18
ret
Function at 0x6dd0a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.005e9a80
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
je 0x6dd195
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
cmp edx, 0x20
jb 0x6dd16e
push ebp
lea eax, [ebx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x6dd0e7
cmp ebp, ebx
jae 0x6dd16d
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x6dd0f4
cmp ebp, edi
jae 0x6dd16d
mov eax, edx
lea ebp, [esi + 0x10]
mov edx, edi
and eax, 0xffffffe0
sub edx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, ebx
mov edx, esi
sub edx, ebx
mov dword [esp + 0x14], edx
mov edx, edi
mov edi, dword [esp + 0x14]
sub edx, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
nop word [eax + eax]
movups xmm0, xmmword [eax]
add ecx, 0x20
lea eax, [eax + 0x20]
lea ebp, [ebp + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ebp - 0x20]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ebp - 0x20], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x6dd130
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
pop ebp
cmp ecx, edx
jae 0x6dd192
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
nop dword [eax + eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x6dd180
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4df1fd
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4039b8
and dword [ebp - 0x20], 0
call fcn.0043e734
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [0x5222e4], esi
call fcn.0043e734
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp + 0xc]
movsx eax, word [eax]
add eax, dword [0x5222e4]
jo 0x4df28e
cmp esi, eax
jge 0x4df260
call sub.MSVBVM60.DLL_rtcDoEvents
jmp 0x4df23b
push 0x4df271
jmp 0x4df270
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow

Function at 0x4df293
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x404256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4039c8
and dword [ebp - 0x20], 0
call fcn.0043e734
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [0x5222e4], esi
call fcn.0043e734
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
mov eax, dword [ebp + 0xc]
movsx eax, word [eax]
add eax, dword [0x5222e4]
jo 0x4df383
cmp esi, eax
jge 0x4df355
call sub.MSVBVM60.DLL_rtcDoEvents
push 4
call fcn.0043e300
mov edi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
push 0xdc
call fcn.0043e674
mov esi, eax
call sub.MSVBVM60.DLL___vbaSetSystemError
test si, si
jl 0x4df33f
cmp word [0x5221ba], 0
je 0x4df33f
cmp word [0x5221da], 0xffff
je 0x4df33f
cmp word [0x52223c], 0xffff
je 0x4df33f
push 1
pop eax
jmp 0x4df341
xor eax, eax
xor ecx, ecx
test di, di
sete cl
test eax, ecx
jne 0x4df2d1
or word [0x5221da], 0xffff
push 0x4df366
jmp 0x4df365
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x4df388
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa0
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4039d8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x443248
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
push 0x4432a4
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xac], 0x4008
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x84], 0x4410cc
mov dword [ebp - 0x8c], 8
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
call sub.MSVBVM60.DLL___vbaVarDup
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL_rtcGetObject
push 0
push 0x4432a8
push 0x10
pop eax
call sub.MSVBVM60.DLL___vbaChkstk
lea esi, [ebp - 0xac]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
push 0x441194
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.MSVBVM60.DLL___vbaVarLateMemCallLdRf
add esp, 0x20
push eax
lea eax, [ebp - 0x7c]
push eax
call sub.MSVBVM60.DLL___vbaVarLateMemCallLd
add esp, 0x10
push eax
call sub.MSVBVM60.DLL___vbaBoolVar
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 5
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x18
push 0x4df511
jmp 0x4df508
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeStr
ret

Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub edx, 0xb8e8d16c
call fcn.0043b678
add edx, edi
xor dword [esi], ebx
or edx, edx
add esi, 1
sub edx, 0x9413d5ba
mov edi, edi
push 0x68499ad7
pop edx
cmp esi, ecx
jne fcn.0043b645
sub edx, edx
ret
Function at 0x405960
Capabilities:
Access peb ldr_data
Get common file path
Get hostname
Get number of processors
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4175b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0xc]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x30]
mov byte [esp + 0x80], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ebx, [esi + 0x38]
mov byte [esp + 0x80], 3
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x3c]
mov byte [esp + 0x80], 4
call fcn.004073e0
push str.icamview.xxxxxxx.com.tw
mov ecx, ebx
mov byte [esp + 0x84], 5
mov dword [esi], 0x41aa58
call fcn.0041625a
push str._firmware_icamview_
mov ecx, edi
mov word [esi + 0x34], 0x15
call fcn.0041625a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x7fff
cmp eax, 0x400
mov dword [esi + 0x2c], eax
jae 0x405a2c
add eax, 0x400
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x3c]
call fcn.00407500
lea eax, [esp + 0x14]
push 0x64
push eax
call sub.WSOCK32.dll_gethostname
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostbyname
xor edi, edi
cmp eax, edi
je 0x405a5a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esi + 0x28], ecx
push 0x421e98
lea ecx, [esi + 0x20]
mov dword [esi + 0x24], edi
call fcn.0041625a
lea edx, [esp + 0x14]
mov dword [esi + 0x14], edi
push edx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::operator
push 0x4213e8
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret

Function at 0x405ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417602
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x41aa58
lea edi, [esi + 0x3c]
mov dword [esp + 0x14], 5
mov ecx, edi
call fcn.00407490
mov ecx, edi
mov byte [esp + 0x14], 4
call fcn.00407440
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407500
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x10], eax
mov eax, ecx
pop esi
ret

Function at 0x4077a7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push esi
mov esi, ecx
lea edx, [esp + 4]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x10
push ecx
push edx
push eax
mov dword [esi + 0x10], eax
call sub.WSOCK32.dll_getpeername
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call sub.WSOCK32.dll_getsockname
mov eax, dword [esp + 6]
push eax
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x16]
mov word [esi + 0xc], ax
push ecx
call sub.WSOCK32.dll_ntohs
mov edx, dword [esp + 8]
mov word [esi + 4], ax
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [esi + 8]
call fcn.0041625a
mov eax, 1
pop esi
add esp, 0x20
ret 4

Function at 0x408690
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 4], eax
mov eax, ecx
pop esi
ret
Function at 0x4086b0
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x417a63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
or edi, 0xffffffff
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x138], ebx
jne 0x4086e8
call fcn.00408690
lea eax, [esp + 0x140]
lea ecx, [esp + 0xc]
push eax
call fcn.0041647c
mov edx, dword [esp + 0x144]
xor ecx, ecx
mov dword [esp + 0x14], ecx
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x24], ecx
call sub.WSOCK32.dll_htons
mov word [esp + 0x16], ax
mov eax, dword [esp + 0xc]
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x408753
mov ecx, dword [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x408782
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_ioctlsocket
cmp eax, edi
jne 0x408799
mov byte [esp + 0x138], bl
lea ecx, [esp + 0xc]
jmp 0x40880d
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
mov byte [esp + 0x138], bl
lea ecx, [esp + 0xc]
jmp 0x40880d
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push ebx
push edx
push ebx
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], ebx
call sub.WSOCK32.dll_select
cmp eax, ebx
jg 0x4087e7
mov byte [esp + 0x138], bl
lea ecx, [esp + 0xc]
jmp 0x40880d
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x1c], ebx
call sub.WSOCK32.dll_ioctlsocket
cmp eax, edi
mov byte [esp + 0x138], bl
lea ecx, [esp + 0xc]
jne 0x408829
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408846
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 8

Function at 0x408860
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mov ecx, dword [ecx + 4]
mul esi
shr edx, 6
mov dword [esp + 4], edx
mov eax, esi
xor edx, edx
mov esi, 0x3e8
div esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
lea eax, [edx + edx*4]
lea edx, [esp + 4]
push edx
push 0
lea eax, [eax + eax*4]
push 0
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
pop esi
jne 0x4088cc
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x4091e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x40928a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x409271
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x409271
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4092a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409302
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409604
lea ecx, [esp + 0x10]
push ecx
push str..htm
push connect
mov ecx, edi
call fcn.004092a0
test eax, eax
jne 0x409604
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push connect
mov ecx, edi
call fcn.004092a0
test eax, eax
jne 0x409604
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095d5
lea eax, [esp + 0x10]
push 0x421814
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095d5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4095d8
mov byte [esi], 0
push 0x421484
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x409710
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8650
call fcn.00416940
push ebx
mov ebx, dword [esp + 0x865c]
push ebp
push esi
push edi
mov ecx, 0x2000
mov esi, ebx
lea edi, [esp + 0x660]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x8664]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
push 0x421844
push esi
mov dword [esp + 0x20], ebp
call fcn.00409940
add esp, 0xc
push 1
call sub.WSOCK32.dll_htons
push 0x1001
mov word [esp + 0x32], ax
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x20]
push 0x29
push ecx
push esi
mov word [esp + 0x3c], ax
call fcn.004158e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
jmp 0x4097a4
mov esi, dword [esp + 0x8664]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
push 0x5dc
lea eax, [esp + 0x88]
push edx
push eax
push esi
call fcn.00415a70
add esp, 0x10
test al, al
jbe 0x40988f
lea edi, [esi + 0x19c]
mov ecx, 3
lea esi, [esp + 0x8a]
xor edx, edx
repe cmpsw word [esi], word es:[edi]
je 0x40988f
lea eax, [esp + 0x92]
push eax
call fcn.00409990
add esp, 4
test al, al
je 0x409897
push 0x1002
call sub.WSOCK32.dll_ntohs
cmp word [esp + 0x94], ax
jne 0x409897
xor eax, eax
test ebp, ebp
jle 0x40984e
mov ecx, dword [esp + 0x8668]
lea edx, [ecx + 4]
mov ecx, 3
lea edi, [esp + 0x8a]
mov esi, edx
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
je 0x40988b
inc eax
add edx, 0x80
cmp eax, ebp
jl 0x40982a
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x92]
push ebx
push edx
mov esi, ebx
call fcn.004099b0
lea eax, [ebx + 0x1c]
push str.CAMV
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x10
test eax, eax
je 0x40988f
mov ecx, dword [esp + 0x8670]
inc ebp
add ebx, 0x80
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x10], ebx
jmp 0x40988f
mov ebx, dword [esp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, edx
cmp eax, 0x4b0
jb 0x40979d
test ebp, ebp
mov dword [esp + 0x14], ebp
jle 0x40992c
mov ebx, dword [esp + 0x8668]
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x6bc]
mov ebp, 0x100
mov ecx, 3
lea edi, [edx - 0x58]
lea esi, [ebx + 4]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x409903
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebx + 0x5c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x18], esi
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, 0x80
dec ebp
jne 0x4098cb
mov eax, dword [esp + 0x10]
add ebx, 0x80
dec eax
mov dword [esp + 0x10], eax
jne 0x4098bf
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8650
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x8650
ret