joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495890
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61dc10
push eax
mov eax, dword [0x6d12c4]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x4959b5
mov eax, dword [0x6d1698]
test eax, eax
jne 0x4958e7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x6d168c]
test eax, eax
jne 0x495904
call fcn.00495180
mov dword [0x6d1688], eax
mov dword [0x6d168c], 1
mov eax, dword [0x6d1688]
test eax, eax
jne 0x4958bf
mov esi, dword [esp + 0x24]
push esi
call fcn.00495240
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x495972
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49595a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x495972
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x495997
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call fcn.00494ea0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x495a87
mov eax, dword [0x6a45ac]
test eax, eax
jne 0x495a87
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00402500
lea ecx, [esp + 0x30]
push esi
push ecx
mov dword [esp + 0x28], ebp
call fcn.00402500
mov edx, dword [esp + 0x34]
push 0x3f
push edx
call fcn.005e63d0
add esp, 0x18
test eax, eax
jne 0x495a68
mov eax, dword [esp + 0x28]
push 0x3f
push eax
call fcn.005e63d0
add esp, 8
test eax, eax
jne 0x495a68
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.00602ad6
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00602ad6
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.00602ad6
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x495aa0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61dc28
push eax
mov eax, dword [0x6d12c4]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x495bbf
mov eax, dword [0x6d1698]
test eax, eax
jne 0x495ae9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d168c]
test eax, eax
jne 0x495b06
call fcn.00495180
mov dword [0x6d1688], eax
mov dword [0x6d168c], 1
mov eax, dword [0x6d1688]
test eax, eax
je 0x495b2b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495240
add esp, 4
test eax, eax
jne 0x495b82
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x495b82
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x495ba5
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00494f70
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x495c15
mov eax, dword [0x6a45ac]
test eax, eax
jne 0x495c15
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402500
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.005e63d0
add esp, 0x10
test eax, eax
jne 0x495c04
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x495c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61dc48
push eax
mov eax, dword [0x6d12c4]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x495d93
mov eax, dword [0x6d1698]
test eax, eax
jne 0x495c83
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d168c]
test eax, eax
jne 0x495ca0
call fcn.00495180
mov dword [0x6d1688], eax
mov dword [0x6d168c], 1
mov eax, dword [0x6d1688]
test eax, eax
je 0x495cb0
mov edx, dword [esp + 0x18]
push edx
jmp 0x495c62
mov esi, dword [esp + 0x18]
push esi
call fcn.00495240
add esp, 4
test eax, eax
jne 0x495cf2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x495d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x495d56
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d1578]
test eax, eax
jne 0x495d00
mov eax, 0x6d157c
push eax
push esi
call fcn.005e8a3c
add esp, 8
test eax, eax
jne 0x495d24
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d1468]
test eax, eax
jne 0x495d32
mov eax, 0x6d146c
push eax
push esi
call fcn.005e8a3c
add esp, 8
test eax, eax
jne 0x495d56
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x495d79
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00495020
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x495df9
mov eax, dword [0x6a45ac]
test eax, eax
jne 0x495df9
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00402500
mov ecx, dword [esp + 0x20]
push 0x3f
push ecx
call fcn.005e63d0
add esp, 0x10
test eax, eax
jne 0x495de8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x495e10
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61dc68
push eax
mov eax, dword [0x6d12c4]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x495f34
mov eax, dword [0x6d1698]
test eax, eax
jne 0x495e5b
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6d168c]
test eax, eax
jne 0x495e78
call fcn.00495180
mov dword [0x6d1688], eax
mov dword [0x6d168c], 1
mov eax, dword [0x6d1688]
test eax, eax
je 0x495e9f
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495240
add esp, 4
test eax, eax
jne 0x495ef7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x495ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x495ef7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x495f1a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004950d0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x495f8d
mov eax, dword [0x6a45ac]
test eax, eax
jne 0x495f8d
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00402500
mov eax, dword [esp + 0x20]
push 0x3f
push eax
call fcn.005e63d0
add esp, 0x10
test eax, eax
jne 0x495f7c
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x495fa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x90
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov esi, str.S_1_16_8192
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x8b
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x4960d2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x4960d2
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x4960d2
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4960d2
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebx
je 0x4960d2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x4960d2
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4960e3
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4960ee
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x496104
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49610f
push eax
call edi
cmp ebp, ebx
je 0x49611a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x496f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61de00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x496f7d
push eax
call fcn.005fef05
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005feedc
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x49703a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6d12f4]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6d0c38
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49703a
lea edx, [ebp + 8]
push edx
call fcn.005e7c09
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x6d0c38
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x4971a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61de30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.004451d0
mov ecx, dword [0x6d12f4]
cmp ecx, esi
je 0x497240
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x497251
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4971ff
push eax
call fcn.005fef05
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x497240
inc eax
push eax
call fcn.005feedc
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x497240
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6d12f4]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x497240
mov eax, dword [ebx + 4]
push eax
call fcn.005fef05
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.005e7b5a
add esp, 8
test eax, eax
jne 0x497240
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005feedc
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x497240
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6d12f4]
push 1
push eax
push ecx
push edx
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 0x49c0a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.005feedc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x49c1ec
mov eax, dword [0x6a45ac]
test eax, eax
je 0x49c0e2
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x49c119
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00402500
mov eax, dword [esp + 0x24]
add esp, 8
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00602ad6
cmp ebx, 0xffffffff
je 0x49c14e
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49c13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49c147
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x49c147
test esi, esi
jne 0x49c163
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005fef05
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005feedc
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x49c191
push ebp
call fcn.005fef05
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x49c1da
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x49c1da
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005fef05
push ebp
call fcn.005fef05
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x49c5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61e118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6cc708]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xc]
push str._d__URL_s
push eax
mov dword [esp + 0x20], 0
call fcn.005fb90b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0049c4f0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x49d110
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [0x6d12f4]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x49d144
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x49d150
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x61e1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x6d12f4]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x49d20c
mov edx, dword [0x6cc708]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00602ea3
mov edx, dword [0x6d12f4]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x49d1fb
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0060284b
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00602ad6
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00602ad6
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49d219
mov eax, 0x6d0c38
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00602b44
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49e040
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x6d16b0]
test eax, eax
jne 0x49e096
lea eax, [esp]
push eax
push 0
push 0
push 0x49e0a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x6d16b0], eax
je 0x49e08d
mov eax, dword [0x6d16b4]
test eax, eax
jne 0x49e09b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x6d16b4]
test eax, eax
je 0x49e07b
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x6d16b4], eax
pop ecx
ret
mov eax, dword [0x6d16b4]
pop ecx
ret