joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412dc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
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 0x412e49
lea ecx, [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
mov esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [esp + 0x18]
call fcn.005eb0f5
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x4144a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x603c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414661
test al, 6
je 0x414509
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x414509
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eae6a
mov ecx, esi
call fcn.00414d80
sub dword [esi + 0x50], eax
jmp 0x414663
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.005ce4b4
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x4145ac
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41454d
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eae6a
mov ecx, esi
call fcn.00414d80
sub dword [esi + 0x50], eax
jmp 0x414663
mov eax, dword [esp + 0x28]
push 0x80
push eax
call ebp
test eax, eax
jne 0x41457d
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eae6a
mov ecx, esi
call fcn.00414d80
sub dword [esi + 0x50], eax
jmp 0x414661
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4145ac
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eae6a
mov ecx, esi
call fcn.00414d80
sub dword [esi + 0x50], eax
jmp 0x414661
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.005eae6a
mov ecx, esi
call fcn.00414d80
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [esi + 0x5c], eax
call fcn.005eae6a
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call fcn.005eae6a
mov ecx, esi
mov byte [esp + 0x24], 1
call fcn.00414950
test eax, eax
je 0x414661
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414663
mov ecx, dword [esp + 0x24]
push 0x80
push ecx
call ebp
test eax, eax
je 0x414649
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x414632
mov dword [esp + 0x14], esp
push str.Failed_to_delete_file_after_copy
jmp 0x414655
lea edx, [esp + 0x28]
mov dword [esp + 0x14], esp
push edx
call fcn.005eae6a
mov ecx, esi
call fcn.00414e60
jmp 0x414663
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.005eb163
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor edi, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.005eb0f5
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 8
Function at 0x4146a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x603cf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 1
mov eax, dword [0x69c108]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 5
call fcn.005eb22e
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.005eb22e
lea ecx, [esp + 4]
call fcn.005eb63e
lea edx, [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call fcn.005eb22e
lea ecx, [esp + 0xc]
call fcn.005eb63e
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41478f
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41478f
push eax
lea ecx, [esp + 8]
call fcn.005e72c8
test eax, eax
jne 0x41478f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx - 8]
mov esi, dword [eax - 8]
cmp edx, esi
jg 0x41478f
mov eax, esi
lea ecx, [esp + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.005e71b2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.005eb22e
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.005eb0f5
push 0x6713a0
lea ecx, [esp + 0xc]
call fcn.005e778b
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.005eae6a
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.005eb0f5
lea ecx, [esp + 4]
mov byte [esp + 0x20], 3
call fcn.005eb0f5
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.005eb0f5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005eb0f5
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.005eb0f5
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x414ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x603e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x54]
push ecx
push edx
push eax
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esp + 0x2c], 1
call fcn.005eae6a
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 2
call fcn.005eae6a
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0x2c], 1
call dword [edx + 8]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.005eb0f5
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8
Function at 0x414e60
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x603e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x69c108]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.005e72a6
cmp eax, 0xffffffff
je 0x414edc
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005e722e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.005eb22e
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.005eb0f5
push 0x6713a0
lea ecx, [esp + 0xc]
call fcn.005e76aa
push 0x5c
lea ecx, [esp + 0x24]
call fcn.005e72a6
cmp eax, 0xffffffff
pop esi
je 0x414f4d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005e722e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.005eb22e
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.005eb0f5
mov edx, dword [esp]
push 0
push edx
call fcn.005ce4b4
add esp, 8
test eax, eax
jne 0x414f4d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.005ce8ce
add esp, 8
test eax, eax
je 0x414f4d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.005eb0f5
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.005eb0f5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x416050
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x604158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x69c108]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.005e72a6
cmp eax, 0xffffffff
je 0x4160cc
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005e722e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.005eb22e
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.005eb0f5
push 0x6713a0
lea ecx, [esp + 0xc]
call fcn.005e76aa
push 0x5c
lea ecx, [esp + 0x24]
call fcn.005e72a6
cmp eax, 0xffffffff
pop esi
je 0x41613d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005e722e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.005eb22e
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.005eb0f5
mov edx, dword [esp]
push 0
push edx
call fcn.005ce4b4
add esp, 8
test eax, eax
jne 0x41613d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.005ce8ce
add esp, 8
test eax, eax
je 0x41613d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.005eb0f5
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.005eb0f5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x416180
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x604198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x69c108]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
mov bl, 2
push 0x5c
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.005e72a6
cmp eax, 0xffffffff
je 0x4161ef
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.005e722e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.005eb22e
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.005eb0f5
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.005eb22e
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.005e72a6
cmp eax, 0xffffffff
je 0x416272
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.005e722e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.005eb22e
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.005cebb3
add esp, 8
test eax, eax
je 0x416262
mov eax, dword [esp + 8]
push eax
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.005e72a6
cmp eax, 0xffffffff
jne 0x41621a
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.005eb0f5
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.005eb0f5
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x416840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6042cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x69c108]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x6a0f60
mov dword [esp + 0x1c], edi
call fcn.005eb27e
lea ecx, [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x10], edi
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.005e79d8
lea edx, [esp + 0xc]
push edx
call fcn.005e79d8
lea eax, [esp + 0xc]
push eax
call fcn.005e79d8
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4168d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6042f0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
call fcn.005eb38a
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.005eb22e
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.005eb0f5
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.005cede0
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
push 0xffffffffffffffff
adc edx, ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
lea edx, [edi + 4]
push edx
lea ecx, [esp + 0x28]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call fcn.005e798c
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0xc]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x28]
mov dword [esi + 0x18], eax
call fcn.005e798c
mov edx, dword [esp + 0x20]
add edi, 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
mov dword [esi + 0x1c], edx
call fcn.005e798c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x41873d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x69c108]
push esi
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call fcn.005e95f0
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004189e0
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.005eb22e
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005eb0f5
push 1
lea ecx, [esp + 8]
call fcn.005eb525
mov dword [esi + 0x30], eax
add esi, 0x20
push esi
call fcn.005acd20
push 0xffffffffffffffff
lea ecx, [esp + 8]
mov esi, eax
call fcn.005eb574
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x419380
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x604889
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x69c108]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea edi, [esi + 0x38]
mov dword [edi], eax
xor ebp, ebp
mov ebx, 1
push str.Unknown_OS
mov ecx, edi
mov dword [esp + 0xb8], ebp
mov dword [esi], vtable.CIROSVersionInfo.0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
call fcn.005eb27e
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41955d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x28], eax
dec eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
je 0x4194d1
dec eax
jne 0x419510
mov edx, dword [esp + 0x24]
cmp ecx, 3
mov dword [esi + 0x34], edx
jne 0x41944f
push str.Windows_NT_3
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x2c], 4
jne 0x419464
push str.Windows_NT_4
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x2c], 5
jne 0x4194ba
cmp dword [esi + 0x30], ebp
jne 0x41947e
push str.Windows_2000
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x2c], 5
jne 0x4194ba
cmp dword [esi + 0x30], 2
jne 0x419499
push str.Windows_Server_XP_x64
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x20], ebx
cmp dword [esi + 0x2c], 5
jne 0x4194ba
mov eax, dword [esi + 0x30]
cmp eax, ebp
je 0x4194ba
cmp eax, 2
je 0x4194ba
push str.Windows_XP
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x1c], ebx
cmp dword [esi + 0x2c], 6
jne 0x419510
push str.Windows_Vista
mov ecx, edi
call fcn.005eb27e
mov dword [esi + 0x24], ebx
jmp 0x419510
mov eax, dword [esp + 0x24]
and eax, 0xffff
cmp ecx, 4
mov dword [esi + 0x34], eax
ja 0x4194f2
jne 0x4194e8
cmp edx, ebp
ja 0x4194f2
mov dword [esi + 4], ebx
push str.Windows_95
jmp 0x419509
cmp edx, 0xa
ja 0x419501
mov dword [esi + 8], ebx
push str.Windows_98
jmp 0x419509
mov dword [esi + 0xc], ebx
push str.Windows_ME
mov ecx, edi
call fcn.005eb27e
mov ecx, dword [0x69c108]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_v_d._d
push edx
mov byte [esp + 0xc8], bl
call fcn.005e764e
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.005eb22e
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.005eb0f5
jmp 0x419560
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0xac]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret
Function at 0x41a140
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x604a65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x69c108]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
push 0x104
push ecx
mov dword [esp + 0x120], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call fcn.005eb27e
mov esi, dword [esp + 0x120]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005eae6a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call fcn.005eb0f5
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x41c200
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x604f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x69c108]
xor esi, esi
mov dword [esp + 4], eax
push 0x6713a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 2
call fcn.005e76aa
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0xc]
push str._s_s.lnk
push eax
call fcn.005e764e
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.005ce4b4
add esp, 0x18
test eax, eax
jne 0x41c279
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c2f6
jmp 0x41c2f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0xc]
push str._s_s.pif
push edx
call fcn.005e764e
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.005ce4b4
add esp, 0x18
test eax, eax
jne 0x41c2b6
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c2f6
jmp 0x41c2f1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0xc]
push str._s_s.url
push ecx
call fcn.005e764e
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.005ce4b4
add esp, 0x18
test eax, eax
jne 0x41c2f6
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c2f6
mov esi, 1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 1
call fcn.005eb0f5
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.005eb0f5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x41c340
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x604f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x647148
push 1
push 0
push 0x647138
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41c4c6
push esi
mov esi, dword [esp + 0x330]
lea ecx, [esp + 0x14]
mov eax, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
mov eax, dword [esi]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [0x69c108]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov edx, dword [esi + 0x14]
push edx
push eax
mov ecx, dword [eax]
mov dword [esp + 0x330], 0
call dword [ecx + 0x3c]
mov ecx, dword [esp + 8]
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push edi
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x18]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x20]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov si, word [esi + 0x1c]
test si, si
je 0x41c428
mov eax, dword [esp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x647158
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x41c4a5
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11a]
mov word [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x118]
push 0x104
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x118]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x328], 0xffffffff
call fcn.005eb0f5
mov eax, esi
pop esi
mov ecx, dword [esp + 0x31c]
pop edi
mov dword fs:[0], ecx
add esp, 0x324
ret 4
Function at 0x41c810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x605051
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x69c108]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ecx, dword [0x69c108]
lea ebx, [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
push 0x6a0f60
push 0
lea ebp, [esi + 0xc]
push 1
push 0
push 0
mov ecx, ebp
mov byte [esp + 0x30], 1
call fcn.0040ef10
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi], vtable.CIRTextFile.0
call fcn.005eb080
mov ecx, ebx
call fcn.005eb080
push 0x6a0f60
push 0
push 1
push 0x672e38
push 0x6a0f60
mov ecx, ebp
call fcn.0040f040
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret