joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458350
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextW]
call fcn.00462840
test eax, eax
je 0x4583b1
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x4583b1
lea esi, [eax + 1]
jmp 0x4583b3
xor esi, esi
mov edx, dword [edi + 0x8c]
test edx, edx
je 0x4583c9
mov ecx, dword [edx]
mov eax, esi
xor eax, 1
push eax
push edx
call dword [ecx + 0x14]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4583da
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x30]
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x4583eb
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x30]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049dec8
mov esp, ebp
pop ebp
ret

Function at 0x458400
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eb3b
mov eax, dword fs:[0]
push eax
mov eax, 0x4054
call fcn.0049e320
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0x1000
push eax
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 4]
mov dword [ebp - 0x4060], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4048], eax
lea eax, [ebp - 0x4060]
push eax
mov dword [ebp - 0x4054], 0x55ade8
mov dword [ebp - 0x4050], 0x59
mov dword [ebp - 0x4044], 0
mov dword [ebp - 0x404c], 0x456f60
mov dword [ebp - 0x405c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
test edi, edi
je 0x458595
push 0x2000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x4010]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x45858e
xor eax, eax
mov dword [ebp - 0x4018], 0
lea ecx, [ebp - 0x4010]
mov dword [ebp - 0x4014], 7
mov word [ebp - 0x4028], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458514
sub ecx, edx
lea eax, [ebp - 0x4010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4028]
call fcn.004125f0
lea eax, [ebp - 0x4028]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x4040]
push eax
call fcn.00410830
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4028]
call fcn.004106a0
cmp dword [ebp - 0x402c], 8
lea eax, [ebp - 0x4040]
cmovae eax, dword [ebp - 0x4040]
push eax
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x4040]
call fcn.004106a0
mov ecx, esi
call fcn.00458350
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4633d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fe06
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.0042ba90
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.0042be60
test eax, eax
jne 0x46343b
xor edi, edi
jmp 0x463533
call fcn.0040ca70
mov ecx, eax
test ecx, ecx
je 0x46355e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.0042c060
test eax, eax
je 0x46350f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x55f570
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.00497be0
add esp, 4
test eax, eax
je 0x46350f
lea eax, [ebp - 0x810]
push eax
call fcn.004a66c0
mov ecx, dword [ebp - 0x818]
lea edx, [ebp - 0x810]
mov edi, eax
lea esi, [edx + 2]
lea ecx, [ecx + 0x210]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4634e0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.0040d5b0
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x463511
xor edi, edi
mov esi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463533
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.0042bab0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0040aab0
int3
Function at 0x468810
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5406d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x560168
mov dword [edi], vtable.CFileManager.0
mov dword [edi + 4], vtable.CFileManager.1.0
call fcn.00468520
mov eax, dword [edi + 0x50]
add esp, 4
mov dword [edi + 0x68], 1
test eax, eax
je 0x46887e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x50], 0
push dword [edi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x4689b0
push dword [edi + 0x40]
call fcn.0040f3a0
mov edx, dword [edi + 0x40]
add esp, 4
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4688c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004125f0
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.0040c300
mov ecx, 1
add esp, 4
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x2c], esi
or ecx, eax
jge 0x468912
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.0040af00
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x468a17
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0050eba0
add esp, 8
test eax, eax
js 0x468a17
cmp eax, dword [esi - 8]
jg 0x468a17
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46897a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4689b0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4689a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468a21
push edx
push ecx
call fcn.0049dede
add esp, 8
lea ecx, [edi + 0x44]
call fcn.00436890
mov edx, dword [edi + 0x40]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4689d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x28]
mov dword [edi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [edi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4689fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040aab0
call fcn.004ffdd3
int3
Function at 0x46b000
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.0049e320
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov edi, ecx
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push 0x555bb8
push eax
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x804]
push eax
call ebx
test eax, eax
jne 0x46b08f
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x804]
push eax
push str.Create_directory_:__s
call fcn.00468520
add esp, 8
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x560784
push eax
lea eax, [ebp - 0x1804]
push eax
call esi
push 0x800
lea eax, [ebp - 0x3004]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x3004]
push str.ComputerZTray.exe
push dword [edi + 4]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x1004]
push str.ThemesUIicon_black.ico
push dword [edi + 4]
push eax
call esi
lea eax, [ebp - 0x1004]
push eax
call ebx
test eax, eax
jne 0x46b13b
push 0x800
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x554d9c
push dword [edi + 4]
push eax
call esi
lea eax, [ebp - 0x1804]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x46b16b
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
push str.Delete__s
call fcn.00468520
add esp, 8
push 0
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
lea eax, [ebp - 0x1804]
push eax
push dword [0x59ba90]
lea eax, [ebp - 0x3004]
push eax
push 0x555bb8
call fcn.0046bf90
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x2804]
push str.uninst.exe
push dword [edi + 4]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x5608fc
push eax
lea eax, [ebp - 0x2004]
push eax
call esi
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b214
lea eax, [ebp - 0x2004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
push str.Delete__s
call fcn.00468520
add esp, 8
push 0
lea eax, [ebp - 0x2804]
mov ecx, edi
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
lea eax, [ebp - 0x2804]
push eax
push 0x560910
call fcn.0046bf90
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
Function at 0x46b990
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540ef6
mov eax, dword fs:[0]
push eax
mov eax, 0x2008
call fcn.0049e320
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x1810]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004e3050
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1810]
add esp, 0xc
push 0x560784
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x2010]
push str.ComputerZTray.exe
push dword [edi + 4]
push eax
call esi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x810]
push str.ThemesUIicon_black.ico
push dword [edi + 4]
push eax
call esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46baa2
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004e3050
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x554d9c
push dword [edi + 4]
push eax
call esi
call fcn.0040ca70
mov ecx, eax
test ecx, ecx
je 0x46bbe2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2014], eax
push str.__fromdeskshortcut
lea ecx, [ebp - 0x2014]
mov dword [ebp - 4], 0
call fcn.0040df70
test al, al
jne 0x46baec
push 0x14
push str.__fromdeskshortcut
lea ecx, [ebp - 0x2014]
call fcn.0040d5b0
mov edx, dword [str._ShowExaminePage]
mov dword [ebp - 4], 1
test edx, edx
jne 0x46bb01
xor ecx, ecx
jmp 0x46bb15
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bb06
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2014]
call fcn.0042e880
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46bb54
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1010]
push eax
push str.Delete__s_n
call fcn.00468520
add esp, 8
mov esi, dword [ebp - 0x2014]
lea eax, [ebp - 0x810]
push 0
push eax
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x2010]
push eax
push 0x555bb8
call fcn.0046bf90
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46bbc2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040aab0
int3
Function at 0x4749e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x59bb0c]
test ecx, ecx
js 0x474a14
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4
push 0x118
xorps xmm0, xmm0
mov dword [0x59bb0c], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.004e3050
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x474a85
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x474adb
push str.GetNativeSystemInfo
push 0x551e90
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x474adb
lea ecx, [ebp - 0x144]
push ecx
call eax
mov ax, word [ebp - 0x144]
cmp ax, 9
je 0x474abc
cmp ax, 6
jne 0x474adb
mov dword [0x59bb0c], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4

Function at 0x474ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 5
jne 0x474db0
cmp dword [eax + 0xc], 1
jb 0x474db0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e3050
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 1
push 8
push eax
mov dword [ebp - 0x228], 0x208
call fcn.00438b20
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x474d4a
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0x5617dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.004106a0
test esi, esi
pop esi
jne 0x474db0
lea eax, [ebp - 0x20c]
push str.Service_Pack_2
push eax
call fcn.0050dd12
add esp, 8
test eax, eax
js 0x474db0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3b00
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5463b6
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4a3bed
test edi, edi
je 0x4a3c19
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4a3c45
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4a3c71
cmp byte [ecx + 0x10], 0
je 0x4a3c9d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4a3cc9
jmp 0x4a3bc5
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xc0]
push eax
call fcn.004e32e7
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xcc]
push eax
call fcn.004e32e7
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xd8]
push eax
call fcn.004e32e7
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xe4]
push eax
call fcn.004e32e7
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xf0]
push eax
call fcn.004e32e7
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004a5030
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004a2b10
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004a2880
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004a4710
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004a2880
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004a2880
add esp, 8
mov ecx, eax
push 0x4a5050
call fcn.004a36b0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004a33f0
push 0x568f48
push eax
call fcn.004a2880
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004a5700
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047d001
push eax
lea ecx, [ebp - 0xfc]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xfc]
push eax
call fcn.004e32e7
push 0
push 0
call fcn.004e32e7
int3
Function at 0x4a4120
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546436
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x59bc84]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x4a4209
test esi, esi
je 0x4a4235
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4a4261
cmp byte [ecx + 0x10], 0
je 0x4a428d
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4a42b9
jmp 0x4a41e1
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049dec8
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xc0]
push eax
call fcn.004e32e7
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xcc]
push eax
call fcn.004e32e7
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xd8]
push eax
call fcn.004e32e7
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xe4]
push eax
call fcn.004e32e7
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004a5030
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004a2b10
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004a2880
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004a4710
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004a2880
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004a2880
add esp, 8
mov ecx, eax
push 0x4a5050
call fcn.004a36b0
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004a33f0
push 0x568f48
push eax
call fcn.004a2880
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004a5700
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0047d001
push eax
lea ecx, [ebp - 0xf0]
call fcn.004a2e70
push 0x58ea20
lea eax, [ebp - 0xf0]
push eax
call fcn.004e32e7
push 0
push 0
call fcn.004e32e7
int3