joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e007
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4afca0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x47e038
xor eax, eax
jmp 0x47e1c1
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x37e13a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x47e074
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00482a6c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x47e14f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x47e18d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x47e0d8
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x47e0c9
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x47e0a9
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47e118
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x47e121
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x47e09a
jmp 0x47e123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x47e1bc
cmp dword [ebp - 0x6c], edi
je 0x47e18d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x47e182
call fcn.0047d60f
mov dword [eax], 9
call fcn.0047d618
mov dword [eax], esi
jmp 0x47e1b7
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47e177
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x47e123
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x47e123
push dword [ebp - 0x6c]
call fcn.0047d621
pop ecx
jmp 0x47e1b7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x47e1a5
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x47e1a5
xor eax, eax
jmp 0x47e1bf
call fcn.0047d60f
mov dword [eax], 0x1c
call fcn.0047d618
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x47e1bf
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0047882f
add ebp, 0x3a0
leave
ret
Function at 0x47f308
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00479240
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47f3a3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x37e0ee0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x47f3a3
cmp eax, 1
je 0x47f3c4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47f3a3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x47f370
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x47f39f
xor eax, eax
inc eax
jmp 0x47f3e3
cmp edi, eax
jae 0x47f3a7
xor eax, eax
jmp 0x47f3e3
cmp eax, esi
jae 0x47f3ae
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x37e0ee0]
jmp 0x47f3c7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47f9ae
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4afca0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4b03d0]
je 0x47f9e3
inc eax
cmp eax, 0x13
jb 0x47f9d4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4b03d0]
jne 0x47fb09
mov eax, dword [0x37e0eb4]
cmp eax, 1
je 0x47fae1
cmp eax, edx
jne 0x47fa13
cmp dword [0x4afcd4], 1
je 0x47fae1
cmp ecx, 0xfc
je 0x47fb09
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47fa49
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0047f210
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0047d090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47fa7d
mov eax, edi
push eax
call fcn.0047d090
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a043c
push edi
call fcn.00478600
add esp, 0x10
push edi
call fcn.0047d090
push dword [esi + 0x4b03d4]
mov ebx, eax
call fcn.0047d090
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00479240
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047f210
push edi
push ebx
call fcn.0047f220
push 0x4a0438
push ebx
call fcn.0047f220
push dword [esi + 0x4b03d4]
push ebx
call fcn.0047f220
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00480fa6
add esp, 0x2c
jmp 0x47fb09
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4b03d4]
push dword [esi]
call fcn.0047d090
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0047882f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x480fa6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x37e11a0], ebx
push esi
push edi
jne 0x481026
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x481061
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x37e11a0], eax
je 0x481061
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x37e11a4], eax
call esi
cmp dword [0x37e0ee0], 2
mov dword [0x37e11a8], eax
jne 0x481026
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x37e11b0], eax
je 0x481026
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x37e11ac], eax
mov eax, dword [0x37e11ac]
test eax, eax
je 0x48106b
call eax
test eax, eax
je 0x481052
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x37e11b0]
test eax, eax
je 0x481052
test byte [ebp - 8], 1
jne 0x48106b
cmp dword [0x37e0eec], 4
jb 0x481065
or byte [ebp + 0x12], 0x20
jmp 0x48108a
xor eax, eax
jmp 0x48109a
or byte [ebp + 0x12], 4
jmp 0x48108a
mov eax, dword [0x37e11a4]
test eax, eax
je 0x48108a
call eax
mov ebx, eax
test ebx, ebx
je 0x48108a
mov eax, dword [0x37e11a8]
test eax, eax
je 0x48108a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x37e11a0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48109f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4810cd
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4810d4
cmp ebx, dword [eax + 4]
jae 0x4810d4
xor eax, eax
jmp 0x4812c4
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4810e5
xor eax, eax
inc eax
jmp 0x4812c3
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4810fb
cmp ecx, edx
jae 0x481240
cmp dword [eax + 4], 0
je 0x481104
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4810ec
cmp dword [ebp + 8], 0
je 0x481126
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x481240
cmp eax, esi
jae 0x481240
mov eax, dword [0x37e11b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48114b
cmp dword [esi*4 + 0x37e11c0], edi
je 0x481244
inc esi
cmp esi, eax
jl 0x481139
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4812c0
cmp dword [ebp - 8], 0x1000000
jne 0x4812c0
test byte [ebp - 0xc], 0xcc
je 0x4811c9
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4812c0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4812c0
cmp word [eax + 0x18], 0x10b
jne 0x4812c0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4812c0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4811c9
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4811c9
test byte [ecx + 0x27], 0x80
jne 0x481240
push 1
push 0x37e1200
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4810dd
mov ecx, dword [0x37e11b8]
test ecx, ecx
mov edx, ecx
jle 0x4811fd
lea eax, [ecx*4 + 0x37e11bc]
cmp dword [eax], edi
je 0x4811fd
dec edx
sub eax, 4
test edx, edx
jg 0x4811f1
test edx, edx
jne 0x48122e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48120a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x481222
lea eax, [edx*4 + 0x37e11c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x481210
cmp ecx, 0x10
jge 0x48122e
inc ecx
mov dword [0x37e11b8], ecx
push 0
push 0x37e1200
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4810dd
xor eax, eax
jmp 0x4812c3
test esi, esi
jle 0x4810dd
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x37e1200
call ebx
test eax, eax
jne 0x4810dd
cmp dword [esi*4 + 0x37e11c0], edi
je 0x48129a
mov eax, dword [0x37e11b8]
lea esi, [eax - 1]
test esi, esi
jl 0x481288
cmp dword [esi*4 + 0x37e11c0], edi
je 0x481284
dec esi
jns 0x481278
test esi, esi
jge 0x481298
cmp eax, 0x10
jge 0x481293
inc eax
mov dword [0x37e11b8], eax
lea esi, [eax - 1]
jmp 0x48129a
je 0x4812b2
xor ecx, ecx
test esi, esi
jl 0x4812b2
lea eax, [ecx*4 + 0x37e11c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4812a0
push 0
push 0x37e1200
call ebx
jmp 0x4810dd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48398e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00479240
mov eax, dword [0x4afca0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0047d694
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x483ac1
push 2
push esi
push dword [ebp + 8]
call fcn.0047d694
add esp, 0xc
cmp eax, ebx
je 0x483ac1
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x483a61
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004817a0
push 0x8000
push dword [ebp + 8]
call fcn.00483df1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x483a17
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0047e007
add esp, 0xc
cmp eax, 0xffffffff
je 0x483a37
sub edi, eax
test edi, edi
jg 0x483a0f
jmp 0x483a4f
call fcn.0047d618
cmp dword [eax], 5
jne 0x483a4c
call fcn.0047d60f
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00483df1
pop ecx
pop ecx
jmp 0x483aa9
jge 0x483aa9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047d694
push dword [ebp + 8]
call fcn.0048235a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x483aa9
call fcn.0047d60f
mov dword [eax], 0xd
call fcn.0047d618
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0047d694
add esp, 0xc
mov eax, esi
pop edi
jmp 0x483ac3
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0047882f
leave
ret
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ecx], ebp
in al, dx
sub esp, 8
mov ebp, esp
or al, 0x53
push esi
push edi
cmp dword [eax + 4], 1
mov byte [ebp + 0xa000177], al
mov eax, dword [esp + ecx]
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push eax
add al, 0x8b
inc ecx
add al, 0x85
ror byte [ecx + 0x1576f842], cl
mov esi, dword [eax + 0x301c]
out 0xcc, eax
or al, 0x3b
push ds
cmp ebx, dword [esi]
je 0x40624e
inc ecx
add esi, 0x14
cmp ecx, edx
jb 0x406234
pop edi
pop esi
mov eax, 0x1117f
pop ebx
mov esp, ebp
inc edx
ret 0x8c4
mov ebx, ecx
inc ecx
lea esi, [edx - 1]
cmp ecx, edx
mov eax, ebp
fidiv word [ebx + 0x4f]
dec edi

Function at 0x409860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
wait
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 0x4f]
lea eax, [ebp + 0x10]
push eax
push edi
push ecx
mov dword [ebp + 0x10], esi
call 0x6440ae50
dec ebp
mov dl, 0x3c
stc
sub esi, ecx
add ebx, ecx
test eax, eax
jne 0x409890
test dword [edi + 0x4d8bde77], esp
adc al, 0x85
popal
je 0x409899
mov ecx, dword [ebp + 0x14]
test dword [ecx + 0x74], esp
add cl, byte [ecx + 0x5e5e5f19]
mov dword [ecx], ebx
pop edi
pop esi
pop esi
pop ebp
lea ecx, [esi]
stosd dword es:[edi], eax
mov ebp, esp
sub esp, 0xffffffa2
mov eax, dword [0x7a4108dc]
push ebx
in eax, dx
rcl byte [esi - 0x54], cl
clc
push ds
push edi
cmp dl, byte [ebp - 8]
outsd dx, dword [esi]
push ebp
std
mov dword [ebp - 0x10], edx
jge 0x409932
mov ecx, eax
adc byte [ebx + 0x5150084d], cl
pop esp
add eax, 0x83000006
les ecx, [eax]
test eax, 0xe58b5b5e
pop ebp
ret
push str.__
push edx
mov ebx, ds
dec dword [esp + eax]
rol dword [eax], 0x93
invalid
Function at 0x40f040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40f04f
pop dword [ebp - 0x20]
mov eax, 0xfa428131
add eax, 0x5fe6f1e
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5dd156f
add dword [ebp - 0x30], 0x48752fdc
mov dword [ebp - 0x2c], 0x6352d9cc
sub dword [ebp - 0x2c], 0x311f8d87
mov dword [ebp - 0x28], 0xb7bef27d
add dword [ebp - 0x28], 0x948d51b1
mov dword [ebp - 0x24], 0x1d66f21e
add dword [ebp - 0x24], 0xe2990de2
lea eax, [ebp - 0x30]
push eax
mov eax, 0xd6770b1a
sub eax, 0xd635aa82
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe0b887bd
add dword [ebp - 0x30], 0x93b9e199
mov dword [ebp - 0x2c], 0x30fba8f9
add dword [ebp - 0x2c], 0x1070b87c
mov dword [ebp - 0x28], 0xd5868401
add dword [ebp - 0x28], 0x8de8e86b
mov dword [ebp - 0x24], 0x8e2c13ad
add dword [ebp - 0x24], 0x71d3ec53
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xde8d2d1d
add eax, 0x21b43357
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c87b
push 0
call eax
mov ecx, 0xd1ac30bd
add ecx, 0x2e541c03
xor edx, edx
add edx, eax
mov ebx, 0x4cd3c23c
sub ebx, 0x4c911c3c
add ebx, dword [ebp - 0x20]
mov edi, 0x195a7738
sub edi, 0xb521be30
sub dword [ebp - 0x14], eax
mov esi, dword [ebx]
xor dword [ebp - 0x1c], 0x269972fd
sub esi, edi
xor dword [ebp - 0xc], edx
mov dword [edx], esi
add dword [ebp - 0xc], ebx
add edx, 4
add ebx, 0xe93b07f7
add ebx, 0x16c4f80d
loop 0x40f173
add eax, 0x45c7228e
add eax, 0xba3a0345
mov ebx, eax
add eax, 0xb744efb0
add eax, 0x48bb1055
mov ecx, 0x8371dcf4
sub ecx, 0x8331dcf4
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x1ef15844
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3be810de
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d2c
nop
sub eax, 0x403cd2
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
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.0041b8a8
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.0041b8a8
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.0041b8a8
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.0041b8a8
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.0041b8a8
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.0041b8a8
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.0041b8a8
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