joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42eb1e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ecx], edx
mov dword [ebp - 0x4c], edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x42ebc3
push esi
push edi
call fcn.0045c1cf
push edi
mov esi, eax
push 0
push esi
call fcn.00459250
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42ebbb
push 0x34
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp - 0x3c], eax
call fcn.00459250
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x4ac888
push esi
mov dword [ebp - 0x40], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42ebbb
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
push esi
call fcn.0045c15a
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004591d7
leave
ret 0xc
Function at 0x42ebd5
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xb8
mov eax, 0x4a37d0
call fcn.0045a829
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x70], 0x4c13a0
mov dword [ebp - 0x48], 0x4c18a4
call fcn.00403f50
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00403020
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.004040f0
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.00403cf0
cmp dword [ebp - 0x5c], 0
je 0x42ec6e
push esi
lea ecx, [ebp - 0x70]
call fcn.00413125
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00428a1f
push 0
lea eax, [ebp - 0xa1]
push eax
push str.PATH
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13a0
mov dword [ebp - 0x18], 0x4c18a4
call fcn.00403fb0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042ddeb
lea ecx, [ebp - 0x40]
call fcn.00401ac0
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
push 1
lea eax, [ebp - 0xb0]
push eax
push ecx
push 0x3b
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00429c33
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
sub eax, esi
push 0x30
cdq
pop ecx
idiv ecx
mov edi, eax
test edi, edi
je 0x42edc4
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x42ed0a
mov eax, dword [esi]
jmp 0x42ed0c
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13a0
mov dword [ebp - 0x18], 0x4c18a4
call fcn.00403f50
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00403020
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.004040f0
cmp dword [esi + 0x14], 8
mov ecx, dword [eax]
jb 0x42ed70
mov eax, dword [esi]
jmp 0x42ed72
mov eax, esi
push dword [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00403cf0
cmp dword [ebp - 0x2c], 0
je 0x42edae
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call fcn.00413125
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00428a1f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401ac0
add esi, 0x30
dec edi
jne 0x42ed00
lea ecx, [ebp - 0xb0]
call fcn.00428518
lea ecx, [ebp - 0xa0]
call fcn.00401ac0
lea ecx, [ebp - 0x70]
call fcn.00401ac0
call fcn.0045a7d8
ret 8
Function at 0x42ef7a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x42eff4
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x42efdb
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x42efdb
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x42efdb
inc bl
jmp 0x42eff4
xor eax, eax
test ecx, ecx
je 0x42eff4
test bl, bl
jne 0x42eff4
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x42efe1
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004591d7
leave
ret 4

Function at 0x42f900
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x42fa06
cmp byte [ebp + 0xc], 0
jne 0x42f9b4
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42fa06
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x42f9f7
call fcn.00459e60
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x42f983
xor eax, eax
jmp 0x42f997
lea eax, [edi + edi]
call fcn.0045cc80
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0042bded
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043268c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x42fa08
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42fa06
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f9f6
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x42f997
lea eax, [esi + 2]
jmp 0x42f997
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591d7
leave
ret 0xc
Function at 0x42fe3f
Capabilities:
Persist via run registry key

Disassembly:
push 0x44
mov eax, 0x4a3a39
call fcn.0045a829
mov edi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call fcn.0042e854
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push ebx
mov ecx, edi
mov esi, eax
call fcn.0042e854
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push ebx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.0042e854
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push ebx
mov ecx, edi
mov dword [ebp - 0x4c], eax
call fcn.0042e78e
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, edi
mov dword [ebp - 0x48], eax
call fcn.0042e54e
mov ebx, eax
push 0
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13a0
mov dword [ebp - 0x18], 0x4c18a4
call fcn.00403f50
and dword [ebp - 4], 0
cmp esi, dword [edi + 0x440]
jle 0x42fed6
push str.RunOnce
jmp 0x42ff19
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi + 0x444]
jle 0x42fee8
push str.RunOnceEx
jmp 0x42ff19
mov eax, dword [ebp - 0x48]
cmp eax, dword [edi + 0x448]
jle 0x42fefa
push str.PendingFileRenameOperations
jmp 0x42ff19
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edi + 0x44c]
jle 0x42ff0c
push str.FileRenameOperations
jmp 0x42ff19
cmp ebx, dword [edi + 0x450]
jle 0x42ff2a
push str.Wininit.ini_rename
lea eax, [ebp - 0x40]
push str.Reboot_required____s_key_added
push eax
call fcn.00403b50
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x42ff43
xor ebx, ebx
push 0
inc ebx
push ebx
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0042bd01
jmp 0x42ff45
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.00401ac0
mov al, bl
call fcn.0045a7d8
ret

Function at 0x4360dd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x4360fb
mov ecx, esi
call fcn.00435f14
pop esi
pop ebp
ret 4
Function at 0x436af5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [eax + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp byte [eax + 0x12], 0
je 0x436c7e
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x436c7d
cmp dword [0x4d6830], esi
je 0x436c7d
mov eax, dword [0x4d6838]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d6830], esi
test al, 1
jne 0x436b63
or eax, 1
mov dword [0x4d6838], eax
call ebx
mov dword [0x4d6834], eax
call ebx
mov ecx, eax
sub ecx, dword [0x4d6834]
cmp byte [0x4d4553], 0
mov dword [0x4d6834], eax
jne 0x436b84
cmp ecx, 0x64
jb 0x436c7c
push 0xa
pop eax
push 0x14
pop ecx
cmp esi, 0x100000
cmovg eax, ecx
imul esi, esi, 0xa
movzx eax, ax
mov cl, al
mov dword [ebp - 0xa0], eax
push 0
lea eax, [ebp - 0x95]
sar esi, cl
push eax
lea ecx, [ebp - 0x34]
mov byte [0x4d4553], 0
mov dword [ebp - 0x34], 0x4c13f0
mov dword [ebp - 0xc], 0x4c1390
call fcn.00404200
lea eax, [ebp - 0x64]
push 0x758
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040d135
lea ebx, [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x436beb
mov ebx, dword [ebx]
push 0x14
xor eax, eax
pop ecx
cmp word [ebp - 0xa0], cx
mov ecx, edi
setne al
add eax, 0x652
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040d135
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x436c20
mov ecx, dword [ecx]
push 0xa
mov eax, esi
pop esi
xor edx, edx
div esi
push ebx
push ecx
push edx
push eax
lea eax, [ebp - 0x34]
push str._01d._01d__s_s
push eax
call fcn.0040dc31
add esp, 0x18
lea ecx, [ebp - 0x94]
call fcn.00401b80
lea ecx, [ebp - 0x64]
call fcn.00401b80
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x9c]
push 0x134
push dword [eax + 0x26c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [ebp - 0x34]
call fcn.00401b80
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004591d7
leave
ret 8

Function at 0x437689
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4376a4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x439ff9
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4a4628
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a071
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
mov eax, dword [ebp - 0x94]
call fcn.0045a7d8
ret 8

Function at 0x43a07f
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4a4658
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a0f7
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
mov eax, dword [ebp - 0x94]
call fcn.0045a7d8
ret 8

Function at 0x43a105
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4a4688
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a17d
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
mov eax, dword [ebp - 0x94]
call fcn.0045a7d8
ret 8

Function at 0x43a18b
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4a46b8
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43a204
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
mov eax, dword [ebp - 0x94]
call fcn.0045a7d8
ret 8
Function at 0x43b2a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x43b2b3
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x43b66f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4a4a56
call fcn.0045a829
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.00459250
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push 0x4af918
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43b75e
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4ac964
mov ebx, 0x4ac96c
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.0043a212
push 0x4ac888
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.0040b8c0
lea ecx, [ebp - 0x144]
call fcn.0043ba15
lea eax, [ebp - 0x144]
jmp 0x43b7a3
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4ac964
mov ebx, 0x4ac96c
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.0043a212
push 0x4ac888
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.0040b8c0
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.00408e82
lea ecx, [ebp - 0x144]
call fcn.00401b80
lea ecx, [ebp - 0x14c]
call fcn.00432809
mov eax, esi
call fcn.0045a7d8
ret
Function at 0x43d540
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x4a4cbe
call fcn.0045a829
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x4adfa8
mov dword [ebp - 0x48], 0x4adfb0
call fcn.00404200
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.00442906
cmp dword [ebp + 0xc], 1
jne 0x43d5f8
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040a0f0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00409574
inc bl
je 0x43d5d1
lea ecx, [ebp - 0x2c]
call fcn.0040b6f4
push 0x4c4f08
lea eax, [ebp - 0x2c]
push eax
call fcn.004591e6
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13f0
mov dword [ebp - 0x18], 0x4c1390
call fcn.00408f6d
mov byte [ebp - 4], 2
jmp 0x43d651
cmp dword [ebp + 0xc], 2
jne 0x43d66b
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040a0f0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00409574
inc bl
jne 0x43d5bb
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13f0
mov dword [ebp - 0x18], 0x4c1390
call fcn.00408f6d
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0043e5dc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401b80
jmp 0x43d69d
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040a0f0
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00409574
inc bl
jne 0x43d5bb
push 0x4ac888
lea ecx, [ebp - 0x70]
call fcn.0042b99e
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4adfa8
mov dword [esi + 0x28], 0x4adfb0
call fcn.00408e82
lea ecx, [ebp - 0x70]
call fcn.00401b80
mov eax, esi
call fcn.0045a7d8
ret
Function at 0x43e72a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x43e7af
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x43e7a8
mov ecx, dword [edi]
test ecx, ecx
je 0x43e7a3
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x43e799
cmp edx, 2
jbe 0x43e78b
cmp edx, 7
jne 0x43e799
test cl, 1
jne 0x43e799
shr ecx, 1
cmp ecx, 1
jb 0x43e799
cmp word [esi + ecx*2 - 2], bx
jne 0x43e799
cmp ecx, 1
jbe 0x43e7a8
cmp word [esi + ecx*2 - 4], bx
jmp 0x43e797
test cl, 1
jne 0x43e799
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x43e7a8
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x43e7a8
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00408936
int3

Function at 0x43e83c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x43e891
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x43e85d
cmp eax, 0xffffffff
jne 0x43e86c
push 0x57
pop eax
jmp 0x43e88b
cmp eax, 0xffffffff
jne 0x43e86c
push dword [ebp + 8]
call fcn.0045a534
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.00408936
int3
Function at 0x441019
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4a52ad
call fcn.0045a829
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x441077
lea ecx, [ebp + 8]
call fcn.00424487
test al, al
je 0x441077
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x4c13f0
mov dword [ecx + 0x28], 0x4c1390
call fcn.00408e82
call fcn.004411fc
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
jmp 0x4411f6
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x4c13f0
mov dword [ecx + 0x28], 0x4c1390
call fcn.00408e82
call fcn.00442953
add esp, 0x30
cmp eax, 0xffffffff
je 0x4410b8
test byte [ebp + 0x38], 4
je 0x4410aa
test al, 0x10
je 0x4410b4
test byte [ebp + 0x38], 8
je 0x441068
test al, 0x10
je 0x441068
mov bl, 1
jmp 0x441068
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4411ec
cmp esi, 3
je 0x4411ec
cmp esi, 5
jne 0x4411a0
lea ecx, [ebp - 0xcc]
call fcn.0043dce1
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x4c13f0
mov dword [ecx + 0x28], 0x4c1390
call fcn.00408e82
call fcn.0044237e
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x441177
lea ecx, [ebp - 0xd0]
call fcn.00423188
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x441143
test byte [ebp - 0xcc], 0x10
je 0x441152
test byte [ebp + 0x38], 8
je 0x441154
test byte [ebp - 0xcc], 0x10
je 0x441154
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00423188
lea ecx, [ebp - 0x70]
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
jmp 0x441068
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00423188
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
test byte [ebp + 0x38], 0x20
je 0x441068
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004166c3
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
lea ecx, [ebp + 8]
call fcn.00401b80
xor al, al
call fcn.0045a7d8
ret
Function at 0x4439c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4b0630
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4439fa
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4439fa
call eax
jmp 0x443aaf
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysFreeString
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x443a44
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4c11c8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x443a90
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysFreeString
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x443a7d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00432809
test esi, esi
je 0x443a90
mov esi, 0x409
jmp 0x443aa2
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004606d2
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.00432809
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591d7
leave
ret