joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450194
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x45019c
push ecx
push ebx
push esi
push edi
mov esi, edx
xor eax, eax
push ebp
push 0x450291
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shr eax, cl
test eax, edi
je 0x450250
lea eax, [ebp - 0xc]
lea edx, [ebx + 0x41]
call sub.rtl160.bpl__System__UStrFromWChar_qqrr20System_UnicodeStringb
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x4502ac
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 4]
call sub.AxComponentsRTL.bpl__Auslogics_System_Fileutils_FileUtils_GetDriveType_qqrx20System_UnicodeString
cmp eax, 3
jne 0x450250
mov eax, ebx
call sub.rtl160.bpl__System_Sysutils_DiskFree_qqruc
push edx
push eax
lea ecx, [ebp - 8]
mov edx, 2
mov al, 3
call sub.AxComponentsRTL.bpl__Auslogics_System_Strutils_StrUtils_BytesToStr_qqrj38Auslogics_System_Strutils_TConvertTypei
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4502c0
call sub.rtl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x10]
mov eax, esi
call sub.rtl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
inc ebx
cmp ebx, 0x1b
jne 0x4501cf
lea edx, [ebp - 0x24]
mov eax, dword [esi]
call sub.rtl160.bpl__System_Sysutils_TrimRight_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x24]
mov eax, esi
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450298
lea eax, [ebp - 0x24]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x46c5d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46c6f8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0046c4bc
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x410568]
call sub.rtl160.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call sub.rtl160.bpl__System_Move_qqrpxvpvi
add ebx, 0x1c
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
mov dword [ebp - 0xc], eax
mov eax, dword [0x4dcc6c]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.0045ba20
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call sub.rtl160.bpl__System__FillChar_qqrpvic
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call sub.rtl160.bpl__System__DynArrayLength_qqrpxv
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.0045b9fc
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.0045b7b4
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0045ba18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c6ff
lea eax, [ebp - 4]
mov edx, dword [0x410568]
call sub.rtl160.bpl__System__DynArrayClear_qqrrpvpv
ret

Function at 0x486954
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
mov edx, 0x10
call sub.rtl160.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x486979
sub eax, 4
mov eax, dword [eax]
mov dword [esp], eax
push esp
mov eax, dword [ebx]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x486998
mov eax, ebx
mov edx, dword [esp]
call sub.rtl160.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
pop ecx
pop edx
pop ebx
ret
Function at 0x4ae234
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4ae247
add esp, 0xfffffff0
call sub.rtl160.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ae2c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call sub.rtl160.bpl__System_TObject__bctr_qqrv
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x18], 0
lea edx, [ebp - 4]
mov eax, esi
call fcn.004ae798
mov edx, dword [ebp - 4]
lea eax, [esi + 0xc]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
mov edx, 0x4ae2f0
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, esi
mov dl, 1
mov eax, dword [0x4ad840]
call fcn.004aed20
mov dword [esi + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae2c7
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret

Function at 0x4ae51c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor edx, edx
push ebp
push 0x4ae5c7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004aed14
mov ebx, eax
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0xc]
mov eax, dword [ebp + 8]
call sub.rtl160.bpl__System_Sysutils_ExtractFileName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 8]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
test edi, edi
je 0x4ae589
mov edx, edi
mov eax, ebx
call fcn.004afae0
jmp 0x4ae596
lea eax, [ebx + 0x14]
mov edx, 0x4ae5e8
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
test esi, esi
je 0x4ae5a4
lea eax, [ebx + 0x10]
mov edx, esi
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebx + 0x18]
mov edx, 0x4ae60c
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae5ce
lea eax, [ebp - 0xc]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x10029e8
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003338
call fcn.01002b94
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004420
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10027fd
cmp eax, esi
jne 0x10027f0
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002800
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10027d7
xor esi, esi
inc esi
mov eax, dword [0x100441c]
cmp eax, esi
jne 0x1002813
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100284e
mov eax, dword [0x100441c]
test eax, eax
jne 0x1002848
mov dword [0x100441c], esi
push 0x1001114
push 0x1001108
call fcn.01002754
pop ecx
pop ecx
test eax, eax
je 0x100284e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002918
mov dword [0x10040d4], esi
mov eax, dword [0x100441c]
cmp eax, esi
jne 0x1002872
push 0x1001104
push 0x10010fc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100441c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100287f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004424], ebx
je 0x10028a0
push 0x1004424
call fcn.01002b09
pop ecx
test eax, eax
je 0x10028a0
push ebx
push 2
push ebx
call dword [0x1004424]
push dword [0x10040bc]
push dword [0x10040c0]
push dword [0x10040b8]
call fcn.010023b3
add esp, 0xc
mov dword [0x10040d0], eax
cmp dword [0x10040c4], ebx
jne 0x10028fe
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10040d4], ebx
jne 0x100290c
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10040d0]
call fcn.01002bd9
ret
call fcn.01002ce1
jmp 0x10027b5
Function at 0x10001220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001259
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000125d
cmp edx, esi
jne 0x10001242
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x1000127d
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001281
cmp edx, esi
jne 0x10001266
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x100012a1
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100012a5
cmp edx, esi
jne 0x1000128a
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100012b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push esi
call fcn.10001220
add esp, 4
cmp dword [ebp + 0xc], 1
pop esi
jne 0x100012e3
push 0
push 0
push 0
push 0x10001170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x4029b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408ac8
cmp edx, dword [eax]
je 0x4029db
add eax, 8
inc ecx
cmp eax, 0x408b58
jl 0x4029cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408ac8]
jne 0x402b09
mov eax, dword [0x40b430]
cmp eax, 1
je 0x402ae3
test eax, eax
jne 0x402a0c
cmp dword [0x408774], 1
je 0x402ae3
cmp edx, 0xfc
je 0x402b09
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402a43
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403c40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403e70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402a86
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403e70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073f8
push edi
call fcn.00405830
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403c40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403c50
lea eax, [ebp - 0xa0]
push 0x4073d8
push eax
call fcn.00403c50
push dword [esi + 0x408acc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403c50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004057a4
add esp, 0x2c
pop edi
jmp 0x402b09
lea eax, [ebp + 8]
lea esi, [esi + 0x408acc]
push 0
push eax
push dword [esi]
call fcn.00403e70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401a20
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
mov byte [ebp - 1], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401a60
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a69
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x401a7d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
call edi
test ebx, ebx
je 0x401a60
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 8]
mov ebx, eax
call edi
test ebx, ebx
je 0x401a60
cmp byte [ebp - 1], 0
mov dl, 0xca
je 0x401aeb
mov edi, ebx
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, al
xor cl, dl
mov byte [edi - 1], cl
lea edx, [eax + 1]
sub esi, 1
jne 0x401ac7
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
nop dword [eax]
xor byte [eax], dl
lea eax, [eax + 1]
mov dl, byte [eax - 1]
inc dl
sub esi, 1
jne 0x401af0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4064b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x406c30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4b701c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push ebx
push esi
push edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push esi
push eax
push 0
push edx
push dword [ecx]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x406d53
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
je 0x406cb0
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x406d53
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x28]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x100
push ecx
lea ecx, [esp + 0x44]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x406d29
nop dword [eax + eax]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00406c30
mov esi, eax
test esi, esi
jne 0x406d53
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x406cf0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406d3c
push eax
call ebx
mov dword [esp + 0x10], 0
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
call fcn.00406dc0
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406d5e
push eax
call ebx
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453c11
mov esp, ebp
pop ebp
ret 4
Function at 0x407b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b701c]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x407c0c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x407c0c
call fcn.00405df0
mov edi, eax
jmp 0x407d2b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x407c2f
call fcn.00405df0
jmp 0x407d1e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x407c4d
call fcn.00405df0
jmp 0x407d1e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x407c6e
mov edi, 0x8007000e
jmp 0x407d20
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x407d64
jb 0x407c8c
cmp eax, 0xffffffff
ja 0x407d64
cmp eax, 0x400
jbe 0x407ca1
push eax
lea ecx, [ebp - 0x418]
call fcn.00405dc0
jmp 0x407cc7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x407cc7
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x407cde
mov edi, 0x8007000e
jmp 0x407d20
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x407cfe
call fcn.00405df0
jmp 0x407d1e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004079c0
mov edi, eax
test esi, esi
je 0x407d2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407d44
lea ecx, [ebp - 0x418]
call fcn.00405da0
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 - 0x14]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00408660
int3

Function at 0x409e00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x409e32
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push dword [0x4b8f7c]
push dword [0x4b8fc4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esi + 0xfc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret
Function at 0x40c8d0
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x23c
mov eax, dword [0x4b701c]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push 0x208
mov esi, ecx
lea eax, [esp + 0x34]
push 0
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x18], esi
call fcn.00455ce0
add esp, 0xc
mov dword [esp + 0xc], 0x208
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push str.PlayerPath
push str.SOFTWAREMacromediaFlashPlayerPepper
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40cab4
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c950
sub ecx, edx
sar ecx, 1
push ecx
cmp word [esp + 0x34], ax
je 0x40ca7a
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.00408440
push 0
push 0x1a
lea eax, [esp + 0x38]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ca3e
push str.PepperFlashpepflashplayer.dll
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x30]
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push ecx
push eax
call fcn.00462f58
add esp, 8
test eax, eax
jne 0x40ca3e
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x40cacd
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cae2
push edx
push ecx
call fcn.00453c42
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esp + 0x10]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
call fcn.00408440
mov eax, esi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
call fcn.004584af
int3
Function at 0x40caf0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00455ce0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x40cb49
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 4
push eax
push 0
push str.EnableLUA
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x11c], eax
setne al
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret