joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fe40
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x533524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x44ffc4
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00478070
mov eax, dword [0x5323fc]
add esp, 0xc
test eax, eax
js 0x44fe8d
xor ecx, ecx
test eax, eax
setne cl
jmp 0x44ff48
push 0x118
xorps xmm0, xmm0
mov dword [0x5323fc], 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.00478070
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 0x44fefe
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44ff46
push str.GetNativeSystemInfo
push 0x4fa928
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44ff46
lea ecx, [ebp - 0x34c]
push ecx
call eax
mov ax, word [ebp - 0x34c]
cmp ax, 9
je 0x44ff35
cmp ax, 6
jne 0x44ff46
mov dword [0x5323fc], 1
mov ecx, 1
jmp 0x44ff48
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 0x44ffc4
lea eax, [ebp - 0x20c]
push eax
call fcn.00453de0
add esp, 4
test eax, eax
je 0x44ffc4
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push 0
push ecx
push 1
push eax
push eax
call fcn.00452890
add esp, 0x18
test eax, eax
jns 0x44ffd8
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.004380b0
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b078
mov esp, ebp
pop ebp
ret 4
Function at 0x452a40
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 0x452a61
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 0x452a8b
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 0x452bb0
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1f7c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x533524]
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 0x452c16
mov ebx, 0x80004003
jmp 0x452dbd
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 0x452c3d
mov ebx, 0x80004005
jmp 0x452db6
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x114], eax
test esi, esi
jne 0x452c69
mov dword [ebp - 0x114], esi
jmp 0x452cbe
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x452c70
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.00405700
lea eax, [esi + esi]
push eax
push dword [ebp - 0x118]
push eax
push dword [ebp - 0x114]
call fcn.00452f30
push eax
call fcn.00407e70
mov esi, dword [ebp - 0x114]
add esp, 0x24
mov byte [ebp - 4], 2
call fcn.00408a80
mov ecx, eax
test ecx, ecx
je 0x452ddb
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.00407f10
test al, al
jne 0x452d1c
test esi, esi
jne 0x452cfb
xor ecx, ecx
jmp 0x452d0f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452d00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x118]
call fcn.00407920
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x452d39
push eax
call fcn.00493793
add esp, 4
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
je 0x452d5b
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x120], eax
jmp 0x452d5d
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 0x452d82
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 0x452daa
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.0046b078
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004061c0
int3
Function at 0x452df0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x533524]
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 0x452e2f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
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 0x452e4a
mov edi, 0x80004005
jmp 0x452e81
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.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x453de0
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526f68
push 0x479b20
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x533524]
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 0x453f53
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x453f53
push 0x118
push 0
lea eax, [ebp - 0x544]
push eax
call fcn.00478070
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 0x453e73
mov eax, 1
jmp 0x453f55
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 0x453f71
cmp eax, 0x800b0101
je 0x453f71
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.0046b078
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x558]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test eax, eax
je 0x454027
cmp dword [eax + 0x40], 0
jbe 0x454027
mov eax, dword [eax + 0x44]
test eax, eax
je 0x454027
mov eax, dword [eax + 0x28]
test eax, eax
je 0x454027
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x454027
cmp dword [eax + 0xc], 0
jbe 0x454027
mov eax, dword [ecx]
test eax, eax
je 0x454027
cmp dword [eax + 0xc], 0
jbe 0x454027
mov eax, dword [eax + 0x10]
test eax, eax
je 0x454027
mov eax, dword [eax]
test eax, eax
je 0x454027
mov esi, dword [eax + 4]
test esi, esi
je 0x454027
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.00478070
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 0x454027
lea eax, [ebp - 0x41c]
push eax
call fcn.004540b0
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.00478070
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 0x453f55
Function at 0x455d00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x533524]
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 0x455d51
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
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 0x455e2f
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 0x455e2f
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x455e2f
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 0x455e2f
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x455e2f
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x455e49
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 0x455e2f
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x455e2f
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x455e2f
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x455e5d
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.0046b078
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x455e2f
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x455e2f
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x455e2f
cmp ecx, eax
jb 0x455e2f
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x455e2f
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.00454790
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 0x455e2f
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.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x4561f0
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 0x456204
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 0x456240
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 0x456276
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 0x4562c2
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 0x456305
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 0x456350
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 0x4563b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4563c1
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 0x457dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x533524]
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 0x457e5b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x457e1d
cmp eax, 2
jne 0x457e39
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x457e55
test ecx, ecx
je 0x457e50
test cl, 1
jne 0x457e39
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x457e55
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b078
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.0046b078
mov esp, ebp
pop ebp
ret 0xc

Function at 0x459530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x533524]
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.00458270
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4595c3
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x459583
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 0x4595a1
call fcn.00416d80
mov esi, eax
test esi, esi
js 0x4595bc
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4595ba
call fcn.00416d80
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4595c5
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4595c5
xor esi, esi
test edi, edi
je 0x4595d0
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.0046b078
mov esp, ebp
pop ebp
ret
Function at 0x459bc0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2738
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x533524]
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 + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b0c1
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.00478070
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push SysReAllocString
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c64
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0045a2b0
push 2
push edi
mov dword [ebp - 4], 0
call fcn.0046b0b3
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x459d66
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x459d34
cmp word [eax], 0xa
jne 0x459d2c
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x459db4
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00479400
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x459ca6
add eax, 2
jmp 0x459cb0
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x459d41
xor esi, esi
jmp 0x459d66
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.00493a88
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x459d96
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x459d8c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459db9
push ebx
push edi
call fcn.0046b0b3
add esp, 8
mov eax, esi
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.0046b078
mov esp, ebp
pop ebp
ret
call fcn.0041add0
call fcn.00493393
int3