joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9dc0
Capabilities:
Check if file exists
Create directory
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x50ba00]
push ebx
push esi
mov ebx, ecx
push edi
push 0x104
lea esi, [ebx + 4]
push esi
lea edi, [ebx + 0x20c]
push 0
mov dword [esp + 0x448], eax
mov dword [esp + 0x20], ebx
mov dword [ebx], 0x4dba24
mov dword [ebx + 0x25c], 0
mov word [esi], 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test edi, edi
mov edx, esi
mov dword [esp + 0x10], edx
je 0x4c9f64
xor eax, eax
test edx, edx
mov word [esp + 0x28], 0
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4c9e61
lea eax, [esp + 0x28]
push 0x104
mov ecx, eax
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x4c9e70
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c9f64
xor eax, eax
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4c9f64
mov ecx, edi
shr ecx, 5
inc ecx
shl ecx, 5
push ecx
call fcn.00483778
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c9f60
mov edx, dword [esp + 0x10]
push ebx
push edi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4c9f60
mov word [esp + 0x230], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x20], 0
movzx eax, word [edx + 2]
movzx ecx, word [edx]
push eax
push ecx
push str.StringFileInfo_04x_04xFileVersion
lea edx, [esp + 0x23c]
push 0x104
push edx
call fcn.004529a0
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x238]
push edx
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0x28
add eax, 0x20c
push eax
call fcn.00402e00
push ebx
call fcn.00482838
add esp, 4
mov ebx, dword [esp + 0x14]
push 0x5c
push esi
call fcn.00482687
mov word [eax], 0
add esp, 8
mov ecx, 0x104
mov eax, esi
jmp 0x4c9f80
cmp word [eax], 0
je 0x4c9f8e
add eax, 2
dec ecx
jne 0x4c9f80
jmp 0x4c9faf
test ecx, ecx
je 0x4c9faf
mov eax, 0x104
sub eax, ecx
push str.Log
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esi + eax*2]
push edx
call fcn.00402910
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c9fc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x43c]
mov dword [ebx + 0x25c], 1
mov eax, ebx
call fcn.00482423
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb1c0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4d8e95
call fcn.00487fa0
sub esp, 0x260
mov eax, dword [0x50ba00]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x264]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor ebx, ebx
cmp eax, ebx
jne 0x4cb208
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4cb20c
cmp eax, esi
jb 0x4cb213
xor eax, eax
jmp 0x4cb2ec
call fcn.004cacb9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.004cb17e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4cb2dc
push ebx
push ebx
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4cb267
xor esi, esi
jmp 0x4cb2df
test byte [ebp - 0x268], 2
jne 0x4cb277
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x268], 4
jne 0x4cb2dc
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4cb2dc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x264], ebx
je 0x4cb263
cmp dword [ebp - 0x264], edi
jbe 0x4cb263
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x264]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x4cb263
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040bc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00482423
leave
ret 8
Function at 0x4cbc5a
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00488050
add esp, 0xc
call fcn.004d2f09
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4cbd2a
cmp dword [ebp - 8], ebx
je 0x4cbd25
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4cbb2c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00484419
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x4cbd34
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4cbcfd
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4cbd17
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x4cbd2f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x4cbd36
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x4cbd34
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4cbd3d
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4d8efe
call fcn.00487fa0
push ecx
push esi
push 0x40
call fcn.004cab91
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4cbd6c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d2b6b
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.004cbc5a
test eax, eax
jne 0x4cbd93
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x4cbdb0
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x4cbdae
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4cc7ca
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00488050
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x4f2f7c]
je 0x4cc8d1
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4cc83a
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x4cc841
cmp ebx, ebx
jne 0x4cc841
xor eax, eax
jmp 0x4cc8d4
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4cc84e
mov byte [esi + 0x20], bl
jmp 0x4cc862
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00480b74
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00480b74
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00480b74
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x4cc8bd
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4cc8d1
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d0dc9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x50ba00]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4d0e18
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x4d0e18
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d0e24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00482423
leave
ret 8
Function at 0x4d13e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00483900
mov edx, dword [ebp + 0xc]
mov eax, dword [0x50ba00]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
mov dword [ebp - 4], eax
push edi
je 0x4d1508
cmp dword [ebp + 8], ecx
je 0x4d1508
mov eax, dword [ebp + 0x18]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x1054], 0x824
mov dword [ebp - 0x1050], ecx
mov dword [ebp + 0x18], ecx
je 0x4d1456
cmp dword [edx + 0x30], ecx
je 0x4d1456
test eax, 0x2000000
je 0x4d1450
mov dword [ebp + 0x18], 1
jmp 0x4d1456
or edi, 0x80000000
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push esi
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x104c]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x4d14c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d1508
mov eax, dword [ebp - 0x1054]
add eax, eax
push eax
call fcn.004cab91
test eax, eax
pop ecx
mov dword [ebp - 0x1058], eax
je 0x4d1508
push esi
lea ecx, [ebp - 0x1054]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1050], 1
call ebx
test eax, eax
jne 0x4d14c8
push dword [ebp - 0x1058]
jmp 0x4d1502
lea ebx, [ebp - 0x104c]
jmp 0x4d14ce
mov ebx, dword [ebp - 0x1058]
mov esi, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp dword [ebp + 0x18], edi
mov dword [ebp + 8], eax
je 0x4d1525
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
test eax, eax
jge 0x4d1519
cmp dword [ebp - 0x1050], edi
je 0x4d1508
push ebx
call fcn.004cabc1
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00482423
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x1050], edi
je 0x4d1534
push ebx
call fcn.004cabc1
pop ecx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4d1546
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x1000
jmp 0x4d150a
mov cx, word [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp + 0x10]
je 0x4d15a4
dec esi
je 0x4d1599
dec esi
je 0x4d158e
dec esi
je 0x4d1583
dec esi
je 0x4d157b
dec esi
je 0x4d1573
dec esi
jne 0x4d153e
mov dword [ecx], 0x1002
jmp 0x4d150a
mov dword [ecx], 0x1006
jmp 0x4d150a
mov dword [ecx], 0x1001
jmp 0x4d150a
mov dword [ecx], 0x100b
jmp 0x4d150a
mov dword [ecx], 3
jmp 0x4d150a
mov dword [ecx], 2
jmp 0x4d150a
mov dword [ecx], 1
jmp 0x4d150a
Function at 0x4d1a94
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4d1abd
call fcn.004d2f19
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x4d1ae0
push eax
push dword [esi + 4]
call fcn.004d1a21
push esi
push eax
mov ecx, 0x519c20
call fcn.004d1897
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4d1c75
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x4d1d9e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d1d9e
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x4d1cbc
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4d1cb4
push 0
jmp 0x4d1da0
mov eax, dword [ebp - 4]
jmp 0x4d1d7f
mov eax, dword [esi + 0x38]
push ebx
push edi
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 0x34]
jb 0x4d1d10
mov ebx, dword [esi + 0x40]
sub ebx, eax
jns 0x4d1cd4
xor ebx, ebx
jmp 0x4d1cdc
cmp ebx, edi
ja 0x4d1d84
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00487c60
mov eax, dword [esi + 0x34]
add esp, 0xc
mov dword [esi + 0x38], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub edi, ebx
push edi
add eax, ebx
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4d1cad
mov eax, dword [ebp - 4]
jmp 0x4d1d7b
mov edx, dword [esi + 0x40]
lea ebx, [eax + edi]
cmp ebx, edx
jb 0x4d1d88
sub edx, eax
jns 0x4d1d22
xor ebx, ebx
jmp 0x4d1d28
mov ebx, edx
cmp ebx, edi
ja 0x4d1d84
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00487c60
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4d1cad
mov eax, dword [ebp + 0xc]
sub edi, ebx
cmp edi, eax
mov dword [esi + 0x40], eax
jae 0x4d1d61
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [esi + 0x3c]
add eax, ebx
push eax
call fcn.00487c60
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x38], eax
add eax, ebx
pop edi
pop ebx
pop esi
leave
ret 8
xor eax, eax
jmp 0x4d1d7d
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00487c60
add esp, 0xc
add dword [esi + 0x38], edi
mov eax, edi
jmp 0x4d1d7d
push 6
push dword [esi + 0x1c]
call fcn.004d1a21
int3
Function at 0x4d1da9
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x4d1e52
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d1e52
mov ecx, dword [esi + 0x30]
test ecx, ecx
mov edi, dword [ebp + 0xc]
jne 0x4d1ded
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4d1de6
push 0
jmp 0x4d1e54
cmp dword [ebp + 0xc], edi
je 0x4d1e2b
jmp 0x4d1de2
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x28]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
jb 0x4d1e12
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x4d1de2
and dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x28]
cmp edi, ecx
jb 0x4d1e31
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x4d1de2
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
cmp edx, ecx
ja 0x4d1e2a
mov ecx, dword [esi + 0x30]
push edi
push dword [ebp + 8]
add ecx, eax
push ecx
call fcn.00487c60
add esp, 0xc
add dword [esi + 0x2c], edi
jmp 0x4d1e2a
push 6
push dword [esi + 0x1c]
call fcn.004d1a21
int3

Function at 0x4d1e8c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
jne 0x4d1ecd
push 0x1000
call fcn.004d161e
test eax, eax
je 0x4d1f30
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4d1f36
mov eax, dword [ebp - 4]
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x3c]
push edi
mov edi, dword [ebp + 8]
jmp 0x4d1f24
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi + 0x40]
jb 0x4d1f08
lea eax, [ebp - 4]
push eax
push dword [esi + 0x34]
push dword [esi + 0x3c]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4d1f36
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [esi + 0x40], eax
je 0x4d1f3f
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x38], ebx
mov cx, word [eax]
cmp cx, 0xd
je 0x4d1f16
mov word [edi], cx
inc edi
inc edi
inc dword [esi + 0x38]
mov cx, word [eax]
inc eax
inc eax
cmp cx, 0xa
je 0x4d1f29
dec dword [ebp + 0xc]
jne 0x4d1ed9
mov eax, dword [ebp + 8]
mov word [edi], bx
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push dword [esi + 0x1c]
call fcn.004d1a21
mov eax, edi
sub eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
jmp 0x4d1f2c
Function at 0x4d21f4
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4d8d5d
call fcn.00487fa0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cc24a
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
mov dword [esi + 0x1c], eax
call fcn.00480d47
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.004806b9
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004806b9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4d2274
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4d8dac
call fcn.00487fa0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cc24a
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
call fcn.00480d47
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
mov ecx, 0x519c20
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004d1897
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004806b9
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.004810ca
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00480d77
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040bc40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4d245e
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x4d8ddb
call fcn.00487fa0
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.004d2420
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00480d47
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4d24c5
push eax
push dword [esi + 8]
call fcn.004d1a21
push dword [esi + 0xc]
mov ecx, 0x519c20
push eax
call fcn.004d1897
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18