joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004691e0
mov eax, dword [0x5304cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475d80
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.00475d80
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x501c1c
push eax
lea eax, [ebp - 0x1804]
push eax
call edi
lea eax, [ebp - 0x1804]
push eax
call fcn.00408fe0
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501cb8
push eax
lea eax, [ebp - 0x2004]
push eax
call edi
lea eax, [ebp - 0x2004]
push eax
call fcn.00408fe0
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501c88
push eax
lea eax, [ebp - 0x2804]
push eax
call edi
lea eax, [ebp - 0x2804]
push eax
call fcn.00408fe0
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00475d80
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 - 0x3004]
push 0
push eax
call fcn.00475d80
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x501c1c
push eax
lea eax, [ebp - 0x3004]
push eax
call edi
lea eax, [ebp - 0x3004]
push eax
call fcn.00408fe0
push 0x800
lea eax, [ebp - 0x3804]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x1004]
push 0x501cb8
push eax
lea eax, [ebp - 0x3804]
push eax
call edi
lea eax, [ebp - 0x3804]
push eax
call fcn.00408fe0
push 0x800
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x1004]
push 0x501c88
push eax
lea eax, [ebp - 0x4004]
push eax
call edi
lea eax, [ebp - 0x4004]
push eax
call fcn.00408fe0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.00468d78
mov esp, ebp
pop ebp
ret
Function at 0x44cb80
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004691e0
mov eax, dword [0x5304cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00475d80
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.00475d80
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
add esp, 0xc
push 0x4fba74
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00409050
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501c30
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00409050
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501cf4
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.00475d80
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.00475d80
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x4fba74
push eax
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
call fcn.00409050
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501c30
push eax
lea eax, [ebp - 0x1004]
push eax
call ebx
lea eax, [ebp - 0x1004]
push eax
call fcn.00409050
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00475d80
add esp, 0x10
lea eax, [ebp - 0x804]
push 0x501cf4
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.00468d78
mov esp, ebp
pop ebp
ret

Function at 0x44cd50
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x5304cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x44ddf4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00475d80
mov eax, dword [0x52f3a4]
add esp, 0xc
test eax, eax
js 0x44dcbd
xor ecx, ecx
test eax, eax
setne cl
jmp 0x44dd78
push 0x118
xorps xmm0, xmm0
mov dword [0x52f3a4], 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.00475d80
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 0x44dd2e
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44dd76
push str.GetNativeSystemInfo
push 0x4f8928
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44dd76
lea ecx, [ebp - 0x34c]
push ecx
call eax
mov ax, word [ebp - 0x34c]
cmp ax, 9
je 0x44dd65
cmp ax, 6
jne 0x44dd76
mov dword [0x52f3a4], 1
mov ecx, 1
jmp 0x44dd78
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 0x44ddf4
lea eax, [ebp - 0x20c]
push eax
call fcn.00451c10
add esp, 4
test eax, eax
je 0x44ddf4
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push 0
push ecx
push 1
push eax
push eax
call fcn.004506c0
add esp, 0x18
test eax, eax
jns 0x44de08
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.00436400
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d78
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d78
mov esp, ebp
pop ebp
ret 4
Function at 0x450870
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 0x450891
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 0x4508bb
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 0x4509e0
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efa4c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5304cc]
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 0x450a46
mov ebx, 0x80004003
jmp 0x450bed
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 0x450a6d
mov ebx, 0x80004005
jmp 0x450be6
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], eax
test esi, esi
jne 0x450a99
mov dword [ebp - 0x114], esi
jmp 0x450aee
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x450aa0
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.00405610
lea eax, [esi + esi]
push eax
push dword [ebp - 0x118]
push eax
push dword [ebp - 0x114]
call fcn.00450d60
push eax
call fcn.00407d80
mov esi, dword [ebp - 0x114]
add esp, 0x24
mov byte [ebp - 4], 2
call fcn.00408990
mov ecx, eax
test ecx, ecx
je 0x450c0b
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.00407e20
test al, al
jne 0x450b4c
test esi, esi
jne 0x450b2b
xor ecx, ecx
jmp 0x450b3f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450b30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x118]
call fcn.00407830
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x450b69
push eax
call fcn.004914b3
add esp, 4
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
je 0x450b8b
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x120], eax
jmp 0x450b8d
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 0x450bb2
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 0x450bda
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.00468d78
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004060d0
int3
Function at 0x450c20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5304cc]
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 0x450c5f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d78
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 0x450c7a
mov edi, 0x80004005
jmp 0x450cb1
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.00468d78
mov esp, ebp
pop ebp
ret
Function at 0x451c10
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x524850
push 0x477910
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x5304cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x451d83
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451d83
push 0x118
push 0
lea eax, [ebp - 0x544]
push eax
call fcn.00475d80
add esp, 0xc
mov dword [ebp - 0x548], 0x11c
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x544], 6
jae 0x451ca3
mov eax, 1
jmp 0x451d85
mov dword [ebp - 0x588], 0x10
mov dword [ebp - 0x584], esi
mov dword [ebp - 0x580], 0
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x42c], 0xaac56b
mov dword [ebp - 0x428], 0x11d0cd44
mov dword [ebp - 0x424], 0xc000c28c
mov dword [ebp - 0x420], 0xee95c24f
xor eax, eax
mov dword [ebp - 0x578], 0x30
mov dword [ebp - 0x574], eax
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x56c], 2
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], 1
mov dword [ebp - 0x55c], 1
mov dword [ebp - 0x558], eax
mov dword [ebp - 0x554], eax
or eax, 0x1080
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], 0
lea eax, [ebp - 0x588]
mov dword [ebp - 0x560], eax
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
je 0x451da1
cmp eax, 0x800b0101
je 0x451da1
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00468d78
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x558]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test eax, eax
je 0x451e57
cmp dword [eax + 0x40], 0
jbe 0x451e57
mov eax, dword [eax + 0x44]
test eax, eax
je 0x451e57
mov eax, dword [eax + 0x28]
test eax, eax
je 0x451e57
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x451e57
cmp dword [eax + 0xc], 0
jbe 0x451e57
mov eax, dword [ecx]
test eax, eax
je 0x451e57
cmp dword [eax + 0xc], 0
jbe 0x451e57
mov eax, dword [eax + 0x10]
test eax, eax
je 0x451e57
mov eax, dword [eax]
test eax, eax
je 0x451e57
mov esi, dword [eax + 4]
test esi, esi
je 0x451e57
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.00475d80
add esp, 0xc
push 0x200
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
push 4
push esi
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
dec eax
cmp eax, 0x1fe
ja 0x451e57
lea eax, [ebp - 0x41c]
push eax
call fcn.00451ee0
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0x58c], edi
mov esi, dword [ebp - 0x558]
push 0x30
push 0
lea eax, [ebp - 0x578]
push eax
call fcn.00475d80
add esp, 0xc
mov dword [ebp - 0x578], 0x30
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x55c], 2
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
call sub.WINTRUST.dll_WinVerifyTrust
mov dword [ebp - 4], 0xfffffffe
mov eax, edi
jmp 0x451d85
Function at 0x453b00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5304cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453b51
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d78
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x453c2f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 0
push eax
push esi
call ebx
test eax, eax
je 0x453c2f
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x453c2f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x453c2f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x453c2f
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x453c49
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
push esi
call edi
cmp eax, 0xffffffff
je 0x453c2f
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x453c2f
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x453c2f
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x453c5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d78
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x453c2f
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x453c2f
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x453c2f
cmp ecx, eax
jb 0x453c2f
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x453c2f
lea eax, [ebp - 0x259]
mov byte [ebp - 0x259], 0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, eax
push eax
push edi
call fcn.00452590
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x453c2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00468d78
mov esp, ebp
pop ebp
ret
Function at 0x453ff0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x150
push ebx
push esi
xor esi, esi
add edx, 0x1f
push edi
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x150], ecx
inc esi
cmp esi, 0x10
jl 0x454004
lea eax, [ebp - 0x148]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x454040
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x5a827999
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
mov edi, dword [ebp - 0xc]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x454076
mov dword [ebp - 4], 0x14
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 4], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x4540c2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0xc]
add ecx, dword [ebp + eax*4 - 0x150]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x454105
mov dword [ebp - 4], 0x3c
nop dword [eax]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 8], ebx
add eax, dword [ebp + ecx*4 - 0x150]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x50
jl 0x454150
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, edx
add dword [ecx + 4], edi
add dword [ecx + 8], esi
add dword [ecx + 0xc], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x10], eax
xor eax, eax
pop edi
pop esi
mov word [ecx + 0x1c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4541b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4541c1
mov eax, 1
pop ebp
ret
mov dword [eax + 0x14], 0
xor ecx, ecx
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret
Function at 0x455ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5304cc]
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 0x455b6b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x455b2d
cmp eax, 2
jne 0x455b49
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x455b65
test ecx, ecx
je 0x455b60
test cl, 1
jne 0x455b49
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x455b65
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468d78
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.00468d78
mov esp, ebp
pop ebp
ret 0xc

Function at 0x457240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5304cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00455f80
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4572d3
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x457293
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 0x4572b1
call fcn.004165c0
mov esi, eax
test esi, esi
js 0x4572cc
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4572ca
call fcn.004165c0
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4572d5
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4572d5
xor esi, esi
test edi, edi
je 0x4572e0
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.00468d78
mov esp, ebp
pop ebp
ret