joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408efe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4d75ec
call fcn.004aef44
sub esp, 0x140
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
lea edi, [esi + 0x12]
push edi
call fcn.00409040
pop ecx
test eax, eax
pop ecx
je 0x408f33
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408f3d
and byte [edi], 0
xor eax, eax
jmp 0x409031
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea ecx, [ebp + 8]
call fcn.004c5f18
mov eax, dword [0x51f03c]
and dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.00409129
pop ecx
pop ecx
push 0x510870
lea ecx, [ebp + 0xc]
call fcn.004c2c4d
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004af56e
pop ecx
test eax, eax
pop ecx
jne 0x408f95
push 0x51086c
lea ecx, [ebp + 8]
call fcn.004c6286
lea eax, [ebp - 0x14c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x408fae
xor esi, esi
jmp 0x409017
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x14c]
push esi
and al, 0x7f
mov byte [esi + 0x10], al
mov eax, dword [ebp - 0x130]
shl eax, 0x20
or eax, dword [ebp - 0x12c]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x148]
push eax
call fcn.00408dc6
lea edi, [esi + 8]
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.00408dc6
lea ebx, [esi + 4]
lea eax, [ebp - 0x138]
push ebx
push eax
call fcn.00408dc6
add esp, 0x18
cmp dword [esi], 0
jne 0x40900b
mov eax, dword [ebx]
mov dword [esi], eax
cmp dword [edi], 0
jne 0x409014
mov eax, dword [ebx]
mov dword [edi], eax
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409040
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4d7600
call fcn.004aef44
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push eax
mov esi, 0x104
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40907f
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x40911b
mov eax, dword [0x51f03c]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
xor edi, edi
push eax
push ebx
mov dword [ebp - 4], edi
call fcn.00409129
pop ecx
mov esi, 0x510870
pop ecx
push esi
lea ecx, [ebp + 8]
call fcn.004c2c4d
push esi
lea ecx, [ebp + 8]
call fcn.004c6286
push edi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40910c
test byte [ebp - 0x10], 2
jne 0x4090d7
push ebx
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x10], 4
jne 0x409109
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409109
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40abde
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0xc], ecx
cmp edi, edx
jne 0x40abf8
xor eax, eax
jmp 0x40aca6
xor eax, eax
cmp dword [ebp + 0xc], edx
mov dword [ebp - 4], edx
jbe 0x40aca6
push ebx
push esi
jmp 0x40ac0d
mov edi, dword [ebp + 8]
movzx esi, byte [edx + edi]
inc edx
shl esi, 8
cmp edx, dword [ebp + 0xc]
jae 0x40ac23
movzx ebx, byte [edx + edi]
or esi, ebx
inc edx
jmp 0x40ac26
inc dword [ebp - 4]
shl esi, 8
cmp edx, dword [ebp + 0xc]
jae 0x40ac37
movzx edi, byte [edx + edi]
or esi, edi
inc edx
jmp 0x40ac3a
inc dword [ebp - 4]
push 3
pop edi
cmp dword [ebp - 4], 0
je 0x40ac4d
dec dword [ebp - 4]
mov byte [ebp + edi - 8], 0x3d
jmp 0x40ac62
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, esi
and ecx, 0x3f
mov cl, byte [ecx + ebx]
mov byte [ebp + edi - 8], cl
mov ecx, dword [ebp - 0xc]
shr esi, 6
dec edi
jns 0x40ac3d
xor esi, esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40ac87
cmp dword [ecx + 4], edi
jb 0x40ac87
mov edi, dword [ebp + 0x10]
mov byte [eax + edi], 0xd
inc eax
mov byte [eax + edi], 0xa
inc eax
and dword [ecx + 4], 0
mov edi, dword [ebp + 0x10]
mov bl, byte [ebp + esi - 8]
mov byte [eax + edi], bl
inc eax
inc esi
inc dword [ecx + 4]
cmp esi, 4
jl 0x40ac6a
cmp edx, dword [ebp + 0xc]
jb 0x40ac0a
pop esi
pop ebx
pop edi
leave
ret 0x10
Function at 0x40c4cd
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4d7d3c
call fcn.004aef44
sub esp, 0xc
push esi
mov eax, dword [0x51f03c]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c2892
cmp eax, 0xffffffff
je 0x40c531
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c281a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5fe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
push 0x510870
lea ecx, [ebp - 0x14]
call fcn.004c2c4d
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c2892
cmp eax, 0xffffffff
pop esi
je 0x40c591
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5fe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
push 0
push dword [ebp - 0x10]
call fcn.004b0b55
pop ecx
test eax, eax
pop ecx
jne 0x40c591
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004afa15
pop ecx
test eax, eax
pop ecx
je 0x40c591
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40ca76
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov eax, 0x4d7e3c
call fcn.004aef44
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.004c2dd9
lea ecx, [ebp + 8]
call fcn.004c2ce2
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c2ca0
lea ecx, [ebp + 8]
call fcn.004c2ce2
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c62ad
lea eax, [ebp - 0x21c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 8]
push esi
push ebx
mov edi, dword [eax - 8]
lea eax, [ebp - 0x118]
push eax
call fcn.004af060
add esp, 0xc
cmp edi, 2
jle 0x40cbe9
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
jne 0x40cb52
xor esi, esi
cmp edi, ebx
jle 0x40cbec
cmp dword [ebp - 0x10], ebx
je 0x40cbec
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x118], al
jne 0x40cb48
cmp esi, 2
je 0x40cb48
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40cb48
lea eax, [ebp - 0x118]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x40cb07
jmp 0x40cbec
lea eax, [ebp - 0x14]
push 2
push eax
lea ecx, [ebp + 8]
call fcn.004c281a
mov eax, dword [eax]
push 0x5108dc
push eax
call fcn.004af56e
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.004c5eaa
test bl, bl
je 0x40cbe3
push 2
push 0x510870
lea ecx, [ebp + 8]
call fcn.004c28c2
xor esi, esi
mov ebx, eax
test edi, edi
jle 0x40cbec
cmp dword [ebp - 0x10], 0
je 0x40cbec
cmp ebx, 0xffffffff
je 0x40cbec
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x118], al
jne 0x40cbdc
cmp esi, ebx
jle 0x40cbdc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40cbdc
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x40cb9a
jmp 0x40cbec
and dword [ebp - 0x10], 0
jmp 0x40cbec
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d687
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4d7fb8
call fcn.004aef44
sub esp, 0xc
push esi
mov eax, dword [0x51f03c]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c2892
cmp eax, 0xffffffff
je 0x40d6eb
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004c281a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004c5fe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
push 0x510870
lea ecx, [ebp - 0x14]
call fcn.004c2c4d
push 0x5c
lea ecx, [ebp + 8]
call fcn.004c2892
cmp eax, 0xffffffff
pop esi
je 0x40d74b
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5fe3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
push 0
push dword [ebp - 0x10]
call fcn.004b0b55
pop ecx
test eax, eax
pop ecx
jne 0x40d74b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004afa15
pop ecx
test eax, eax
pop ecx
je 0x40d74b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40d77d
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4d7fec
call fcn.004aef44
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [0x51f03c]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [esi + 4]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004c5c1f
mov ecx, esi
call fcn.0040d296
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c5fe3
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call esi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.004c2892
cmp eax, 0xffffffff
je 0x40d823
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004c281a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5fe3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004c5eaa
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004afa15
pop ecx
test eax, eax
pop ecx
je 0x40d7d8
push dword [ebp - 0x10]
jmp 0x40d7d6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40defa
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
cmp eax, esi
je 0x40df47
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40df47
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x40df81
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
jmp 0x40df7d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40df81
mov eax, dword [ebp - 4]
push esi
mul dword [ebp - 8]
push dword [ebp - 0xc]
push edx
push eax
call fcn.004af6a0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
jmp 0x40df8c
mov eax, dword [ebp + 0xc]
push 1
mov dword [eax], esi
mov dword [eax + 4], esi
pop eax
pop esi
leave
ret
Function at 0x40e49e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d81a8
call fcn.004aef44
sub esp, 0x26c
mov eax, dword [0x51f03c]
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
push 0x44
lea eax, [ebp - 0x84]
pop edi
mov dword [ebx], esi
push edi
push esi
push eax
call fcn.004af060
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004af060
mov edx, dword [ebp + 0x18]
add esp, 0x18
mov eax, edx
mov dword [ebp - 0x84], edi
push 1
sub eax, esi
pop ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x50], esi
mov word [ebp - 0x52], si
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x58], ecx
je 0x40e529
dec eax
je 0x40e521
dec eax
je 0x40e519
dec eax
je 0x40e513
mov word [ebp - 0x54], dx
jmp 0x40e52d
mov word [ebp - 0x54], si
jmp 0x40e52d
mov word [ebp - 0x54], 3
jmp 0x40e52d
mov word [ebp - 0x54], 6
jmp 0x40e52d
mov word [ebp - 0x54], cx
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
jne 0x40e54e
push dword [ebp + 8]
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40e569
push dword [ebp + 0xc]
lea eax, [ebp - 0x278]
push dword [ebp + 8]
push 0x510e08
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push dword [ebp + 0x10]
call edi
test eax, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x84]
push eax
jne 0x40e580
push esi
jmp 0x40e583
push dword [ebp + 0x10]
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x278]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x40e5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x40e643
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x14], esi
mov dword [ebx], eax
je 0x40e633
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0xff
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push 1
call edi
cmp eax, 1
jne 0x40e622
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x40e616
cmp dword [ebp - 0x3c], 0x200
je 0x40e5d2
cmp dword [ebp - 0x3c], 0x201
je 0x40e5d2
cmp dword [ebp - 0x3c], 0x202
je 0x40e5d2
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40e5d2
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push esi
push eax
push 1
jmp 0x40e5cb
cmp dword [ebp + 0x20], esi
je 0x40e633
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x40fb14
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
mov eax, 0x4d83cf
call fcn.004aef44
sub esp, 0x148
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x10]
pop ebx
push 0x523a30
mov dword [ebp - 4], ebx
call fcn.004c5f18
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fbf0
push dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x40fbf0
push esi
call fcn.004af1a1
mov edi, eax
pop ecx
test edi, edi
je 0x40fbf0
push edi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x510870
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40fbe9
push 0x34
lea eax, [ebp - 0x54]
push dword [ebp - 0x18]
push eax
call fcn.004af6e0
movzx esi, word [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
movzx edx, word [ebp - 0x4c]
add esp, 0xc
shr ecx, 0x10
push esi
push ecx
shr eax, 0x10
push edx
push eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.004c2c3a
add esp, 0x18
push edi
call fcn.004af0b8
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ff92
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4d84a3
call fcn.004aef44
mov eax, 0x2008
call fcn.004af620
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
push 1
pop ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x51f03c]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004c5e35
push dword [esi + 4]
lea eax, [ebp - 0x2014]
push 0x2000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x2014]
lea ecx, [ebp - 0x10]
push eax
call fcn.004c6033
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004c5c1f
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c5eaa
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004c5eaa
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x410df4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410e64
and dword [ebp - 4], eax
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push esi
push eax
inc dword [ebp - 4]
push esi
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov eax, esi
pop esi
leave
ret 4

Function at 0x4123ac
Capabilities:
Check os version

Disassembly:
mov eax, 0x4d8af7
call fcn.004aef44
sub esp, 0x98
mov eax, dword [0x51f03c]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x30]
mov dword [ebx], eax
push 1
xor eax, eax
pop edi
mov ecx, ebx
push str.Unknown_OS
mov dword [ebp - 4], eax
mov dword [esi], vtable.CIROSVersionInfo.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.004c6033
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4124f6
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov dword [esi + 0x20], ecx
dec ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
je 0x4124b7
dec ecx
jne 0x4124f9
mov ecx, dword [ebp - 0x98]
cmp eax, 3
mov dword [esi + 0x2c], ecx
jne 0x41246a
push str.Windows_NT_3
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x10], edi
cmp dword [esi + 0x24], 4
jne 0x41247f
push str.Windows_NT_4
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x14], edi
cmp dword [esi + 0x24], 5
jne 0x4124f9
cmp dword [esi + 0x28], 0
jne 0x41249a
push str.Windows_2000
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x18], edi
cmp dword [esi + 0x24], 5
jne 0x4124f9
cmp dword [esi + 0x28], 0
jbe 0x4124f9
push str.Windows_XP
mov ecx, ebx
call fcn.004c6033
mov dword [esi + 0x1c], edi
jmp 0x4124f9
movzx ecx, word [ebp - 0x98]
cmp eax, 4
mov dword [esi + 0x2c], ecx
ja 0x4124d6
jne 0x4124cc
test edx, edx
ja 0x4124d6
mov dword [esi + 4], edi
push str.Windows_95
jmp 0x4124e3
cmp edx, 0xa
ja 0x4124ec
mov dword [esi + 8], edi
push str.Windows_98
mov ecx, ebx
call fcn.004c6033
jmp 0x4124f9
mov dword [esi + 0xc], edi
push str.Windows_ME
jmp 0x4124e3
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x414a15
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d9174
call fcn.004aef44
push ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x51f03c]
xor esi, esi
mov dword [ebp - 0x10], eax
push 0x510870
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004c2c4d
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.lnk
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
je 0x414aae
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.pif
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
je 0x414aae
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s.url
push eax
call fcn.004c2c3a
push ebx
push dword [ebp - 0x10]
call fcn.004b0b55
add esp, 0x18
test eax, eax
jne 0x414abe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x414abe
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004c5eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8