joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4576a4
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
cmp word [esi + 0x28], 0
je 0x45779d
call fcn.0041dfb0
mov ecx, eax
call fcn.00424250
test eax, eax
jne 0x45779d
call fcn.004302b0
mov eax, dword [eax + 0x98c]
test eax, eax
mov dword [esp + 8], eax
je 0x45779d
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x45779d
mov ecx, dword [esp + 8]
push ebx
push edi
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.004302b0
mov ecx, eax
call fcn.00431830
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x45775e
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
jbe 0x457785
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebp
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x457750
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
push 6
push ecx
call edi
mov edx, dword [esi]
push 0
push edx
call edi
mov eax, dword [esp + 0x10]
inc ebx
add esi, 4
cmp ebx, eax
jb 0x45772e
jmp 0x457781
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x457785
mov esi, ebp
mov eax, dword [esi]
push eax
call fcn.00456930
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
add esi, 4
cmp edi, eax
jb 0x45776a
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x2c]
xor ecx, ecx
test edx, edx
sete cl
push ebp
mov dword [esi + 0x2c], ecx
call fcn.004b7a35
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret

Function at 0x457820
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.004583a0
mov byte [esi], 0x80
pop esi
ret

Function at 0x4585e0
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 0x458617
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 [0x5bc8c0]
mov esi, eax
mov eax, dword [0x4e6b5c]
push 0x280000
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x458656
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 0x458a30
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 0x458a71
test esi, esi
je 0x458a71
test eax, eax
mov dword [esp + 0x10], 1
jne 0x458a79
mov dword [esp + 0x10], 0
xor ebx, ebx
test edi, edi
je 0x458ad7
test esi, esi
je 0x458a91
mov eax, dword [0x5c5660]
test eax, eax
je 0x458a91
mov ebx, 1
test ebx, ebx
jne 0x458aa1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x458b82
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 0x458aeb
test edi, edi
je 0x458aeb
mov eax, 1
jmp 0x458aed
test esi, esi
je 0x458a95
mov eax, dword [0x5c5664]
test eax, eax
je 0x458a95
mov ebx, 1
jmp 0x458aa1
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.00458b90
test eax, eax
jne 0x458b4d
mov ecx, dword [ebp + 4]
mov eax, dword [ecx - 8]
test eax, eax
je 0x458b73
mov eax, dword [esp + 0x30]
mov dword [ebp + 0xc], esi
test eax, eax
je 0x458b25
mov dword [ebp + 0x14], eax
mov edx, dword [0x5c01a0]
push ebp
push 0x4584b0
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 0x458b73
mov eax, dword [ebp + 8]
push eax
push 0x18
call fcn.0046a9d0
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 0x45a3a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push 0x5c5668
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x45a45e
mov ax, word [0x4e6b30]
push esi
mov edx, dword [0x5c01a4]
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.0042bc50
add esp, 0x10
lea eax, [esp + 8]
push 0x104
push eax
push 0x5c5668
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.0042c270
mov eax, dword [esp + 0x42c]
add esp, 8
test eax, eax
je 0x45a450
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45a450
push esi
call fcn.0042c500
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
xor eax, eax
add esp, 0x410
ret
Function at 0x45c000
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 0x45c028
call eax
pop esi
add esp, 0x30
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x45c0c0
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 0x45c0b6
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 0x45c0ab
cmp dword [esp + 0x10], 1
jne 0x45c0ab
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x4e1fe4
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 0x45c0e8
lea edx, [esp + 8]
push edx
push 0x45c100
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 0x460290
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x2090
call fcn.004b7a60
mov eax, dword [esp + 0x2098]
push ebx
test eax, eax
push esi
mov ebx, ecx
jne 0x460341
mov eax, dword [0x5c20c8]
test eax, eax
je 0x460341
mov ecx, dword [ebx + 0x58]
add ecx, 0x257f8
call fcn.00405860
test eax, eax
jne 0x460341
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x46030a
mov eax, dword [ecx + 0x5644]
test eax, eax
je 0x46030a
mov eax, dword [esp + 0x209c]
test eax, eax
je 0x4602fa
mov ecx, ebx
call fcn.00462af0
pop esi
pop ebx
add esp, 0x2090
ret 8
call fcn.0040c750
pop esi
pop ebx
add esp, 0x2090
ret 8
mov eax, dword [esp + 0x209c]
test eax, eax
je 0x460327
mov ecx, ebx
call fcn.00461cd0
pop esi
pop ebx
add esp, 0x2090
ret 8
test ecx, ecx
je 0x460455
push 0
call fcn.0040c760
pop esi
pop ebx
add esp, 0x2090
ret 8
mov ecx, dword [ebx + 0x58]
add ecx, 0x257f8
call fcn.004032a0
mov edx, eax
test edx, edx
je 0x460455
cmp word [edx], 0
je 0x460455
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4ce4dc
lea eax, [esp + 0x14]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004758c0
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, 0x5bd038
and esi, 0xff
call fcn.004885b0
cmp word [esp + 0x1054], 0
pop edi
je 0x46040f
lea ecx, [esp + 0x1050]
push ecx
mov ecx, ebx
call fcn.0045eb30
pop esi
pop ebx
add esp, 0x2090
ret 8
test esi, esi
jne 0x46042b
mov eax, dword [esp + 0x209c]
test eax, eax
jne 0x46042b
mov eax, dword [0x5c5654]
test eax, eax
jne 0x46042b
xor eax, eax
jmp 0x460430
mov eax, 1
push 0
push 0
push eax
mov eax, dword [esp + 0x20ac]
xor edx, edx
push 0
test eax, eax
setne dl
inc edx
lea eax, [esp + 0x18]
push edx
push 0
push eax
mov ecx, ebx
call fcn.0045f2b0
pop esi
pop ebx
add esp, 0x2090
ret 8
Function at 0x462ea0
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 [0x5c01a0]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push 0x1c
push ecx
call esi
mov eax, dword [0x5c01a0]
lea edx, [esp + 0x424]
push 0x104
push edx
push 0x14
push eax
call esi
lea ecx, [esp + 0x21c]
push ecx
call fcn.0042c720
mov ebp, dword [esp + 0xa44]
lea edx, [esp + 0x18]
push 0x104
push edx
push ebp
call fcn.0042cb50
push 0
push 0
push 0x80802
lea eax, [esp + 0x30]
push 0x4e2110
lea ecx, [esp + 0x23c]
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x448]
push ecx
mov ecx, dword [0x5c01a4]
push edx
push eax
push ecx
call fcn.0042c8d0
add esp, 0x34
test eax, eax
je 0x46302b
lea edx, [esp + 0x14]
push 0x4da060
push edx
xor edi, edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x46300f
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 0x462fa5
mov edi, 1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x46300f
lea ecx, [esp + 0x14]
push ecx
push 0x18
call fcn.0046a9d0
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 + 0x6f4]
lea ecx, [ebx + 0x6f4]
push 0x7d0
push edx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa2c
ret 4
push 0x10
push 0x4e71a4
push 0x1d
call fcn.0046a9d0
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 0x4636f0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1250
call fcn.004b7a60
mov ax, word [0x4e6b30]
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.0046a9d0
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
lea ecx, [esp + 0x214]
push eax
push 0x4ce4dc
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 0x4e6d94
push 0x4ce5e8
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042bc40
add esp, 0x1c
test eax, eax
je 0x4637ad
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 0x4e6b30
lea eax, [esp + 0x23c]
push 0
push eax
call fcn.00454a60
add esp, 0x30
pop edi
pop esi
pop ebx
add esp, 0x1250
ret
Function at 0x464110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00464070
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x4641f8
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4641f8
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 0x4641a7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4641a7
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 0x4641f8
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 0x4641f8
cmp dword [esp + 0x14], edi
je 0x4641f8
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x4641f3
mov ecx, dword [esp + 0x14]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x4c0814
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4641f5
xor esi, esi
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x14]
cmp esi, edi
je 0x464252
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 0x464218
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 0x46423b
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 0x464fe0
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 0x465014
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 0x465026
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 0x465048
cmp esi, edi
je 0x465056
sub edi, 0xfa000
add ebx, esi
jmp 0x46501c
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 0x465140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc6b8
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 0x46518f
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 0x4652b9
push ebx
push ebp
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x4652ad
mov ecx, dword [esp + 8]
push esi
lea eax, [ebx + 4]
push edi
push eax
push ecx
mov dword [ebx], 0x4c0814
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.00465070
mov esi, dword [esp + 0x40]
mov ebp, dword [0x4ce114]
add esp, 8
mov dword [esp + 0x40], ebp
test esi, esi
je 0x46523c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x46523c
lea ecx, [edi + edi + 0xe]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x46523c
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 0x465277
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 0x465268
mov dword [ebx + 8], eax
mov edi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x465277
mov dword [esp + 0x14], edi
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [0x4ce0a0]
lea eax, [ebp - 0xc]
pop edi
cmp eax, ecx
mov dword [esp + 0x2c], 0xffffffff
pop esi
je 0x4652ad
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4652ad
push ebp
call fcn.004b7a35
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 0x465c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc717
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], 0x4c089c
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.0043bc60
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.00473200
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.0043bc60
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebp
call fcn.00473200
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.0043bbc0
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
lea ebp, [ebx + 0x54]
push ecx
push eax
push eax
call fcn.0043bc60
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x14], eax
push ecx
push eax
mov ecx, ebp
call fcn.00473200
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 0x465d6a
mov edx, dword [eax + 8]
sub edx, ecx
mov ecx, dword [esp + 0x14]
sar edx, 2
cmp ecx, edx
jae 0x465d6a
mov edx, dword [ebx + 8]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x465d64
mov eax, dword [ecx]
push 1
call dword [eax + 0x10]
mov eax, dword [esp + 0x10]
inc dword [esp + 0x14]
jmp 0x465d38
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push ecx
call fcn.0043bc60
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov ebx, eax
mov eax, dword [ecx + 8]
push eax
push ebx
call fcn.00473200
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], ebx
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x18], eax
call fcn.004b7a35
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.004b7a35
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.00473200
mov eax, dword [edi + 4]
push eax
call fcn.004b7a35
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.00473200
mov eax, dword [esi + 4]
push eax
call fcn.004b7a35
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.0042e840
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x467980
Capabilities:
Move file
Read file on windows

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
xor ebp, ebp
push edi
push ebp
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.0042bc40
add esp, 8
test eax, eax
jne 0x467a02
mov ecx, 0x81
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s.tmp
lea eax, [esp + 0x20]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.0042bc40
add esp, 0x18
test eax, eax
je 0x467a02
lea edx, [esp + 0x18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [esp + 0x22c]
cmp ebx, 2
jne 0x467a09
mov ebx, 1
jmp 0x467a09
mov ebx, dword [esp + 0x22c]
push 0x214
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x467a31
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret
mov ecx, 0x85
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov dword [eax + 0x208], ebx
call edi
add esp, 4
cmp eax, 0x103
jbe 0x467a5e
mov eax, 0x103
jmp 0x467a64
push esi
call edi
add esp, 4
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [edx + 0x208], 2
jne 0x467aa4
push 0x4da060
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x22c]
add esp, 8
mov dword [eax], ecx
jmp 0x467b62
push 0x4da040
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x467ac3
mov dword [esp + 0x14], 1
jmp 0x467b39
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jle 0x467b53
lea edi, [ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x467b37
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push 1
push ebp
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.00467660
mov edi, eax
push esi
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x1c
test edi, edi
je 0x467b53
xor ebp, ebp
cmp dword [esp + 0x10], ebp
je 0x467b62
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.00467b80
add esp, 8
mov dword [esp + 0x10], ebp
jmp 0x467b62
mov edx, dword [esp + 0x224]
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov dword [edx], eax
cmp ebx, ebp
je 0x467b70
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret