joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f970
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f9a3
push esi
call fcn.00442a60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f99c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fa29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fa12
mov eax, dword [esi + 8]
test eax, eax
je 0x43f9c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fa0e
cmp eax, 2
je 0x43fa12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f9ba
cmp eax, 3
je 0x43f9ed
cmp eax, 1
jne 0x43f9ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f9ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f9ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fa50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fa38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fa50
add esp, 4
pop esi
ret

Function at 0x45ea08
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45ea40
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045cabf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045ca97
jmp 0x45ea4c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4600ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x460141
call fcn.00465bad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x460141
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x460138
xor eax, eax
jmp 0x460149
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046014f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4660dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46610b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466129
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00466043
jmp 0x466129
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466129
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00466043
test edi, edi
mov eax, edi
jne 0x466113
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404bf3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4823c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x404c7d
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
push str.Open_Cards
push 0x4840e0
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00401f77
mov al, byte [edi + esi]
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
push str.Taste
mov byte [edi + esi], al
call fcn.0040569b
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0x4275c0
call fcn.0040232d
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040f33e
xor byte [edi + esi], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00404817
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x404c0f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a24e
leave
ret 8

Function at 0x408316
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408337
jl 0x40832e
test edi, edi
jne 0x408337
xor eax, eax
xor edx, edx
jmp 0x4083f8
cmp dword [ebx + 0x38], 0
je 0x40834c
push eax
push edi
push dword [ebp + 8]
call fcn.004083fe
jmp 0x4083f8
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408393
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408393
cmp eax, edi
jb 0x40836d
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ac60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408399
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4083ed
mov ecx, ebx
call fcn.00407b69
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4083d8
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412533
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4083ed
jmp 0x4083ab
test edx, edx
je 0x4083ed
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412533
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a894
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8d3
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41b41f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b0c1

Function at 0x41b42a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b250

Function at 0x41b824
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ac10
mov eax, dword [0x4823c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419065
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b866
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b9c2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425f60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x484b50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c5c3
mov ecx, dword [esi*4 + 0x484b50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41b9bb
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b9bb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b9bb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c5c3
add esp, 0x14
test edx, edx
jl 0x41b9bb
jg 0x41b931
test eax, eax
jb 0x41b9bb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b9bb
jl 0x41b94b
cmp dword [ebp - 0x1008], eax
ja 0x41b9bb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b969
test ebx, ebx
je 0x41b9a2
cmp ecx, edi
jae 0x41b9a2
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b983
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b98f
cmp byte [ecx + 1], 0xa
jne 0x41b98f
inc ecx
jmp 0x41b98f
movzx eax, al
movsx eax, byte [eax + 0x482680]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b969
cmp edx, ebx
jne 0x41b969
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b9c0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a24e
leave
ret
Function at 0x41ba61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x484b50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41baa1
cmp byte [ebx], 0xa
jne 0x41baa1
or byte [eax + edi + 0x28], 4
jmp 0x41baa6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bba4
mov al, byte [edx]
cmp al, 0x1a
je 0x41bb86
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bad5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bafa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb04
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bab7
jmp 0x41bba4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb81
cmp dword [ebp - 0xc], 0
je 0x41bb81
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x484b50]
test byte [eax + edi + 0x28], 0x48
je 0x41bb5b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb46
mov byte [esi], dl
jmp 0x41bb57
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x484b50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bba4
cmp byte [ebp - 1], 0xa
jne 0x41bb6a
cmp esi, ebx
jne 0x41bb6a
mov byte [esi], 0xa
jmp 0x41bba3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c5e1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bba4
mov byte [esi], 0xd
jmp 0x41bba3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x484b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bba0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bba4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bbad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x484b50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bbf0
cmp word [esi], dx
jne 0x41bbf0
or byte [edi + eax + 0x28], 4
jmp 0x41bbf5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bd48
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bd28
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc37
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bc6d
cmp eax, edx
jae 0x41bc79
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bc0f
jmp 0x41bd48
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd24
cmp dword [ebp - 0x14], 0
je 0x41bd24
mov eax, dword [ebx*4 + 0x484b50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bcfc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bcc5
mov word [esi], cx
jmp 0x41bcf8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x484b50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x484b50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x484b50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bd48
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd0d
cmp esi, dword [ebp + 0xc]
jne 0x41bd0d
mov word [esi], bx
jmp 0x41bd45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c5e1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bd48
push 0xd
jmp 0x41bd41
mov ecx, dword [ebx*4 + 0x484b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bd48
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e554
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e5f1
push ebx
push esi
call fcn.0041e51d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d1a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e59e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5f0
push edi
push eax
call fcn.004181bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e5be
call fcn.004171cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d1a2
add esp, 0x20
test eax, eax
jne 0x41e5dd
push edi
call fcn.004171cb
jmp 0x41e5e5
push ebx
call fcn.004171cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425d8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425d8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x1044
call fcn.00401dd0
mov eax, dword [0x416b7c]
xor eax, esp
mov dword [esp + 0x1040], eax
push edi
push str.shfolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.SHGetFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 2
push 0
call eax
test eax, eax
jl 0x4011f4
push esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x82c]
push 0x104
push eax
call fcn.00401d47
push str.Mentor_GraphicsMentor_Install.lnk
lea ecx, [esp + 0x838]
push 0x104
push ecx
call fcn.00401cca
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x18
lea edx, [esp + 0x828]
push edx
call esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0xc3c]
push 0x104
push ecx
call fcn.00401d47
push str.Mentor_GraphicsBatch_Tool.lnk
lea edx, [esp + 0xc48]
push 0x104
push edx
call fcn.00401cca
add esp, 0x18
lea eax, [esp + 0xc38]
push eax
call esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x214]
push 0x104
push edx
call fcn.00401d47
push str.Mentor_GraphicsMentor_UninstallUninstall_Mentor_Products.lnk
lea eax, [esp + 0x220]
push 0x104
push eax
call fcn.00401cca
add esp, 0x18
lea ecx, [esp + 0x210]
push ecx
call esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x41c]
push 0x104
push eax
call fcn.00401d47
push str.Mentor_GraphicsMentor_UninstallUninstall_Mentor_Install.lnk
lea ecx, [esp + 0x428]
push 0x104
push ecx
call fcn.00401cca
add esp, 0x18
lea edx, [esp + 0x418]
push edx
call esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x624]
push 0x104
push ecx
call fcn.00401d47
push str.Mentor_GraphicsMentor_UnInstall.lnk
lea edx, [esp + 0x630]
push 0x104
push edx
call fcn.00401cca
add esp, 0x18
lea eax, [esp + 0x620]
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0x104
lea edx, [esp + 0xa38]
push edx
call fcn.00401d47
push str.Mentor_GraphicsMentor_Uninstall
lea eax, [esp + 0xa40]
push 0x104
push eax
call fcn.00401cca
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x18
lea ecx, [esp + 0xa30]
push ecx
call esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0xe44]
push 0x104
push eax
call fcn.00401d47
push str.Mentor_Graphics
lea ecx, [esp + 0xe50]
push 0x104
push ecx
call fcn.00401cca
add esp, 0x18
lea edx, [esp + 0xe40]
push edx
call esi
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1044]
pop edi
xor ecx, esp
call fcn.00401db6
add esp, 0x1044
ret
Function at 0x4012a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
mov eax, dword [0x416b7c]
xor eax, esp
mov dword [esp + 0x660], eax
push esi
push edi
mov edi, dword [esp + 0x670]
push edi
lea eax, [esp + 0x464]
push 0x104
push eax
call fcn.00401d47
push 0x413570
lea ecx, [esp + 0x470]
push 0x104
push ecx
call fcn.00401cca
push edi
lea edx, [esp + 0x274]
push 0x104
push edx
call fcn.00401d47
push 0x41356c
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.00401cca
add esp, 0x30
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401347
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.00401db6
add esp, 0x664
ret
push ebx
push ebp
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push 0x104
push ecx
call fcn.00401d47
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
je 0x401405
lea eax, [esp + 0x3c]
push eax
call fcn.00401220
add esp, 4
test eax, eax
jne 0x401372
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.00401cca
add esp, 0xc
test byte [esp + 0x10], 0x10
je 0x4013d4
lea eax, [esp + 0x260]
push eax
call fcn.004012a0
add esp, 4
test eax, eax
je 0x401410
lea ecx, [esp + 0x260]
push ecx
call ebp
jmp 0x4013e6
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401410
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.00401d47
jmp 0x40136f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40141b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x401425
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebp
mov ecx, dword [esp + 0x670]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00401db6
add esp, 0x664
ret

Function at 0x4014a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x100
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea edx, [esp + 0x18]
push edx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x401510
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
sub esp, 0xc88
mov eax, dword [0x416b7c]
xor eax, esp
mov dword [esp + 0xc84], eax
push esi
push edi
mov edi, dword [esp + 0xc94]
lea eax, [esp + 0xa84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, 0x104
ja 0x401579
test eax, eax
je 0x401579
lea ecx, [esp + 0xa84]
push ecx
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.00401d47
add esp, 0xc
push str._selfdel.dll
lea eax, [esp + 0x60]
push eax
call esi
jmp 0x401590
push str.C:_selfdel.dll
lea ecx, [esp + 0x60]
push 0x104
push ecx
call fcn.00401d47
add esp, 0xc
lea edx, [esp + 0x5c]
push edx
push 0x69
push edi
call fcn.004014a0
add esp, 0xc
push 0x618
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x413590
lea ecx, [esp + 0x268]
push ecx
call esi
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4015f7
push 0x618
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413590
lea ecx, [esp + 0x268]
push ecx
call esi
push 0x41358c
lea edx, [esp + 0x268]
push edx
call esi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x268]
push ecx
call esi
push str._SelfDel
lea edx, [esp + 0x268]
push edx
call esi
push 0x208
lea eax, [esp + 0x880]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x87c]
push ecx
lea edx, [esp + 0x268]
push edx
call esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401e00
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x284]
push eax
push 0
mov dword [esp + 0x6c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0xc8c]
pop edi
pop esi
xor ecx, esp
call fcn.00401db6
add esp, 0xc88
ret