joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fa00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ecx
mov eax, dword [0x4c5ef4]
mov dword [ebp - 0x114], eax
mov byte [ebp - 0x109], 0x61
jmp 0x45fa3c
mov cl, byte [ebp - 0x109]
add cl, 1
mov byte [ebp - 0x109], cl
movsx edx, byte [ebp - 0x109]
cmp edx, 0x7a
jg 0x45fad7
push 5
movzx eax, byte [ebp - 0x109]
push eax
mov ecx, dword [ebp - 0x110]
call fcn.0045faf0
movzx ecx, al
cmp ecx, 1
jne 0x45fad2
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x109]
mov byte [ebp + eax - 0x114], cl
push 0
push 0
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x110]
add ecx, 0x38
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x38]
mov edx, dword [eax + 0xc]
call edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x45fad2
mov al, byte [ebp - 0x109]
jmp 0x45fad9
jmp 0x45fa2d
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
mov esp, ebp
pop ebp
ret

Function at 0x45faf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [0x4c5ef8]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov al, byte [ebp + 8]
mov byte [ebp + edx - 4], al
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 0xc]
jne 0x45fb23
mov al, 1
jmp 0x45fb25
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x460e30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x410], ecx
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x590], ecx
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x594], eax
mov ecx, dword [ebp - 0x410]
cmp dword [ecx + 0x590], 9
je 0x460e85
mov edx, dword [ebp - 0x410]
cmp dword [edx + 0x590], 0xd
jne 0x460ec9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x594]
mov dword [ebp - 0x414], ecx
cmp dword [ebp - 0x414], 9
jl 0x460ead
cmp dword [ebp - 0x414], 0x10
jle 0x460eab
jmp 0x460ead
jmp 0x460ec7
mov edx, dword [ebp - 0x410]
cmp dword [edx + 0x594], 1
je 0x460ec7
mov ecx, dword [ebp - 0x410]
call fcn.004609c0
jmp 0x460ef3
mov ecx, dword [ebp - 0x410]
call fcn.00460e00
push str.cgpSaveThumbChange.png
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx edx, byte [ebp + 0x10]
cmp edx, 1
jne 0x460f0c
mov ecx, dword [ebp - 0x410]
call fcn.00461050
jmp 0x461036
lea ecx, [ebp - 0x40c]
call fcn.004122a0
push 0x304
push 0
lea eax, [ebp - 0x40c]
push eax
call fcn.0049ed40
add esp, 0xc
mov dword [ebp - 0x40c], 0x1964
xorps xmm0, xmm0
movss dword [ebp - 0x3f0], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x3ec], xmm0
xorps xmm0, xmm0
movss dword [ebp - 0x3e8], xmm0
mov dword [ebp - 0x3d0], 0x500
mov dword [ebp - 0x3cc], 0x2d0
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0
mov dword [ebp - 0x3c0], 0x500
mov dword [ebp - 0x3bc], 0x2d0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0x424]
call fcn.00411280
mov ecx, dword [eax]
mov dword [ebp - 0x3e0], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3dc], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x3d8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3d4], edx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x408], 0x6d
mov byte [ebp - 0x3fc], 1
lea eax, [ebp - 0x40c]
push eax
mov ecx, 0x4927138
call fcn.004414c0
push ecx
movss xmm0, dword [0x4c94b8]
movss dword [esp], xmm0
push 0xc8
mov ecx, dword [ebp - 0x40c]
push ecx
mov ecx, 0x4927138
call fcn.00445e90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4649f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x18
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0xc]
call eax
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._bgm_
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x464a85
push str._:_setup_bgm_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
call fcn.0045fa00
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], al
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x464a85
xor al, al
jmp 0x464a87
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4719e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor edx, edx
mov word [ebp - 0x14], dx
mov eax, 1
mov word [ebp - 0x12], ax
xor ecx, ecx
mov word [ebp - 0x10], cx
xor edx, edx
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov word [ebp - 0xa], cx
xor edx, edx
mov word [ebp - 8], dx
mov eax, 1
mov word [ebp - 6], ax
cmp dword [ebp + 0x18], 0
jne 0x471a46
xor eax, eax
jmp 0x471aab
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0049d760
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x471a86
push 0x30
mov ecx, 0x489f1d0
call fcn.00411310
push eax
push 0x4c6944
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004a1571
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetGlyphOutlineA]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
mov esp, ebp
pop ebp
ret 0x14
Function at 0x476b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x476c1e
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x476c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x476c11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], 0
jne 0x476bee
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x476c0f
cmp dword [ebp - 0x10], 0x102
jne 0x476c04
mov byte [ebp - 1], 4
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0
jmp 0x476c0f
mov byte [ebp - 1], 5
mov ecx, dword [ebp - 8]
mov byte [ecx + 8], 0
jmp 0x476c1c
mov byte [ebp - 1], 5
mov edx, dword [ebp - 8]
mov byte [edx + 8], 0
jmp 0x476c22
mov byte [ebp - 1], 2
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x476c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00476700
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.COnahole.0
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x70], 0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x68], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x6c], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0x3c
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x31
mov byte [ebp - 0x10], 0x35
mov byte [ebp - 0xf], 0x32
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0xd], 0x30
mov byte [ebp - 0xc], 0x30
mov byte [ebp - 0xb], 0x30
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 1
mov byte [ebp - 8], 2
mov byte [ebp - 7], 3
mov byte [ebp - 6], 0x68
mov byte [ebp - 5], 0x3e
mov ecx, dword [ebp - 0x18]
add ecx, 0x48
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
mov esp, ebp
pop ebp
ret
Function at 0x4776d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4d10
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4d0b90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.MOSceMain.0
mov ecx, dword [ebp - 0x10]
call fcn.00477830
push 0x484030
push 0x64
push 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x3eae54
push ecx
call fcn.0049d964
push 0x484130
push 0xa
push 8
mov edx, dword [ebp - 0x10]
add edx, 0x3ead38
push edx
call fcn.0049d964
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ead30
call fcn.00484200
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ead28
call fcn.00484200
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ead20
call fcn.00484200
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ead18
call fcn.00484200
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ead10
call fcn.00484200
mov ecx, dword [ebp - 0x10]
add ecx, 0x313bcc
call fcn.00494890
mov ecx, dword [ebp - 0x10]
add ecx, 0x313bb0
call fcn.00496ea0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc7428
call fcn.00496bb0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc7404
call fcn.004942f0
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00496ea0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00496d40
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00496ea0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00494be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4969b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4969c5
lea eax, [ecx + 0xc]
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4969d6
mov eax, 3
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4969e5
lea eax, [edx + 2]
pop esi
pop ebp
ret 8
push edi
push 0
lea edi, [ebp + 8]
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
cmp eax, 1
jne 0x496a18
mov eax, dword [ebp + 8]
test eax, eax
jne 0x496a0e
mov dword [esi + 0xc], 1
pop esi
pop ebp
ret 8
add dword [esi + 8], eax
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, 0xe
pop esi
pop ebp
ret 8

Function at 0x496a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x496a45
lea eax, [ecx + 0xc]
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
test eax, eax
jne 0x496a56
mov eax, 3
pop esi
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x496a65
lea eax, [edx + 2]
pop esi
pop ebp
ret 8
push edi
push 0
lea edi, [ebp + 8]
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
cmp eax, 1
jne 0x496a98
mov eax, dword [ebp + 8]
test eax, eax
jne 0x496a8e
mov dword [esi + 0xc], 1
pop esi
pop ebp
ret 8
add dword [esi + 8], eax
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, 0xe
pop esi
pop ebp
ret 8
Function at 0x401e70
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401ee0
xor eax, eax
jmp 0x401fc1
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401ef8
xor eax, eax
jmp 0x401fc1
push ebp
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
add eax, 0x638f
call fcn.004018c0
mov esp, ebp
pop ebp
ret

Function at 0x401474
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4014ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401474
mov dword [esp], 0x4015c8
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202a
sub eax, 0x4015c8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401591
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.0040137a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013df
lea eax, [ebx + 0x1b800]
mov ecx, 0x40300c
or eax, ebx
or ecx, 1
xor edx, edx
mov dword [esp + 4], eax
mov eax, ebx
div ecx
mov dword [esp + 8], esi
add eax, 0x40300c
mov dword [esp], eax
call fcn.00401d2d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402077
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call fcn.004240fc
pop ecx
pop ecx
push ebx
push 0x80000080
push 2
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, dword [sym.imp.kernel32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x14], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x1c], eax
call esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.kernel32.dll_SetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x18], eax
call esi
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call esi
mov ecx, 0x431440
call fcn.00401a9d
mov edi, eax
cmp edi, ebx
jne 0x40211f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push eax
call fcn.00401654
add esp, 0x10
or eax, 0xffffffff
jmp 0x4021f7
push dword [ebp - 0x20]
call fcn.0040e447
pop ecx
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp - 0x1c]
push 0xfffffffffffffff5
call esi
push dword [ebp - 0x18]
push 0xfffffffffffffff4
call esi
cmp dword [ebp - 0x20], ebx
je 0x4021e2
mov eax, str.Running_the_pre_installation_script_failed_r_n
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402151
push ebx
push dword [ebp - 0x14]
sub eax, edx
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x402175
mov dword [ebp - 0x18], 0x1000
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi + 1]
push eax
call fcn.0040e447
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4021d7
mov eax, str.Running_the_pre_installation_script_failed_r_n
mov edx, esi
mov dword [ebp - 0x1c], ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402195
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [esi + edi]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
add eax, esi
push esi
mov byte [eax + edi], bl
call fcn.00401654
push esi
call fcn.00407f30
pop ecx
jmp 0x4021e1
push str.Out_of_memory_
call fcn.00401654
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x74
leave
ret
Function at 0x4024ca
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
mov dword [ebp - 0x78], ecx
lea ecx, [edx + eax - 0x16]
sub eax, dword [ecx + 0x10]
push esi
sub eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 0xa0]
sub eax, 0x22
lea esi, [edx + eax]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [ecx], 0x6054b50
mov dword [ebp - 0x80], edi
jne 0x40260f
cmp dword [esi], 0x1234567b
je 0x402534
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.0040e447
pop ecx
jmp 0x402611
cmp eax, edx
jl 0x40260f
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402550
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x431560], edx
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x78]
sub eax, dword [esi + 8]
mov edi, esi
mov dword [ecx], eax
sub edi, dword [esi + 4]
push 0x104
call fcn.0040e447
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x40260f
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x4025fd
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x4259a8
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x4025fd
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.0040e447
add esp, 0x1c
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40260f
push dword [esi + 4]
push edi
push eax
call fcn.00408be0
mov eax, dword [ebp - 0x78]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025d1
sub eax, esi
lea eax, [eax + edi + 1]
push eax
call fcn.0040e447
pop ecx
mov ecx, dword [ebp - 0x80]
push dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
xor eax, eax
inc eax
jmp 0x402611
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.0040e447
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.00407875
add ebp, 0x94
leave
ret
Function at 0x4029b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
lea ecx, [ebp - 0x68]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x9c]
push str.SoftwarePythonPythonCore
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a04
xor eax, eax
jmp 0x402b41
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x70], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402b35
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [ebp + 0xa0]
inc dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x50
cmp esi, ebx
je 0x402a77
cmp byte [esi], bl
je 0x402a77
lea eax, [ebp + 0x3c]
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x402a6a
cmp cl, bl
je 0x402a66
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x402a6a
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x402a4c
xor eax, eax
jmp 0x402a6f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402b13
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x14]
push str.Python_Version__s__found_in_registry_
push eax
call esi
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x64]
push str.SoftwarePythonPythonCore_sInstallPath
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402b13
push 0x10c
call fcn.0040e447
mov esi, eax
pop ecx
mov dword [ebp - 0x80], 0x105
cmp esi, ebx
je 0x402b0a
lea eax, [ebp - 0x80]
push eax
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b0a
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x180
push dword [ebp - 0x74]
call edi
mov ecx, dword [ebp - 0x7c]
push esi
push eax
push 0x19a
push dword [ebp - 0x74]
mov dword [esi + 0x108], ecx
call edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3c]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402a31
pop edi
pop esi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x90
leave
ret