joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46adf0
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 0x46afa1
mov ebp, dword [esp + 0x520]
cmp ebp, 0x20
jb 0x46afa1
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 0x4fe02c
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 0x46afa1
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x40
jne 0x46afa1
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 0x46aeac
mov cl, byte [edx + eax]
test cl, cl
je 0x46aeac
mov byte [eax], cl
inc eax
dec esi
jne 0x46ae96
jmp 0x46aeb0
test esi, esi
jne 0x46aeb1
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 0x46aee9
mov cl, byte [edx + eax]
test cl, cl
je 0x46aee9
mov byte [eax], cl
inc eax
dec esi
jne 0x46aed0
jmp 0x46aeed
test esi, esi
jne 0x46aeee
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.0046ac00
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 0x46afa1
test ebp, ebp
je 0x46af41
cmp ebp, 0x7fffffff
jbe 0x46af46
mov eax, 0x80070057
test eax, eax
jl 0x46af8d
mov eax, ebx
xor ebx, ebx
test ebp, ebp
mov edx, ebp
je 0x46af82
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 0x46af7e
mov cl, byte [esi + eax]
test cl, cl
je 0x46af7e
mov byte [eax], cl
inc eax
dec edx
jne 0x46af68
jmp 0x46af82
test edx, edx
jne 0x46af88
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 0x46c940
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 0x46c968
call eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x46ca00
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46c9f6
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 0x46c9eb
cmp dword [esp + 0x10], 1
jne 0x46c9eb
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x4fe0e8
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 0x46ca28
lea edx, [esp + 8]
push edx
push 0x46ca40
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 0x471460
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x2090
call fcn.004d03a0
mov eax, dword [esp + 0x2098]
push ebx
push esi
push edi
test eax, eax
mov ebx, ecx
jne 0x471516
mov eax, dword [0x5e20c8]
test eax, eax
je 0x471516
mov ecx, dword [ebx + 0x58]
add ecx, 0x2828c
call fcn.00406610
test eax, eax
jne 0x471516
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x4714dd
mov eax, dword [ecx + 0x5688]
test eax, eax
je 0x4714dd
mov eax, dword [esp + 0x20a0]
test eax, eax
je 0x4714cc
mov ecx, ebx
call fcn.00473f20
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
call fcn.00410ce0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
mov eax, dword [esp + 0x20a0]
test eax, eax
je 0x4714fb
mov ecx, ebx
call fcn.00472fa0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
test ecx, ecx
je 0x471630
push 0
call fcn.00410cf0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
mov ecx, dword [ebx + 0x58]
add ecx, 0x2828c
call fcn.00403dd0
mov edx, eax
test edx, edx
je 0x471630
cmp word [edx], 0
je 0x471630
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 0x4e925c
lea eax, [esp + 0x14]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x1c]
push ecx
call fcn.0048b240
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
mov ecx, 0x5dd258
and esi, 0xff
call fcn.004a00a0
cmp word [esp + 0x1054], 0
je 0x4715e3
lea ecx, [esp + 0x1054]
push ecx
mov ecx, ebx
call fcn.0046fa30
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
test esi, esi
jne 0x4715ff
mov eax, dword [esp + 0x20a0]
test eax, eax
jne 0x4715ff
mov eax, dword [0x5e5654]
test eax, eax
jne 0x4715ff
xor eax, eax
jmp 0x471604
mov eax, 1
mov edx, dword [0x5dcaac]
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.004700e0
pop edi
pop esi
pop ebx
add esp, 0x2090
ret 8
Function at 0x474210
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 SysReAllocString
xor esi, esi
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x474259
lea ecx, [esp + 4]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x474259
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 0x474296
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 0x47429e
mov dword [esp + 8], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4742ba
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.00461670
push 0xffffffffffffffff
push 0
push 1
push 8
push 0x207
call fcn.00417130
mov ecx, eax
call fcn.00417770
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x474440
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 esi, dword [sym.imp.USER32.dll_LoadStringW]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e03c8]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0x1c
push ecx
call esi
mov eax, dword [0x5e03c8]
lea edx, [esp + 0x424]
push 0x104
push edx
push 0x14
push eax
call esi
lea ecx, [esp + 0x21c]
push ecx
call fcn.004339f0
mov ebp, dword [esp + 0xa44]
lea edx, [esp + 0x18]
push 0x104
push edx
push ebp
call fcn.00433e20
push 0
push 0
push 0x80802
lea eax, [esp + 0x30]
push 0x4fe384
lea ecx, [esp + 0x23c]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x448]
push ecx
mov ecx, dword [0x5e03cc]
push edx
push eax
push ecx
call fcn.00433ba0
add esp, 0x34
test eax, eax
je 0x4745cb
lea edx, [esp + 0x14]
push 0x4f5a10
push edx
xor edi, edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4745af
push esi
push 1
lea eax, [esp + 0x18]
push 2
push eax
mov dword [esp + 0x20], 0xfeff
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_fputws]
add esp, 0x18
cmp eax, 0xffffffff
je 0x474545
mov edi, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x4745af
lea ecx, [esp + 0x14]
push ecx
push 0x18
call fcn.0047dc90
add esp, 4
lea edx, [esp + 0x630]
push eax
push 0x208
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [ebx + 0x5c]
add esp, 0x10
mov word [esp + 0xa3a], 0
lea edx, [esp + 0x62c]
mov eax, dword [ebx + 0x90c]
lea ecx, [ebx + 0x90c]
push 0x7d0
push edx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4
push 0x10
push 0x50568c
push 0x1d
call fcn.0047dc90
add esp, 4
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4

Function at 0x474c30
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1250
call fcn.004d03a0
mov ax, word [0x505000]
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.0047dc90
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
lea ecx, [esp + 0x214]
push eax
push 0x4e925c
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 0x50527c
push 0x4e9370
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00432f10
add esp, 0x1c
test eax, eax
je 0x474ced
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 0x505000
lea eax, [esp + 0x23c]
push 0
push eax
call fcn.00462a10
add esp, 0x30
pop edi
pop esi
pop ebx
add esp, 0x1250
ret
Function at 0x4759a0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5dcaa8]
push ebp
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [esp + 0x10], esi
je 0x475b41
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4759d2
mov eax, dword [esi + 0x60]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x475b41
mov edi, eax
cmp dword [edi + 0x50], 2
jbe 0x475b41
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], 0
test ebp, ebp
jne 0x475a08
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 0x475b41
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 + 0x5628]
test edi, edi
jne 0x475a6e
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x475a6e
call fcn.00416bc0
mov edi, eax
mov eax, dword [0x603768]
test eax, eax
je 0x475aca
test edi, edi
je 0x475aca
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x475aca
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x475ac6
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 0x475ae4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00475bc0
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 0x475b13
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
je 0x475b1e
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
pop ebx
je 0x475b2a
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x475b41
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 0x476d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00476cc0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x476e48
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x476e48
push ebx
push 0x83e
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x476df7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x476df7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, esi
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
mov eax, dword [ebp + 0xc]
pop ebx
cmp eax, edi
je 0x476e48
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
push ecx
push 1
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x476e48
cmp dword [esp + 0x14], edi
je 0x476e48
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x476e43
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x4d993c
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x476e45
xor esi, esi
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x476ea2
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, edi
je 0x476e68
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x14]
mov dword [ebp + 4], ecx
lea edx, [esp + 0x14]
mov eax, dword [esi + 4]
push edx
push eax
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, edi
je 0x476e8b
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 4]
cmp ecx, edi
pop edi
pop esi
pop ebp
setg al
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x477c00
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 0x477c34
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 0x477c46
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 0x477c68
cmp esi, edi
je 0x477c76
sub edi, 0xfa000
add ebx, esi
jmp 0x477c3c
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
Function at 0x477d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push eax
push 0
push ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x477daf
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp]
test eax, eax
je 0x477ed9
push ebx
push ebp
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x477ecd
mov ecx, dword [esp + 8]
push esi
lea eax, [ebx + 4]
push edi
push eax
push ecx
mov dword [ebx], 0x4d993c
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00477c90
mov esi, dword [esp + 0x40]
mov ebp, dword [0x4e8e98]
add esp, 8
mov dword [esp + 0x40], ebp
test esi, esi
je 0x477e5c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x477e5c
lea ecx, [edi + edi + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x477e5c
lea ecx, [edi + edi]
mov dword [eax], 1
mov word [eax + edi*2 + 0xc], 0
lea ebp, [eax + 0xc]
mov edx, ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x40], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push ebp
mov dword [esp + 0x34], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x477e97
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x18]
push edi
push eax
push esi
push ecx
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, edi
je 0x477e88
mov dword [ebx + 8], eax
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x477e97
mov dword [esp + 0x14], edi
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [0x4e80f0]
lea eax, [ebp - 0xc]
pop edi
cmp eax, ecx
mov dword [esp + 0x2c], 0xffffffff
pop esi
je 0x477ecd
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x477ecd
push ebp
call fcn.004d0379
add esp, 4
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x18]
sete al
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x478f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5417
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [ebx], 0x4d99c8
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
lea esi, [ebx + 0x24]
push ecx
push eax
push eax
mov dword [esp + 0x34], 4
call fcn.004799f0
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.0048a530
mov dword [esi + 8], edi
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
lea edi, [ebx + 0x34]
push ecx
push eax
push eax
call fcn.004799f0
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebp
call fcn.0048a530
lea ecx, [ebx + 0x44]
mov dword [edi + 8], ebp
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00446180
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
lea ebp, [ebx + 0x54]
push ecx
push eax
push eax
call fcn.004799f0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x14], eax
push ecx
push eax
mov ecx, ebp
call fcn.0048a530
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [ebp + 8], eax
lea eax, [ebx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x47900a
mov edx, dword [eax + 8]
sub edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 2
cmp ecx, edx
jae 0x47900a
mov edx, dword [ebx + 8]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x479004
mov eax, dword [ecx]
push 1
call dword [eax + 0x10]
mov eax, dword [esp + 0x10]
inc dword [esp + 0x14]
jmp 0x478fd8
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push ecx
call fcn.004799f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
mov eax, dword [ecx + 8]
push eax
push ebx
call fcn.0048a530
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], ebx
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x18], eax
call fcn.004d0379
xor ebx, ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x20], eax
call fcn.004d0379
add esp, 8
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.0048a530
mov eax, dword [edi + 4]
push eax
call fcn.004d0379
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.0048a530
mov eax, dword [esi + 4]
push eax
call fcn.004d0379
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.0048a500
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret