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

Disassembly:
push 0xc8
mov eax, 0x4d9860
call fcn.004a1e4e
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x496a49
lea ecx, [ebp + 8]
call fcn.0042cc90
test al, al
je 0x496a49
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
call fcn.00496bda
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00404c20
mov al, bl
jmp 0x496bd4
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd0], ecx
push ebx
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
call fcn.00497960
add esp, 0x30
cmp eax, 0xffffffff
je 0x496a90
test byte [ebp + 0x38], 4
je 0x496a82
test al, 0x10
je 0x496a8c
test byte [ebp + 0x38], 8
je 0x496a3a
test al, 0x10
je 0x496a3a
mov bl, 1
jmp 0x496a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x496bca
cmp esi, 3
je 0x496bca
cmp esi, 5
jne 0x496b7e
lea ecx, [ebp - 0xcc]
call fcn.004956a4
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
push eax
sub esp, 0x30
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xd4], ecx
push ebx
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
call fcn.004976eb
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x496b55
lea ecx, [ebp - 0xd0]
call fcn.00411790
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x496b21
test byte [ebp - 0xcc], 0x10
je 0x496b30
test byte [ebp + 0x38], 8
je 0x496b32
test byte [ebp - 0xcc], 0x10
je 0x496b32
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00411790
lea ecx, [ebp - 0x70]
call fcn.00404c20
lea ecx, [ebp - 0xa0]
call fcn.00404c20
jmp 0x496a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00411790
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00404c20
lea ecx, [ebp - 0xa0]
call fcn.00404c20
test byte [ebp + 0x38], 0x20
je 0x496a3a
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00406fd0
push 1
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f420
push 0x527bb8
lea eax, [ebp - 0x90]
push eax
call fcn.004a35fa
lea ecx, [ebp + 8]
call fcn.00404c20
xor al, al
call fcn.004a1df8
ret
Function at 0x49876f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4987a5
push 0x4dd8d4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4987a5
call eax
jmp 0x49885a
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
xor ebx, ebx
mov dword [ebp - 0x1c], 0xa
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysFreeString
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
jne 0x4987ef
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4e23a8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x49883b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysFreeString
call esi
mov esi, eax
test esi, esi
jne 0x498828
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.00438d90
test esi, esi
je 0x49883b
mov esi, 0x409
jmp 0x49884d
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004a89e2
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x18]
call fcn.00438d90
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x499675
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4d9e38
call fcn.004a1e4e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4997d9
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x4997d9
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4997bd
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004a34a0
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x4997bd
cmp dword [ebp - 0x494], 0
je 0x4997bd
lea ecx, [ebp - 0x444]
call fcn.00495722
mov eax, dword [ebp - 0x490]
lea ecx, [ebp - 0x43c]
push 0x4e23a8
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00404140
mov eax, dword [ebp - 0x494]
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
call fcn.004956ea
push dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
push 0
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
call fcn.004953da
lea ecx, [ebp - 0x474]
call fcn.00404c20
lea ecx, [ebp - 0x440]
call fcn.00404c20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00411800
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x4996d4
call fcn.004a1df8
ret

Function at 0x499950
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00498c45
test al, al
je 0x4999bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4999bf
push esi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x499f3c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.00413a60
mov esi, eax
test esi, esi
jne 0x499f88
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x52f8c4], esi
call fcn.00413b10
lea ecx, [ebp + 0xc]
call fcn.00404c20
lea ecx, [ebp + 0x3c]
call fcn.00404c20
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x49a001
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x58
mov eax, 0x4d9f60
call fcn.004a1e4e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp dword [ebp + 0x24], 8
lea ecx, [ebp + 0x10]
mov eax, dword [ebp + 0x40]
cmovae ecx, dword [ebp + 0x10]
or eax, 0x20019
push eax
push ecx
push edx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00413a60
mov esi, eax
test esi, esi
jne 0x49a0de
push 0
lea eax, [ebp - 0x41]
mov dword [ebp - 0x40], 0x4e81b4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e8f38
call fcn.00404a90
mov eax, 0x105
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x64]
push eax
call fcn.00409470
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00403f10
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push dword [eax]
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
call fcn.00409a90
cmp dword [ebp - 0x48], 0
jne 0x49a0c7
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.0040c2b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404c20
inc edi
cmp dword [ebp - 0x48], 0
je 0x49a04d
lea ecx, [ebp - 0x58]
mov dword [0x52f8c4], esi
call fcn.00413b10
lea ecx, [ebp + 0xc]
call fcn.00404c20
test esi, esi
sete al
call fcn.004a1df8
ret

Function at 0x49a0ff
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x49a131
xor al, al
jmp 0x49a14a
cmp dword [ebp - 0x108], 2
jne 0x49a148
cmp dword [ebp - 0x114], 5
jb 0x49a148
xor eax, eax
inc eax
jmp 0x49a14a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a14ba
mov esp, ebp
pop ebp
ret
Function at 0x49a9d1
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push 0x44
mov eax, 0x4da0d0
call fcn.004a1e1a
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x50], 0x3c
inc eax
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 0x10], eax
call fcn.0049af35
xor esi, esi
lea ecx, [ebp - 0x50]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.0049b6d6
test eax, eax
je 0x49aa19
lea eax, [ebp - 0x50]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov eax, dword [ebp - 0x44]
mov ecx, 0x800000
push 2
pop edx
sub eax, 1
je 0x49aa7c
sub eax, 1
je 0x49aa79
sub eax, 1
je 0x49aa70
sub eax, 1
je 0x49aa62
mov eax, 0x2ee6
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x64
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.0049ac05
jmp 0x49ab98
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], 3
or edi, ecx
jmp 0x49aa7f
mov dword [ebp - 0x10], 3
jmp 0x49aa7c
mov dword [ebp - 0x10], edx
mov edi, dword [ebp + 0x18]
test ecx, edi
jne 0x49aaa0
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
jmp 0x49ab98
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
je 0x49aac5
push dword [ebp - 0x40]
push dword [ebx + 0x98]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49aac5
mov ecx, ebx
call fcn.00411370
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
jne 0x49ab19
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
pop ecx
push dword [ebp - 0x40]
mov dword [ebx + 0x98], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x18]
inc ecx
add eax, ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
pop ecx
push dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x18], esi
je 0x49ab5b
push dword [ebp - 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp + 0x1c]
mov eax, dword [ebx + 0x94]
mov ebx, dword [ebp + 0x18]
push edi
push esi
push esi
push esi
push ebx
push 0x4ddda8
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov edi, eax
call fcn.004a14cb
pop ecx
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x49ab98
mov esi, edi
lea ecx, [ebp - 0x50]
call fcn.0049adb5
mov eax, esi
call fcn.004a1de3
ret 0x18
Function at 0x49b193
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x83c], eax
call fcn.004115f0
cmp eax, 1
jne 0x49b28b
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49b280
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], 4
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
mov dword [ebp - 0x830], 0x824
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
cmovne ecx, edx
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
mov dword [ebp - 0x834], ecx
call esi
movzx ecx, byte [ebp - 0x828]
xor edx, edx
mov esi, dword [ebp - 0x838]
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.00438d90
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 4]
test eax, eax
mov dword [edi + 4], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004a14ba
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49b2fd
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x49b33d
test byte [ebp - 4], 0x41
je 0x49b33d
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x49b33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x49b423
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x49b36a
push eax
cmp dword [ebx + 0x40], edi
je 0x49b359
push str.Range:_bytes_d__r_n
jmp 0x49b35e
push str.Range:_bytes_d_
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 0x40], edi
je 0x49b37b
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x49b3e0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x49b3af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49b3d4
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x49b3d4
and eax, 0xfffffeff
push ebx
mov dword [ebx + 0x50], eax
push eax
push dword [ebx + 0x44]
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx]
call fcn.004aaae4
pop ecx
push eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x3c]
push esi
call dword [edi + 0x2c]
test eax, eax
je 0x49b390
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x49b411
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x49b418
cmp byte [ebp + 8], 0
je 0x49b420
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.004aaae4
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov ecx, ebx
mov eax, dword [ebx]
je 0x49b416
call dword [eax + 0x28]
jmp 0x49b422
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x49b422
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49b4d1
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
and dword [edi + 0x24], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
jbe 0x49b68d
cmp dword [edi + 0x5c], 0x2710
jbe 0x49b50b
cmp dword [edi + 0x54], 0
je 0x49b50b
mov ecx, edi
call fcn.0049b80e
imul eax, eax, 0xf
jmp 0x49b510
mov eax, 0x5dc
xor esi, esi
inc esi
test eax, eax
cmovne esi, eax
cmp byte [edi + 0x90], 0
je 0x49b52d
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x49b53a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x49b583
mov eax, dword [edi]
lea ecx, [edi + 0xc]
push 0
push ecx
push dword [edi + 0x28]
mov ecx, edi
call dword [eax + 8]
test al, al
je 0x49b698
cmp byte [edi + 0x90], 0
je 0x49b59e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x49b5ae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x49b68d
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [edi + 0x4c], eax
add dword [edi + 0x54], eax
add dword [edi + 0x60], eax
sub esi, dword [ebp - 0x20]
mov eax, esi
sbb ebx, dword [ebp - 0x1c]
or eax, ebx
jne 0x49b5d8
push 5
pop esi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push esi
call fcn.004a2090
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x88]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x49b62f
mov edx, dword [ebp - 8]
jg 0x49b605
cmp edx, eax
jb 0x49b62f
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.004a1fb0
mov esi, ebx
pop ebx
add dword [edi + 0x5c], eax
add dword [edi + 0x68], eax
push 0
push 0x3e8
push esi
push ecx
mov dword [ebp - 0xc], edx
call fcn.004a1f00
mov esi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push esi
call fcn.004a2090
push dword [edi + 0x8c]
push dword [edi + 0x88]
push edx
push eax
call fcn.004a1f00
add dword [edi + 0x58], eax
mov ecx, 0x3e8
add dword [edi + 0x64], eax
cmp dword [edi + 0x58], ecx
jbe 0x49b66d
mov eax, dword [edi + 0x58]
xor edx, edx
div ecx
add dword [edi + 0x5c], eax
mov dword [edi + 0x58], edx
cmp dword [edi + 0x64], ecx
jbe 0x49b67f
mov eax, dword [edi + 0x64]
xor edx, edx
div ecx
add dword [edi + 0x68], eax
mov dword [edi + 0x64], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x49b4f0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
jmp 0x49b68f
Function at 0x49b6d6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
call fcn.0049af35
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x49b79f
inc dword [esi + 8]
xor ecx, ecx
mov eax, dword [esi + 8]
push ebx
push 2
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
inc dword [esi + 0x14]
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
inc dword [esi + 0x20]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
inc dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
inc dword [esi + 0x30]
xor ecx, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
inc dword [esi + 0x38]
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a14d0
add esp, 0x18
mov dword [esi + 0x34], eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x49b7a7
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 4
call fcn.0049b2bd
movzx edi, al
test al, al
je 0x49b7de
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x49b7f0
or dword [ebp - 4], 0xffffffff
jmp 0x49b7f6
mov eax, dword [esi + 0x48]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.0049ad56
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b80e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, 0x7530
jbe 0x49b84b
mov eax, dword [esi + 0x60]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
call ebx
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x49b857
mov eax, dword [esi + 0x54]
jmp 0x49b8a3
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x49b8a1
or eax, 0xffffffff
mov edi, dword [esi + 0x54]
xor edx, edx
div ebx
cmp edi, eax
jbe 0x49b879
shr edi, 1
shr ecx, 1
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x54]
xor edx, edx
mov ecx, dword [esi + 0x5c]
imul eax, ebx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x49b85d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret