joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f3c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004198d0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.0041d470
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41f500
push 2
push ebp
push ebx
call fcn.0041d470
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f500
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41f4a1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00421900
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41f446
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0041cf20
add esp, 0xc
cmp eax, 0xffffffff
je 0x41f462
sub esi, eax
test esi, esi
jle 0x41f47a
jmp 0x41f437
call fcn.0041d3e0
cmp dword [eax], 5
jne 0x41f477
call fcn.0041d3d0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00421900
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0041d470
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41f4e7
push 0
push ecx
push ebx
call fcn.0041d470
add esp, 0xc
push ebx
call fcn.0041f0c0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x41f4e7
call fcn.0041d3d0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041d3e0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.0041d470
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x41fd90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x431a18]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x41fdd2
call edi
mov esi, eax
test esi, esi
je 0x41fdbc
mov eax, 1
jmp 0x41fdcd
call ebp
mov ebx, eax
test ebx, ebx
je 0x41fedf
mov eax, 2
mov dword [0x431a18], eax
cmp eax, 1
jne 0x41fe72
test esi, esi
jne 0x41fdeb
call edi
mov esi, eax
test esi, esi
je 0x41fedf
cmp word [esi], 0
mov eax, esi
je 0x41fe05
add eax, 2
cmp word [eax], 0
jne 0x41fdf3
add eax, 2
cmp word [eax], 0
jne 0x41fdf3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41fe64
push edi
call fcn.00418c00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41fe64
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41fe56
push ebx
call fcn.00418b90
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41fedf
test ebx, ebx
jne 0x41fe83
call ebp
mov ebx, eax
test ebx, ebx
je 0x41fedf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41fe9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41fe8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41fe8b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00418c00
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41febd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41ff30
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x42fb08
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x41ff54
add eax, 8
inc ebp
cmp eax, 0x42fb98
jb 0x41ff45
cmp ecx, dword [ebp*8 + 0x42fb08]
jne 0x4200fb
mov eax, dword [0x431554]
cmp eax, 1
je 0x4200bd
test eax, eax
jne 0x41ff80
cmp dword [0x42d244], 1
je 0x4200bd
cmp ecx, 0xfc
je 0x4200fb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ffbb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x420004
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4295f0
add ebx, ecx
push ebx
call fcn.00418a90
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4295d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42fb0c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00421970
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x432c20]
test eax, eax
je 0x4200ce
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4200d8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42fb0c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x421e60
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x431aac]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x421ea8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x421e88
mov eax, 1
jmp 0x421ea3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x421f79
mov eax, 2
mov dword [0x431aac], eax
cmp eax, 1
jne 0x421ec8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x421f8b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x421ee3
mov ecx, dword [0x4315e8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x421f02
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00418c00
mov edi, eax
add esp, 4
test edi, edi
jne 0x421f16
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x421f70
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x421f54
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x421f70
push edi
call fcn.00418b90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x421f80
push edi
call fcn.00418b90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.00418b90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x421f90
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x431ab0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x421fd8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x421fbc
mov eax, 1
jmp 0x421fd3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4220b8
mov eax, 2
mov dword [0x431ab0], eax
cmp eax, 2
jne 0x421ff8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4220ca
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x422013
mov ecx, dword [0x4315e8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x422032
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00418c00
mov esi, eax
add esp, 4
test esi, esi
jne 0x422049
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4220af
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x422090
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4220af
push esi
call fcn.00418b90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4220bf
push esi
call fcn.00418b90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00418b90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4223a0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42255e
push 0x3d
push edi
call fcn.00422850
mov esi, eax
add esp, 8
test esi, esi
je 0x42255e
cmp edi, esi
je 0x42255e
mov dl, byte [esi + 1]
mov ecx, dword [0x43150c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x431508]
cmp eax, ecx
jne 0x4223f7
push eax
call fcn.00422630
add esp, 4
mov dword [0x431508], eax
test eax, eax
jne 0x422472
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42241e
mov eax, dword [0x431510]
test eax, eax
je 0x42241e
call fcn.00421de0
test eax, eax
je 0x42246d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x42242a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00418c00
add esp, 4
mov dword [0x431508], eax
test eax, eax
je 0x42255e
mov dword [eax], 0
mov eax, dword [0x431510]
test eax, eax
jne 0x42246d
push 4
call fcn.00418c00
add esp, 4
mov dword [0x431510], eax
test eax, eax
je 0x42255e
mov dword [eax], 0
mov eax, dword [0x431508]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004225b0
mov esi, eax
add esp, 8
test esi, esi
jl 0x42256f
cmp dword [ebx], 0
je 0x42256f
test ebp, ebp
je 0x422567
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00418b90
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4224c9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4224b8
lea eax, [esi*4]
push eax
push ebx
call fcn.004226a0
add esp, 8
test eax, eax
je 0x4224e3
mov dword [0x431508], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x422556
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00418c00
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x422556
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00418b90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4224e7
test ebp, ebp
jne 0x422556
test esi, esi
jge 0x422579
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004226a0
add esp, 8
test eax, eax
je 0x42255e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x431508], eax
jmp 0x4224e7
Function at 0x4230e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x423249
mov dword [ebp - 8], 0x200
jo 0x423114
ja 0x423112
xchg ebp, ebp
je 0x423112
xchg ebx, ebx
nop
jmp 0x423117
jo 0x423109
adc dword [ebp + 0x6a51f04d], ecx
add byte [edx], ch
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x14], eax
jnp 0x423143
nop
inc edx
add byte [ecx + 0x47bec45], cl
mov edx, edx
jmp 0x423151
nop
nop
ja 0x42314c
xchg ebp, ebp
je 0x42314c
nop
jnp 0x42313f
xchg eax, eax
sbb dword [ebx + 0xf00ec7d], eax
test edx, ecx
add byte [eax], al
add bh, al
test eax, ebp
std
invalid
cmp dword [ebp - 0x14], 0
jne 0x423225
mov dword [ebp - 0x218], 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x31c]
push ecx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00423330
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x423192
mov ebx, ebx
js 0x423195
nop
jns 0x423195
jmp 0x42318b
jg 0x4231a0
nop
xchg ecx, ecx
js 0x4231a5
xchg ebp, ebp
jns 0x4231a5
ja 0x4231a2
jg 0x423197
arpl word [ebx + 0x7500ec7d], ax
js 0x423137
cmp dword [ebp - 0x14], 0
jne 0x423223
mov ecx, dword [ebp - 0x218]
mov byte [ebp + ecx - 0x31c], 0
js 0x4231c4
invalid
nop
xchg esi, esi
jg 0x4231c9
xchg esi, esi
jle 0x4231c9
je 0x4231c6
js 0x4231bb
fmul dword [ebp - 0x31b6b]
call dword [edx - 0x18]
mov eax, dword [eax]
add byte [eax], al
lea edx, [ebp - 0x31c]
push edx
call 0x423260
add esp, 4
and eax, 0xffff
test eax, eax
je 0x423223
jbe 0x4231e7
nop
nop
jmp 0x4231f5
je 0x4231f0
xchg edi, edi
ja 0x4231f0
xchg ebp, ebp
nop
jbe 0x4231e3
je 0x423207
xor ecx, dword [ebx - 0x3899f3bb]
add byte [ecx], al
add byte [edi + 9], bh
mov eax, dword [ebp + 0xc]
mov word [eax], 1
jg 0x423208
nop
xchg ebp, ebp
js 0x42320d
xchg edi, edi
jns 0x42320d
add eax, 0xf37f0077
ja 0x42320a
jg 0x4231ff
lea edi, [ecx + ecx - 0x70]
jl 0x423218
nop
nop
ja 0x423216
xchg ebx, ebx
nop
jmp 0x423221
je 0x42321c
xchg esi, esi
jl 0x42320f
ja 0x423233
xor ebp, ebx
jmp 0x423227
jmp 0x423249
jmp 0x423227
jmp 0x423249
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jl 0x42323b
nop
nop
ja 0x423239
xchg ebp, ebp
nop
jmp 0x423244
je 0x42323f
xchg eax, eax
jl 0x423232
ja 0x423256
fucompi st(1)
stosb byte es:[edi], al
invalid
jmp 0x4230f3
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
int3
Function at 0x423330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
jnp 0x42335e
mov ebx, ebx
nop
nop
nop
jmp 0x423369
ja 0x423364
xchg ebp, ebp
je 0x423364
jnp 0x423357
xchg edi, edi
xor al, byte [ebx + 0xf00fc7d]
test dword [ebx + 0x73000000], eax
or esi, dword [edi + eax - 0x79]
in eax, dx
cmp dword [ebp - 4], 0
jne 0x4233f6
jae 0x423380
je 0x42337e
xchg ebp, ebp
ja 0x42337e
xchg edi, edi
nop
jmp 0x423383
jae 0x423375
cmp ch, byte [eax + 0x48]
mov dl, 0x42
add al, ch
xchg ebx, eax
or al, 0
add byte [ebx + 0x458904c4], al
hlt
push 0x42b248
call fcn.00424020
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4233ec
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
jbe 0x4233cb
ja 0x4233cb
jnp 0x4233d0
mov ecx, dword [edi]
add byte [eax], al
add byte [edx + 0xd], bh
jp 0x4233d0
mov eax, eax
nop
nop
ja 0x4233cb
xchg eax, eax
js 0x4233bb
jns 0x4233bb
and byte [ebx - 0x17ad0bab], cl
mov bh, 0x57
invalid
mov edx, dword [ebp - 0xc]
push edx
call fcn.00418b90
add esp, 4
jg 0x4233e7
nop
xchg edx, edx
js 0x4233ec
xchg ebx, ebx
jns 0x4233ec
ja 0x4233e9
jg 0x4233de
and eax, 0x50f8458b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x423409
je 0x423409
jbe 0x42340e
xchg byte [edi], cl
add byte [eax], al
add byte [eax - 0x78f48b70], dl
invalid
nop
nop
je 0x42340e
xchg ebx, ebx
ja 0x42340e
ja 0x423409
jae 0x4233f9
jb 0x4233f9
adc eax, 0x7770b70
jo 0x42341b
ja 0x423419
xchg edx, edx
je 0x423419
xchg ebx, ebx
nop
jmp 0x42341e
jo 0x423410
sub ecx, dword [ebx + 0x5e5ffc45]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
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.00419282
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.00419282
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.00419282
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.00419282
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.00419282
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.00419282
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.00419282
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