joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d164c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d17cd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5eacac], 0
jne 0x4d17aa
push 0x601ca8
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4d17a3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5eacac], 0
jne 0x4d178b
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405660
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.004054d4
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004099bc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4d17e4
call fcn.0040b734
mov eax, dword [ebp - 0xc]
call fcn.004054d4
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4d170c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405660
jmp 0x4d1743
lea eax, [ebp - 8]
mov edx, 0x4d1804
call fcn.004050ac
xor eax, eax
push ebp
push 0x4d1739
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004a5f54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1743
mov eax, dword [ebp - 8]
call fcn.004054d4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5eacac], eax
cmp dword [0x5eacac], 0
jne 0x4d1776
mov ecx, dword [0x5ffcfc]
mov dl, 1
mov eax, dword [0x408d28]
call fcn.0040ea88
call fcn.00404988
push 0x4d1810
mov eax, dword [0x5eacac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x601cc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d17aa
push 0x601ca8
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d17d4
lea eax, [ebp - 0x18]
call fcn.00405014
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405038
ret
Function at 0x4dd270
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4dd2ab
cmp dword [ebx + 0x5c], 0
je 0x4dd2ab
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004d56b4
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4dd3f6
cmp dword [ebx + 0x7c], 0
jne 0x4dd2d1
mov dl, 1
mov eax, dword [0x41d83c]
call fcn.004040b4
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4dd3cf
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4dd3fc]
push eax
mov al, byte [0x4dd400]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x5ffd4c]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x4bcc9c]
call fcn.004bed74
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4dd3c8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004d56b4
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004d56b4
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4d2cac]
call fcn.0040675c
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4dd39b
mov edx, dword [0x60016c]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4dd3ac
cmp eax, 0x1007
jne 0x4dd3a8
mov byte [ebx + 0x74], 0x18
jmp 0x4dd3ac
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd3f6
mov eax, dword [ebp - 4]
call fcn.004040e4
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004d56b4
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e0a44
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e0acd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x601ce0
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e0ab7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040e184
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4e0ae4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x6000ac]
mov dl, 1
mov eax, dword [0x4e0248]
call fcn.0040eac4
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0ad4
lea eax, [ebp - 0x1c]
call fcn.00405014
ret

Function at 0x4e1180
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004e10a4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004042ec
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4e11e4
call fcn.004e098c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4e11d6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004042ec
pop esi
pop ebx
ret

Function at 0x4e1208
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004054d4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403830
test ebx, ebx
je 0x4e1253
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x4e1330
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e1361
mov ecx, dword [0x5ffe68]
mov dl, 1
mov eax, dword [0x4e0248]
call fcn.0040ea88
call fcn.00404988
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4e138e
mov ecx, dword [0x5ffd5c]
mov dl, 1
mov eax, dword [0x4e0248]
call fcn.0040ea88
call fcn.00404988
xor eax, eax
push ebp
push 0x4e140a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004042ec
cmp byte [ebp + 8], 0
je 0x4e13e6
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e1298
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004e1180
jmp 0x4e1400
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e0c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1427
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e15ec
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e0f40
xor eax, eax
push ebp
push 0x4e175d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4e1747
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e1637
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e1641
call fcn.00404a34
jmp 0x4e1764
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422cd0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4e173c
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4e16ef
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e16dc
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004042ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004e15a4
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4e1770]
cmp dl, byte [eax + 0x28]
je 0x4e1743
call fcn.0040e9a0
jmp 0x4e1743
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422cf0
jmp 0x4e1743
cmp ecx, ebx
jge 0x4e170b
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422cf0
jmp 0x4e1641
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00422cd0
cmp edx, dword [esp + 4]
jne 0x4e172b
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e1641
push ebp
call fcn.004e15a4
pop ecx
jmp 0x4e1743
push ebp
call fcn.004e15a4
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1764
mov eax, dword [ebp - 4]
call fcn.004e0f4c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e1774
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e1896
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e0f40
xor eax, eax
push ebp
push 0x4e1879
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e17c4
call fcn.00404a34
jmp 0x4e1880
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e1863
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e1863
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004042ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e1863
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040e184
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e18b0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6000ac]
mov dl, 1
mov eax, dword [0x4e0248]
call fcn.0040eac4
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1880
mov eax, dword [ebp - 4]
call fcn.004e0f4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e189d
lea eax, [ebp - 0x28]
call fcn.00405014
ret
Function at 0x4e18fc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e1a46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e0f40
xor eax, eax
push ebp
push 0x4e1a29
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e1961
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e1961
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4e1a13
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e1974
call fcn.00404a34
jmp 0x4e1a30
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e1a13
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e1a13
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004042ec
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e1a13
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040e184
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e1a60
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x6000ac]
mov dl, 1
mov eax, dword [0x4e0248]
call fcn.0040eac4
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1a30
mov eax, dword [ebp - 4]
call fcn.004e0f4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1a4d
lea eax, [ebp - 0x28]
call fcn.00405014
ret
Function at 0x4e2cdc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e2ee9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
call fcn.00407028
push eax
push 0x4e2ef8
push 1
push 0
mov eax, dword [0x5ff82c]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call fcn.0041cffc
test al, al
je 0x4e2da7
lea eax, [ebp - 4]
call fcn.00407028
push eax
push 0
push 0
mov eax, dword [0x5ffa6c]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.004a5b98
jmp 0x4e2d8b
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x24]
call fcn.004a5c94
mov edx, dword [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4e2d70
jmp 0x4e2ea8
lea eax, [ebp - 0x10]
push eax
push 0x4e2f08
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4e2ea8
xor eax, eax
push ebp
push 0x4e2ea1
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x4e2e6c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 6
lea edx, [ebp - 0x13c]
mov eax, dword [0x5ffa6c]
call fcn.004a5c0c
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0xb
lea edx, [ebp - 0x138]
mov ecx, 1
mov eax, 0x4e2f18
call fcn.0040b734
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00405284
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
call fcn.004a5bb0
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x140]
call fcn.004a5c94
mov edx, dword [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x4e2dd7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2ea8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2ef0
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.00405038
lea eax, [ebp - 0x128]
call fcn.00405014
lea eax, [ebp - 0x14]
call fcn.00405014
lea eax, [ebp - 0xc]
call fcn.00407028
lea eax, [ebp - 4]
call fcn.00407028
ret
Function at 0x4e2fa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x4e2fe1
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00405284
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e2fec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, edi
call fcn.004054d4
push eax
push esi
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4e303a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00405284
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f101c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f10b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x4f1065
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405284
jmp 0x4f1072
lea eax, [ebp - 4]
mov edx, 0x4f10cc
call fcn.004050ac
mov eax, dword [ebp - 4]
call fcn.004052d4
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4f1091
lea eax, [ebp - 4]
mov edx, 0x4f10d8
call fcn.004052dc
mov eax, ebx
mov ecx, 0x4f10e4
mov edx, dword [ebp - 4]
call fcn.00405320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f10bd
lea eax, [ebp - 4]
call fcn.00405014
ret
Function at 0x4f1308
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call fcn.004f12e8
cmp bl, al
je 0x4f1403
test bl, bl
je 0x4f13e2
mov eax, esi
call fcn.004f1a84
cmp dword [esi + 0x10], 0
jne 0x4f1354
cmp dword [esi + 0x14], 0
jne 0x4f1354
mov ecx, dword [0x5ff6f8]
mov dl, 1
mov eax, dword [0x4f0a20]
call fcn.0040ea88
call fcn.00404988
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4e0708]
call fcn.004e2004
mov ebx, eax
mov dword [esi + 0x1c], ebx
mov dl, 1
mov eax, ebx
call fcn.004e20f0
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x90]
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
call fcn.004e1e24
cmp dword [esi + 0x10], 0
je 0x4f139a
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
call fcn.004e1d24
jmp 0x4f13a5
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
call fcn.004e1da4
mov eax, dword [esi + 0x1c]
call fcn.004e1ed0
mov dword [ebp - 4], 0x2000
lea eax, [ebp - 4]
call fcn.004f10f4
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push 0xffff
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4f1403
call sub.wsock32.dll_WSAGetLastError
jmp 0x4f1403
mov eax, dword [esi + 0x20]
call fcn.004e0f30
mov eax, dword [esi + 0x1c]
call fcn.004040e4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4f1403
push eax
mov eax, dword [0x5ff8dc]
mov eax, dword [eax]
call eax
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4f6c0c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4f6c14
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4f6c36
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 8], ecx
mov dword [edx + 4], ecx
mov dword [edx], ecx
push dword [ebp + 8]
xor eax, eax
push ebp
push 0x4f6ea9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.0041af3c
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0xc]
call fcn.00417460
mov dl, 1
mov eax, dword [0x4f241c]
call fcn.004f35f8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f6e95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x50]
call fcn.00405068
mov eax, dword [ebp - 4]
call fcn.004f3660
add eax, 4
mov edx, 0x4f6ee4
call fcn.00405068
xor eax, eax
push ebp
push 0x4f6d89
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41dde4]
call fcn.004040b4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f6d78
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f6f00
mov eax, dword [ebp + 8]
push dword [eax + 0x4c]
push 0x4f6f10
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004f36a0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00405394
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x6002ec]
mov dword [edx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 8]
call fcn.004f413c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x6002ec]
sub eax, dword [edx]
mov edx, dword [0x6002ec]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp word [eax + 0x42], 0
je 0x4f6d57
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004f3dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6d7f
mov eax, dword [ebp - 8]
call fcn.004040e4
ret