joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4cb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41ca50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040e08a
mov dword [ebp - 0x14], eax
cmp dword [0x423124], esi
jne 0x40f5be
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f54b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f69e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f69e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f69e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x423124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x423128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42312c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423134], eax
test eax, eax
je 0x40f5bb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x423130], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f5e3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f5d6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f5f8
push 4
pop eax
jmp 0x40f6a0
cmp dword [ebp - 0x14], esi
je 0x40f5f8
push dword [0x423124]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f5dd
mov eax, dword [0x423130]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f656
cmp dword [0x423134], edi
je 0x40f656
push eax
call ebx
push dword [0x423134]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f656
test eax, eax
je 0x40f656
call ecx
test eax, eax
je 0x40f64b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f64b
test byte [ebp - 8], 1
jne 0x40f656
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f686
mov eax, dword [0x423128]
cmp eax, edi
je 0x40f683
push eax
call ebx
test eax, eax
je 0x40f683
call eax
mov esi, eax
test esi, esi
je 0x40f683
mov eax, dword [0x42312c]
cmp eax, edi
je 0x40f683
push eax
call ebx
test eax, eax
je 0x40f683
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x423124]
call ebx
test eax, eax
je 0x40f69e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f6a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040df2b
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
push 0xfe122840
mov eax, dword [esp]
add esp, 4
sub eax, eax
call fcn.00408965
inc eax
push 0x81048431
pop esi
xor dword [edi], ebx
or eax, esi
inc edi
add esi, 0xf2e30d62
cmp edi, edx
jne fcn.00408937
ret
Function at 0x4048d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ce68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.00439828
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0
push eax
push edi
push 0xb
call fcn.004323d1
push eax
lea ecx, [esp + 0xc]
call fcn.00434a30
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, 2
add ecx, eax
add edi, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
sub edx, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], edx
push 0
push ecx
lea edx, [esp + 0x24]
push edi
push edx
push 0x50000000
push str.Check_Control
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00431dc6
test eax, eax
jne 0x4049a4
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004349c2
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov ecx, dword [edi + 0x3c]
cdq
idiv ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x70], eax
call fcn.004349c2
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x409a40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d581
push eax
mov eax, 0x1018
mov dword fs:[0], esp
call fcn.00422930
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 8]
mov dword [esp + 0x1024], 1
call fcn.00434a30
lea eax, [esp + 0x1028]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x102c], 2
call fcn.00434bf1
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x1034], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409ba0
push edi
push 0x4526b0
lea ecx, [esp + 8]
call fcn.00434a30
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.UninstallString
push edx
mov byte [esp + 0x103c], 4
mov dword [esp + 0x2c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x409b23
lea eax, [esp + 0x18]
lea ecx, [esp]
push eax
call fcn.00434b4b
push 0x2b
lea ecx, [esp + 4]
call fcn.00434e89
cmp eax, 0xffffffff
jne 0x409b84
push 0x44f5e8
lea ecx, [esp + 4]
call fcn.00434d9e
lea ecx, [esp + 0x102c]
push ecx
lea ecx, [esp + 4]
call fcn.00434dda
mov edx, dword [esp]
lea ecx, [esp]
mov eax, dword [edx - 8]
push eax
push eax
call fcn.00434df2
push eax
mov eax, dword [esp + 0x14]
push 2
push 0
push str.UninstallString
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call fcn.00434e41
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp]
mov byte [esp + 0x1020], 3
call fcn.004349c2
lea ecx, [esp + 8]
mov byte [esp + 0x1020], 2
call fcn.004349c2
lea ecx, [esp + 4]
mov byte [esp + 0x1020], 1
call fcn.004349c2
lea ecx, [esp + 0x1028]
mov byte [esp + 0x1020], 0
call fcn.004349c2
lea ecx, [esp + 0x102c]
mov dword [esp + 0x1020], 0xffffffff
call fcn.004349c2
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
add esp, 0x1024
ret
Function at 0x40a490
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d668
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00436e4a
mov edi, eax
push 0x48
push 0x5a
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x1c]
neg eax
mov dword [esi + 0x78], eax
mov eax, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x7c], ebx
cmp eax, ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
je 0x40a512
mov dword [esi + 0x88], 0x2bc
jmp 0x40a51c
mov dword [esi + 0x88], 0x190
mov dl, byte [esp + 0x24]
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov byte [esi + 0x8c], dl
mov dl, byte [esp + 0x30]
mov byte [esi + 0x8d], al
mov byte [esi + 0x8e], cl
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 0x8f], dl
mov byte [esi + 0x90], bl
mov byte [esi + 0x91], bl
mov byte [esi + 0x92], 2
mov byte [esi + 0x93], 0x12
lea edx, [esi + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.004349c2
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x40db00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43de08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call fcn.00435469
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00435469
mov eax, dword [0x4507fc]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x4507fc]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0x441e30
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], 0x441e4c
mov dword [esi + 0x5c], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov edx, dword [0x4507fc]
lea ecx, [esi + 0x74]
mov dword [ecx], edx
mov dword [esi + 0x78], 0x441e40
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], edi
push 0x4526b0
mov byte [esp + 0x18], 7
mov dword [esi], 0x441e3c
mov dword [esi + 0x18], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x30], 1
call fcn.00434b4b
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x98], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f3e0
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.0040e940
push 1
push edi
mov ecx, esi
call fcn.0040ee60
push edi
mov ecx, esi
call fcn.0040eff0
push edi
mov ecx, esi
call fcn.0040f1c0
push 0
push edi
mov ecx, esi
call fcn.0040ee60
mov eax, dword [edi]
push 2
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [esi + 0x2c]
push eax
call fcn.00416830
add esp, 4
test eax, eax
je 0x40f437
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x4106e0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x43e4be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4507fc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x4507fc]
lea ebp, [esi + 0x70]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [ebp], ecx
mov ebx, 1
push 0x4526b0
mov ecx, ebp
mov byte [esp + 0x24], bl
mov dword [esi], 0x441e5c
mov dword [esi + 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 8], 0xf
mov dword [esi + 0x60], 0x14
mov dword [esi + 0x20], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x2c], 5
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov byte [esi + 0x50], 0x41
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x3c
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0x19
call fcn.00434b4b
mov edx, dword [0x4507fc]
mov dword [esp + 0x10], edx
mov byte [esp + 0x20], 2
push edi
lea eax, [esp + 0x14]
push 0x44f7f8
push eax
call fcn.0042fae2
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00434dda
inc edi
cmp edi, 0xa1
jl 0x41079d
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004349c2
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4109aa
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100c
call fcn.00422930
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov eax, dword [esi + 0x28]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410a48
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edi
lea eax, [esi + 0x2c]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.data
push edx
mov dword [esp + 0x28], 0x44
call ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push 0
push str.transition_effects
push eax
mov dword [esp + 0x28], 0x1000
call ebx
pop edi
pop ebx
test eax, eax
jne 0x410a3d
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x70]
call fcn.00434b4b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x100c
ret

Function at 0x410a50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea edx, [esp]
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov eax, dword [esi + 0x28]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410ad5
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x2c]
push 0x44
push eax
push 3
push 0
push str.data
push ecx
call edi
mov edx, dword [esi + 0x70]
add esi, 0x70
mov ecx, esi
mov eax, dword [edx - 8]
push eax
push eax
call fcn.00434df2
push eax
mov eax, dword [esp + 0x10]
push 2
push 0
push str.transition_effects
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.00434e41
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret

Function at 0x410a57
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea edx, [esp]
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov eax, dword [esi + 0x28]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410ad5
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x2c]
push 0x44
push eax
push 3
push 0
push str.data
push ecx
call edi
mov edx, dword [esi + 0x70]
add esi, 0x70
mov ecx, esi
mov eax, dword [edx - 8]
push eax
push eax
call fcn.00434df2
push eax
mov eax, dword [esp + 0x10]
push 2
push 0
push str.transition_effects
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.00434e41
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
Function at 0x41164c
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e7b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x48]
call fcn.0040db00
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x1f4], 0
call fcn.0040dd10
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.runtimelib
call fcn.00434a30
add esi, 0x13c
lea ecx, [esp + 0x4c]
push esi
call fcn.0040dd20
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xe8]
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x14]
call fcn.00434a30
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1f0], 1
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x4116eb
push 0x44f86c
lea ecx, [esp + 0x14]
call fcn.00434d9e
mov edx, dword [0x4507fc]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f0], 2
call fcn.00416390
mov bl, 3
lea ecx, [esp + 0x48]
mov byte [esp + 0x1f0], bl
call fcn.0040e8c0
mov eax, dword [esp + 0xd8]
test eax, eax
jne 0x4117ef
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.name
call fcn.00434a30
lea eax, [esp + 0x20]
lea ecx, [esp + 0x4c]
push eax
call fcn.0040fbe0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f4], 4
call fcn.00434afb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1f0], bl
call fcn.004349c2
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00434bf1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f4], 5
call fcn.00434afb
lea ecx, [esp + 0x14]
mov byte [esp + 0x1f0], bl
call fcn.004349c2
lea ecx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.libs
call fcn.00434a30
lea ecx, [esp + 0x50]
call fcn.0040f9e0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00434737
lea ecx, [esp + 0x24]
call fcn.004163e0
lea ecx, [esp + 0x48]
call fcn.0040e8e0
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x411727
lea ecx, [esp + 0x48]
call fcn.0040e000
lea ecx, [esp + 0x20]
mov byte [esp + 0x1f0], 2
call fcn.004163d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1f0], 1
call fcn.004349c2
lea ecx, [esp + 0x10]
mov byte [esp + 0x1f0], 0
call fcn.004349c2
lea ecx, [esp + 0x48]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.0040dc10
mov ecx, dword [esp + 0x1e8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1e8
ret
Function at 0x4163e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ef90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], ebx
call fcn.00435469
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 1
call fcn.00435042
mov eax, dword [0x4507fc]
mov dword [esp + 0x30], eax
mov edi, vtable.CFileException.0
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.00434b4b
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x20]
push ecx
push 0x1001
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 4
call fcn.0043557b
test eax, eax
jne 0x4164ae
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 5
call fcn.004349c2
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004354be
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004349c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov eax, dword [0x4507fc]
mov dword [esp + 0xc], eax
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x3c], 6
call dword [edx + 0x30]
mov edi, eax
mov eax, dword [esi]
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x28]
push edi
lea ecx, [esp + 0x10]
call fcn.00434df2
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 0x34]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00434e41
push esi
lea ecx, [esp + 0x10]
call fcn.00434df2
push esi
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x38]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00434e41
lea ecx, [esp + 0x10]
call fcn.00435796
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 4
call fcn.004349c2
mov dword [esp + 0x20], vtable.CFileException.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 7
call fcn.004349c2
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call fcn.004354be
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004349c2
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x416810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41682a
test al, 0x10
je 0x41682a
mov eax, 1
ret
xor eax, eax
ret