joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1c90
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberA]
mov cx, word [0x535740]
mov dl, byte [0x535742]
mov word [esp + 4], cx
add cl, al
lea eax, [esp + 4]
mov byte [esp + 6], dl
push eax
mov byte [esp + 8], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
sete al
ret 4

Function at 0x4d40a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x4d412f
cmp dword [esp + 0x30], ebx
jne 0x4d40cb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esi + 0xc]
push ebx
push ebx
push 0x12
push eax
mov dword [esi + 4], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call edi
test eax, eax
je 0x4d410e
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4d40e6
mov ecx, dword [esi + 8]
push 1
push ecx
call ebp
cmp eax, ebx
je 0x4d411f
cmp eax, 0xffffffff
jne 0x4d40e6
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
lea eax, [esi + 0xc]
push eax
push ebx
push edi
push 0x4d4190
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4d4179
test edi, edi
je 0x4d4167
push 0xffffffffffffffff
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x4d4b50
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esi + 0x8c]
push edi
cmp eax, ebp
mov dword [esi + 0x90], ebp
jbe 0x4d4b89
lea edi, [esi + 4]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], ebp
mov eax, dword [esi + 0x8c]
inc ebx
add edi, 4
cmp ebx, eax
jb 0x4d4b6e
mov eax, dword [esp + 0x18]
mov dword [esi + 0x8c], ebp
cmp eax, ebp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x84], ebp
jne 0x4d4bad
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
mov dword [esi + 0x9c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4d4bdf
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 1
cmp dword [esi + 0x9c], ebp
jne 0x4d4bf1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 8
xor ebx, ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x4d4d15
mov ecx, dword [esi + 0x98]
push ebp
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x4d4d15
mov eax, dword [esi + 0x98]
lea edx, [esp + 0x10]
push ebp
push edx
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x4d4d15
cmp dword [esp + 0x10], 8
jne 0x4d4d15
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebp
je 0x4d4d15
mov cl, byte [edi + 3]
mov dl, byte [edi + 2]
mov byte [esp + 0x18], cl
mov cl, byte [edi + 1]
mov byte [esp + 0x19], dl
mov dl, byte [edi]
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], dl
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dl, byte [edi + 7]
mov cl, byte [edi + 6]
mov byte [esp + 0x18], dl
mov dl, byte [edi + 5]
mov byte [esp + 0x19], cl
mov cl, byte [edi + 4]
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], cl
mov dword [eax + 8], ebx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov ecx, dword [eax]
cmp ecx, 8
jb 0x4d4d15
mov ecx, dword [esi + 0x8c]
cmp ecx, 0x20
ja 0x4d4d15
mov dword [esi + ecx*4 + 4], eax
mov ecx, dword [esi + 0x8c]
inc ecx
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 4]
xor ecx, ecx
cmp edx, 0x6d6f6f76
sete cl
cmp ecx, ebp
je 0x4d4cee
cmp dword [esi + 0x84], ebp
jne 0x4d4cee
mov dword [esi + 0x84], eax
mov edx, dword [eax + 4]
xor ecx, ecx
cmp edx, 0x6d646174
sete cl
cmp ecx, ebp
je 0x4d4d0e
cmp dword [esi + 0x88], ebp
jne 0x4d4d0e
mov dword [esi + 0x88], eax
add ebx, dword [eax]
jmp 0x4d4bff
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x8c]
add esp, 4
cmp eax, ebp
jbe 0x4d4d42
cmp dword [esi + 0x84], ebp
je 0x4d4d42
cmp dword [esi + 0x88], ebp
je 0x4d4d42
mov dword [esi + 0x90], 1
mov eax, dword [esi + 0x90]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4d83a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f848b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0xc]
push str.cookie.ini
push eax
call fcn.00426810
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1b8], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
je 0x4d84f7
mov edx, dword [esp + 8]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x537100
push 0x52f6cc
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x537100
push str.totalTime
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x537100
push str.score
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x537100
push 0x535ac4
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::operator_2
mov dword [esi + 0x2c], 1
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x4da250
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4da25f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x535ba8]
test eax, eax
je 0x4da26d
call fcn.004da100
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x4da361
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x53ce60]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53ce60]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x53ce60]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53ce60]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x53ce60]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53ce60]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x53ce60]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53ce60]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x4da287
pop edi
pop ebx
test edx, edx
je 0x4da381
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53ce60]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x4da365
not eax
pop esi
ret 0xc
Function at 0x4dcd30
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 0x4dcda3
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4dcda3
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x529918
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x4dcda3
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x4dcd99
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 0x4dcd5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4dd940
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.004dfa60
test eax, eax
jl 0x4ddb22
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 0x4dda07
mov ecx, esi
call fcn.004dfe00
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 0x4dda22
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
mov eax, dword [esp + 0x95c]
mov ecx, esi
push eax
call fcn.004dfba0
mov edi, eax
test edi, edi
jl 0x4ddb19
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.004dfc10
test eax, eax
jl 0x4ddafa
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.004de590
test eax, eax
jl 0x4ddafa
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0
call fcn.004de780
mov edi, eax
cmp edi, 1
je 0x4ddafe
xor ebx, ebx
test edi, edi
jge 0x4ddaa4
cmp edi, 0x80092002
jne 0x4ddb19
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 0x4ddb10
push ebx
push edi
push esi
mov ecx, ebp
call fcn.004de100
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 0x4ddb15
mov edi, eax
jmp 0x4ddb19
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.004dfe00
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret 0x14
Function at 0x4ddb30
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 SysReAllocString
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 0x4ddc2b
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 0x4ddc1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ddc1c
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 0x4ddc1c
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4ddc1c
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.004ddc70
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ddc2d
mov eax, dword [esp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ddc2d
xor esi, esi
mov ecx, dword [esp + 0x12c]
cmp word [ecx], 0
jbe 0x4ddc4d
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4ddc5b
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 0x4ddf10
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.004dfa60
test eax, eax
jl 0x4de0f0
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 0x4ddfd7
mov ecx, esi
call fcn.004dfe00
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 0x4ddff2
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.004dfba0
mov edi, eax
test edi, edi
jl 0x4de0e7
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x34]
push 0
push ecx
push edx
mov ecx, esi
call fcn.004dfc10
test eax, eax
jl 0x4de0c8
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.004de590
test eax, eax
jl 0x4de0c8
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0
call fcn.004de780
mov edi, eax
cmp edi, 1
je 0x4de0cc
xor ebx, ebx
test edi, edi
jge 0x4de072
cmp edi, 0x80092002
jne 0x4de0e7
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 0x4de0de
push ebx
push edi
push esi
mov ecx, ebp
call fcn.004de100
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 0x4de0e3
mov edi, eax
jmp 0x4de0e7
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.004dfe00
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x948
ret 0xc
Function at 0x4de100
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 0x4de145
mov ecx, ebp
call fcn.004de280
mov ebx, eax
test ebx, ebx
je 0x4de24d
jl 0x4de257
xor edi, edi
mov dword [esp + 0x1c], ebx
test ebx, ebx
mov dword [esp + 0x28], edi
jle 0x4de1f1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4de16e
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 0x4de17d
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.004dffc0
test eax, eax
jl 0x4de25d
cmp eax, esi
jne 0x4de1e5
mov edx, dword [esp + 0x28]
add edi, esi
add edx, esi
cmp edi, 0x1400
mov dword [esp + 0x28], edx
jge 0x4de1b6
cmp ebx, esi
jne 0x4de1e3
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 0x4de243
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edi, edi
sub ebx, esi
test ebx, ebx
jg 0x4de157
mov esi, dword [esp + 0x2c]
jne 0x4de261
xor edi, edi
cmp esi, edi
je 0x4de21f
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.004dffc0
cmp eax, edi
jg 0x4de223
cmp word [esp + 0x18], 0xd0a
jne 0x4de25d
jmp 0x4de223
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x4de23a
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 0x4de261
jmp 0x4de126
mov dword [esp + 0x10], 0x800401ea
jmp 0x4de261
mov dword [esp + 0x10], 0
jmp 0x4de261
mov dword [esp + 0x10], ebx
jmp 0x4de261
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4de276
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp]
add esp, 0x10
ret 0xc
Function at 0x4de360
Capabilities:
Parse url

Disassembly:
mov eax, 0x1148
call fcn.004e0dc0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0xc]
mov ecx, ebx
call fcn.004dfa60
test eax, eax
jl 0x4de578
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 0x4de447
mov ecx, ebx
call fcn.004dfe00
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 0x4de482
mov byte [esp + 0x158], 0x2f
mov byte [esp + 0x159], 0
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
call fcn.004dfba0
mov esi, eax
test esi, esi
jl 0x4de56f
mov esi, dword [esp + 0x1168]
test esi, esi
je 0x4de4b5
mov eax, dword [esp + 0x116c]
test eax, eax
je 0x4de4b5
mov edi, 1
jmp 0x4de4b7
xor edi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
push 0
push ecx
push edx
mov ecx, ebx
call fcn.004dfc10
test eax, eax
jl 0x4de565
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.004de590
test eax, eax
jl 0x4de565
test edi, edi
je 0x4de569
lea eax, [esp + 0x50]
mov ecx, ebp
push eax
push 0
call fcn.004de780
mov edi, eax
test edi, edi
jl 0x4de56d
mov ecx, dword [esp + 0x116c]
mov eax, dword [ecx]
cmp edi, eax
jbe 0x4de532
mov edi, eax
test edi, edi
je 0x4de558
mov edx, dword [ebp + 8]
mov ecx, ebx
push edx
push edi
push esi
call fcn.004dffc0
mov esi, eax
sub esi, edi
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [esp + 0x116c]
mov dword [eax], edi
jmp 0x4de56f
mov eax, dword [esp + 0x116c]
xor esi, esi
mov dword [eax], edi
jmp 0x4de56f
mov esi, eax
jmp 0x4de56f
xor esi, esi
jmp 0x4de56f
mov esi, edi
mov ecx, ebx
call fcn.004dfe00
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1148
ret 0x1c
Function at 0x4deb50
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 0x4deba8
test eax, eax
je 0x4deb84
push eax
call fcn.004deb00
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.004dea40
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 0x4debc3
push eax
call fcn.004deb00
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
Function at 0x4dfa20
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 0x4dfba0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0xd]
test al, al
je 0x4dfbb5
pop edi
mov eax, 0x80004004
pop esi
ret 4
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4dfbf9
cmp byte [esi], 0
je 0x4dfbf9
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x4dfbf2
push esi
call fcn.004debe0
add esp, 4
test eax, eax
jne 0x4dfbe8
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