joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e00
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 0x412e89
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.005eb9e1
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x414500
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x604528
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 0x4146c1
test al, 6
je 0x414569
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x414569
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00414de0
sub dword [esi + 0x50], eax
jmp 0x4146c3
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.005cedd3
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x41460c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4145ad
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00414de0
sub dword [esi + 0x50], eax
jmp 0x4146c3
mov eax, dword [esp + 0x28]
push 0x80
push eax
call ebp
test eax, eax
jne 0x4145dd
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00414de0
sub dword [esi + 0x50], eax
jmp 0x4146c1
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41460c
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00414de0
sub dword [esi + 0x50], eax
jmp 0x4146c1
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.005eb756
mov ecx, esi
call fcn.00414de0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [esi + 0x5c], eax
call fcn.005eb756
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call fcn.005eb756
mov ecx, esi
mov byte [esp + 0x24], 1
call fcn.004149b0
test eax, eax
je 0x4146c1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4146c3
mov ecx, dword [esp + 0x24]
push 0x80
push ecx
call ebp
test eax, eax
je 0x4146a9
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x414692
mov dword [esp + 0x14], esp
push str.Failed_to_delete_file_after_copy
jmp 0x4146b5
lea edx, [esp + 0x28]
mov dword [esp + 0x14], esp
push edx
call fcn.005eb756
mov ecx, esi
call fcn.00414ec0
jmp 0x4146c3
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.005eba4f
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.005eb9e1
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005eb9e1
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 0x414700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604587
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 [0x69cfe8]
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.005ebb1a
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.005ebb1a
lea ecx, [esp + 4]
call fcn.005ebf2a
lea edx, [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call fcn.005ebb1a
lea ecx, [esp + 0xc]
call fcn.005ebf2a
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4147ef
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4147ef
push eax
lea ecx, [esp + 8]
call fcn.005e7bd8
test eax, eax
jne 0x4147ef
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx - 8]
mov esi, dword [eax - 8]
cmp edx, esi
jg 0x4147ef
mov eax, esi
lea ecx, [esp + 0x10]
sub eax, edx
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.005e7ac2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.005ebb1a
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.005eb9e1
push 0x6723a0
lea ecx, [esp + 0xc]
call fcn.005e809b
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.005eb756
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.005eb9e1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 3
call fcn.005eb9e1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.005eb9e1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call fcn.005eb9e1
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.005eb9e1
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x6046b8
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.005eb756
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 2
call fcn.005eb756
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.005eb9e1
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8
Function at 0x414ec0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x604718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x69cfe8]
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.005e7bb6
cmp eax, 0xffffffff
je 0x414f3c
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005e7b3e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.005ebb1a
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.005eb9e1
push 0x6723a0
lea ecx, [esp + 0xc]
call fcn.005e7fba
push 0x5c
lea ecx, [esp + 0x24]
call fcn.005e7bb6
cmp eax, 0xffffffff
pop esi
je 0x414fad
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005e7b3e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.005ebb1a
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.005eb9e1
mov edx, dword [esp]
push 0
push edx
call fcn.005cedd3
add esp, 8
test eax, eax
jne 0x414fad
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.005cf1ee
add esp, 8
test eax, eax
je 0x414fad
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.005eb9e1
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.005eb9e1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4160b0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x6049e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x69cfe8]
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.005e7bb6
cmp eax, 0xffffffff
je 0x41612c
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005e7b3e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.005ebb1a
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.005eb9e1
push 0x6723a0
lea ecx, [esp + 0xc]
call fcn.005e7fba
push 0x5c
lea ecx, [esp + 0x24]
call fcn.005e7bb6
cmp eax, 0xffffffff
pop esi
je 0x41619d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005e7b3e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.005ebb1a
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.005eb9e1
mov edx, dword [esp]
push 0
push edx
call fcn.005cedd3
add esp, 8
test eax, eax
jne 0x41619d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.005cf1ee
add esp, 8
test eax, eax
je 0x41619d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.005eb9e1
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.005eb9e1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4161e0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x604a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x69cfe8]
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.005e7bb6
cmp eax, 0xffffffff
je 0x41624f
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.005e7b3e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.005ebb1a
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.005eb9e1
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.005ebb1a
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.005e7bb6
cmp eax, 0xffffffff
je 0x4162d2
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.005e7b3e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.005ebb1a
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.005cf4d3
add esp, 8
test eax, eax
je 0x4162c2
mov eax, dword [esp + 8]
push eax
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.005e7bb6
cmp eax, 0xffffffff
jne 0x41627a
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.005eb9e1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.005eb9e1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4168a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x69cfe8]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x6a1e40
mov dword [esp + 0x1c], edi
call fcn.005ebb6a
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.005e82e8
lea edx, [esp + 0xc]
push edx
call fcn.005e82e8
lea eax, [esp + 0xc]
push eax
call fcn.005e82e8
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x604b80
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.005ebc76
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.005ebb1a
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.005eb9e1
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.005cf700
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.005e829c
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0xc]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x28]
mov dword [esi + 0x18], eax
call fcn.005e829c
mov edx, dword [esp + 0x20]
add edi, 0x14
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
mov dword [esi + 0x1c], edx
call fcn.005e829c
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.005eb9e1
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 0x41881d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x69cfe8]
push esi
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call fcn.005e9f00
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00418b40
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.005ebb1a
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.005eb9e1
push 1
lea ecx, [esp + 8]
call fcn.005ebe11
mov dword [esi + 0x30], eax
add esi, 0x20
push esi
call fcn.005ad630
push 0xffffffffffffffff
lea ecx, [esp + 8]
mov esi, eax
call fcn.005ebe60
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x419460
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x605119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x69cfe8]
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.005ebb6a
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41963d
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 0x4195b1
dec eax
jne 0x4195f0
mov edx, dword [esp + 0x24]
cmp ecx, 3
mov dword [esi + 0x34], edx
jne 0x41952f
push str.Windows_NT_3
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x2c], 4
jne 0x419544
push str.Windows_NT_4
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x2c], 5
jne 0x41959a
cmp dword [esi + 0x30], ebp
jne 0x41955e
push str.Windows_2000
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x2c], 5
jne 0x41959a
cmp dword [esi + 0x30], 2
jne 0x419579
push str.Windows_Server_XP_x64
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x20], ebx
cmp dword [esi + 0x2c], 5
jne 0x41959a
mov eax, dword [esi + 0x30]
cmp eax, ebp
je 0x41959a
cmp eax, 2
je 0x41959a
push str.Windows_XP
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x1c], ebx
cmp dword [esi + 0x2c], 6
jne 0x4195f0
push str.Windows_Vista
mov ecx, edi
call fcn.005ebb6a
mov dword [esi + 0x24], ebx
jmp 0x4195f0
mov eax, dword [esp + 0x24]
and eax, 0xffff
cmp ecx, 4
mov dword [esi + 0x34], eax
ja 0x4195d2
jne 0x4195c8
cmp edx, ebp
ja 0x4195d2
mov dword [esi + 4], ebx
push str.Windows_95
jmp 0x4195e9
cmp edx, 0xa
ja 0x4195e1
mov dword [esi + 8], ebx
push str.Windows_98
jmp 0x4195e9
mov dword [esi + 0xc], ebx
push str.Windows_ME
mov ecx, edi
call fcn.005ebb6a
mov ecx, dword [0x69cfe8]
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.005e7f5e
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.005ebb1a
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], 0
call fcn.005eb9e1
jmp 0x419640
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 0x41a220
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6052f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x69cfe8]
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.005ebb6a
mov esi, dword [esp + 0x120]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005eb756
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call fcn.005eb9e1
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 4
Function at 0x41c2c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x605808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x69cfe8]
xor esi, esi
mov dword [esp + 4], eax
push 0x6723a0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 2
call fcn.005e7fba
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.005e7f5e
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.005cedd3
add esp, 0x18
test eax, eax
jne 0x41c339
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c3b6
jmp 0x41c3b1
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.005e7f5e
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.005cedd3
add esp, 0x18
test eax, eax
jne 0x41c376
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c3b6
jmp 0x41c3b1
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.005e7f5e
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.005cedd3
add esp, 0x18
test eax, eax
jne 0x41c3b6
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41c3b6
mov esi, 1
lea ecx, [esp + 4]
mov byte [esp + 0x10], 1
call fcn.005eb9e1
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.005eb9e1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.005eb9e1
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x41c400
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x60582b
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 0x647128
push 1
push 0
push 0x647118
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41c586
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 [0x69cfe8]
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 0x41c4e8
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 0x647138
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x41c565
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.005eb9e1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x31c]
pop edi
mov dword fs:[0], ecx
add esp, 0x324
ret 4
Function at 0x41c8d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6058e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x69cfe8]
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 [0x69cfe8]
lea ebx, [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [ebx], ecx
push 0x6a1e40
push 0
lea ebp, [esi + 0xc]
push 1
push 0
push 0
mov ecx, ebp
mov byte [esp + 0x30], 1
call fcn.0040ef70
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi], vtable.CIRTextFile.0
call fcn.005eb96c
mov ecx, ebx
call fcn.005eb96c
push 0x6a1e40
push 0
push 1
push 0x673e38
push 0x6a1e40
mov ecx, ebp
call fcn.0040f0a0
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