joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401015
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1c
mov dword [0x4040e4], 0x14
push ebx
push ebp
push esi
push edi
push 0x15
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x4040d4], eax
mov eax, dword [0x4040e4]
add eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push str.USR_Shohdi_Photo_USR
mov dword [0x4040fc], eax
push dword [0x4040d4]
call sub.MSVCRT.dll_strcpy
mov edi, 0x4040dc
push 0x404044
push edi
call sub.MSVCRT.dll_strcpy
push 0x404040
push 0x4040e0
call sub.MSVCRT.dll_strcpy
push dword [0x4040d4]
push dword [0x4040fc]
call sub.MSVCRT.dll_strcpy
push 0x40403c
push dword [0x4040fc]
call sub.MSVCRT.dll_strcat
mov eax, dword [esp + 0x60]
mov esi, 0x12c
push esi
mov dword [0x4040d8], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040f4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040ec], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x4040f0], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x40
mov dword [0x4040f8], eax
push dword [0x4040ec]
push dword [0x4040f4]
call fcn.00401f20
push dword [0x4040f4]
call sub.MSVCRT.dll_strlen
mov ecx, eax
mov eax, dword [0x4040f4]
add esp, 0xc
xor ebx, ebx
cmp byte [ecx + eax - 1], 0x22
jne 0x401112
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [0x4040f4]
mov byte [eax + ecx - 1], bl
push dword [0x4040ec]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [0x4040ec]
cmp byte [ecx + eax - 1], 0x22
jne 0x40113d
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [0x4040ec]
mov byte [eax + ecx - 1], bl
push esi
push dword [0x4040f0]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push dword [0x4040f8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x3e8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [0x4040f4]
mov esi, eax
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0xc
push edi
push esi
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [eax + esi - 3]
push eax
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add eax, dword [0x4040ec]
push eax
push esi
call sub.MSVCRT.dll_strcat
push dword [0x4040f4]
jmp section..htext
Function at 0x406c75
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x55c6c0]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor ebx, ebx
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.004adda0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x406cda
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040276b
mov bl, 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004aa206
add ebp, 0x39c
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40709b
sub eax, ecx
sar eax, 1
je 0x4070bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4070bd
mov al, 1
jmp 0x4070bf
xor al, al
leave
ret 4
Function at 0x40abed
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40abf4
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 1]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x40ac28
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x4cd79e
call fcn.004ae200
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40acf7
cmp dword [ebp - 0x10], 1
je 0x40ac6e
cmp dword [ebp - 0x10], 2
jne 0x40acf7
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048964c
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 1]
push eax
push 0
push ebx
call fcn.004adda0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call esi
test eax, eax
jne 0x40acef
cmp dword [ebp - 0x10], 1
je 0x40acbe
cmp dword [ebp - 0x10], 2
jne 0x40acef
push ebx
lea ecx, [ebp + 8]
call fcn.0040255d
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.0040262c
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402883
push ebx
call fcn.00489657
xor eax, eax
pop ecx
inc eax
jmp 0x40acf9
push ebx
call fcn.00489657
jmp 0x40ace9
xor eax, eax
call fcn.004ae2d8
ret 8

Function at 0x40ad01
Capabilities:
Set registry value

Disassembly:
push 4
push dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x40ad98
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x40b8e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x40b9c4
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push edi
push 1
push dword [esi + 0x10]
push 0x30
push eax
call ebx
movzx eax, word [esi]
push 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov ecx, ebp
call fcn.0040b3fb
xor edi, edi
and dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov eax, 0xffff
cmp word [ebp + 2], ax
lea eax, [ebp + 0x10]
je 0x40b94b
lea eax, [ebp + 8]
movzx eax, word [eax]
cmp dword [esp + 0xc], eax
jge 0x40b9ad
cmp dword [esp + 0xc], 0
jne 0x40b962
push 5
push dword [esi + 8]
jmp 0x40b965
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x40b9ad
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x14]
je 0x40b990
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x40b971
test edi, edi
je 0x40b9ad
push 1
push dword [esi + 0x10]
push 0x30
push edi
call ebx
mov eax, dword [esp + 0x10]
call fcn.0040b477
inc dword [esp + 0xc]
jmp 0x40b936
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
xor eax, eax
pop ebp
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
pop ebx
pop ecx
pop ecx
ret

Function at 0x40ba48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cefdd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x55c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
mov edi, SysReAllocStringLen
push eax
lea esi, [esp + 0x30]
mov dword [esp + 0x1c], edi
call fcn.0040ab14
xor ebx, ebx
mov dword [esp + 0x50], ebx
push 0x522d08
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x2001f
call fcn.0040255d
push ecx
mov byte [esp + 0x54], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.SYSRES
call fcn.0040255d
lea ecx, [esp + 0x18]
call fcn.00406d13
push 1
push dword [esp + 0x18]
push edi
call fcn.0040ab30
test eax, eax
je 0x40bb11
xor eax, eax
mov word [esp + 0x1c], ax
lea edi, [esp + 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x10
lea eax, [esp + 0x20]
push eax
push 3
push ebx
push str.LastRestorePointTime
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0040ab8e
mov bl, 1
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402883
lea esi, [esp + 0x2c]
call fcn.0040ab8e
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402883
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c83c
Capabilities:
Get common file path

Disassembly:
push 0x210
mov eax, 0x4cd70f
call fcn.004ae269
xor edi, edi
lea esi, [ebx + 0x2018]
mov dword [ebx], vtable.CCategory.0
mov dword [ebx + 0x2004], edi
mov dword [ebx + 0x2008], edi
mov dword [ebx + 0x200c], edi
mov dword [ebx + 0x2010], edi
mov dword [ebx + 0x2014], edi
mov dword [ebp - 0x21c], ebx
mov dword [esi], vtable.CArray_class_CProblem___class_CProblem__const_const__.0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea ecx, [ebx + 0x202c]
mov dword [ebp - 4], edi
call fcn.00402865
push 0x2000
lea eax, [ebx + 4]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.004adda0
add esp, 0xc
mov eax, 0x104
push eax
push eax
lea ecx, [ebx + 0x202c]
call fcn.0040298b
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebx + 0x202c]
call fcn.00411fca
push 0x5236bc
lea ecx, [ebx + 0x202c]
call fcn.00411b75
cmp dword [0x56550c], edi
jne 0x40c911
push str.GetSystemWow64DirectoryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x56550c], eax
cmp eax, edi
je 0x40c960
mov eax, dword [0x565510]
cmp dword [eax - 0xc], edi
jne 0x40c960
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004adda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [0x56550c]
test eax, eax
je 0x40c960
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x565510
call fcn.0040276b
xor edi, edi
call fcn.0047d641
mov eax, ebx
call fcn.004ae2ec
ret
Function at 0x40ca2d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x34
mov eax, 0x4cd6d3
call fcn.004ae233
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call fcn.00495776
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x24], ebx
jbe 0x40cb57
push 0x3fc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.0048964c
pop ecx
mov dword [ebp - 0x1c], eax
call fcn.00461ea4
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], ebx
movzx eax, word [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jae 0x40cb37
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0xff
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x40cb2f
cmp byte [ebp - 0x15], bl
je 0x40cb20
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.0040255d
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00411ade
mov ebx, edi
call fcn.0040c507
mov ebx, eax
call fcn.0040c554
push 0x5236d0
xor ecx, ecx
mov esi, edi
call fcn.004077b1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
test eax, eax
jne 0x40cb19
call fcn.00402883
xor ebx, ebx
jmp 0x40cb2f
call fcn.00402883
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
push eax
call fcn.00495ad5
inc dword [ebp - 0x28]
jmp 0x40ca9a
or dword [ebp - 4], 0xffffffff
jmp 0x40cb49
cmp dword [ebp - 0x1c], ebx
je 0x40cb57
push dword [ebp - 0x1c]
call fcn.00489657
pop ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], ebx
setne al
call fcn.004ae2d8
ret
Function at 0x40cb68
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x4cab3d
call fcn.004ae233
mov ecx, dword [ebp + 0xc]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
call fcn.00495776
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], esi
jbe 0x40cc3c
mov ebx, 0x400
push 0x1000
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.0048964c
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
movzx edi, word [ebp - 0x1c]
cmp edi, dword [ebp - 0x18]
jae 0x40cc1c
push 0x800
push esi
push dword [ebp - 0x14]
call fcn.004adda0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x40cc17
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov eax, dword [ecx + 8]
push eax
call fcn.00495ad5
inc dword [ebp - 0x1c]
jmp 0x40cbd2
or dword [ebp - 4], 0xffffffff
jmp 0x40cc2e
cmp dword [ebp - 0x14], esi
je 0x40cc3c
push dword [ebp - 0x14]
call fcn.00489657
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004ae2d8
ret 8
Function at 0x40cc4a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x4cd6b0
call fcn.004ae233
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
push ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
stosd dword es:[edi], eax
call fcn.00495776
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1c], ebx
jbe 0x40cd7b
push 0x3fc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xff
mov dword [ebp - 4], ebx
call fcn.0048964c
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
movzx edi, word [ebp - 0x18]
cmp edi, dword [ebp - 0x1c]
jae 0x40cd5b
push 0x1fe
push ebx
push esi
call fcn.004adda0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x40cd53
push esi
cmp word [ebp - 0x18], bx
jne 0x40cd47
lea ecx, [ebp - 0x14]
call fcn.0040255d
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c554
call fcn.0040c507
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40cd34
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00495ad5
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402883
xor ebx, ebx
jmp 0x40cd53
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
push eax
call fcn.00495ad5
inc dword [ebp - 0x18]
jmp 0x40ccc4
or dword [ebp - 4], 0xffffffff
jmp 0x40cd70
cmp esi, ebx
je 0x40cd7b
push esi
call fcn.00489657
pop ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
call fcn.004ae2d8
ret 8

Function at 0x40cde4
Capabilities:
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x40ce01
not al
movzx esi, al
shr esi, 4
and esi, 1
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, esi
pop esi
ret 4
Function at 0x40e1f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x4cbbad
call fcn.004ae200
mov ebx, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
call fcn.00461ea4
test al, al
je 0x40e22b
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, esi
jmp 0x40e327
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov esi, 0x104
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.0040268b
push dword [ebp + 0xc]
mov eax, 0x2001f
push dword [ebp + 8]
lea edi, [ebp - 0x1c]
call fcn.00411f6e
mov dword [ebp - 0x14], eax
cmp eax, 5
jne 0x40e274
push dword [ebp + 0xc]
mov eax, 0x20019
push dword [ebp + 8]
call fcn.00411f6e
mov dword [ebp - 0x14], eax
xor edi, edi
cmp dword [ebp - 0x14], edi
jne 0x40e301
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x1c]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e2f0
cmp dword [ebp + 8], 1
je 0x40e2ab
cmp dword [ebp + 8], 2
jne 0x40e2f0
cmp dword [ebp - 0x10], esi
jbe 0x40e2b3
mov esi, dword [ebp - 0x10]
push esi
mov ecx, ebx
call fcn.0040298b
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00411f06
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.00411fca
test esi, esi
jne 0x40e2f0
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x40e2f7
call fcn.0040c507
mov ebx, eax
call fcn.0040c554
jmp 0x40e2f7
mov ecx, ebx
call fcn.0040268b
lea ecx, [ebp - 0x1c]
call fcn.00411faa
xor edi, edi
lea ecx, [ebp - 0x1c]
call fcn.00411faa
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402883
xor eax, eax
cmp dword [ebp - 0x14], edi
sete al
call fcn.004ae2d8
ret 0xc
Function at 0x40e32f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4cbb7a
call fcn.004ae200
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.0040268b
push dword [ebp + 0xc]
mov eax, 0x2021f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.00411f6e
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x40e388
push dword [ebp + 0xc]
mov eax, 0x20219
push dword [ebp + 8]
call fcn.00411f6e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x40e41e
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e40e
cmp dword [ebp + 8], 1
je 0x40e3bd
cmp dword [ebp + 8], 2
jne 0x40e40e
cmp dword [ebp - 0x14], esi
jbe 0x40e3c5
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0040298b
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00411f06
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.00411fca
cmp edi, ebx
jne 0x40e40a
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x40e416
mov ebx, esi
call fcn.0040c507
mov ebx, eax
call fcn.0040c554
xor ebx, ebx
jmp 0x40e416
mov ecx, esi
jmp 0x40e411
mov ecx, dword [ebp + 0x14]
call fcn.0040268b
lea ecx, [ebp - 0x20]
call fcn.00411faa
lea ecx, [ebp - 0x20]
call fcn.00411faa
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402883
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004ae2d8
ret 0x10
Function at 0x40e44c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4cbb7a
call fcn.004ae200
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov esi, 0x104
mov dword [ebp - 0x14], esi
call fcn.0040268b
push dword [ebp + 0xc]
mov eax, 0x2011f
push dword [ebp + 8]
lea edi, [ebp - 0x20]
call fcn.00411f6e
mov dword [ebp - 0x18], eax
cmp eax, 5
jne 0x40e4a5
push dword [ebp + 0xc]
mov eax, 0x20119
push dword [ebp + 8]
call fcn.00411f6e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
jne 0x40e53b
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x20]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e52b
cmp dword [ebp + 8], 1
je 0x40e4da
cmp dword [ebp + 8], 2
jne 0x40e52b
cmp dword [ebp - 0x14], esi
jbe 0x40e4e2
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0040298b
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00411f06
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.00411fca
cmp edi, ebx
jne 0x40e527
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x40e533
mov ebx, esi
call fcn.0040c507
mov ebx, eax
call fcn.0040c554
xor ebx, ebx
jmp 0x40e533
mov ecx, esi
jmp 0x40e52e
mov ecx, dword [ebp + 0x14]
call fcn.0040268b
lea ecx, [ebp - 0x20]
call fcn.00411faa
lea ecx, [ebp - 0x20]
call fcn.00411faa
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00402883
xor eax, eax
cmp dword [ebp - 0x18], ebx
sete al
call fcn.004ae2d8
ret 0x10
Function at 0x40ec72
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4d3098
call fcn.004ae200
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040255d
and dword [ebp - 4], 0
mov edi, eax
call fcn.00411ade
push eax
lea ecx, [ebp + 8]
call fcn.004025a1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402883
cmp byte [ebp + 0xc], 0
jne 0x40ed52
mov edi, str._syswow64_
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x40ed28
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.004025a1
push str._system32_
push edi
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.0041193f
mov edi, dword [ebp + 0xc]
push edi
call fcn.00410d16
test eax, eax
jge 0x40ed1d
push dword [ebp + 8]
call fcn.00410d16
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.00402883
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, esi
call fcn.004ae2d8
ret 8
jne 0x40ecfe
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x40ecfe
mov ebx, str._system32_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x40ed52
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.004025a1
mov byte [ebp - 4], 4
jmp 0x40edbd
jne 0x40ed00
jmp 0x40ed1f
mov edi, str.program_files__x86__
push edi
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x40ed99
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.004025a1
push str.program_files_
mov byte [ebp - 4], 5
push edi
lea eax, [ebp + 0xc]
push eax
call fcn.0041193f
mov edi, dword [ebp + 0xc]
push edi
call fcn.00410d16
mov esi, eax
test esi, esi
jge 0x40ed4e
jmp 0x40ecf6
mov ebx, str.program_files_
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
call fcn.004077b1
cmp eax, 0xffffffff
je 0x40edc1
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.004025a1
mov byte [ebp - 4], 6
push edi
push ebx
jmp 0x40ed7c
push dword [ebp + 8]
call fcn.00410d16
mov esi, eax
jmp 0x40ed08