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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 4], edi
cmp ecx, 0x10
jb 0x1005fb33
mov esi, dword [eax]
jmp 0x1005fb35
mov esi, eax
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x1005fb51
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1005fb40
mov ecx, dword [ebx + 0x14]
mov edi, ecx
and edi, edx
cmp dword [ebx + 0x18], edi
ja 0x1005fb66
shr ecx, 1
or eax, 0xffffffff
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 8]
lea eax, [edi + edi]
mov edx, dword [ebx]
lea eax, [eax + 1]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov esi, dword [ecx + edi*8]
mov edi, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
cmp edi, edx
jne 0x1005fb8f
mov eax, edx
jmp 0x1005fb93
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1005fcb3
cmp dword [ebp - 8], 0x10
lea ecx, [esi + 8]
jb 0x1005fbab
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
jmp 0x1005fbae
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 4], eax
jb 0x1005fbbc
mov ecx, dword [ecx]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
je 0x1005fc23
sub edx, 4
jb 0x1005fbe1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1005fbe6
add ecx, 4
add edi, 4
sub edx, 4
jae 0x1005fbd0
cmp edx, 0xfffffffc
je 0x1005fc1a
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x1005fc13
cmp edx, 0xfffffffd
je 0x1005fc1a
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x1005fc13
cmp edx, 0xfffffffe
je 0x1005fc1a
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x1005fc13
cmp edx, 0xffffffff
je 0x1005fc1a
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x1005fc1a
sbb eax, eax
or eax, 1
jmp 0x1005fc1c
xor eax, eax
test eax, eax
jne 0x1005fc33
mov eax, dword [ebp - 4]
cmp eax, ebx
jb 0x1005fc33
xor eax, eax
cmp dword [ebp - 4], ebx
setne al
test eax, eax
je 0x1005fc43
mov esi, dword [esi]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x1005fb87
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
jb 0x1005fc51
mov ecx, dword [ecx]
cmp dword [ebp - 8], 0x10
jb 0x1005fc5f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.10008640
add esp, 0xc
test eax, eax
jne 0x1005fc9a
cmp ebx, edi
jb 0x1005fc9a
cmp ebx, edi
setne al
test eax, eax
jne 0x1005fc9a
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
pop edi
mov dword [ebp + 0xc], esi
mov ecx, dword [ecx]
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e9640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x101272c0
call fcn.100f30e2
add eax, 0x40
push eax
call fcn.100f31be
add esp, 0xc
push 2
call fcn.100f37f5
int3
Function at 0x4010cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 3
pop ebp
ret

Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
call fcn.0040a060
xor dl, dl
pop ecx
test eax, eax
jbe 0x401478
xor ecx, ecx
mov cl, byte [ecx + esi]
cmp cl, 0x30
jl 0x40148e
cmp cl, 0x36
jle 0x40146a
cmp cl, 0x41
jl 0x40148e
cmp cl, 0x5a
jg 0x40148e
inc dl
movzx ecx, dl
cmp ecx, eax
jb 0x401458
movsx eax, byte [esi + 1]
movsx ecx, byte [esi]
imul eax, eax, 0x1a
lea edi, [eax + ecx - 0x6db]
cmp edi, dword [ebp + 0xc]
jbe 0x401495
xor eax, eax
jmp 0x40157f
push ebx
add esi, 2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00401583
mov ebx, eax
add esp, 0xc
cmp edi, ebx
jae 0x4014b0
mov ebx, edi
mov edi, 0x100
cmp ebx, edi
jbe 0x4014bb
mov ebx, edi
push edi
call fcn.0040a1db
push edi
mov esi, eax
call fcn.0040a1db
and byte [esi], 0
pop ecx
pop ecx
mov edi, eax
push 1
mov byte [ebp + 0x13], 0x22
pop ecx
cmp ebx, ecx
mov byte [ebp + 0xf], cl
jbe 0x40150f
movzx edx, byte [ebp + 0x13]
lea eax, [ecx + 0x37]
xor eax, edx
cdq
idiv ecx
mov byte [ebp - 1], dl
xor dl, byte [ebp + 0xf]
movzx eax, byte [ebp - 1]
add byte [ebp + 0x13], dl
mov dl, byte [eax + esi]
add eax, esi
mov byte [ecx + esi], dl
mov cl, byte [ebp + 0xf]
inc byte [ebp + 0xf]
mov byte [eax], cl
movzx ecx, byte [ebp + 0xf]
cmp ecx, ebx
jb 0x4014de
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x401531
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov al, byte [eax + edx]
mov byte [ecx + edi], al
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401519
xor dl, dl
mov cl, 0x22
test ebx, ebx
jbe 0x40154c
xor eax, eax
xor byte [eax + edi], cl
add cl, byte [eax + edi]
add eax, edi
inc dl
movzx eax, dl
cmp eax, ebx
jb 0x40153b
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x40156e
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov cl, byte [ecx + edi]
mov byte [eax + edx], cl
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401556
push edi
call fcn.0040a1d0
push esi
call fcn.0040a1d0
pop ecx
mov eax, ebx
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4017f8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x40f3d8
xor ebx, ebx
push 1
push ebx
push 0x40f3c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4018e7
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a0e0
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0040a2f0
add esp, 0x10
cmp eax, ebx
je 0x401868
mov byte [eax], bl
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40187d
cmp byte [eax], bl
je 0x40187d
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x401891
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40f3e8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4018de
lea eax, [ebp - 0x314]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402cb2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x208
call fcn.0040a218
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x402d29
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push 1
push esi
push esi
push ebx
push esi
mov dword [edi], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
mov dword [ebp + 0xc], eax
call fcn.0040a1e9
cmp dword [ebp + 0xc], esi
pop ecx
jne 0x402d2d
xor eax, eax
jmp 0x402d35
mov eax, dword [ebp - 0x10]
push 1
mov dword [edi], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d60
Capabilities:
Check for time delay via gettickcount
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, 0x411be0
push ebx
test eax, eax
je 0x402f04
xor ebx, ebx
xor eax, eax
cmp dword [0x411bfc], ebx
mov dword [ebp - 0xc], eax
jle 0x402f04
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x411044]
je 0x402eef
mov ecx, eax
shl ecx, 2
mov eax, dword [ecx + 0x411be0]
cmp eax, ebx
je 0x402eef
cmp dword [eax], ebx
je 0x402eef
test byte [eax + 0x12], 1
je 0x402eef
mov eax, dword [ecx + 0x411bc8]
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x402eef
cmp byte [esi], bl
je 0x402eef
lea eax, [ebp - 0x1b4]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040a0e0
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.0040a0f0
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402eef
mov eax, 0x168
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x1b4]
push ebx
push eax
call fcn.0040a290
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.UninstallString
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x402e67
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402eef
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1b4]
push ebx
push eax
call section..text
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x402eef
push eax
call fcn.00401229
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1b4]
push 0x41116c
push eax
call fcn.00402cb2
add esp, 0x10
test eax, eax
je 0x402eef
lea eax, [ebp - 8]
push eax
call fcn.00402d3a
test eax, eax
pop ecx
je 0x402ec1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x402ea3
call edi
mov esi, eax
call edi
sub eax, esi
cmp eax, 0xbb8
jae 0x402eef
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040a49d
test eax, eax
pop ecx
jne 0x402ec5
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [0x411bfc]
mov dword [ebp - 0xc], eax
jl 0x402d92
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403366
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
pop edi
push str.Start_Menu
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x40338c
push 0xb
jmp 0x40339f
push str.Startup
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x4033a2
push 7
pop edi
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test esi, esi
je 0x4033e4
cmp byte [esi], 0
je 0x4033e4
lea eax, [ebp - 0x104]
push eax
call fcn.00408271
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040a0f0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00408298
lea eax, [ebp - 0x104]
push eax
call fcn.0040a417
pop ecx
test eax, eax
pop ecx
je 0x403431
lea eax, [ebp - 0x104]
push eax
call fcn.00408271
lea eax, [ebp - 0x104]
push eax
call fcn.0040848e
lea eax, [ebp - 0x104]
push eax
call fcn.0040a417
add esp, 0xc
test eax, eax
jne 0x4034b7
lea eax, [ebp - 0x104]
push eax
call fcn.00408271
lea eax, [ebp - 0x104]
push eax
call fcn.0040a060
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040a0f0
lea eax, [ebp - 0x104]
push str..lnk
push eax
call fcn.0040a0f0
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.004017f8
add esp, 0x28
cmp dword [ebp + 0x1c], 0xffffffff
je 0x4034b7
test esi, esi
je 0x403495
and byte [ebp + esi - 0x105], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.0040332a
lea eax, [ebp + esi - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.0040332a
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x4039b9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x411044]
push esi
mov esi, dword [eax*4 + 0x411b98]
test esi, esi
je 0x403ab9
movzx eax, word [esi]
add esi, 2
test eax, eax
jbe 0x403ab9
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x14], eax
mov bl, byte [esi]
inc esi
push esi
mov dword [ebp - 0x10], esi
call fcn.0040a060
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0xc], esi
call fcn.0040a060
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 8], esi
call fcn.0040a060
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 4], esi
call fcn.0040a060
push dword [ebp - 0x10]
lea esi, [esi + eax + 1]
push dword [0x411acc]
call fcn.00403941
add esp, 0x18
test bl, 1
je 0x403a5f
push dword [0x411acc]
lea eax, [ebp - 0x28]
and byte [ebp - 0x28], 0
push 0x14
push eax
push 0x411c84
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403aae
push reloc.KERNEL32.dll_lstrlenA
push dword [ebp - 4]
push 0
call fcn.0040366f
lea ebx, [eax + 1]
push ebx
call fcn.0040a218
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push eax
call fcn.0040366f
add esp, 0x1c
push dword [0x411acc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
push dword [0x411acc]
xor eax, eax
push eax
push eax
push eax
call edi
push dword [ebp - 0x10]
call fcn.0040a1e9
pop ecx
dec dword [ebp - 0x14]
jne 0x4039ed
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403abc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x411044]
push esi
mov esi, dword [eax*4 + 0x411b80]
test esi, esi
je 0x403bfa
movzx eax, word [esi]
add esi, 2
test eax, eax
jbe 0x403bfa
push ebx
push edi
mov dword [ebp - 0x1c], eax
mov edi, dword [esi]
mov bl, byte [esi + 4]
add esi, 4
inc esi
push esi
mov dword [ebp - 0x10], esi
call fcn.0040a060
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0x14], esi
call fcn.0040a060
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0xc], esi
call fcn.0040a060
add esp, 0xc
lea esi, [esi + eax + 1]
mov eax, dword [0x411060]
cmp edi, 0x10
jae 0x403b2e
mov eax, dword [edi*4 + 0x41105c]
test bl, 1
mov dword [ebp - 8], eax
je 0x403b8c
lea eax, [ebp - 4]
and byte [ebp - 0x38], 0
push eax
push 0x20019
push 0
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b86
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x14
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x38], 0
jne 0x403bef
push reloc.KERNEL32.dll_lstrlenA
push dword [ebp - 0xc]
push 0
call fcn.0040366f
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0040a218
push edi
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push eax
call fcn.0040366f
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403be6
push ebx
push dword [ebp - 0x18]
push 1
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.0040a1e9
pop ecx
dec dword [ebp - 0x1c]
jne 0x403aea
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40420e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x411ad0]
push dword [0x411acc]
call fcn.0040a0e0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
cmp byte [esi + 0xb], 2
jne 0x40427a
push dword [0x411c24]
push dword [0x411acc]
call fcn.0040a0e0
push 0x5c
push dword [0x411acc]
call fcn.0040a2f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40425d
inc edi
jmp 0x404263
mov edi, dword [0x411acc]
push 0
push esi
call fcn.0040363a
push eax
push edi
call fcn.0040a0e0
add esp, 0x10
jmp 0x40444c
movzx eax, byte [esi + 8]
dec eax
je 0x404419
dec eax
je 0x4042b1
dec eax
jne 0x40442a
lea eax, [ebp + 8]
push eax
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [0x411acc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
jmp 0x40442a
push 1
push 0x30c
call fcn.0040a317
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40442a
lea eax, [edi + 0x104]
push 0
push esi
mov dword [ebp - 4], eax
lea ebx, [edi + 0x208]
call fcn.0040363a
push dword [0x411acc]
mov esi, eax
call fcn.00408298
push 0x5c
push esi
call fcn.0040a2f0
add esp, 0x14
test eax, eax
je 0x404302
inc eax
mov dword [ebp + 8], eax
jmp 0x404305
mov dword [ebp + 8], esi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push dword [0x411acc]
push ebx
push dword [ebp + 8]
push 1
call sub.VERSION.dll_VerFindFileA
mov ebx, eax
shr ebx, 1
and ebx, 1
cmp byte [edi], 0
je 0x4043a2
push edi
call fcn.00408271
push dword [ebp + 8]
push edi
call fcn.0040a0f0
push edi
push dword [0x411acc]
call fcn.0040a0e0
push 0
push dword [0x411acc]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x404384
push eax
call fcn.00401229
push edi
call fcn.0040a1e9
pop ecx
pop ecx
jmp 0x404415
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x40444c
push esi
call fcn.00408271
push dword [ebp + 8]
push esi
call fcn.0040a0f0
push edi
jmp 0x404408
push esi
push dword [0x411acc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
call fcn.0040a1e9
push dword [0x411acc]
call fcn.00408271
push dword [ebp + 8]
push dword [0x411acc]
call fcn.0040a0f0
push 0
push dword [0x411acc]
call section..text
add esp, 0x18
cmp eax, 0xffffffff
je 0x4043eb
push eax
call fcn.00401229
jmp 0x40437e
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x40444c
push esi
call fcn.00408271
push dword [ebp + 8]
push esi
call fcn.0040a0f0
push dword [0x411acc]
push esi
call fcn.0040a580
add esp, 0x14
test eax, eax
jne 0x40444c
mov eax, ebx
jmp 0x40444e
push 0x104
push dword [0x411acc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x411acc]
call fcn.00408271
push 0
push esi
call fcn.0040363a
push eax
push dword [0x411acc]
call fcn.0040a0f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404453
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
push 0x800
mov dword [ebp - 4], edi
call fcn.004082e6
pop ecx
test eax, eax
pop ecx
jne 0x40447f
mov eax, edi
jmp 0x4045a1
lea eax, [ebp - 0x14]
push eax
push dword [0x411acc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 8], eax
je 0x404594
push eax
call fcn.0040a218
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x404594
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [0x411acc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40458a
test byte [esi + 0xe], 2
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0x124
je 0x404534
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x41129c
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404534
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x26]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x404507
jne 0x404534
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0x2a]
jbe 0x404534
push 0x1d
push 6
call fcn.004012af
cmp byte [eax], 0
pop ecx
pop ecx
je 0x404586
push dword [0x411acc]
push eax
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 8]
call fcn.004013c9
add esp, 0x14
cmp eax, 6
jne 0x404586
test byte [esi + 0xe], 4
je 0x40458a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40458a
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp dword [esi + 0x36], eax
je 0x40458a
push dword [0x411acc]
push 0x1e
push 6
call fcn.004012af
pop ecx
pop ecx
push eax
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 8]
call fcn.004013c9
add esp, 0x14
cmp eax, 6
je 0x40458a
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.0040a1e9
pop ecx
pop ebx
lea eax, [ebp + 8]
push eax
call fcn.00408319
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x406618
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
xor ebx, ebx
cmp dword [0x411c54], ebx
push esi
push edi
je 0x40664b
cmp dword [ebp + 8], ebx
jne 0x406644
push 4
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x4067c7
push 5
push dword [ebp + 8]
jmp 0x406636
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 8], ebx
je 0x406675
lea eax, [ebp - 0x310]
push esi
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x4066cd
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x310]
push eax
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
jmp 0x4067c7
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x4112ec
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
lea eax, [ebp - 0x108]
push 2
push eax
call section..text
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
mov dword [ebp - 4], esi
je 0x4067c7
push esi
call fcn.0040114d
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x200]
push eax
call fcn.004082b9
add esp, 0xc
test eax, eax
je 0x4067be
push edi
push dword [ebp + 8]
push esi
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x4067b4
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
lea ebx, [edi - 4]
test ebx, ebx
jbe 0x4067b4
cmp byte [esi], 0x78
jne 0x406785
cmp byte [esi + 1], 0x79
jne 0x406785
cmp byte [esi + 2], 0x7a
jne 0x406785
cmp byte [esi + 3], 0x3d
jne 0x406785
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a060
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0040a7e0
add esp, 0x10
test eax, eax
je 0x406790
inc dword [ebp + 0xc]
inc esi
cmp dword [ebp + 0xc], ebx
jb 0x40674a
jmp 0x4067b4
push 0
mov byte [esi], 0x4e
push dword [ebp - 4]
mov byte [esi + 1], 0x55
mov byte [esi + 2], 0x4c
call fcn.00401114
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004010cd
add esp, 0x14
lea eax, [ebp + 8]
push eax
call fcn.00408319
pop ecx
push dword [ebp - 4]
call fcn.00401229
pop ecx
pop edi
pop esi
pop ebx
leave
ret