joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Set registry value

Disassembly:
call fcn.00401126
call fcn.00401314
call fcn.00401369
call fcn.00401196
call fcn.00401455
call fcn.0040121d
call fcn.00401270
call fcn.004015e2
xor eax, eax
mov dword [0x40240e], eax
push 0
push 0
push 0
push 0x402024
call sub.USER32.DLL_GetMessageA
or eax, eax
je 0x401085
push 0x402024
push dword [0x40229a]
push dword [0x40228a]
call sub.USER32.DLL_TranslateAcceleratorA
push 0x402024
call sub.USER32.DLL_TranslateMessage
push 0x402024
call sub.USER32.DLL_DispatchMessageA
mov eax, dword [0x40240e]
or eax, eax
jne 0x401019
mov eax, dword [0x402406]
or eax, eax
jne 0x401106
jmp 0x40102f
push dword [0x402292]
call sub.USER32.DLL_DestroyMenu
call fcn.004016d8
push dword [0x4023fa]
call sub.KERNEL32.DLL_GlobalFree
push dword [0x4022b9]
call sub.KERNEL32.DLL_GlobalFree
push dword [0x4022c1]
call sub.KERNEL32.DLL_GlobalFree
push 0x4022a6
push str.SoftwareOldmanZX_Screen_Viewer1.0
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
push 0x1c
push 0x40241f
push 3
push 0
push str.Sets
push dword [0x4022a6]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [0x4022a6]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [0x40228a]
call sub.USER32.DLL_DestroyWindow
push dword [0x40202c]
call sub.KERNEL32.DLL_ExitProcess
push 1
push 0
push 0
push eax
push 0
push dword [0x40228a]
call sub.SHELL32.DLL_ShellExecuteA
xor eax, eax
mov dword [0x402406], eax
jmp 0x40102f

Function at 0x401126
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x108
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [0x4022b9], eax
mov edi, eax
add eax, 8
mov dword [0x4022bd], eax
mov esi, str._ZXSV____none_
mov ecx, 0xf
cld
rep movsb byte es:[edi], byte [esi]
push 0x4022a6
push str.SoftwareOldmanZX_Screen_Viewer1.0
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
mov dword [0x4022a2], 0x1c
push 0x4022a2
push 0x40241f
push 0
push 0
push str.Sets
push dword [0x4022a6]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [0x4022a6]
call sub.ADVAPI32.DLL_RegCloseKey
ret

Function at 0x40139a
Capabilities:
Get file size

Disassembly:
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push ebx
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x4022a2], eax
inc eax
je 0x401414
dec eax
push 0
push eax
call sub.KERNEL32.DLL_GetFileSize
xor edi, edi
cmp eax, 0x1b00
je 0x401401
cmp eax, 0x1b11
jne 0x401409
mov eax, dword [0x4022a2]
mov ecx, 0x11
call fcn.00401417
mov esi, dword [0x4023fe]
je 0x401409
mov eax, dword [esi + 0xb]
push eax
push esi
call sub.KERNEL32.DLL_GlobalFree
pop eax
cmp eax, 0x1b001b00
mov edi, 0x11
jne 0x401409
push dword [0x4022a2]
call sub.KERNEL32.DLL_CloseHandle
Function at 0x401455
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x402286], eax
push 0
push str.zxsv32
call sub.USER32.DLL_FindWindowA
mov dword [0x402040], 0x400b
mov dword [0x402044], 0x401732
mov dword [0x402048], 0
mov dword [0x40204c], 0
mov eax, dword [0x402286]
mov dword [0x402050], eax
push 0x7f00
push 0
call sub.USER32.DLL_LoadCursorA
mov dword [0x402058], eax
push 0x65
push dword [0x402286]
call sub.USER32.DLL_LoadMenuA
mov dword [0x402292], eax
push 0x65
push dword [0x402286]
call sub.USER32.DLL_LoadAcceleratorsA
mov dword [0x40229a], eax
mov edi, dword [0x402292]
mov esi, 0
push 0x402339
push 0x9c51
push esi
push 0x9c51
push edi
call sub.USER32.DLL_ModifyMenuA
push 0x402354
push 0x9c53
push esi
push 0x9c53
push edi
call sub.USER32.DLL_ModifyMenuA
push str.2:5020_689.31
push 0x9c54
push esi
push 0x9c54
push edi
call sub.USER32.DLL_ModifyMenuA
push str.500:095_100.1
push 0x9c56
push esi
push 0x9c56
push edi
call sub.USER32.DLL_ModifyMenuA
push str.__Writen_in_ASM__
push 0x9c57
push esi
push 0x9c57
push edi
call sub.USER32.DLL_ModifyMenuA
mov dword [0x40205c], 0x10
mov dword [0x402060], 0
mov dword [0x402064], 0x40232b
push 0x402040
call sub.USER32.DLL_RegisterClassA
mov eax, dword [0x40241f]
mov ebx, dword [0x402423]
mov ecx, dword [0x402433]
mov edx, dword [0x402437]
add ecx, 6
add edx, 6
push 0
push dword [0x402286]
push 0
push 0
push edx
push ecx
push ebx
push eax
push 0x90000000
push dword [0x4022b9]
push str.zxsv32
push 0x40011
call sub.USER32.DLL_CreateWindowExA
mov dword [0x40228a], eax
push 1
push eax
call sub.SHELL32.DLL_DragAcceptFiles
push 1
push dword [0x40228a]
call sub.USER32.DLL_ShowWindow
push dword [0x40228a]
call sub.USER32.DLL_UpdateWindow
ret
Function at 0x409541
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40954b
repz ret
jmp fcn.0040df2c

Function at 0x41215c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b5cf
and dword [ebp - 0x14], 0
cmp dword [0x437dcc], 0
mov dword [ebp - 0x18], eax
jne 0x41220f
push 0x403784
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4122b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403778
push ebx
call edi
test eax, eax
je 0x4122b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403768
push ebx
mov dword [0x437dcc], eax
call edi
push eax
call esi
push 0x403754
push ebx
mov dword [0x437dd0], eax
call edi
push eax
call esi
push 0x403738
push ebx
mov dword [0x437dd4], eax
call edi
push eax
call esi
mov dword [0x437ddc], eax
test eax, eax
je 0x41220f
push 0x403720
push ebx
call edi
push eax
call esi
mov dword [0x437dd8], eax
mov eax, dword [0x437dd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412268
cmp dword [0x437ddc], ecx
je 0x412268
push eax
call esi
push dword [0x437ddc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412268
test ebx, ebx
je 0x412268
call edi
test eax, eax
je 0x41225f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41225f
test byte [ebp - 8], 1
jne 0x412268
or dword [ebp + 0x10], 0x200000
jmp 0x41229b
mov eax, dword [0x437dd0]
cmp eax, dword [ebp - 0x18]
je 0x41229b
push eax
call esi
test eax, eax
je 0x41229b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41229b
mov eax, dword [0x437dd4]
cmp eax, dword [ebp - 0x18]
je 0x41229b
push eax
call esi
test eax, eax
je 0x41229b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437dcc]
call esi
test eax, eax
je 0x4122b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4122b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409541
leave
ret
Function at 0x414090
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413730
cmp dword [0x7d7f24], 0x37
jne 0x414121
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f7c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403f88
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7d8b08]
mov edx, dword [0x7d4f84]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4036f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x180c
call fcn.0040ea60
mov eax, dword [0x2b8bbe4]
mov ecx, dword [0x2b8bb58]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403814
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x2b8bbe4], 0x959
jne 0x4037fa
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x402db4
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc1c]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0x402dd0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x402e14
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e1c
push 0x402e50
call esi
push 0
push 0x402eac
push 0x402ec4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403530
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403734
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180c
ret
Function at 0x4061bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431aa8]
jne 0x4061c5
repz ret
jmp fcn.0040a7bc

Function at 0x40ce8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407b1e
and dword [ebp - 4], 0
cmp dword [0x4350d8], 0
mov ebx, eax
jne 0x40cf3c
push 0x402c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cfed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c78
push edi
call esi
test eax, eax
je 0x40cfed
push eax
call fcn.00407aac
mov dword [esp], 0x402c68
push edi
mov dword [0x4350d8], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c54
push edi
mov dword [0x4350dc], eax
call esi
push eax
call fcn.00407aac
mov dword [esp], 0x402c38
push edi
mov dword [0x4350e0], eax
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x4350e8], eax
test eax, eax
je 0x40cf3c
push 0x402c20
push edi
call esi
push eax
call fcn.00407aac
pop ecx
mov dword [0x4350e4], eax
mov eax, dword [0x4350e4]
cmp eax, ebx
je 0x40cf94
cmp dword [0x4350e8], ebx
je 0x40cf94
push eax
call fcn.00407b27
push dword [0x4350e8]
mov esi, eax
call fcn.00407b27
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cf94
test edi, edi
je 0x40cf94
call esi
test eax, eax
je 0x40cf8b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cf8b
test byte [ebp - 0xc], 1
jne 0x40cf94
or dword [ebp + 0x10], 0x200000
jmp 0x40cfcd
mov eax, dword [0x4350dc]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cfcd
mov eax, dword [0x4350e0]
cmp eax, ebx
je 0x40cfcd
push eax
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfcd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4350d8]
call fcn.00407b27
pop ecx
test eax, eax
je 0x40cfed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cfef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x12a04067
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x12a04082
push 0x80004005
call fcn.12a03c93
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x12a04084
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x12a0480f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x12a37538]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.12a03fc5
mov edi, eax
cmp edi, esi
je 0x12a04881
lea ecx, [ebp - 0x214]
call fcn.12a03f52
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.12a19f5c
leave
ret 4
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
jmp 0x12a0489f
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.12a0480f
cmp eax, esi
jne 0x12a048ea
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x12a04889
lea ecx, [ebp - 0x214]
call fcn.12a03f52
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.12a03ecc
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.12a03f52
mov eax, esi
jmp 0x12a04871
Function at 0x12a06608
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x418
mov eax, 0x12a31e49
call fcn.12a1a02e
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x418], eax
cmp eax, esi
jne 0x12a06661
call fcn.12a03e0e
mov esi, eax
jmp 0x12a06740
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x12a0667a
call fcn.12a03e0e
jmp 0x12a06732
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x12a06670
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x12a066d6
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x12a066bc
lea ecx, [ebp - 0x414]
call fcn.12a0467e
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.12a045bf
mov eax, esi
call fcn.12a1a0c0
ret 0x10
push eax
lea ecx, [ebp - 0x414]
call fcn.12a05567
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], esi
jne 0x12a066f8
mov esi, 0x8007000e
jmp 0x12a06734
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x12a06670
mov edx, dword [ebp - 0x414]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x424]
call fcn.12a063d6
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x12a066c1
lea ecx, [ebp - 0x414]
call fcn.12a0467e
jmp 0x12a066c1

Function at 0x12a09b5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x12a09bb5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x12a09ba7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x12a09ba3
cmp esi, eax
jae 0x12a09ba7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x12a09b95
cmp esi, eax
jb 0x12a09bab
xor eax, eax
jmp 0x12a09bb4
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x12a0bdaf
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x12a0be01
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
add esi, 4
mov eax, dword [esi]
push eax
mov dword [ebp - 0x14], eax
call edi
push dword [esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xfffffffe
call edi
mov edi, eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.12a0a01a
lea ecx, [ebp - 0x14]
push ecx
push edi
push 0x4e
jmp 0x12a0be2b
shr eax, 2
test al, 1
je 0x12a0be35
add esi, 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.12a0a01a
push dword [esi]
movzx ecx, di
push ecx
push 0x111
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x12a0be68
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x12a01f6c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x12a0be67
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret

Function at 0x12a16f19
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x12a16f35
mov eax, 0x8000ffff
jmp 0x12a17018
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ecx
call fcn.12a03df5
cmp eax, edi
jl 0x12a17018
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x40], eax
cmp eax, edi
jne 0x12a16f6e
mov ecx, dword [ebp - 4]
call fcn.12a147fb
call fcn.12a03e0e
jmp 0x12a17017
push edi
push edi
push edi
push edi
call ebx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x12a16fdc
push edi
push edi
push eax
mov ecx, esi
call fcn.12a16c4b
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x12a16fa3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.12a167dd
jmp 0x12a17014
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
cmp ebx, edi
je 0x12a16fdc
push edi
push edi
push ebx
mov ecx, esi
call fcn.12a16c4b
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x12a16fc3
push ebx
jmp 0x12a16f8f
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x12a16db2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp eax, edi
jne 0x12a16ffd
call fcn.12a03e0e
push 0x2710
mov ecx, esi
mov ebx, eax
call fcn.12a167dd
cmp eax, edi
jge 0x12a16ff9
cmp ebx, edi
jl 0x12a16ff9
mov ebx, eax
mov eax, ebx
jmp 0x12a17017
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x12a17014
call fcn.12a03e0e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x12a1932e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x12a37538]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.12a1926f
mov eax, 0x12a00000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x12a193a1
cmp dword [ebp - 0x94], 5
jb 0x12a193c2
jmp 0x12a193be
cmp dword [ebp - 0x88], 1
jne 0x12a193c2
cmp dword [ebp - 0x94], 4
ja 0x12a193be
jne 0x12a193c2
cmp dword [ebp - 0x90], 0
jbe 0x12a193c2
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x12a028b4
call fcn.12a03da5
test eax, eax
jge 0x12a193e3
mov byte [0x12a3960c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.12a19f5c
leave
ret

Function at 0x12a1992c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x12a397f0], 0
push esi
jne 0x12a1989a
call fcn.12a19791
test eax, eax
je 0x12a198dd
mov eax, dword [0x12a397f0]
cmp eax, 1
jne 0x12a198bb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x12a198dd
pop esi
ret
push eax
call dword [0x12a397f8]
test eax, eax
jne 0x12a19925
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x12a198e1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x12a397f0]
call dword [0x12a397f8]
mov edi, eax
test edi, edi
je 0x12a19906
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x12a19922
mov edi, esi
add esi, 0xff0
push edi
push dword [0x12a397f0]
call dword [0x12a397f4]
add edi, 0x10
cmp edi, esi
jb 0x12a1990e
mov eax, edi
pop edi
pop esi
ret
jmp 0x12a19887
Function at 0x12a1cdd1
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x12a32821
call fcn.12a19fbb
mov edi, ecx
mov eax, dword [0x12a37010]
mov esi, 0x12a37010
cmp eax, esi
je 0x12a1ce13
test byte [eax + 0x1c], 1
je 0x12a1ce13
cmp byte [eax + 0x19], 5
jb 0x12a1ce13
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0x12a02a04
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.12a1b3d0
mov dword [ebp - 0x10], eax
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a1ce66
test byte [eax + 0x1c], 2
je 0x12a1ce66
cmp byte [eax + 0x19], 4
jb 0x12a1ce66
push dword [ebp - 0x10]
push 0x12a02a04
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
mov eax, dword [0x12a37010]
cmp dword [ebp - 0x10], ebx
jne 0x12a1cf53
lea eax, [ebp - 0x14]
push eax
mov edi, 0x12a02acc
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.12a1a6af
mov dword [ebp - 0x10], eax
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a1cebd
test byte [eax + 0x1c], 2
je 0x12a1cebd
cmp byte [eax + 0x19], 4
jb 0x12a1cebd
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push 0x12a02a04
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a06d39
mov eax, dword [0x12a37010]
cmp dword [ebp - 0x10], 2
jne 0x12a1cf11
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push edi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a1cf8a
test byte [eax + 0x1c], 2
je 0x12a1cf53
cmp byte [eax + 0x19], 4
jb 0x12a1cf53
push dword [ebp - 0x10]
push ebx
push edi
push 0x12a02a04
push 0x89
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a06d39
jmp 0x12a1cf4e
cmp dword [ebp - 0x10], ebx
jne 0x12a1cf53
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0x14], ebx
setne cl
mov dword [eax], ecx
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a1cf8a
test byte [eax + 0x1c], 2
je 0x12a1cf53
cmp byte [eax + 0x19], 4
jb 0x12a1cf53
push ecx
push 0x12a02a04
push 0x8a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
mov eax, dword [0x12a37010]
cmp eax, esi
je 0x12a1cf8a
test byte [eax + 0x1c], 1
je 0x12a1cf8a
mov edx, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x12a1cf8a
push dword [ebp - 0x10]
push 0x12a02a04
push 0x8b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.12a039b3
lea ecx, [ebp - 0x20]
call fcn.12a03f52
mov eax, dword [ebp - 0x10]
call fcn.12a1a0a7
ret 4