joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ef10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c4
mov al, byte [0x56510c]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0xd0], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd1]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x68]
push ebx
push ecx
stosb byte es:[edi], al
call fcn.00401000
mov edx, dword [esp + 0x1e0]
add esp, 8
lea eax, [esp + 0xd0]
push edx
push 0x52f250
push 0x104
push eax
call fcn.0047f2c0
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe4]
push ecx
push edx
call fcn.00401060
lea eax, [esp + 0x84]
push eax
call fcn.00401aa0
lea ecx, [esp + 0x88]
push ecx
call fcn.00401aa0
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x44], ecx
mov word [esp + 0x39], ax
mov ecx, 0xf
lea edi, [esp + 0x4d]
mov byte [esp + 0x3b], al
mov byte [esp + 0x4c], bl
mov edx, dword [esp + 0xe4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.MSVCRT.dll_strncat]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xf0]
mov ecx, 0x10
stosb byte es:[edi], al
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 0x24
mov dword [esp + 0x24], edx
mov byte [esp + 0x10], bl
xor esi, esi
rep stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
mov dl, byte [esp + esi + 0x18]
lea eax, [esp + 0x10]
push edx
push str._02x
mov dword [esp + 0x18], ecx
push 8
push eax
mov dword [esp + 0x24], ecx
call fcn.0047f2c0
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x40
sub edx, ecx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jge 0x47f05d
mov ecx, edx
jmp 0x47f06b
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
call ebp
add esp, 0xc
inc esi
cmp esi, 0x10
jl 0x47f00f
mov esi, dword [esp + 0x1dc]
cmp esi, ebx
je 0x47f0c3
mov edx, dword [esp + 0x1e0]
xor eax, eax
mov ecx, edx
mov edi, esi
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
dec edx
rep stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
push 0x52f250
push edx
push esi
call fcn.0047f2c0
push esi
call dword [sym.imp.MSVCRT.dll__strlwr]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c4
ret
Function at 0x47f100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x508
push ebx
mov ebx, dword [esp + 0x510]
push ebp
push esi
test ebx, ebx
push edi
je 0x47f2b1
mov ebp, dword [esp + 0x520]
cmp ebp, 0x20
jb 0x47f2b1
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x118]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x118]
push eax
push ecx
push edx
push 0x530f90
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x47f2b1
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x40
jne 0x47f2b1
lea edx, [esp + 0x118]
lea ecx, [esp + 0x18]
mov esi, 0x80
lea eax, [esp + 0x18]
sub edx, ecx
lea ecx, [esi - 0x60]
test ecx, ecx
je 0x47f1bc
mov cl, byte [edx + eax]
test cl, cl
je 0x47f1bc
mov byte [eax], cl
inc eax
dec esi
jne 0x47f1a6
jmp 0x47f1c0
test esi, esi
jne 0x47f1c1
dec eax
lea edx, [esp + 0x138]
lea ecx, [esp + 0x98]
mov byte [eax], 0
mov esi, 0x80
lea eax, [esp + 0x98]
sub edx, ecx
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x47f1f9
mov cl, byte [edx + eax]
test cl, cl
je 0x47f1f9
mov byte [eax], cl
inc eax
dec esi
jne 0x47f1e0
jmp 0x47f1fd
test esi, esi
jne 0x47f1fe
dec eax
mov byte [eax], 0
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x118]
push 0x400
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0047ef10
add esp, 0xc
lea ecx, [esp + 0x98]
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x47f2b1
test ebp, ebp
je 0x47f251
cmp ebp, 0x7fffffff
jbe 0x47f256
mov eax, 0x80070057
test eax, eax
jl 0x47f29d
mov eax, ebx
xor ebx, ebx
test ebp, ebp
mov edx, ebp
je 0x47f292
mov ecx, dword [esp + 0x51c]
mov edi, SysReAllocString
lea esi, [esp + 0x18]
sub edi, ebp
sub esi, ecx
lea ecx, [edi + edx]
test ecx, ecx
je 0x47f28e
mov cl, byte [esi + eax]
test cl, cl
je 0x47f28e
mov byte [eax], cl
inc eax
dec edx
jne 0x47f278
jmp 0x47f292
test edx, edx
jne 0x47f298
dec eax
mov ebx, 0x8007007a
mov byte [eax], 0
mov eax, ebx
xor edx, edx
pop edi
test eax, eax
sete dl
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x508
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x508
ret
Function at 0x480f50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call esi
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480f78
call eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x481010
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x481006
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x24], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x480ffb
cmp dword [esp + 0x10], 1
jne 0x480ffb
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x555f68
push eax
call dword [sym.imp.MSVCRT.dll_swscanf]
add esp, 0xc
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [esp + 8]
pop esi
add esp, 0x30
ret
push str.ntdll.dll
mov dword [esp + 0xc], 0
call esi
test eax, eax
je 0x481038
lea edx, [esp + 8]
push edx
push 0x481050
push 1
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov ax, word [esp + 8]
pop esi
add esp, 0x30
ret
Function at 0x486b00
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x2090
call fcn.00512b50
mov eax, dword [esp + 0x2098]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
jne 0x486bb6
mov eax, dword [0x5f432c]
test eax, eax
je 0x486bb6
mov ecx, dword [ebx + 0x5c]
add ecx, 0x14d80
call fcn.00407b60
test eax, eax
jne 0x486bb6
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x486b7d
mov eax, dword [ecx + 0x568c]
test eax, eax
je 0x486b7d
mov eax, dword [esp + 0x20a0]
test eax, eax
je 0x486b6c
mov ecx, ebx
call fcn.00489c10
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
call fcn.00414cd0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
mov eax, dword [esp + 0x20a0]
test eax, eax
je 0x486b9b
mov ecx, ebx
call fcn.00488950
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
test ecx, ecx
je 0x486cce
push 0
call fcn.00414cf0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
mov ecx, dword [ebx + 0x5c]
add ecx, 0x14d80
call fcn.00406320
mov edx, eax
test edx, edx
je 0x486cce
cmp word [edx], 0
je 0x486cce
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x52e450
lea eax, [esp + 0x14]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004b9010
add esp, 0x14
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov si, ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x1056]
mov word [esp + 0x1054], 0
lea edx, [esp + 0x1054]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x823
lea eax, [esp + 0x10]
shr esi, 8
push edx
push eax
and esi, 0xff
call fcn.004d1490
add esp, 0xc
cmp word [esp + 0x1054], 0
je 0x486c81
lea ecx, [esp + 0x1054]
push ecx
mov ecx, ebx
call fcn.004851e0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
test esi, esi
jne 0x486c9d
mov eax, dword [esp + 0x20a0]
test eax, eax
jne 0x486c9d
mov eax, dword [0x5f78ac]
test eax, eax
jne 0x486c9d
xor eax, eax
jmp 0x486ca2
mov eax, 1
mov edx, dword [0x5deb78]
mov edi, dword [esp + 0x20a4]
push edx
push 0
push 0
push eax
xor eax, eax
push 0
test edi, edi
setne al
inc eax
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
mov ecx, ebx
call fcn.004857d0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
Function at 0x48a2d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
add eax, 0xffff9ff0
push esi
cmp eax, 4
mov esi, ecx
ja case.0x48a2eb.24595
jmp dword [eax*4 + 0x48a3e0]
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x48a313
call fcn.004cc040
test eax, eax
je 0x48a313
mov ecx, esi
call fcn.00489ff0
pop esi
add esp, 0x208
ret 4
mov ecx, esi
call fcn.0048a050
pop esi
add esp, 0x208
ret 4
mov ecx, dword [esi + 4]
push 0
push 0
push 0x5403
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
add esp, 0x208
ret 4
mov dx, word [0x560ec0]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e3f3c]
push str.360Start.exe
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call fcn.0043db50
lea edx, [esp + 0x18]
push edx
call fcn.00450050
add esp, 0x14
test eax, eax
pop edi
je case.0x48a2eb.24595
push 5
push 0
lea eax, [esp + 0xc]
push str._SafeMode
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
add esp, 0x208
ret 4
mov ecx, dword [0x5deb78]
push ecx
push 0
push 1
push 1
push 1
push 1
push 0
push 0xab
call fcn.00499730
add esp, 4
mov ecx, esi
push eax
call fcn.004857d0
pop esi
add esp, 0x208
ret 4

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

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
xor esi, esi
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x48a449
lea ecx, [esp + 4]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x48a449
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
push str.GlobalUserOffline
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48a486
mov eax, dword [esp + 8]
xor edx, edx
cmp eax, 1
sete dl
xor ecx, ecx
mov esi, edx
test eax, eax
sete cl
mov dword [esp + 8], ecx
jmp 0x48a48e
mov dword [esp + 8], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48a4aa
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 4
push 0
push str.GlobalUserOffline
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004753c0
push 0xffffffffffffffff
push 0
push 1
push 8
push 0x207
call fcn.0041b500
mov ecx, eax
call fcn.0041bbd0
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x48a640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa2c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e3f38]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0x1c
push ecx
call ebp
mov eax, dword [0x5e3f38]
lea edx, [esp + 0x424]
push 0x104
push edx
push 0x14
push eax
call ebp
lea ecx, [esp + 0x21c]
push ecx
call fcn.0043e170
mov eax, dword [esp + 0xa44]
lea edx, [esp + 0x18]
push 0x104
push edx
push eax
call fcn.0043e5c0
push 0
push 0
push 0x80802
lea ecx, [esp + 0x30]
push 0x5561f8
lea edx, [esp + 0x23c]
push ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x448]
push edx
mov edx, dword [0x5e3f3c]
push eax
push ecx
push edx
call fcn.0043e320
add esp, 0x34
test eax, eax
je 0x48a7f1
lea eax, [esp + 0x14]
push 0x54df0c
push eax
xor edi, edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x48a7b6
push esi
push 1
lea ecx, [esp + 0x18]
push 2
push ecx
mov dword [esp + 0x20], 0xfeff
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0xa50]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_fputws]
add esp, 0x18
cmp eax, 0xffffffff
je 0x48a74c
mov edi, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x48a7b6
lea eax, [esp + 0x14]
push eax
push 0x18
call fcn.00499730
add esp, 4
lea ecx, [esp + 0x630]
push eax
push 0x208
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebx + 0x60]
add esp, 0x10
mov word [esp + 0xa3a], 0
mov edx, dword [eax + 0xef0]
lea ecx, [eax + 0xef0]
lea eax, [esp + 0x62c]
push 0x7d0
push eax
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4
cmp word [0x561564], 0
jne 0x48a7d5
mov ecx, dword [0x5e3f38]
push 0x104
push 0x561564
push 0x32
push ecx
call ebp
push 0x10
push 0x561564
push 0x1d
call fcn.00499730
mov edx, dword [ebx + 4]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4
Function at 0x48ad00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00417170
test esi, esi
je 0x48ad29
mov eax, dword [esi + 0x560c]
cmp eax, 0xffffffff
je 0x48ad29
mov ecx, dword [edi + 0x58]
push 1
push eax
call fcn.00503440
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.004142a0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004142c0
push 0
mov ecx, esi
call fcn.0041a200
push 0
mov ecx, esi
call fcn.00414ea0
mov ecx, dword [edi + 0x58]
push 0
call fcn.00502dc0
test eax, eax
jne 0x48adae
cmp dword [0x6159d0], 1
jne 0x48ad92
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x48adae
mov edx, dword [ecx]
call dword [edx + 0x20]
test eax, eax
je 0x48adae
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 0x14
mov eax, dword [0x5deb78]
push 0
push 0
push 0
push 1
push eax
push 0
push str.se:blank
mov ecx, edi
call fcn.00482910
pop edi
pop esi
ret 0x14

Function at 0x48aef0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1250
call fcn.00512b50
mov ax, word [0x560ec0]
push ebx
push esi
mov ebx, ecx
push edi
mov word [esp + 0x214], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x216]
push 0x8e
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00499730
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
lea ecx, [esp + 0x214]
push eax
push 0x52e450
push 0x823
push ecx
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
add esp, 0x10
mov word [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push str.Import.exe
push 0x561154
push 0x52e930
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0043db40
add esp, 0x1c
test eax, eax
je 0x48afad
push 5
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
add esp, 0x1250
ret
mov edx, dword [ebx + 4]
push 0
push 0
push 0
push 0x6401
push edx
push 0x2710
push 0
push 0
push 1
push 0x560ec0
lea eax, [esp + 0x23c]
push 0
push eax
call fcn.00476750
add esp, 0x30
pop edi
pop esi
pop ebx
add esp, 0x1250
ret
Function at 0x48bf40
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5deb74]
push ebp
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [esp + 0x10], esi
je 0x48c0e1
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x48bf72
mov eax, dword [esi + 0x64]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x48c0e1
mov edi, eax
cmp dword [edi + 0x50], 2
jbe 0x48c0e1
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], 0
test ebp, ebp
jne 0x48bfa8
mov eax, dword [esi + 4]
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
je 0x48c0e1
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x1c]
push 6
push edx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [edi + 0x562c]
test edi, edi
jne 0x48c00e
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x48c00e
call fcn.0041acb0
mov edi, eax
mov eax, dword [0x6159d8]
test eax, eax
je 0x48c06a
test edi, edi
je 0x48c06a
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x48c06a
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x48c066
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push ebx
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x48c084
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.0048c180
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48c0b3
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
je 0x48c0be
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
pop ebx
je 0x48c0ca
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48c0e1
mov edx, dword [esp + 0x10]
push ebp
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 8
Function at 0x48f6f0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
push edi
push ebp
lea ebx, [esi + 0x3ab0]
push 0x52e450
push 0x103
push ebx
mov dword [esi + 0x3ec0], eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edi, [esi + 0x3cb8]
push ebp
push 0x52e450
push 0x103
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
push edi
call fcn.0043dcc0
add esp, 8
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x48f775
push edi
call ebx
test eax, eax
je 0x48f775
mov ecx, esi
call fcn.0048f660
mov ecx, esi
call fcn.0048f950
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4906d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00490320
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x17
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
je 0x490770
mov edx, dword [esi + 0xc]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
je 0x490769
mov eax, dword [esi + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x490767
mov dword [esi + 0x230], eax
mov dword [esi + 0x22c], ebp
push 0x10
mov byte [esi + 0x224], 0
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x49075f
lea eax, [edi + 4]
lea ecx, [esi + 0x220]
push eax
push ecx
mov dword [edi], 0x51a7fc
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x490761
xor edi, edi
mov dword [esi + 0x21c], edi
xor ebp, ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [esi + 0x21c]
mov dword [esi + 0xc], ebp
cmp edi, ebp
mov word [esi + 0x10], bp
je 0x4907d8
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x49079a
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x21c]
mov dword [esi + 4], ecx
lea edx, [esp + 0x18]
mov eax, dword [edi + 4]
push edx
push eax
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x4907c0
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
pop edi
cmp ecx, ebp
pop esi
pop ebp
setg al
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x4914d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
mov esi, 0xfa000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x491504
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp edi, 0xfa000
jae 0x491516
mov esi, edi
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x491538
cmp esi, edi
je 0x491546
sub edi, 0xfa000
add ebx, esi
jmp 0x49150c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret