joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dae4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebx + 0x70]
mov eax, esi
call fcn.1000d9d4
test eax, eax
jne 0x1000dc24
imul esi, esi, 0x68
push edi
mov edi, dword [esi + 0x10037948]
push dword [esi + 0x1003794c]
mov dword [ebp - 8], edi
call fcn.1001414e
push edi
mov dword [ebp - 4], eax
call fcn.1001414e
cmp dword [ebp - 4], 0
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
je 0x1000dc15
test edi, edi
je 0x1000dc0c
push edi
push ebx
call dword [esi + 0x1003799c]
mov edi, eax
xor eax, eax
pop ecx
pop ecx
cmp edi, eax
jne 0x1000dbea
cmp dword [esi + 0x1003794c], eax
jbe 0x1000db70
mov ecx, dword [ebx + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 4]
xor cl, 0x5c
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x1003794c]
jb 0x1000db55
push ebx
call dword [esi + 0x10037994]
mov edi, eax
pop ecx
test edi, edi
jne 0x1000dbea
push dword [esi + 0x1003794c]
push dword [ebp - 4]
push ebx
call dword [esi + 0x10037998]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000dbea
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [esi + 0x10037998]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000dbea
push dword [ebp - 4]
push ebx
call dword [esi + 0x1003799c]
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jne 0x1000dbea
cmp dword [ebp - 8], ecx
jbe 0x1000dbe3
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jae 0x1000dbe3
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [esi + eax]
inc ecx
mov byte [eax], dl
cmp ecx, dword [ebp - 8]
jb 0x1000dbcc
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor edi, edi
push dword [ebx + 0xe8]
call fcn.10014071
push dword [ebp - 0xc]
call fcn.10014071
push dword [ebp - 4]
call fcn.10014071
add esp, 0xc
mov eax, edi
jmp 0x1000dc23
push dword [ebp - 4]
call fcn.10014071
pop ecx
test edi, edi
je 0x1000dc20
push edi
call fcn.10014071
pop ecx
push 0xd
pop eax
pop edi
pop esi
leave
ret
Function at 0x1000dc27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
call fcn.1000d9d4
test eax, eax
jne 0x1000dc62
push esi
mov esi, ebx
imul esi, esi, 0x68
mov dword [edi + 0x70], ebx
mov eax, dword [esi + 0x10037948]
push dword [esi + 0x1003794c]
mov dword [ebp - 4], eax
call fcn.1001414e
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000dc65
push 0xd
pop eax
pop esi
pop ebx
leave
ret
push dword [esi + 0x1003794c]
call fcn.1001414e
pop ecx
mov dword [edi + 0xe8], eax
test eax, eax
jne 0x1000dc8b
push 0xd
pop ebx
push dword [ebp - 8]
call fcn.10014071
pop ecx
mov eax, ebx
jmp 0x1000dc61
mov ecx, dword [esi + 0x1003794c]
cmp ecx, 0x10
jae 0x1000dcd3
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x10
push 0x10035f80
mov eax, ebx
call fcn.1000ccea
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1000dd53
mov eax, dword [esi + 0x1003794c]
cmp dword [ebp - 4], eax
jae 0x1000dd03
sub eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 4]
jmp 0x1000dcfb
push 0x10
push 0x10035f80
push eax
call fcn.1001ad70
mov eax, dword [esi + 0x1003794c]
add esp, 0xc
cmp eax, 0x10
jbe 0x1000dd03
add eax, 0xfffffff0
push eax
mov eax, dword [edi + 0xe8]
add eax, 0x10
push eax
call fcn.1000d9a1
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x1003794c], eax
jbe 0x1000dd28
mov ecx, dword [edi + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 8]
xor cl, 0x36
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x1003794c]
jb 0x1000dd0d
push edi
call dword [esi + 0x10037994]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1000dd53
push dword [esi + 0x1003794c]
push dword [ebp - 8]
push edi
call dword [esi + 0x10037998]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1000dc7e
push dword [edi + 0xe8]
call fcn.10014071
pop ecx
jmp 0x1000dc7e
Function at 0x10014062
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10030010]
jne 0x1001406c
repz ret
jmp fcn.10015dcb

Function at 0x1001cb1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100180ed
and dword [ebp - 4], 0
cmp dword [0x10032afc], 0
mov ebx, eax
jne 0x1001cbcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001cc7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001cc7c
push eax
call fcn.1001807b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10032afc], eax
call esi
push eax
call fcn.1001807b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10032b00], eax
call esi
push eax
call fcn.1001807b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10032b04], eax
call esi
push eax
call fcn.1001807b
pop ecx
mov dword [0x10032b0c], eax
test eax, eax
je 0x1001cbcb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001807b
pop ecx
mov dword [0x10032b08], eax
mov eax, dword [0x10032b08]
cmp eax, ebx
je 0x1001cc23
cmp dword [0x10032b0c], ebx
je 0x1001cc23
push eax
call fcn.100180f6
push dword [0x10032b0c]
mov esi, eax
call fcn.100180f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001cc23
test edi, edi
je 0x1001cc23
call esi
test eax, eax
je 0x1001cc1a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001cc1a
test byte [ebp - 0xc], 1
jne 0x1001cc23
or dword [ebp + 0x10], 0x200000
jmp 0x1001cc5c
mov eax, dword [0x10032b00]
cmp eax, ebx
je 0x1001cc5c
push eax
call fcn.100180f6
pop ecx
test eax, eax
je 0x1001cc5c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001cc5c
mov eax, dword [0x10032b04]
cmp eax, ebx
je 0x1001cc5c
push eax
call fcn.100180f6
pop ecx
test eax, eax
je 0x1001cc5c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10032afc]
call fcn.100180f6
pop ecx
test eax, eax
je 0x1001cc7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001cc7e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d11e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x42d13e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42d12a
add dl, dl
jne 0x42d149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42d19a
xor eax, eax
add dl, dl
jne 0x42d156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x42d23b
add dl, dl
jne 0x42d165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x42d170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x42d17b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x42d186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x42d190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x42d135
mov eax, 1
add dl, dl
jne 0x42d1a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x42d1b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x42d19f
sub eax, ebx
mov ebx, 1
jne 0x42d1e6
mov ecx, 1
add dl, dl
jne 0x42d1cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x42d1d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x42d1c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42d135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x42d1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x42d208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x42d1f4
cmp eax, 0x7d00
jae 0x42d22b
cmp eax, 0x500
jb 0x42d226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42d135
cmp eax, 0x7f
ja 0x42d22e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x42d135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x42d25c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x42d135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x5fcb70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xb27000
lea edi, [esi - 0x1a6000]
push edi
jmp 0x5fcb8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fcb91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcb80
mov eax, 1
add ebx, ebx
jne 0x5fcba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fcbb4
jne 0x5fcbd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbd3
dec eax
add ebx, ebx
jne 0x5fcbc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fcb98
add ebx, ebx
jne 0x5fcbcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fcc25
xor ecx, ecx
sub eax, 3
jb 0x5fcbeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fcc5a
sar eax, 1
mov ebp, eax
jmp 0x5fcbf6
add ebx, ebx
jne 0x5fcbf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
inc ecx
add ebx, ebx
jne 0x5fcc04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
add ebx, ebx
jne 0x5fcc11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fcc06
jne 0x5fcc22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fcc06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fcc44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fcc36
jmp 0x5fcb86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fcc44
add edi, ecx
jmp 0x5fcb86
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fcc62
cmp byte [edi], 0x11
jne 0x5fcc62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fcc67
lea edi, [esi + 0x1f5000]
mov eax, dword [edi]
or eax, eax
je 0x5fccdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x320030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3201ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fcc94
mov ecx, edi
jns 0x5fccc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3201b0]
or eax, eax
je 0x5fccd9
mov dword [ebx], eax
add ebx, 4
jmp 0x5fccb1
call dword [esi + 0x3201c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5fcd10
cmp al, 0xef
ja 0x5fcd03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5fcce5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5fccf2
mov ebp, dword [esi + 0x3201b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5fcd44
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x402000
Capabilities:
Encode data using xor

Disassembly:
call dword [sym.imp.kernel32.dll_GetACP]
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
call fcn.0040142a
push 0x7eff
push 0
call fcn.00401451
call dword [0x40652a]
adc eax, 0x40652a
mov dword [0x403071], eax
mov ebx, 0x7f00
push ebx
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov ebx, 0x403059
mov dword [0x403069], 0x400000
mov dword [0x40306d], 0
push ebx
call dword [sym.imp.user32.dll_RegisterClassA]
call fcn.0040100f
push edi
sbb byte [eax], al
xor bh, byte [ecx - 0x19]
xchg esi, eax
push es
add byte [ebp + ebp + 0x7d9e3], cl
mov eax, 0xd29a9e8
add bh, dl
and cl, byte [eax]
daa
adc dword [eax], eax
in al, dx
dec edx
or eax, 0x9f00120d
jno 0x40201e
or dword [edi], ecx
add byte [edx + 0x50], ch
stosd dword es:[edi], eax
push cs
verw word [esi + 0x1040c48c]
add byte [ebx], ah
hlt
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401bd7
pop dword [ebp - 8]
mov eax, 0x401bd7
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xcfcfe0e6
sub dword [ebp - 0x18], 0x817d9b9b
mov dword [ebp - 0x14], 0xcb0e486
sub dword [ebp - 0x14], 0xda7d9841
mov dword [ebp - 0x10], 0xe8e7cf93
sub dword [ebp - 0x10], 0x9c9b8b65
mov dword [ebp - 0xc], 0x67a92781
sub dword [ebp - 0xc], 0x67a92781
lea eax, [ebp - 0x18]
push eax
mov eax, 0xdfa9daec
add eax, 0x20969574
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x52bdc2d2
add dword [ebp - 0x18], 0x21b4a684
mov dword [ebp - 0x14], 0x191f81d7
add dword [ebp - 0x14], 0x284cdf9e
mov dword [ebp - 0x10], 0xaf512fcf
sub dword [ebp - 0x10], 0x4be1c363
mov dword [ebp - 0xc], 0xeddc727a
add dword [ebp - 0xc], 0x12238d86
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x33513
push 0
call eax
mov ecx, 0xd17b9844
sub ecx, 0xd17b5d4c
xor ebx, ebx
add ebx, eax
mov esi, 0x24171276
sub esi, 0x23d61276
add esi, dword [ebp - 8]
mov edx, 0xc9c50864
sub edx, 0x25f2b510
add dword [ebp - 4], esi
mov edi, dword [esi]
add dword [ebp - 4], 0xe3d22928
xor edi, edx
sub dword [ebp - 4], 0x84b030d4
mov dword [ebx], edi
xor dword [ebp - 4], eax
add ebx, 0xfbfeba4f
add ebx, 0x40145b5
add esi, 0x9ffa7809
sub esi, 0x9ffa7805
loop 0x401cf1
add eax, 0xdeb3
xor ebx, ebx
add ebx, eax
add eax, 0xe3deaaaa
add eax, 0x1c21555b
mov ecx, 0x86ca1d8
sub ecx, 0x82ca1d8
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401def
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
call dword [sym.imp.MSVCR80.dll__tempnam]
mov esi, dword [sym.imp.MSVCR80.dll___iob_func]
mov ebp, eax
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.MSVCR80.dll_freopen]
add eax, 0x40
push eax
mov ebx, 0x4078c0
push ebx
push ebp
call edi
call esi
add eax, 0x20
push eax
push ebx
push ebp
call edi
add esp, 0x20
mov ebx, 0x40c920
call fcn.00401bc8
mov edi, eax
test edi, edi
jne 0x401e50
push str.Cant_load_Python_for_pre_install_script
call fcn.00401613
or eax, 0xffffffff
jmp 0x401f45
push dword [esp + 0x20]
call fcn.00401bc8
pop ecx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_fflush]
add eax, 0x40
push eax
call edi
call esi
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
add eax, 0x40
push eax
call ebp
call esi
add eax, 0x20
push eax
call edi
call esi
add eax, 0x20
push eax
call ebp
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x401f37
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR80.dll_strlen
mov dword [esp], 0x407860
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
mov ebx, eax
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x34]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x401f2c
push str.Running_the_pre_installation_script_failed_r_n
push esi
call sub.MSVCR80.dll_strcpy
push ebx
push dword [esp + 0x1c]
lea eax, [esi + edi]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add eax, esi
push ebx
mov byte [eax + edi], 0
call ebp
push esi
call fcn.00401613
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x24
jmp 0x401f37
push str.Out_of_memory_
call fcn.00401613
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCR80.dll_remove]
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40220d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c17c]
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 0x40234d
cmp dword [esi], 0x1234567b
je 0x402277
push edx
mov edi, str.Invalid_cfgdata_magic_number__see_bdist_wininst.py_
call fcn.00401bc8
pop ecx
jmp 0x40234f
cmp eax, edx
jl 0x40234d
mov ecx, dword [esi + 8]
cmp ecx, edx
je 0x402293
mov edx, esi
sub edx, dword [esi + 4]
sub edx, ecx
mov dword [0x40ca30], 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 dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
je 0x40234d
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x40233b
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0
push 0x407940
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x40233b
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
push eax
push dword [ebp - 0x7c]
push 2
call fcn.00401bc8
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x78], eax
je 0x40234d
push dword [esi + 4]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
push dword [ebp - 0x78]
call sub.MSVCR80.dll_strlen
lea edi, [edi + eax + 1]
push edi
call dword [sym.imp.MSVCR80.dll__strdup]
mov ecx, dword [ebp - 0x80]
add esp, 0x14
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 0x40234f
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edi, str.Could_not_create_temporary_file
call fcn.00401bc8
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
xor ecx, ebp
pop esi
call fcn.004065b0
add ebp, 0x94
leave
ret
Function at 0x403370
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x1e0], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x28]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xdc]
push str._s.bat
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [ebp + 0xdc]
push 0x407f3c
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, dword [sym.imp.MSVCR80.dll_fprintf]
push str.:Repeat_n
push eax
mov dword [ebp - 0x2c], eax
call esi
lea eax, [ebp - 0x28]
push eax
mov edi, str.del___s__n
push edi
push dword [ebp - 0x2c]
call esi
lea eax, [ebp - 0x28]
push eax
push str.if_exist___s__goto_Repeat_n
push dword [ebp - 0x2c]
call esi
lea eax, [ebp + 0xdc]
push eax
push edi
push dword [ebp - 0x2c]
call esi
add esp, 0x40
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR80.dll_fclose]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x407370
push ebx
push esi
push ebx
push ebx
push ebx
lea eax, [ebp + 0xdc]
push eax
push ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], bx
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x403495
mov esi, dword [sym.imp.kernel32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x38]
call esi
push 0xf
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_SetPriorityClass]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.kernel32.dll_ResumeThread]
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x1e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065b0
add ebp, 0x1e4
leave
ret

Function at 0x403639
Capabilities:
Delete file

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x403650
pop esi
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x403657
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop edi
pop esi
ret

Function at 0x40366d
Capabilities:
Delete directory

Disassembly:
push esi
push 0x3a
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x403684
pop esi
ret
push edi
mov edi, dword [sym.imp.MSVCR80.dll_isspace]
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x40368b
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
pop edi
pop esi
ret