joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a2c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a0c
call fcn.00464640
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004711f0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push 0x4f303c
push dword [esi]
push eax
call edi
cmp dword [esi + 8], 0
je 0x44a394
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x120c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x120c]
push 0x4fbaec
push eax
lea eax, [ebp - 0xa0c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4f590c
call fcn.0044a5c0
test eax, eax
je 0x44a534
cmp dword [esi + 0xc], 0
je 0x44a453
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f590c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44a3f9
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x4fbaec
push eax
lea eax, [ebp - 0x120c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0x120c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4f590c
call fcn.0044a5c0
test eax, eax
je 0x44a534
cmp dword [esi + 0x10], 0
je 0x44a546
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4f590c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44a4b8
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1a0c]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x4fbb00
push eax
lea eax, [ebp - 0x1a0c]
push eax
call edi
push 0x208
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0xc14]
push str.Uninstall.exe
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0xc14]
mov ecx, esi
push eax
lea eax, [ebp - 0x1a0c]
push eax
push 0
lea eax, [ebp - 0xc14]
push eax
push 0x4fbb18
call fcn.0044a5c0
test eax, eax
jne 0x44a546
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004641d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004641d8
mov esp, ebp
pop ebp
ret
Function at 0x44a920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.00464640
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004711f0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x4fba94
push eax
lea eax, [ebp - 0x1804]
push eax
call edi
lea eax, [ebp - 0x1804]
push eax
call fcn.004089d0
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4fbaec
push eax
lea eax, [ebp - 0x2004]
push eax
call edi
lea eax, [ebp - 0x2004]
push eax
call fcn.004089d0
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x1004]
push 1
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x4fba94
push eax
lea eax, [ebp - 0x2804]
push eax
call edi
lea eax, [ebp - 0x2804]
push eax
call fcn.004089d0
push 0x800
lea eax, [ebp - 0x3004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x1004]
push 0x4fbaec
push eax
lea eax, [ebp - 0x3004]
push eax
call edi
lea eax, [ebp - 0x3004]
push eax
call fcn.004089d0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.004641d8
mov esp, ebp
pop ebp
ret
Function at 0x44aa80
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00464640
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004711f0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x4f590c
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00408a40
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4fbaa8
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00408a40
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4fbb28
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004711f0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x4f590c
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00408a40
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4fbaa8
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00408a40
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.004711f0
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x4fbb28
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004641d8
mov esp, ebp
pop ebp
ret

Function at 0x44ac50
Capabilities:
Set registry value

Disassembly:
cmp dword [ecx + 4], 0
jne fcn.0044b240
jmp fcn.0044ac60
Function at 0x44bb70
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x44bcf4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004711f0
mov eax, dword [0x528384]
add esp, 0xc
test eax, eax
js 0x44bbbd
xor ecx, ecx
test eax, eax
setne cl
jmp 0x44bc78
push 0x118
xorps xmm0, xmm0
mov dword [0x528384], 0
lea eax, [ebp - 0x324]
mov dword [ebp - 0x32c], 0
push 0
push eax
movups xmmword [ebp - 0x34c], xmm0
movups xmmword [ebp - 0x33c], xmm0
call fcn.004711f0
add esp, 0xc
mov dword [ebp - 0x328], 0x11c
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x44bc2e
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44bc76
push str.GetNativeSystemInfo
push 0x4f2918
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44bc76
lea ecx, [ebp - 0x34c]
push ecx
call eax
mov ax, word [ebp - 0x34c]
cmp ax, 9
je 0x44bc65
cmp ax, 6
jne 0x44bc76
mov dword [0x528384], 1
mov ecx, 1
jmp 0x44bc78
xor ecx, ecx
test ecx, ecx
mov edx, str.wallpaperhelperHardwareProtect.sys
mov eax, str.wallpaperhelperHardwareProtect_x64.sys
cmove eax, edx
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44bcf4
lea eax, [ebp - 0x20c]
push eax
call fcn.0044fab0
add esp, 4
test eax, eax
je 0x44bcf4
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push 0
push ecx
push 1
push eax
push eax
call fcn.0044e5c0
add esp, 0x18
test eax, eax
jns 0x44bd08
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InstallDrv_error:_d__m_strServiceName_s__path_s
call fcn.004343b0
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004641d8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.004641d8
mov esp, ebp
pop ebp
ret 4
Function at 0x44e770
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x44e791
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x44e7bb
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x44e8e0
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ead0c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5294ac]
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x44e946
mov ebx, 0x80004003
jmp 0x44eaed
push 0xf01ff
push ebx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x124], ebx
test ebx, ebx
jne 0x44e96d
mov ebx, 0x80004005
jmp 0x44eae6
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], eax
test esi, esi
jne 0x44e999
mov dword [ebp - 0x114], esi
jmp 0x44e9ee
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44e9a0
sub esi, ecx
lea eax, [ebp - 0x110]
push 0x80
push eax
sar esi, 1
lea eax, [ebp - 0x114]
inc esi
push esi
push eax
call fcn.00405000
lea eax, [esi + esi]
push eax
push dword [ebp - 0x118]
push eax
push dword [ebp - 0x114]
call fcn.0044ec60
push eax
call fcn.00407770
mov esi, dword [ebp - 0x114]
add esp, 0x24
mov byte [ebp - 4], 2
call fcn.00408380
mov ecx, eax
test ecx, ecx
je 0x44eb0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.00407810
test al, al
jne 0x44ea4c
test esi, esi
jne 0x44ea2b
xor ecx, ecx
jmp 0x44ea3f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ea30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x118]
call fcn.00407220
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x44ea69
push eax
call fcn.0048c923
add esp, 4
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
je 0x44ea8b
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x120], eax
jmp 0x44ea8d
xor eax, eax
push eax
push dword [ebp - 0x11c]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x44eab2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ebx, 0x80004005
cmp dword [ebp - 0x118], eax
cmovne ebx, eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44eada
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
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.004641d8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ac0
int3
Function at 0x44eb20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x44eb5f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004641d8
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x44eb7a
mov edi, 0x80004005
jmp 0x44ebb1
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004641d8
mov esp, ebp
pop ebp
ret
Function at 0x4513b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45143b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x4513fd
cmp eax, 2
jne 0x451419
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x451435
test ecx, ecx
je 0x451430
test cl, 1
jne 0x451419
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x451435
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004641d8
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004641d8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x452ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5294ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
movq qword [ebp - 0xc], xmm0
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004519b0
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x452d3b
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x452cfb
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452d19
call fcn.00415fb0
mov esi, eax
test esi, esi
js 0x452d34
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x452d32
call fcn.00415fb0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x452d3d
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x452d3d
xor esi, esi
test edi, edi
je 0x452d48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004641d8
mov esp, ebp
pop ebp
ret
Function at 0x454ec0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb46f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5294ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x454f15
mov dword [esi], 0x4ff4fc
mov dword [esi + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
lea edi, [esi + 4]
push 0
push edi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00459830
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042eba0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x454f91
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.004c2eae
add esp, 4
mov dword [ebx + 4], eax
jmp 0x454f93
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [edi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4568d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb776
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5294ac]
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 0x4569bd
test edi, edi
je 0x4569e9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x456a15
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x456a41
cmp byte [ecx + 0x10], 0
je 0x456a6d
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 0x456a99
jmp 0x456995
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.004641d8
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.00455220
push 0x51ede0
lea eax, [ebp - 0xc0]
push eax
call fcn.00471b0e
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.00455220
push 0x51ede0
lea eax, [ebp - 0xcc]
push eax
call fcn.00471b0e
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.00455220
push 0x51ede0
lea eax, [ebp - 0xd8]
push eax
call fcn.00471b0e
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.00455220
push 0x51ede0
lea eax, [ebp - 0xe4]
push eax
call fcn.00471b0e
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.00455220
push 0x51ede0
lea eax, [ebp - 0xf0]
push eax
call fcn.00471b0e
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.00458c50
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00454ec0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.00454430
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004574e0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00454430
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.00454430
add esp, 8
mov ecx, eax
push 0x459800
call fcn.004561b0
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.00455e80
push 0x4ff5a4
push eax
call fcn.00454430
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0045a170
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00458db0
push eax
lea ecx, [ebp - 0xfc]
call fcn.00455220
push 0x51ede0
lea eax, [ebp - 0xfc]
push eax
call fcn.00471b0e
push 0
push 0
call fcn.00471b0e
int3