joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da430
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4da4a3
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4da4a3
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5268d0
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x4da4a3
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x4da499
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
inc edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x4da45a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4db030
Capabilities:
Parse url

Disassembly:
sub esp, 0x948
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.004dc520
test eax, eax
jl 0x4db212
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [esp + 0x964]
mov ecx, 0xf
stosb byte es:[edi], al
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x15c]
push 0x10000000
push ebx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 0x800
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4db0f7
mov ecx, esi
call fcn.004dc8c0
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x948
ret 0x14
mov al, byte [esp + 0x158]
test al, al
jne 0x4db112
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
mov eax, dword [esp + 0x95c]
mov ecx, esi
push eax
call fcn.004dc660
mov edi, eax
test edi, edi
jl 0x4db209
mov edx, dword [esp + 0x960]
mov ecx, dword [ebp + 8]
push 0
push ecx
mov ax, word [edx]
mov ecx, esi
push eax
call fcn.004dc6d0
test eax, eax
jl 0x4db1ea
mov ecx, dword [esp + 0x96c]
push 0
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x6c]
push ebx
push edx
mov ecx, ebp
call fcn.004dbc80
test eax, eax
jl 0x4db1ea
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0
call fcn.004dbe70
mov edi, eax
cmp edi, 1
je 0x4db1ee
xor ebx, ebx
test edi, edi
jge 0x4db194
cmp edi, 0x80092002
jne 0x4db209
mov ebx, 1
mov ecx, dword [esp + 0x968]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4db200
push ebx
push edi
push esi
mov ecx, ebp
call fcn.004db7f0
xor edx, edx
test eax, eax
setge dl
dec edx
and edx, eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4db205
mov edi, eax
jmp 0x4db209
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x948
ret 0x14
mov edi, 0x800401ea
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.004dc8c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret 0x14
Function at 0x4db220
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebp
mov eax, 4
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
mov esi, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4db31b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.ProxyEnable
push ecx
call edi
test eax, eax
jne 0x4db30c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4db30c
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.ProxyServer
push edx
call edi
test eax, eax
jne 0x4db30c
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4db30c
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004db360
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db31d
mov eax, dword [esp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db31d
xor esi, esi
mov ecx, dword [esp + 0x12c]
cmp word [ecx], 0
jbe 0x4db33d
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4db34b
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x118
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x118
ret 8
Function at 0x4db600
Capabilities:
Parse url

Disassembly:
sub esp, 0x948
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.004dc520
test eax, eax
jl 0x4db7e0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x95c]
push edx
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x15c]
push 0x10000000
push edi
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 0x800
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4db6c7
mov ecx, esi
call fcn.004dc8c0
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x948
ret 0xc
mov al, byte [esp + 0x158]
test al, al
jne 0x4db6e2
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.004dc660
mov edi, eax
test edi, edi
jl 0x4db7d7
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x34]
push 0
push ecx
push edx
mov ecx, esi
call fcn.004dc6d0
test eax, eax
jl 0x4db7b8
mov eax, dword [esp + 0x964]
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x168]
push 0
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, ebp
call fcn.004dbc80
test eax, eax
jl 0x4db7b8
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0
call fcn.004dbe70
mov edi, eax
cmp edi, 1
je 0x4db7bc
xor ebx, ebx
test edi, edi
jge 0x4db762
cmp edi, 0x80092002
jne 0x4db7d7
mov ebx, 1
mov ecx, dword [esp + 0x960]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4db7ce
push ebx
push edi
push esi
mov ecx, ebp
call fcn.004db7f0
xor edx, edx
test eax, eax
setge dl
dec edx
and edx, eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4db7d3
mov edi, eax
jmp 0x4db7d7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x948
ret 0xc
mov edi, 0x800401ea
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.004dc8c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret 0xc
Function at 0x4db7f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x140c
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x80004005
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4db835
mov ecx, ebp
call fcn.004db970
mov ebx, eax
test ebx, ebx
je 0x4db93d
jl 0x4db947
xor edi, edi
mov dword [esp + 0x1c], ebx
test ebx, ebx
mov dword [esp + 0x28], edi
jle 0x4db8e1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4db85e
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
call dword [ecx + 4]
cmp ebx, 0x400
mov esi, 0x400
jg 0x4db86d
mov esi, ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
push eax
push esi
lea edx, [edi + ecx]
lea ecx, [ebp + 0xc]
push edx
call fcn.004dca80
test eax, eax
jl 0x4db94d
cmp eax, esi
jne 0x4db8d5
mov edx, dword [esp + 0x28]
add edi, esi
add edx, esi
cmp edi, 0x1400
mov dword [esp + 0x28], edx
jge 0x4db8a6
cmp ebx, esi
jne 0x4db8d3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push edi
mov edi, dword [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4db933
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edi, edi
sub ebx, esi
test ebx, ebx
jg 0x4db847
mov esi, dword [esp + 0x2c]
jne 0x4db951
xor edi, edi
cmp esi, edi
je 0x4db90f
mov edx, dword [ebp + 8]
lea eax, [esp + 0x18]
push edx
push 2
push eax
lea ecx, [ebp + 0xc]
mov dword [esp + 0x24], edi
call fcn.004dca80
cmp eax, edi
jg 0x4db913
cmp word [esp + 0x18], 0xd0a
jne 0x4db94d
jmp 0x4db913
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x4db92a
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
call dword [ecx + 4]
cmp esi, edi
je 0x4db951
jmp 0x4db816
mov dword [esp + 0x10], 0x800401ea
jmp 0x4db951
mov dword [esp + 0x10], 0
jmp 0x4db951
mov dword [esp + 0x10], ebx
jmp 0x4db951
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4db966
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp]
add esp, 0x10
ret 0xc
Function at 0x4dba50
Capabilities:
Parse url

Disassembly:
mov eax, 0x1148
call fcn.004dd860
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0xc]
mov ecx, ebx
call fcn.004dc520
test eax, eax
jl 0x4dbc68
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x959]
mov byte [esp + 0x958], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [esp + 0x115c]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x14]
mov edx, 0x800
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], edx
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x95c]
push 0x10000000
push esi
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4dbb37
mov ecx, ebx
call fcn.004dc8c0
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x1148
ret 0x1c
lea eax, [esp + 0x10]
push 0x4000000
lea ecx, [esp + 0x15c]
push eax
lea edx, [esp + 0x960]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_UrlEscapeA]
mov al, byte [esp + 0x158]
test al, al
jne 0x4dbb72
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004dc660
mov esi, eax
test esi, esi
jl 0x4dbc5f
mov esi, dword [esp + 0x1168]
test esi, esi
je 0x4dbba5
mov eax, dword [esp + 0x116c]
test eax, eax
je 0x4dbba5
mov edi, 1
jmp 0x4dbba7
xor edi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
mov ecx, ebx
call fcn.004dc6d0
test eax, eax
jl 0x4dbc55
mov eax, dword [esp + 0x1174]
mov ecx, dword [esp + 0x1170]
mov edx, dword [esp + 0x1164]
push eax
mov eax, dword [esp + 0x1164]
push 0
push ecx
push edx
lea ecx, [esp + 0x168]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
mov ecx, ebp
call fcn.004dbc80
test eax, eax
jl 0x4dbc55
test edi, edi
je 0x4dbc59
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
push 0
call fcn.004dbe70
mov edi, eax
test edi, edi
jl 0x4dbc5d
mov ecx, dword [esp + 0x116c]
mov eax, dword [ecx]
cmp edi, eax
jbe 0x4dbc22
mov edi, eax
test edi, edi
je 0x4dbc48
mov edx, dword [ebp + 8]
mov ecx, ebx
push edx
push edi
push esi
call fcn.004dca80
mov esi, eax
sub esi, edi
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [esp + 0x116c]
mov dword [eax], edi
jmp 0x4dbc5f
mov eax, dword [esp + 0x116c]
xor esi, esi
mov dword [eax], edi
jmp 0x4dbc5f
mov esi, eax
jmp 0x4dbc5f
xor esi, esi
jmp 0x4dbc5f
mov esi, edi
mov ecx, ebx
call fcn.004dc8c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1148
ret 0x1c

Function at 0x4dc4e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret
Function at 0x4dc660
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0xd]
test al, al
je 0x4dc675
pop edi
mov eax, 0x80004004
pop esi
ret 4
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4dc6b9
cmp byte [esi], 0
je 0x4dc6b9
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x4dc6b2
push esi
call fcn.004df370
add esp, 4
test eax, eax
jne 0x4dc6a8
pop edi
mov eax, 0x80004005
pop esi
ret 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [edi + 8], edx
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 0x80070057
pop esi
ret 4
Function at 0x4dc6d0
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x224
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x4dc6f8
cmp byte [eax], 0
je 0x4dc6f8
push eax
mov ecx, esi
call fcn.004dc660
test eax, eax
jne 0x4dc8aa
cmp dword [esi + 4], 0xffffffff
jne 0x4dc70d
mov ecx, esi
call fcn.004dc520
test eax, eax
jne 0x4dc8aa
mov al, byte [esi + 0xd]
test al, al
je 0x4dc725
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov ecx, dword [esp + 0x234]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4dc781
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4dc781
cmp eax, 0x2734
je 0x4dc781
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x224
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4dc853
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebx, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x130]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x134], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4dc89e
test eax, eax
je 0x4dc81c
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dc864
mov edx, dword [esi + 4]
lea ecx, [esp + 0x12c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dc770
jmp 0x4dc827
mov al, byte [esi + 0xd]
test al, al
jne 0x4dc714
cmp dword [esp + 0x238], 0xffffffff
je 0x4dc848
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x238]
sub eax, edx
cmp ecx, eax
jle 0x4dc88d
mov al, byte [esi + 0xd]
test al, al
je 0x4dc7a1
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4dc87c
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov byte [esi + 0xc], bl
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
neg al
sbb eax, eax
add eax, 0x80004005
pop edi
pop esi
pop ebx
add esp, 0x224
ret 0xc
Function at 0x4dc920
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x4dca6c
mov al, byte [esi + 0xc]
test al, al
je 0x4dca6c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4dca01
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
lea ecx, [esp + 0x20]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4dca4a
test eax, eax
je 0x4dc9d5
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dca12
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dca4a
cmp dword [esp + 0x22c], 0xffffffff
je 0x4dc9f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x4dca5b
mov al, byte [esi + 0xd]
test al, al
je 0x4dc960
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4dca2a
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jg 0x4dca71
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4dcaf0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x4dcc3c
mov al, byte [esi + 0xc]
test al, al
je 0x4dcc3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4dcbd1
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4dcc1a
test eax, eax
je 0x4dcba5
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dcbe2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dcc1a
cmp dword [esp + 0x22c], 0xffffffff
je 0x4dcbc6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x4dcc2b
mov al, byte [esi + 0xd]
test al, al
je 0x4dcb30
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4dcbfa
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jge 0x4dcc41
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc

Function at 0x4ddde0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4dde51
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4dde51
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4dde3a
jmp 0x4dde51
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4df2e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, dword [esp + 0x10]
mov edi, eax
test edi, edi
mov eax, dword [esi]
je 0x4df338
test eax, eax
je 0x4df314
push eax
call fcn.004df290
mov ecx, dword [esi]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esi], 0
push 0x10
call sub.MFC42.DLL_operatornew
push eax
push edi
mov dword [esi], eax
call fcn.004df1d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x927c0
pop edi
mov dword [esi + 4], eax
pop esi
ret
test eax, eax
je 0x4df353
push eax
call fcn.004df290
mov edx, dword [esi]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1d4c0
pop edi
mov dword [esi + 4], eax
pop esi
ret