joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ef94
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000f148
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1000efe3
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1000efde
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1000f146
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x12
jmp 0x1000f01d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffec
je 0x1000f146
mov dword [ebp - 8], 0xd94543be
mov dword [ebp - 0x24], 0x8dc164f9
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x60], 0x18ebdb88
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 8], 0x96ce028f
jae 0x1000f05d
mov dword [ebp - 0x10], 1
jmp 0x1000f061
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jle 0x1000f074
mov dword [ebp - 0x14], 1
jmp 0x1000f078
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
dec eax
dec eax
cmp eax, 0xffffffff
jle 0x1000f08b
mov dword [ebp - 0x18], 1
jmp 0x1000f08f
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x1000f0a2
mov dword [ebp - 0x1c], 1
jmp 0x1000f0a6
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jl 0x1000f0b7
mov dword [ebp - 0x20], 1
jmp 0x1000f0bb
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000f0d4
mov dword [ebp - 0x58], 1
jmp 0x1000f0d8
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
push 1
mov ecx, dword [ebp - 0x5c]
call fcn.1002fdaa
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
cmp dword [eax], ecx
je 0x1000f10a
mov dword [ebp - 0x30], 1
jmp 0x1000f10e
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
je 0x1000f122
mov dword [ebp - 0x34], 1
jmp 0x1000f126
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x34], eax
jl 0x1000f137
mov dword [ebp - 0x38], 1
jmp 0x1000f13b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
jmp 0x1000f012
jmp 0x1000f15c
push 1
push 0x5215
push 0x6535
call fcn.1000ae3f
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10010363
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100103e4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100103da
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100103bb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x100103d8
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1002fdaa
mov dword [eax], 0xcc8af953
jmp 0x100103b0
jmp 0x100103e2
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100103f2
push 0x56eb
push 1
call fcn.1000f160
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100216db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10021741
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1002170e
push 0x5da
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1002173f
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002173f
push 0
push 0x1633
push 0
push 0
push 0xf17
push 0x237d
call dword [sym.imp.USER32.dll_ToAsciiEx]
jmp 0x10021762
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x212c
call fcn.10009ec8
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1006f385
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007b750]
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.10061208
mov dword [ebp - 0x14], eax
cmp dword [0x106688c0], esi
jne 0x1006f478
push 0x800
push esi
push 0x100075d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006f405
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006f558
push esi
push esi
push 0x100075d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006f558
push 0x100075e8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006f558
push eax
call ebx
push 0x100075f4
push edi
mov dword [0x106688c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007604
push edi
mov dword [0x106688c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007618
push edi
mov dword [0x106688c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106688d0], eax
test eax, eax
je 0x1006f475
push 0x10007634
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106688cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006f49d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006f490
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006f4b2
push 4
pop eax
jmp 0x1006f55a
cmp dword [ebp - 0x14], esi
je 0x1006f4b2
push dword [0x106688c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006f497
mov eax, dword [0x106688cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006f510
cmp dword [0x106688d0], edi
je 0x1006f510
push eax
call ebx
push dword [0x106688d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006f510
test eax, eax
je 0x1006f510
call ecx
test eax, eax
je 0x1006f505
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 0x1006f505
test byte [ebp - 8], 1
jne 0x1006f510
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006f540
mov eax, dword [0x106688c4]
cmp eax, edi
je 0x1006f53d
push eax
call ebx
test eax, eax
je 0x1006f53d
call eax
mov esi, eax
test esi, esi
je 0x1006f53d
mov eax, dword [0x106688c8]
cmp eax, edi
je 0x1006f53d
push eax
call ebx
test eax, eax
je 0x1006f53d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106688c0]
call ebx
test eax, eax
je 0x1006f558
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006f55a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e792
mov esp, ebp
pop ebp
ret
Function at 0x401130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10008
call fcn.00421fc0
mov eax, dword [0x42e004]
xor eax, esp
mov dword [esp + 0x10004], eax
cmp dword [0x42f580], 0
push esi
push edi
je 0x4011df
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x14]
push 0x8000
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0040ed44
mov esi, eax
add esp, 0x1c
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x4011df
push dword [0x42f580]
lea eax, [esp + 0xc]
push eax
call fcn.00414c03
add esp, 8
lea edi, [esi + esi]
movzx eax, word [esp + edi + 8]
push eax
call fcn.004151d0
add esp, 4
test eax, eax
je 0x4011cc
dec esi
cmp edi, 0x10000
jae 0x4011f3
xor eax, eax
mov word [esp + edi + 8], ax
test esi, esi
jne 0x4011a3
cmp word [esp + 8], 0
je 0x4011df
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1000c]
pop edi
pop esi
xor ecx, esp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
call fcn.004065cc
int3
Function at 0x402370
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.00421fc0
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1000c], eax
mov esi, edx
lea eax, [ebp - 0x10008]
mov ebx, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
test eax, eax
js 0x40246e
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40246e
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x402438
lea eax, [ebp - 0x10008]
push eax
push esi
push str._Found__s_in__s_n
call fcn.00401130
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x402459
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
jmp 0x402468
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
push 0x8000
lea eax, [ebp - 0x10008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40253b
push 0x8000
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x40253b
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40253b
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x402410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x40252c
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30014
call fcn.00421fc0
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x30014], edx
xor eax, eax
mov dword [ebp - 0x3000c], ecx
mov dword [ebp - 0x30010], ebx
mov dword [ebp - 0x30008], eax
push esi
push edi
test edx, edx
je 0x4027e0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4027e0
lea edi, [ebp - 0x30004]
test esi, esi
jle 0x4026c5
movzx esi, word [edx + ebx*2]
push esi
call fcn.004151d0
mov ecx, dword [ebp - 0x30008]
add esp, 4
test eax, eax
je 0x40267e
test ecx, ecx
je 0x4026bc
cmp esi, 0x22
jne 0x402692
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x30008], eax
jmp 0x4026ac
cmp esi, 0x2f
je 0x4026a1
cmp esi, 0x5c
je 0x4026a1
mov word [edi], si
jmp 0x4026a9
mov eax, 0x5c
mov word [edi], ax
add edi, 2
mov esi, dword [ebp + 8]
inc ebx
cmp ebx, esi
jge 0x4026c5
mov edx, dword [ebp - 0x30014]
jmp 0x402663
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30010], ebx
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4027f3
mov eax, dword [ebp - 0x3000c]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x20004]
push 0x8000
push eax
call fcn.00415367
add esp, 0x10
test eax, eax
jne 0x4027f3
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
lea eax, [ebp - 0x20004]
push 1
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4027f3
push 0x8000
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x4027f3
push 1
lea eax, [ebp - 0x30004]
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4027f3
lea eax, [ebp - 0x10004]
push 0x8000
push eax
call fcn.00409a24
mov ebx, eax
lea ecx, [ebx*2 + 6]
push ecx
call fcn.0041528e
add esp, 0xc
test eax, eax
je 0x4027f3
mov edi, dword [ebp - 0x3000c]
mov ecx, dword [edi + 0x44]
mov dword [eax], ecx
mov dword [edi + 0x44], eax
lea edi, [eax + 4]
test edi, edi
je 0x4027f3
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebx + 1]
push eax
push edi
call fcn.00414c87
mov ecx, dword [ebp - 0x3000c]
add esp, 0xc
mov edx, dword [ebp - 0x30010]
mov dword [ecx + 8], edi
test edx, edx
je 0x4027e0
mov eax, dword [ebp - 0x30014]
sub esi, edx
mov dword [ecx + 0x20], esi
lea eax, [eax + edx*2]
mov dword [ecx + 0x1c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x402e40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.00421fc0
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x38], 0
je 0x402eda
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402eed
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402eed
cmp byte [esi + 0x34], 0
je 0x402eda
push ecx
push 0x429528
push eax
call fcn.00415254
add esp, 0xc
test eax, eax
jne 0x402ea1
mov dword [ebp - 0x1000c], str.python3
mov eax, str.py_python3
jmp 0x402eff
push dword [ebx]
push 0x429524
push dword [esi + 0x2c]
call fcn.00415254
add esp, 0xc
test eax, eax
jne 0x402ec8
mov dword [ebp - 0x1000c], str.python2
mov eax, str.py_python2
jmp 0x402eff
push dword [esi + 0x2c]
push dword [ebx]
push str._Cannot_select_defaults_for_tag__.s_n
call fcn.00401130
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1000c], str.python
lea ebx, [esi + 0x30]
mov eax, str.py_python
push 0x8000
lea ecx, [ebp - 0x10008]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x402f39
mov edx, dword [ebp - 0x1000c]
lea eax, [ebp - 0x10008]
push ecx
push eax
mov ecx, str.defaults
call fcn.00402370
mov edi, eax
add esp, 8
test edi, edi
je 0x402eda
lea eax, [edi*2 + 6]
push eax
call fcn.0041528e
add esp, 4
test eax, eax
je 0x402ff3
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x44], eax
mov dword [ebp - 0x1000c], ecx
test ecx, ecx
je 0x402ff3
lea eax, [ebp - 0x10008]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.00414c87
add esp, 0xc
push 0x2f
push dword [ebp - 0x1000c]
call fcn.004070b8
mov edx, eax
add esp, 8
test edx, edx
jne 0x402fba
mov eax, dword [ebp - 0x1000c]
mov cl, 1
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], cl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1000c]
mov eax, edx
sub eax, ecx
mov dword [esi + 0x24], ecx
sar eax, 1
xor cl, cl
mov dword [esi + 0x28], eax
sub edi, eax
lea eax, [edx + 2]
dec edi
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x403510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 6
push dword [ebp + 0xc]
mov ebx, edx
mov edi, ecx
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403584
push dword [ebp - 4]
call fcn.0041528e
mov esi, eax
add esp, 4
test esi, esi
jne 0x403558
pop edi
lea eax, [esi + 0x68]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
push 0
push 6
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40357b
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004151ab
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 0
push 6
push 0
mov ebx, edx
mov dword [ebp - 8], ecx
push str.InstallPath
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403a78
push dword [ebp - 4]
call fcn.0041528e
mov edi, eax
add esp, 4
test edi, edi
jne 0x403a4f
lea eax, [edi + 0x68]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push edi
push 0
push 6
push 0
push str.InstallPath
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403a6f
mov dword [esi + 0x18], edi
jmp 0x403a78
push edi
call fcn.004151ab
add esp, 4
cmp dword [esi + 0x18], 0
je 0x403bed
mov edi, dword [esi + 0xc]
test edi, edi
je 0x403ace
push 0
push 0
push 0
push 0xffffffffffffffff
push str.PythonCore
push 0xffffffffffffffff
push edi
push 9
push 0x428e98
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
sub eax, 1
je 0x403ace
sub eax, 1
je 0x403b1d
sub eax, 1
je 0x403ace
push str.PythonCore
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push str.Error_comparing__.s_and__.s__compare_
push 0
call fcn.00401200
add esp, 0x18
mov eax, dword [ebp - 8]
lea edi, [esi + 0x1c]
cmp byte [eax + 0x39], 0
je 0x403b8f
push str.WindowedExecutablePath
push str.InstallPath
mov edx, ebx
mov ecx, edi
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
je 0x403b9d
push str.WindowedExecutableArguments
push str.InstallPath
lea ecx, [esi + 0x20]
mov edx, ebx
call fcn.00403510
add esp, 8
jmp 0x403b91
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str._d._d
push dword [esi + 0x10]
call fcn.00401100
add esp, 0x10
cmp eax, 2
je 0x403b52
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.__s__s_has_an_invalid_version_tag_n
call fcn.00401130
add esp, 0xc
jmp 0x403ace
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x403b77
cmp eax, 3
jne 0x403ace
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x403ace
cmp eax, 5
jg 0x403ace
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
push esi
call fcn.00403670
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test eax, eax
jne 0x403c24
cmp dword [edi], eax
jne 0x403bf9
push str.ExecutablePath
push str.InstallPath
mov edx, ebx
mov ecx, edi
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
je 0x403bda
push str.ExecutableArguments
push str.InstallPath
lea ecx, [esi + 0x20]
mov edx, ebx
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
jne 0x403bf9
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.__s__s_has_no_executable_path_n
call fcn.00401130
add esp, 0xc
mov eax, 0x67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SysArchitecture
push 0
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
push str.DisplayName
push eax
lea ecx, [esi + 0x28]
mov edx, ebx
call fcn.00403510
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x21c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403e3c
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403e20
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x208]
call fcn.00403010
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + 0x14], eax
mov edx, dword [ebp - 0x210]
call fcn.00403a00
add esp, 8
mov edi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x67
jne 0x403d81
push dword [esi + 0xc]
call fcn.004151ab
add esp, 4
push dword [esi + 0x10]
call fcn.004151ab
add esp, 4
push dword [esi + 0x18]
call fcn.004151ab
add esp, 4
push dword [esi + 0x1c]
call fcn.004151ab
add esp, 4
push dword [esi + 0x20]
call fcn.004151ab
add esp, 4
push dword [esi + 0x28]
call fcn.004151ab
mov ecx, dword [esi]
add esp, 4
call fcn.00403120
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00403120
push esi
mov dword [esi + 4], 0
call fcn.004151ab
mov esi, dword [ebp - 0x20c]
add esp, 4
xor edi, edi
inc ebx
jmp 0x403c71
test edi, edi
jne 0x403e1a
mov ecx, dword [ebp - 0x224]
xor edx, edx
push esi
call fcn.004032d0
mov edi, eax
add esp, 4
test edi, edi
je 0x403e1a
push dword [esi + 0xc]
call fcn.004151ab
add esp, 4
push dword [esi + 0x10]
call fcn.004151ab
add esp, 4
push dword [esi + 0x18]
call fcn.004151ab
add esp, 4
push dword [esi + 0x1c]
call fcn.004151ab
add esp, 4
push dword [esi + 0x20]
call fcn.004151ab
add esp, 4
push dword [esi + 0x28]
call fcn.004151ab
mov ecx, dword [esi]
add esp, 4
call fcn.00403120
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00403120
push esi
mov dword [esi + 4], 0
call fcn.004151ab
mov esi, dword [ebp - 0x20c]
add esp, 4
cmp edi, 0x6e
jne 0x403e20
xor edi, edi
inc ebx
jmp 0x403c71
mov esi, dword [ebp - 0x20c]
inc ebx
test edi, edi
je 0x403c71
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
cmp eax, 0x103
je 0x403e52
push str.Failed_to_read_installs__tags__from_the_registry
push 0
call fcn.00401200
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret