joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fcf0
Capabilities:
Parse url

Disassembly:
sub esp, 0x864
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x46fd0f
call fcn.0046f950
mov esi, dword [esp + 0x874]
test esi, esi
je 0x46fdf2
cmp byte [esi], 0
je 0x46fdf2
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x46fdf2
mov al, byte [esp + 0x4c]
test al, al
je 0x46fdf2
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x46fd91
xor edi, edi
jmp 0x46fd99
mov edi, dword [ebx + 0x18]
sub edi, eax
sar edi, 2
xor esi, esi
push ebp
test edi, edi
jle 0x46fde1
mov ebp, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x46fdc3
add eax, 8
test eax, eax
je 0x46fdc3
push eax
lea eax, [esp + 0x54]
push eax
call ebp
test eax, eax
jne 0x46fdd9
inc esi
cmp esi, edi
jl 0x46fda6
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x864
ret 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x864
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x864
ret 4

Function at 0x470300
Capabilities:
Parse url

Disassembly:
sub esp, 0x864
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], 0
test eax, eax
jne 0x47031f
call fcn.0046ff70
mov esi, dword [esp + 0x874]
test esi, esi
je 0x470402
cmp byte [esi], 0
je 0x470402
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x824
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x470402
mov al, byte [esp + 0x4c]
test al, al
je 0x470402
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4703a1
xor edi, edi
jmp 0x4703a9
mov edi, dword [ebx + 0x14]
sub edi, eax
sar edi, 2
xor esi, esi
push ebp
test edi, edi
jle 0x4703f1
mov ebp, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x4703d3
add eax, 8
test eax, eax
je 0x4703d3
push eax
lea eax, [esp + 0x54]
push eax
call ebp
test eax, eax
jne 0x4703e9
inc esi
cmp esi, edi
jl 0x4703b6
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x864
ret 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x864
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x864
ret 4
Function at 0x473370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51ee20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push eax
push esi
push edi
mov dword [esp + 0x34], ebx
call fcn.00472b10
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
je 0x4733ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 4]
mov edx, dword [edi]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
mov eax, dword [esi]
push ecx
push eax
push edi
call dword [edx + 0x1ac]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x473531
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00476f00
cmp eax, ebx
jge 0x473407
cmp eax, 0x80004002
je 0x473407
push eax
call fcn.0051c477
mov eax, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x3c]
cmp eax, ebx
je 0x4734f4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov edx, dword [eax]
push ecx
push eax
mov byte [esp + 0x34], 2
call dword [edx + 0x48]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4734e1
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0x30], 3
call fcn.004625c0
cmp eax, ebx
jge 0x473460
cmp eax, 0x80004002
je 0x473460
push eax
call fcn.0051c477
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call fcn.004730e0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00472f20
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edi, dword [esi]
mov ecx, dword [esp + 0x38]
sub edx, eax
mov eax, dword [esp + 0x34]
add edi, edx
mov edx, dword [esp + 0x54]
sub eax, ecx
mov ecx, dword [esp + 0x58]
mov dword [esi], edi
mov edi, dword [esi + 4]
push ecx
push ebp
add edi, eax
push esi
push edx
mov dword [esi + 4], edi
call fcn.00473370
mov eax, dword [esp + 0x64]
add esp, 0x28
cmp eax, ebx
mov byte [esp + 0x2c], 2
je 0x4734dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x4734f0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x34]
cmp dword [ebp], ebx
jne 0x47351e
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x47350f
push 0x80004003
call fcn.0051c477
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push 0x52b370
push eax
call dword [ecx]
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0x2c], bl
pop ebp
je 0x47352d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
mov dword [esp + 0x20], 0xffffffff
pop ebx
je 0x473546
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x477230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x585f9c]
mov eax, 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp], 1
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x47725c
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47729d
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret

Function at 0x4772b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [0x585f9c]
mov dword [esp], 1
test ecx, ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x4772df
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [esp + 4]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47734d
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.AutoDetect
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 8]
lea edx, [esp]
sete al
push ecx
push edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push 4
push 0
push str.AutoDetect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x478280
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524cf8
push 0x51c60e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1084
call fcn.0051c5a0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
lea ecx, [eax + eax]
xor eax, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push str.file:__
mov esi, dword [ebp + 8]
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
call edi
cmp eax, esi
jne 0x478328
push str.file:__
push 0x5384a4
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.res:__
push esi
call edi
cmp eax, esi
jne 0x478363
push str.res:__
push 0x5384a4
mov ecx, dword [ebp + 0x10]
dec ecx
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 4], edi
lea edx, [ebp - 0x54]
push edx
push 0x10000000
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47843e
mov word [ebp - 0x109c], di
mov ecx, 0x411
lea edi, [ebp - 0x109a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str.http:___s
push 0x823
lea eax, [ebp - 0x109c]
push eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
call esi
add esp, 0x10
lea ecx, [ebp - 0x54]
push ecx
push 0x10000000
lea edx, [ebp - 0x109c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47843e
lea ecx, [ebp - 0x109c]
push ecx
push 0x5384a4
mov edx, dword [ebp + 0x10]
dec edx
push edx
push ebx
call esi
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x478407
cmp word [ebx], 0
je 0x478407
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478a80
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov edi, 1
push 0
push ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478b79
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x478b79
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
push ebp
call ebx
test eax, eax
je 0x478b6c
mov eax, dword [esi + 8]
test eax, eax
je 0x478b6c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478b6c
mov eax, dword [0x57a5e8]
test eax, eax
jne 0x478b4a
push 0x5560a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x478b2e
push 0x5560a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x478b41
push str.IsUrlCacheEntryExpiredW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x57a5e8], eax
jmp 0x478b46
mov eax, dword [0x57a5e8]
test eax, eax
je 0x478b6c
lea ecx, [esi + 0x28]
push ecx
push 0
push ebp
call eax
test eax, eax
jne 0x478b6c
push esi
xor edi, edi
call fcn.0051c54a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x14]
push esi
call fcn.0051c54a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x51f2b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0050a6a0
mov al, byte [esp + 0xb]
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esi + 0x30], al
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
push 0x5bd9e0
mov byte [esp + 0x1c], 1
mov dword [esi], 0x524d08
mov dword [esi + 0x44], edi
mov dword [esi + 0x24], edi
mov word [esi + 0x28], di
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
call fcn.004e0f10
add esp, 4
test eax, eax
jl 0x47925a
mov eax, dword [0x5bd9e0]
mov dword [0x5bd9e0], 1
cmp eax, edi
jne 0x479260
mov dword [0x5bd9e0], edi
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47a727
Capabilities:
Hide graphical window

Disassembly:
cmp word [esp + 4], 0x1974
push esi
mov esi, ecx
jne 0x47a7c5
mov eax, dword [esp + 0xc]
sub eax, 0x201
je 0x47a74d
sub eax, 4
jne 0x47a7c5
call fcn.0047a7d0
pop esi
ret 8
call fcn.00447160
mov eax, dword [eax + 0x290]
cmp eax, 1
mov dword [esp + 0xc], eax
jbe 0x47a76c
mov ecx, esi
call fcn.0047a7d0
pop esi
ret 8
jne 0x47a7c5
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00447160
mov ecx, eax
call fcn.00448890
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47a7b8
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov ecx, dword [esp + 8]
push 6
push ecx
call esi
mov edx, dword [esp + 8]
push 0
push edx
call esi
pop esi
ret 8
mov eax, dword [esp + 8]
push eax
call fcn.0047a6e0
add esp, 4
pop esi
ret 8
Function at 0x47abf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa28
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], bx
mov word [esp + 0x828], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x82a]
mov word [esp + 0x620], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x622]
mov word [esp + 0x418], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41a]
lea edx, [esp + 0x620]
rep stosd dword es:[edi], eax
mov ecx, dword [0x538a1c]
push edx
stosw word es:[edi], ax
mov eax, dword [0x538a18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
push ebx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x18]
push ebx
push 0x10
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x47aca7
pop edi
mov eax, 1
pop ebx
add esp, 0xa28
ret
mov ecx, dword [0x58bccc]
lea eax, [esp + 0x210]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x47acd3
pop edi
mov eax, 1
pop ebx
add esp, 0xa28
ret
lea edx, [esp + 0x210]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edx
push 0x5384a4
lea eax, [esp + 0x424]
push 0x103
push eax
call esi
push 0x88
call fcn.0049b1f0
add esp, 0x14
lea ecx, [esp + 0x624]
lea edx, [esp + 0x82c]
push eax
push ecx
push 0x53a058
push 0x103
push edx
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x430]
push eax
lea edx, [esp + 0x844]
push ecx
push edx
call fcn.00450f80
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x47ad7f
cmp word [0x56c344], bx
jne 0x47ad64
mov eax, dword [0x58bcc8]
push 0x104
push 0x56c344
push 0x32
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push 0x56c344
push 0x89
call fcn.0049b1f0
add esp, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0xa28
ret
Function at 0x47b604
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
cmp word [esi + 0x28], 0
je 0x47b754
call fcn.004061d0
mov ecx, eax
call fcn.00438d70
test eax, eax
jne 0x47b754
call fcn.00447160
mov eax, dword [eax + 0x290]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
test ecx, ecx
ja 0x47b663
push 0
push eax
push 0x901
call fcn.004d6c30
mov ecx, dword [esp + 0x14]
add esp, 0xc
test ecx, ecx
je 0x47b754
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x47b754
mov ecx, dword [esp + 8]
push ebx
push edi
lea edx, [esp + 0x10]
xor eax, eax
mov edi, ebp
push edx
push ebp
rep stosd dword es:[edi], eax
call fcn.00447160
mov ecx, eax
call fcn.00448890
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x47b6ea
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
jbe 0x47b711
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebp
mov ebp, dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [esi]
push eax
call ebp
test eax, eax
je 0x47b6d8
mov ecx, dword [esi]
push 0
push ecx
call edi
mov edx, dword [esi]
push 6
push edx
call edi
mov eax, dword [esi]
push 0
push eax
call edi
mov eax, dword [esp + 0x10]
inc ebx
add esi, 4
cmp ebx, eax
jb 0x47b6ba
mov ebp, dword [esp + 0x18]
jmp 0x47b70d
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x47b711
mov esi, ebp
mov ecx, dword [esi]
push ecx
call fcn.0047a6e0
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
add esi, 4
cmp edi, eax
jb 0x47b6f6
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x2c]
xor eax, eax
test edx, edx
sete al
mov dword [esi + 0x2c], eax
mov ecx, dword [0x5abe74]
pop edi
pop ebx
test ecx, ecx
je 0x47b74b
test eax, eax
push 0
mov ecx, esi
je 0x47b746
call fcn.004799b0
push ebp
call fcn.0051c54a
add esp, 4
pop esi
pop ebp
add esp, 0xc
ret
call fcn.00479910
push ebp
call fcn.0051c54a
add esp, 4
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x47bb30
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0047c6b0
mov byte [esi], 0x80
pop esi
ret

Function at 0x47c6f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x47db00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push esi
push str.MEDIASAVER_PROC
push eax
mov dword [esi + 0x1060], eax
call dword [sym.imp.USER32.dll_SetPropW]
mov eax, dword [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47db37
push eax
mov eax, dword [esi + 0x1060]
push 0xb6
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esi + 0x1060]
push 0x434
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [0x56bcf4]
test eax, eax
jne 0x47db6d
push 1
push 0x9051
mov dword [0x56bcf4], 0x9051
call fcn.004c1710
add esp, 8
mov edx, dword [0x56bcf4]
mov eax, dword [0x5868fc]
push 0x280000
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47db98
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x47df70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
mov ebp, ecx
push 0x11
call esi
movsx edi, ax
push 0x12
shr edi, 0x10
call esi
movsx ebx, ax
push 0x10
shr ebx, 0x10
call esi
movsx eax, ax
shr eax, 0x10
test edi, edi
je 0x47dfb1
test ebx, ebx
je 0x47dfb1
test eax, eax
mov dword [esp + 0x10], 1
jne 0x47dfb9
mov dword [esp + 0x10], 0
xor esi, esi
test edi, edi
je 0x47e017
test ebx, ebx
je 0x47dfd1
mov eax, dword [0x59f8bc]
test eax, eax
je 0x47dfd1
mov esi, 1
test esi, esi
jne 0x47dfe1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47e0e1
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test esi, esi
je 0x47e02b
test edi, edi
je 0x47e02b
mov eax, 1
jmp 0x47e02d
test ebx, ebx
je 0x47dfd5
mov eax, dword [0x59f8c0]
test eax, eax
je 0x47dfd5
mov esi, 1
jmp 0x47dfe1
xor eax, eax
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push esi
push edx
push eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.0047e0f0
test eax, eax
jne 0x47e091
mov edx, dword [ebp + 4]
mov eax, dword [edx - 8]
test eax, eax
je 0x47e0d2
mov eax, dword [esp + 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x47e069
mov dword [ebp + 0x14], eax
mov ecx, dword [0x58bcc8]
push ebp
push 0x47d9d0
push esi
push 0x7ff
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x18
cmp eax, 1
jne 0x47e0d2
test edi, edi
jne 0x47e0b1
test ebx, ebx
je 0x47e0b1
mov eax, dword [0x59f8c0]
test eax, eax
je 0x47e0b1
mov edx, dword [esp + 0x34]
mov dword [edx], 1
mov eax, dword [ebp + 8]
push eax
push 0x18
call fcn.0049b1f0
add esp, 4
add ebp, 0x18
push eax
push 0x823
push ebp
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18
Function at 0x4805b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2d10
call fcn.0051c5a0
mov eax, dword [esp + 0x2d14]
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
je 0x480743
mov esi, dword [esp + 0x2d20]
cmp esi, ebp
je 0x480743
push ebx
push edi
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
push edi
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x200
push eax
call fcn.0042dd50
add esp, 0x10
lea ecx, [esp + 0x28]
push ebp
push ebp
push 3
push ebp
push 3
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x480726
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x610]
mov dword [esp + 0x18], edx
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x618]
mov dword [esp + 0x28], edx
push 0x2710
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x480715
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x228]
lea edx, [esp + 0x610]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x628]
lea eax, [esp + 0x228]
push eax
push 1
push ecx
push edx
call fcn.00423640
add esp, 0x10
xor eax, eax
cmp esi, 0x7fffffff
jbe 0x4806b7
mov eax, 0x80070057
cmp eax, ebp
jl 0x480715
mov edx, dword [esp + 0x2d28]
mov eax, dword [esp + 0x2d24]
mov edi, SysReAllocString
mov ecx, eax
sub edi, edx
lea edx, [esp + 0x228]
sub edx, ecx
lea ecx, [edi + esi]
test ecx, ecx
je 0x4806f1
mov cl, byte [edx + eax]
test cl, cl
je 0x4806f1
mov byte [eax], cl
inc eax
dec esi
jne 0x4806db
jmp 0x4806f5
test esi, esi
jne 0x4806fb
dec eax
mov ebp, 0x8007007a
mov esi, dword [esp + 0x2d28]
mov byte [eax], 0
mov eax, ebp
xor ebp, ebp
cmp eax, ebp
jne 0x480715
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x480734
mov edi, dword [esp + 0x14]
inc edi
cmp edi, 0x10
mov dword [esp + 0x14], edi
jl 0x4805e8
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x2d10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x2d10
ret