joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427cf8
Capabilities:
Set environment variable

Disassembly:
push 0x10
mov eax, 0x4a921a
call fcn.004931c3
and dword [ebp - 4], 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push dword [esi + 0x44]
call fcn.00421017
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.BaseDirName
call fcn.00421017
push ecx
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x18], esp
push dword [esi + 8]
mov ebx, str.SoftwareVOS_s
push ebx
push eax
call fcn.004559f0
add esp, 0xc
mov edi, SysReAllocStringLen
push edi
mov byte [ebp - 4], 0
call fcn.00456cc0
add esp, 0x14
and eax, 1
push 0
push ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00421e00
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CarrierExeName
call fcn.00421017
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov byte [ebp - 4], 4
push dword [esi + 8]
push ebx
push eax
call fcn.004559f0
add esp, 0xc
push edi
mov byte [ebp - 4], 0
call fcn.00456cc0
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x14
push dword [esi + 8]
mov ebx, eax
push str.CAMEYO_APPID
call edi
push dword [esi + 0x48]
push str.CAMEYO_CARRIEREXE
call edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, ebx
and eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
inc eax
call fcn.0049329b
ret
Function at 0x429fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4a7b08
call fcn.004931c3
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00480035
push eax
lea ecx, [ebp - 0x10]
call fcn.00420985
mov dword [ebp - 4], ebx
push dword [0x4d4990]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.004559f0
mov esi, str.IntegratedLnk
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00424858
add esp, 0x18
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00464e50
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042001a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042001a
cmp dword [ebp - 0x14], ebx
je 0x42a080
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, ebx
call fcn.0049329b
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.0042049e
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423cc9
cmp dword [ebp - 0x14], ebx
jne 0x42a0d5
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00421e00
call fcn.00458ee0
inc dword [ebp - 0x18]
pop ecx
jmp 0x42a083
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4d4990]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004559f0
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.00424858
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00464e50
push eax
call fcn.00456ee0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042001a
xor ebx, ebx
inc ebx
jmp 0x42a06d
Function at 0x42a131
Capabilities:
Delete directory
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4a7ac5
call fcn.004931c3
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.00480035
push eax
lea ecx, [ebp - 0x10]
call fcn.00420985
mov dword [ebp - 4], ebx
push dword [0x4d4990]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x24]
push edi
push eax
mov dword [ebp - 0x20], 1
call fcn.004559f0
mov esi, str.IntegratedNewDirs
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00424858
add esp, 0x18
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00464e50
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042001a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
cmp dword [ebp - 0x14], ebx
je 0x42a1d4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, ebx
call fcn.0049329b
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.0042049e
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423cc9
cmp dword [ebp - 0x14], ebx
je 0x42a212
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x14], ebx
je 0x42a1d7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4d4990]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.004559f0
push esi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00424858
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00464e50
push eax
call fcn.00456ee0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042001a
mov ebx, dword [ebp - 0x20]
jmp 0x42a1c1
Function at 0x42aad1
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4a6853
call fcn.004931c3
and dword [ebp - 4], 0
push 0x4b5910
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00424858
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp + 8]
push 0x4b5914
call fcn.00453960
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.0049329b
ret

Function at 0x42aba9
Capabilities:
Set file attributes

Disassembly:
push 8
mov eax, 0x4a6830
call fcn.004931c3
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x4b263c
call fcn.00421017
push 3
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x42ac54
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
cmp ebx, esi
je 0x42ac3c
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebx
mov edi, 0x45aba0
push edi
push 3
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0xe
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0x10
push dword [ebp - 0x10]
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x42ac49
push str.Cannot_commit_to_target_file__write_permission_required_
jmp 0x42ac41
push str.Cannot_begin_to_update_target_file
mov ecx, dword [ebp + 8]
call fcn.00421149
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42ac61
mov ecx, dword [ebp + 8]
push str.Cannot_open_source_file
call fcn.00421149
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, dword [ebp + 8]
call fcn.0049329b
ret
Function at 0x42d517
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x4a7a82
call fcn.004931c3
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x42d718
call fcn.00480035
push eax
lea ecx, [ebp - 0x24]
call fcn.00420985
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
call fcn.0048e812
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
push str.AppNameGuess:_OnUninstallerKey:__s
push eax
call fcn.004559f0
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x4bc218
call fcn.00421017
push 1
mov byte [ebp - 4], 1
call fcn.00459ed0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push esi
push str.DisplayName
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42d704
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00421017
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004247ff
cmp eax, 0xffffffff
je 0x42d5ef
push str.Redistributable
xor ecx, ecx
call fcn.004247ff
cmp eax, 0xffffffff
jne 0x42d6f9
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42d603
push 0x4b4208
mov ecx, ebx
call fcn.00423caa
mov esi, dword [ebp - 0x18]
push esi
mov ecx, ebx
call fcn.004247ea
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.Publisher
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42d630
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0042105b
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.DisplayVersion
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42d652
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0042105b
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [ebp - 0x10], esp
push dword [ecx]
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [ebx]
push str.AppNameGuess:_RegAppName_s__RegPublisher_s__RegVersion_s
push eax
call fcn.004559f0
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4bc218
mov byte [ebp - 4], 4
call fcn.00421017
push 1
mov byte [ebp - 4], 3
call fcn.00459ed0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x10]
call fcn.00421e00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
push esi
lea ecx, [ebp - 0x10]
call fcn.0042049e
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0048f8a5
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.004204ca
mov edi, str._REMOVE_ONLY_
push edi
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.004247ff
mov esi, eax
cmp esi, 0xffffffff
je 0x42d6ee
push edi
call fcn.0048e8dc
pop ecx
push esi
push ebx
call fcn.00423ac2
call fcn.004258c4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp - 0x18]
call fcn.0048e6f5
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.0049329b
ret
Function at 0x42e824
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x4d4b50], esi
jne 0x42e881
push esi
push esi
push esi
push esi
mov dword [0x4d4b50], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4d470c], eax
cmp dword [0x4d4b54], esi
jne 0x42e870
push esi
push esi
push 0x4b263c
call fcn.0048f20a
pop ecx
push eax
push 0x42e4fe
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4d4b54], eax
push 0x190
push dword [0x4d470c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret

Function at 0x42ee85
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x42eec7
mov ecx, esi
call fcn.0042f8cc
test eax, eax
je 0x42eecc
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x42f1e9
push edi
push edi
call fcn.0049117f
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42eec7
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x42eec7
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x42eec7
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x42eec9

Function at 0x42ef2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.00482397
mov eax, dword [eax + 0xc]
push 0x4b6628
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42efd9
call fcn.00482397
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42efd9
call fcn.00482397
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42efd9
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42efd2
test ebx, ebx
je 0x42efd2
push edi
push eax
push ebx
call fcn.0048e390
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0042e9d3
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42efdb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42feb8
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4a67a6
call fcn.004931c3
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4b6a20
call fcn.00453960
pop ecx
pop ecx
push 0x4b5910
lea ecx, [ebp + 8]
call fcn.00423caa
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004207d4
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.0049125b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.Loader:
push eax
call fcn.0042a971
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00423e75
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.0049329b
ret
Function at 0x4362c3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4cfc64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.0048ea70
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.0048ea70
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x436366
cmp dword [ebp - 0x114], 5
jae 0x436368
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0048dce1
leave
ret

Function at 0x436cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.0048f20a
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x436d00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x436d00
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x436d54
lea esi, [ebx + eax*2 - 0xa]
mov ecx, 0x4b8e10
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436d46
cmp dx, di
je 0x436d42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436d46
add eax, 4
add ecx, 4
cmp dx, di
jne 0x436d20
xor eax, eax
jmp 0x436d4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x436d54
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x436d76
cmp eax, edi
jne 0x436db6
mov eax, dword [ebp - 8]
push eax
call fcn.0048e812
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x436dad
mov esi, dword [ebp - 8]
call fcn.0047dba0
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.0048e6f5
add esp, 4
push ebx
call fcn.0048e6f5
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453d60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x453d8e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x453d86
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x20]
push edx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x453d86
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x14], 2
push 0
push 0
push ecx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push 0
push eax
mov dword [ebp - 0x20], 1
call esi
call edi
test eax, eax
jne 0x453d86
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4543e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0048ea70
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4544e0
cmp dword [ebp + 0x10], 0
je 0x454456
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x454465
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebx, ebx
je 0x454470
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jmp 0x45447a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4544b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4544d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4544ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45451e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45453d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x455000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4cfc64]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0048ea70
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x455065
cmp dword [ebp - 0x114], 5
jne 0x455065
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048dce1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0048dce1
mov esp, ebp
pop ebp
ret
Function at 0x456520
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi], 0
mov dword [ebx], 0
cmp esi, 0xffffffff
je 0x4565e7
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
jne 0x45659b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456593
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x4565a4
add eax, 2
push eax
call fcn.0048e812
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [edi], eax
mov edx, dword [ebx]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4565e0
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x4565e0
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov byte [edx + eax + 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456606
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret