joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4433d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4433ec
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x4433f8
xor eax, eax
pop ecx
ret
test al, 7
jne 0x443400
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x443860
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf520
push 0x495e1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x1084
call fcn.00495c50
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 0x443908
push str.file:__
push 0x4de3ac
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 0x443943
push str.res:__
push 0x4de3ac
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 0x443a1e
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 0x443a1e
lea ecx, [ebp - 0x109c]
push ecx
push 0x4de3ac
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
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4448a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
push 0
lea eax, [esp + 8]
push 0
push eax
push 0xcf0000
push 0x4f04e0
push str.TheWorld_Major
mov esi, ecx
push 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x2c], 0x1e
call fcn.00494140
mov eax, dword [esi + 4]
test eax, eax
je 0x44490c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44490c
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
mov dword [0x6c0e44], edx
mov eax, dword [esi + 4]
pop esi
add esp, 0x10
ret

Function at 0x445d17
Capabilities:
Hide graphical window

Disassembly:
cmp word [esp + 4], 0x1974
push esi
mov esi, ecx
jne 0x445da8
mov eax, dword [esp + 0xc]
sub eax, 0x201
je 0x445d39
sub eax, 4
jne 0x445da8
call fcn.00445db0
pop esi
ret 8
call fcn.004259c0
mov eax, dword [eax + 0x648]
cmp eax, 1
mov dword [esp + 0xc], eax
jbe 0x445d58
mov ecx, esi
call fcn.00445db0
pop esi
ret 8
jne 0x445da8
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004259c0
mov ecx, eax
call fcn.00426a10
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x445d9b
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 6
push eax
call esi
mov ecx, dword [esp + 8]
push 0
push ecx
call esi
pop esi
ret 8
mov edx, dword [esp + 8]
push edx
call fcn.00445cd0
add esp, 4
pop esi
ret 8
Function at 0x446650
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.004471d0
mov byte [esi], 0x80
pop esi
ret

Function at 0x447410
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 0x447447
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 edx, dword [0x6c0e44]
mov esi, eax
mov eax, dword [0x4f0504]
push 0x280000
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x447486
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 0x447820
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push esi
push edi
mov ebp, ecx
push 0x11
call ebx
movsx edi, ax
push 0x12
shr edi, 0x10
call ebx
movsx esi, ax
push 0x10
shr esi, 0x10
call ebx
movsx eax, ax
shr eax, 0x10
test edi, edi
je 0x447861
test esi, esi
je 0x447861
test eax, eax
mov dword [esp + 0x10], 1
jne 0x447869
mov dword [esp + 0x10], 0
xor ebx, ebx
test edi, edi
je 0x4478c7
test esi, esi
je 0x447881
mov eax, dword [0x69764c]
test eax, eax
je 0x447881
mov ebx, 1
test ebx, ebx
jne 0x447891
mov eax, dword [esp + 0x20]
test eax, eax
je 0x447972
call dword [sym.imp.USER32.dll_GetMessagePos]
mov esi, dword [esp + 0x24]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test ebx, ebx
je 0x4478db
test edi, edi
je 0x4478db
mov eax, 1
jmp 0x4478dd
test esi, esi
je 0x447885
mov eax, dword [0x697650]
test eax, eax
je 0x447885
mov ebx, 1
jmp 0x447891
xor eax, eax
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push edi
push ecx
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
push eax
call fcn.00447980
test eax, eax
jne 0x44793d
mov ecx, dword [ebp + 4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x447963
mov eax, dword [esp + 0x30]
mov dword [ebp + 0xc], esi
test eax, eax
je 0x447915
mov dword [ebp + 0x14], eax
mov edx, dword [0x5cad40]
push ebp
push 0x4472e0
push edi
push 0x7ff
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x14
cmp eax, 1
jne 0x447963
mov eax, dword [ebp + 8]
push eax
push 0x18
call fcn.00457390
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 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x14
Function at 0x4491a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push 0x697654
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x44925e
mov ax, word [0x4f04e0]
push esi
mov edx, dword [0x5cad44]
push edi
mov word [esp + 8], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0
lea ecx, [esp + 0x214]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call fcn.00422760
add esp, 0x10
lea eax, [esp + 8]
push 0x104
push eax
push 0x697654
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [esp + 0x41c]
lea ecx, [esp + 8]
lea edx, [esp + 0x210]
push ecx
push edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push esi
call fcn.004228d0
mov eax, dword [esp + 0x42c]
add esp, 8
test eax, eax
je 0x449250
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x449250
push esi
call fcn.00422b10
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
xor eax, eax
add esp, 0x410
ret
Function at 0x44ace0
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 0x44ad08
call eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x44ada0
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push str.Control_PanelDesktopResourceLocale
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44ad96
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 0x44ad8b
cmp dword [esp + 0x10], 1
jne 0x44ad8b
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x4ea32c
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 0x44adc8
lea edx, [esp + 8]
push edx
push 0x44ade0
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 0x44d690
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x1050
call fcn.00495c50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1060]
test esi, esi
push edi
mov ebx, ecx
je 0x44d8a5
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x44d8a5
mov ax, word [0x4f04e0]
mov ecx, 0x411
mov word [esp + 0x18], ax
xor eax, eax
lea edi, [esp + 0x1a]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [esp + 0x106c]
test eax, eax
je 0x44d71a
push 0x4de438
push esi
call fcn.00422bf0
add esp, 8
test eax, eax
je 0x44d74d
push esi
lea ecx, [esp + 0x1c]
push 0x823
push ecx
push 0x4f04e0
push 0x4ea258
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x44d74d
push esi
call fcn.0046f780
add esp, 4
test eax, eax
je 0x44d74d
mov edi, dword [0x695544]
call fcn.00459580
push ebp
push 1
lea edx, [esp + 0x20]
push 0x823
push edx
push esi
push edi
call fcn.00459580
mov ecx, eax
call fcn.004598b0
cmp word [esp + 0x18], 0
jne 0x44d76e
push esi
push 0x4de3ac
lea eax, [esp + 0x20]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call fcn.004610c0
lea edx, [esp + 0x1c]
push edx
call fcn.00443830
add esp, 8
test eax, eax
je 0x44d78d
xor edi, edi
jmp 0x44d794
mov edi, dword [esp + 0x1074]
mov eax, dword [esp + 0x1078]
xor esi, esi
cmp eax, esi
je 0x44d7da
lea eax, [esp + 0x18]
push esi
push eax
mov ecx, ebx
call fcn.0044fa10
cmp eax, esi
je 0x44d7da
cmp dword [eax + 0x20a8], esi
jne 0x44d7da
mov esi, dword [eax + 0x435c]
mov ecx, dword [ebx + 0x54]
push 0
push esi
call fcn.0048b5f0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0x18
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x54]
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call fcn.0048bf20
mov ecx, dword [ebx + 0x54]
push eax
call fcn.0048c540
mov ecx, dword [esp + 0x10]
cmp ecx, esi
mov esi, dword [esp + 0x1068]
je 0x44d861
xor eax, eax
test esi, esi
je 0x44d818
lea eax, [esi + 0x20b0]
test edi, edi
je 0x44d826
mov edx, dword [ecx + 0x4394]
test edx, edx
je 0x44d861
push eax
push 0
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0040a450
test eax, eax
je 0x44d85a
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x435c]
mov ecx, dword [ebx + 0x54]
push esi
call fcn.0048e8a0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0x18
mov edi, 1
jmp 0x44d868
mov edi, dword [esp + 0x1070]
test esi, esi
je 0x44d883
lea edx, [esi + 0x20b0]
mov ecx, 0x5c7bf8
push edx
call fcn.0046b420
test eax, eax
je 0x44d883
xor esi, esi
mov eax, dword [0x5c7bf0]
push esi
push ebp
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, ebx
call fcn.0044bce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1050
ret 0x18
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1050
ret 0x18
Function at 0x450830
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 [0x5cad40]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0x1c
push ecx
call esi
mov eax, dword [0x5cad40]
lea edx, [esp + 0x424]
push 0x104
push edx
push 0x14
push eax
call esi
lea ecx, [esp + 0x21c]
push ecx
call fcn.00422d30
mov ebp, dword [esp + 0xa44]
lea edx, [esp + 0x18]
push 0x104
push edx
push ebp
call fcn.00423160
push 0
push 0
push 0x80802
lea eax, [esp + 0x30]
push 0x4ea41c
lea ecx, [esp + 0x23c]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x448]
push ecx
mov ecx, dword [0x5cad44]
push edx
push eax
push ecx
call fcn.00422ee0
add esp, 0x34
test eax, eax
je 0x4509bb
lea edx, [esp + 0x14]
push 0x4e8a1c
push edx
xor edi, edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x45099f
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 0x450935
mov edi, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x45099f
lea ecx, [esp + 0x14]
push ecx
push 0x18
call fcn.00457390
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 + 0x6e0]
lea ecx, [ebx + 0x6e0]
push 0x7d0
push edx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4
push 0x10
push 0x4f0b48
push 0x1d
call fcn.00457390
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 0x450ed0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1250
call fcn.00495c50
mov ax, word [0x4f04e0]
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.00457390
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
lea ecx, [esp + 0x214]
push eax
push 0x4de3ac
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 0x4f0738
push 0x4de7b4
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00422750
add esp, 0x1c
test eax, eax
je 0x450f8d
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 0x4f04e0
lea eax, [esp + 0x23c]
push 0
push eax
call fcn.00443be0
add esp, 0x30
pop edi
pop esi
pop ebx
add esp, 0x1250
ret
Function at 0x451690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
push edi
mov ebp, ecx
call fcn.004515f0
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x451778
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x451778
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 0x451727
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x451727
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 0x451778
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 0x451778
cmp dword [esp + 0x14], edi
je 0x451778
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x451773
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x4cf5cc
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x451775
xor esi, esi
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x4517d2
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 0x451798
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 0x4517bb
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 0x452560
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 0x452594
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 0x4525a6
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 0x4525c8
cmp esi, edi
je 0x4525d6
sub edi, 0xfa000
add ebx, esi
jmp 0x45259c
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 0x4526c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4caed8
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 0x45270f
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 0x452847
push ebx
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x45283c
mov eax, dword [esp + 4]
push ebp
push esi
lea ebp, [ebx + 4]
push edi
push ebp
push eax
mov dword [ebx], 0x4cf5cc
mov dword [ebp], 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.004525f0
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4de108]
add esp, 8
mov dword [esp + 0x40], ecx
test esi, esi
je 0x4527bb
mov edx, esi
shr edx, 0x10
jne 0x45278b
and esi, 0xffff
lea ecx, [esp + 0x40]
push esi
call fcn.00405630
jmp 0x4527bb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4527bb
push edi
lea ecx, [esp + 0x44]
call fcn.00405350
test eax, eax
je 0x4527bb
lea ecx, [edi + edi]
mov edi, dword [esp + 0x40]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
xor edi, edi
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
cmp esi, edi
je 0x4527fa
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edi
push edx
push esi
push eax
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, edi
je 0x4527eb
mov dword [ebx + 8], eax
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x4527fa
mov dword [esp + 0x14], edi
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x40]
mov edx, dword [0x4de090]
pop edi
pop esi
lea ecx, [eax - 0xc]
mov dword [esp + 0x28], 0xffffffff
cmp ecx, edx
pop ebp
je 0x45283c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45283c
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00495c27
add esp, 4
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
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