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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abcc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x10], esp
cmp ecx, 0x7d0
mov dword [ebp - 4], 0
jb 0x4ef978
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e8]
lea ebx, [ebp - 0x7e8]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x25
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.0056c5f0
add esp, 8
test eax, eax
je 0x4efa4b
lea edx, [ebp - 0x7e8]
push edx
call fcn.004ee270
add esp, 4
mov bl, al
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4efa10
push str.UrlUnescapeA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4efa07
push 0x2100000
push 0
lea ecx, [ebp - 0x7e8]
push 0
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4efa34
lea edx, [ebp + 8]
push 0x30000000
lea eax, [ebp - 0x7e8]
push edx
lea ecx, [ebp - 0x7e8]
push eax
push ecx
mov dword [ebp + 8], 0x7d0
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test bl, bl
je 0x4efa4b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.00541d40
add esp, 8
lea ecx, [ebp - 0x7e8]
push 0x3f
push ecx
call fcn.0056c5f0
add esp, 8
test eax, eax
je 0x4efa7b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x663680]
test eax, eax
jne 0x4efac1
push 0
push 0x663680
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManager_
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4efac1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x663680]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xfb8]
push edx
push eax
push 0
push 0
push str.Extensions
push ecx
mov dword [ebp - 0x18], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4efb02
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xfb8]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.004ef670
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4efb70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7d4
mov edx, dword [0x663680]
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.Extensions
push edx
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4efbb1
xor eax, eax
pop esi
add esp, 0x7d4
ret 4
mov ecx, dword [esp + 0x7dc]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004ef670
pop esi
add esp, 0x7d4
ret 4
Function at 0x4eff30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abd2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x5d97f0
lea edx, [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
jne 0x4eff8b
lea ecx, [ebx + 4]
call fcn.0058326b
jmp 0x4f0063
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4f0063
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4efffb
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.005887f9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x64e7e8
push esi
call edi
jmp 0x4effc4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
jmp 0x4f0042
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4f0055
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0058326b
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.005832a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abd8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x1c], edi
call fcn.0058322c
lea esi, [edi + 0x20]
push 0x663188
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x5d9af4
mov dword [ebp - 0x20], 0xffffffff
call fcn.0056d05a
mov eax, dword [0x663660]
add esp, 8
mov byte [ebp - 4], 1
push str.UrlHistory2.txt
push eax
push 0x639028
push esi
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0x663188
call fcn.0058872e
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x18], ecx
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jne 0x4f025a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x530]
lea edx, [ebp - 0x28]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [ebp - 0x530]
push 0x3ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f0300
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x4f0300
lea ecx, [ebp - 0x530]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00588a36
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00588b21
mov esi, eax
cmp esi, 0xffffffff
jle 0x4f025a
test esi, esi
jne 0x4f02bd
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00580e19
jmp 0x4f029b
lea edx, [ebp - 0x24]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0058108d
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005887f9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.005886c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
add ecx, 4
call fcn.005833d5
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.00580e19
jmp 0x4f029b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
jmp 0x4f0353
cmp ebx, 0xffffffff
je 0x4f035f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f03a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abdbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x5d9af4
lea edx, [ebx + 0x20]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
jne 0x4f03fb
lea ecx, [ebx + 4]
call fcn.0058326b
jmp 0x4f04d3
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4f04d3
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4f046b
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.005887f9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x64e7e8
push esi
call edi
jmp 0x4f0434
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
jmp 0x4f04b2
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4f04c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.0058326b
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.005832a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f0d00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abe10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], esp
lea eax, [edi + 0x10]
push 6
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x18], edx
call ebx
shl eax, 1
push 4
mov esi, eax
call ebx
mov dword [ebp - 0x14], esi
mov esi, eax
mov eax, dword [ebp - 0x14]
push 5
neg esi
sub esi, eax
call ebx
mov ecx, eax
or eax, 0xffffffff
sub eax, ecx
push esi
shl eax, 1
lea edx, [ebp - 0x24]
push eax
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea esi, [edi + 0x3c]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00584fbf
mov ecx, dword [edi + 0x30]
push esi
push ecx
mov ecx, dword [edi + 0x50]
push eax
call fcn.00582047
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f4fa0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f4fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
ret
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x4f5022
mov eax, dword [esi + 4]
test eax, eax
jne 0x4f5022
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
je 0x4f5022
mov dword [esi], 0
push edi
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0xc]
push 1
push 0
push 0
push edx
call fcn.0056ee00
mov ecx, dword [esi]
push edi
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 4]
adc ecx, edx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x4f5b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x54]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push 0x63f570
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x10
call edi
test eax, eax
jne 0x4f5cf1
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
push str._dkf
push ecx
call fcn.0056d05a
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
cmp eax, ebx
jne 0x4f5c0b
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x4f5c7f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x24]
fmul qword [0x5da360]
fcom qword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x4f5c09
fld qword [esi + 0x50]
fsub st(1)
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
fstp st(0)
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x4f5cf1
push eax
lea ecx, [ebp - 0x44]
push 0x638fec
push ecx
call fcn.0056d05a
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
test eax, eax
jne 0x4f5cf1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4f5ba2
cmp eax, 0xffffffff
je 0x4f5ba2
sub eax, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x34]
fmul qword [0x5da360]
fsubr qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x4f5ba2
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x4f5ca2
sub eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x2c]
fmul qword [0x5da360]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x4f5c0b
jae 0x4f5c0b
mov edx, dword [0x65ec1c]
mov dword [ebp - 0x14], edx
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.error_in_chlist__id_d__next_d__starttime_ld__ts_ld_n
push edx
mov byte [ebp - 4], 1
call fcn.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push eax
call fcn.004f2710
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005886c0
jmp 0x4f5c0b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f6c90
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 0x74]
sub esp, 0x64
test eax, eax
push esi
lea esi, [ecx + 0x74]
je 0x4f6d17
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4f6cba
push eax
lea eax, [esp + 0xc]
push str.SoftwareDownloadManager_ldChList
push eax
call fcn.0056d05a
add esp, 0xc
jmp 0x4f6cd4
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
push edx
push eax
lea ecx, [esp + 0x10]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push ecx
call fcn.0056d05a
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x4f6ce1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push esi
push 0
push 0xf003f
push 0
push 0x663188
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
add esp, 0x64
ret
Function at 0x4f76e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4f770e
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f7712
mov ecx, 1
jmp 0x4f7714
mov eax, dword [esp + 0x30]
xor ecx, ecx
or esi, 0xffffffff
or edi, 0xffffffff
test ecx, ecx
je 0x4f7742
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
call eax
test eax, eax
je 0x4f778a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
jmp 0x4f778a
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4f778a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
push 0
push edx
push 0
push eax
call fcn.0056ee00
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
call fcn.0056ee00
mov esi, eax
mov edi, edx
cmp edi, dword [esp + 0x2c]
jg 0x4f77b9
jl 0x4f7798
cmp esi, dword [esp + 0x28]
ja 0x4f77b9
and esi, edi
cmp esi, 0xffffffff
je 0x4f77b9
push str.Not_enough_disk_space_to_rebuild_downloaded_chunks._n
mov ecx, ebx
call fcn.004f2710
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4f8400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4f847c
mov eax, dword [ebp + 8]
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], ecx
mov edx, dword [esi + 0x38]
lea eax, [ebp + 8]
push edx
push str.sk_d
push eax
mov byte [ebp - 4], 1
call fcn.0058148b
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x40]
add esp, 0xc
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f8510
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 0x40]
sub esp, 8
test eax, eax
je 0x4f8555
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0
push str.mmsIndex
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f8555
mov eax, dword [esp]
test eax, eax
setne al
add esp, 8
ret
xor al, al
add esp, 8
ret

Function at 0x4f8560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4f8605
mov eax, dword [0x65ec1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [esi + 0x38]
lea edx, [ebp - 0x14]
push ecx
push str.sk_d
push edx
mov byte [ebp - 4], 1
call fcn.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x40]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4f85fa
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005886c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f88b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4f8994
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x2c]
push eax
push 0x638fec
push ecx
call fcn.0056d05a
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [esi + 0x40]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f8960
push eax
lea eax, [ebp - 0x170]
push str.Error_reading_registry__errCode___d._n
push eax
call fcn.0056d05a
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
mov ecx, esi
call fcn.004f8310
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4f8954
mov edx, dword [eax + 0x38]
mov dword [ebp - 0x20], edx
jmp 0x4f895a
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x24], ecx
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
call fcn.0056ee00
mov ecx, dword [esi + 0x1c]
xor edi, edi
add eax, ecx
mov ecx, dword [esi + 0x40]
adc edx, edi
push 0x10
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f8fd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac3e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi + 0xac]
mov ecx, 1
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x4a4], ebx
je 0x4f9042
mov edx, dword [eax]
mov dword [ebp - 0x2a0], 2
mov dword [ebp - 0x298], edx
mov edx, dword [eax]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x4a4], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
neg eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x4a4]
sbb eax, eax
push edx
and eax, ecx
lea edx, [ebp - 0x2a0]
push eax
push ebx
lea eax, [edi + 1]
push edx
push eax
mov dword [ebp - 0x18], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4f90c0
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
lea ecx, [ebp - 0x9c]
push str.Select_failed__err_code___d__socket___d_n
push ecx
call fcn.0056d05a
add esp, 0x10
lea edx, [ebp - 0x9c]
mov ecx, esi
push edx
call fcn.004f8a80
mov eax, dword [0x6646cc]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.004fbdd0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x4f9139
cmp dword [ebp + 0xc], ebx
je 0x4f90e8
mov ecx, dword [0x6646c4]
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004fbdd0
mov edx, dword [0x6646c4]
push 1
push edx
mov ecx, esi
call fcn.004f89b0
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x4f9187
mov edx, dword [eax]
lea ecx, [ebp - 0x4a4]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4f916f
mov ecx, dword [esi + 0xac]
lea eax, [ebp - 0x2a0]
push eax
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4f9187
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8