joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x420d70
push ecx
lea ecx, [esp + 0xc]
call fcn.00420b70
push 0x38
lea eax, [esp + 0x24]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x540
cmp dword [ebp + 0x18], edi
je 0x420da6
call fcn.00420ef0
mov dword [esp + 0x28], 0x428f20
test eax, eax
je 0x420dae
mov dword [esp + 0x28], str.open
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x420dbc
mov dword [esp + 0x2c], eax
jmp 0x420dc4
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x420dd2
mov dword [esp + 0x30], eax
jmp 0x420dda
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x420ec0
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x420ec0
cmp dword [ebp + 0x14], edi
je 0x420e99
mov edx, dword [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call edi
test eax, eax
je 0x420e49
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x420e55
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x420e39
cmp esi, eax
ja 0x420e77
mov ecx, dword [esp + 0x54]
push 0x64
push ecx
add esi, 0x64
call edi
test eax, eax
jne 0x420e25
test ebx, ebx
je 0x420ec0
mov edx, dword [esp + 0x54]
push ebx
push edx
jmp 0x420eba
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
add esp, 8
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
add esp, 8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x420e77
cmp eax, edi
jne 0x420ec0
cmp ebx, edi
je 0x420ec0
mov ecx, dword [esp + 0x54]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x20]
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffd
pop edi
add eax, 3
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420ef0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x420f09
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0x18
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420f5d
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 4
lea edx, [ebp - 8]
push edx
push 0x14
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x420f5d
cmp dword [ebp - 8], 0
je 0x420f5d
mov esi, 1
jmp 0x420f5f
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x420f6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [0x432fd4], 0
push esi
push edi
jne 0x4218a7
call fcn.00421813
test eax, eax
je 0x4218ec
mov eax, dword [0x432fd4]
cmp eax, 1
jne 0x4218c8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4218ec
jmp 0x42192e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42192e
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 0x4218f0
xor eax, eax
jmp 0x42192e
mov eax, dword [esi]
push dword [0x432fd4]
call edi
mov edi, eax
test edi, edi
je 0x421912
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42192e
lea edi, [esi + 0xff0]
push esi
push dword [0x432fd4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x421918
mov eax, esi
pop edi
pop esi
ret
jmp 0x421893

Function at 0x421ac2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431034]
jne 0x421acc
repz ret
jmp fcn.004220bf

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4019b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, 0x40f018
mov dword [esi], sub.borlndmm.dll__Borlndmm_SysGetMem_qqri
push 0x401a38
call sub.kernel32.dll_GetModuleHandleW_1
mov ebx, eax
push 0x401a54
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
push 0x401a70
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 4], eax
push 0x401a8c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 8], eax
push 0x401aac
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401a08
mov dword [esi + 0xc], eax
push 0x401ac8
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401a1a
mov dword [esi + 0x10], eax
push 0x401af8
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x401a2c
mov dword [esi + 0x14], eax
mov eax, esi
call sub.rtl170.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
pop esi
pop ebx
ret
Function at 0x404cf8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff5a4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x404e19
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0x800
lea eax, [ebp - 0xa5c]
push eax
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 0xc]
lea edx, [ebp - 0xa5c]
mov ecx, 0x400
call sub.rtl170.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
cmp dword [ebp - 0xc], 0
jne 0x404d67
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
je 0x404d8f
mov bl, 1
mov eax, esi
mov edx, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x404dfe
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System_Sysutils_ExtractFileExt_qqrx20System_UnicodeString
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edi, eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x404e38
call sub.rtl170.bpl__System_Pos_qqrx20System_UnicodeStringt1i
test eax, eax
jle 0x404dfe
lea eax, [ebp - 8]
push eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x404e38
call sub.rtl170.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push esi
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ecx, eax
sub ecx, edi
xor edx, edx
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, esi
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404e20
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x406410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
xor eax, eax
mov dword [ebp - 0x210], eax
xor eax, eax
push ebp
push 0x406488
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20a], 0
push 0x104
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea edx, [ebp - 0x210]
lea eax, [ebp - 0x20a]
call sub.rtl170.bpl__System_Sysutils_StrPas_qqrpxb
mov edx, dword [ebp - 0x210]
mov eax, 0x40f068
mov ecx, 0x4064a0
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40648f
lea eax, [ebp - 0x210]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret
Function at 0x409b80
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd40
push ebx
xor edx, edx
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x409c68
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x2c0]
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System_Sysutils_ExtractFileExt_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x2c0]
mov edx, 0x409c84
call sub.rtl170.bpl__System_Sysutils_AnsiSameText_qqrx20System_UnicodeStringt1
test al, al
je 0x409c29
lea eax, [ebp - 0x2bc]
xor ecx, ecx
mov edx, 0x2b4
call sub.rtl170.bpl__System__FillChar_qqrpvic
push 0x101
push 0x2b4
lea eax, [ebp - 0x2bc]
push eax
push 0
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.shell32.dll_SHGetFileInfoW
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x409c29
mov edx, eax
mov eax, dword [0x40f070]
call fcn.0040a1bc
mov ebx, eax
test ebx, ebx
jge 0x409c42
mov eax, dword [0x40f070]
mov eax, dword [eax + 0x488]
mov edx, dword [ebp - 4]
call fcn.0040628c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c6f
lea eax, [ebp - 0x2c0]
call sub.rtl170.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x4025b0
Capabilities:
Enumerate gui resources

Disassembly:
test byte [0x4a1438], 1
jne 0x4025e1
or dword [0x4a1438], 1
push 0x478360
mov dword [0x4a1430], 0x47fc74
mov dword [0x4a1434], 0
call fcn.00452036
add esp, 4
push str.RandomLogicInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a1434], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40260e
push esi
push 0x402620
call dword [sym.imp.USER32.dll_EnumWindows]
xor al, al
ret
mov al, 1
ret

Function at 0x402b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402bb0
lea ebx, [ebx]
cmp esi, eax
jae 0x402bb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ba0
cmp esi, eax
jb 0x402bba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403010
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403046
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004511c3
add esp, 0x40c
ret
test edi, edi
je 0x40302f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004520e2
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4030af
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40302f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4030b4
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40302f
mov eax, dword [esp]
test eax, eax
je 0x4030ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004511c3
add esp, 0x40c
ret
Function at 0x403110
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403146
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004511c3
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004520e2
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4031ab
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40312f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40312f
mov eax, dword [esp]
test eax, eax
je 0x4031da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004511c3
add esp, 0x40c
ret

Function at 0x403200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x4032c8
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.004520e2
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032c8
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x4032e2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434631
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.004557d0
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x4032fa
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004511c3
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4032e7
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40331f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004511c3
add esp, 0x40c
ret
Function at 0x403340
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x403376
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004511c3
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.004520e2
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40335f
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40335f
mov eax, dword [esp]
test eax, eax
je 0x4033e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.004511c3
add esp, 0x410
ret
Function at 0x406f30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x471380
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004028f0
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004089e0
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x406fd0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406fd0
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x58]
push ecx
call fcn.00401720
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40700d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi + 0x6c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434631
add esp, 4
cmp dword [esi + 0x18], 8
mov edi, eax
jb 0x407039
mov esi, dword [esi + 4]
jmp 0x40703c
add esi, 4
mov ecx, edi
mov edi, edi
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x407040
push str.SoftwareVHLDMACHINE_ID
mov ebx, str.Installation_GUID
mov esi, SysReAllocString
call fcn.00403010
push edi
call fcn.00434636
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004511c3
add esp, 0x2c
ret
Function at 0x407110
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47205b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd0]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0040a910
mov dword [esp + 0xc8], ebx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40717f
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x40722b
push esi
call fcn.00434631
add esp, 4
cmp dword [esp + 0x38], 8
mov edi, eax
mov eax, dword [esp + 0x24]
jae 0x4071ae
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x18]
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407222
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x4838c4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407222
cmp dword [esp + 0x1c], ebx
je 0x407222
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
jne 0x407222
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x4838c8
lea ecx, [esp + 0x50]
push 0x40
push ecx
call fcn.004526b3
add esp, 0x1c
add ebp, 0x94
push ebp
lea edx, [esp + 0x40]
call fcn.00408cf0
push edi
call fcn.00434636
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x40723f
mov edx, dword [esp + 0x24]
push edx
call fcn.00434636
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004511c3
add esp, 0xb8
ret 4