joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c280
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x814
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0044efc0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x28]
call fcn.00452c00
cmp word [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov ebx, edx
je 0x40c31f
movzx eax, word [esi]
mov edx, dword [edi]
mov ecx, dword [edx + 0x48]
push eax
push edi
call ecx
cmp edx, ebx
ja 0x40c338
jb 0x40c300
cmp eax, dword [esp + 0x10]
ja 0x40c338
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c305
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x40c2e8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 8

Function at 0x40c360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.0044efc0
add esp, 0xc
push 0x400
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 4
Function at 0x40c410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ce66
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x40c5ee
mov eax, dword [0x488d58]
mov edx, dword [eax + 0xc]
mov ecx, 0x488d58
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x248], 0
cmp dword [edi + 0x10], 0
jne 0x40c4e3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40c4ef
lea ecx, [esp + 0x1c]
push ecx
push 0x15
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40c4d5
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [esp + 0x2c]
lea edi, [esp + 0x14]
call fcn.00402b30
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40c4ef
lea eax, [edi + 4]
lea edi, [esp + 0x14]
call fcn.00402b70
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov ebx, 0x4796d0
je 0x40c503
mov ebx, str.360safe.setup.log
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040c990
mov byte [esp + 0x250], 1
mov eax, dword [esp + 0x20]
push 0x47971c
push eax
call fcn.00450eff
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40c59b
push 2
push 0
push edi
call fcn.00452894
add esp, 0xc
push 0
call fcn.00452254
add esp, 4
push edx
push eax
lea eax, [esp + 0x28]
call fcn.0040a3b0
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.0040a410
mov ecx, dword [esp + 0x10]
push esi
push ecx
push str._s__s_r_n
push edi
call fcn.00452919
push edi
call fcn.00450803
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c59b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret 8
Function at 0x40cce0
Capabilities:
Check if file exists

Disassembly:
cmp dword [0x48a244], 0
jne 0x40cd22
call fcn.004048a0
test eax, eax
jne 0x40cd43
test esi, esi
je 0x40cd1f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cd43
push esi
call fcn.00404920
add esp, 4
test eax, eax
jne 0x40cd43
push 1
call fcn.0044eb40
push eax
push esi
call fcn.0044ed50
add esp, 0xc
xor eax, eax
ret
call fcn.004048a0
test eax, eax
jne 0x40cd43
test esi, esi
je 0x40cd1f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cd43
push esi
call fcn.00404920
add esp, 4
mov eax, 1
ret

Function at 0x40d4a9
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
mov ebx, edx
jne 0x40d4d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044efac
add esp, 0x1004
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d4b7
mov eax, dword [esi + 0x1c]
push edi
push 0x47986c
push eax
call fcn.00450eff
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d50b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0044efac
add esp, 0x1004
ret
mov eax, dword [esi + 4]
push 0
push eax
push edi
call fcn.00452894
mov eax, dword [ebx]
push 0x478808
push eax
call fcn.00450eff
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x40d5c9
push 0x1000
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0044efc0
mov esi, dword [esi + 8]
mov eax, esi
cdq
and edx, 0xfff
add eax, edx
add esp, 0xc
sar eax, 0xc
and esi, 0x80000fff
jns 0x40d566
dec esi
or esi, 0xfffff000
inc esi
test eax, eax
jle 0x40d59d
push ebp
mov ebp, eax
lea ecx, [ecx]
push edi
push 1
lea edx, [esp + 0x18]
push 0x1000
push edx
call fcn.00450d03
push ebx
push 1
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.004509e1
add esp, 0x20
sub ebp, 1
jne 0x40d570
pop ebp
test esi, esi
je 0x40d5c0
push edi
push 1
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00450d03
push ebx
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.004509e1
add esp, 0x20
push ebx
call fcn.00450803
add esp, 4
push edi
call fcn.00450803
mov ecx, dword [esp + 0x1010]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044efac
add esp, 0x1004
ret

Function at 0x40d6b0
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d6e0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
push eax
push esi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.0040d710
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40d710
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1014]
push ebx
mov ebx, dword [esp + 0x101c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp eax, 0xffffffff
je 0x40d866
test ebx, ebx
je 0x40d866
test ecx, ecx
jle 0x40d866
mov eax, ecx
cdq
push ebp
and edx, 0xfff
push esi
add eax, edx
push edi
mov esi, eax
mov edi, ecx
sar esi, 0xc
and edi, 0x80000fff
jns 0x40d77d
dec edi
or edi, 0xfffff000
inc edi
mov ebp, ebx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
jle 0x40d7f2
lea esp, [esp]
push 0x1000
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0044f690
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, 0x1000
lea esp, [esp]
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40d7b0
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40d836
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d7e7
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
inc ebx
add ebp, 0x1000
cmp ebx, esi
jl 0x40d790
test edi, edi
jle 0x40d85f
push edi
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.0044f690
add esp, 0xc
lea eax, [esp + 0x1c]
test edi, edi
jle 0x40d81a
mov ecx, edi
nop
mov dl, byte [eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x40d810
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d851
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0044efac
add esp, 0x1010
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d85f
mov ecx, dword [esp + 0x10]
add dword [eax], ecx
mov eax, 1
jmp 0x40d838
mov ecx, dword [esp + 0x1010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x1010
ret
Function at 0x40db60
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x2000], eax
xor eax, eax
test ebx, ebx
je 0x40dc55
mov word [ebx], ax
test edi, edi
jne 0x40db9e
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044efac
add esp, 0x2004
ret
push esi
mov esi, 0x479ab0
mov ecx, dword [esi]
push edi
push ecx
call fcn.0044fde8
add esp, 8
test eax, eax
je 0x40dbd7
add esi, 8
cmp esi, str.TargetDir
jl 0x40dba4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044efac
add esp, 0x2004
ret
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
je 0x40dc28
push 0x2000
lea edx, [esp + 8]
push 0
push edx
call fcn.0044efc0
add esp, 0xc
push 1
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40dc28
lea eax, [esp + 4]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dc10
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x200c]
jl 0x40dc40
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044efac
add esp, 0x2004
ret
push eax
lea ecx, [esp + 8]
push ecx
push ebx
call fcn.0044ff5b
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0044efac
add esp, 0x2004
ret

Function at 0x40dcc0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
xor eax, eax
push 0x3ffe
mov ebx, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0044efc0
add esp, 0xc
mov dword [esp + 8], 0
test esi, esi
je 0x40dda5
test edi, edi
je 0x40dda5
lea edx, [esp + 8]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40dda5
cmp eax, 0x3fff
ja 0x40dda5
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40dda5
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0x478bf8
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dda5
lea edx, [ebx + ebx]
push edx
push 0
push edi
call fcn.0044efc0
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._d._d._d._d
dec ebx
push ebx
push edi
call fcn.004529cc
add esp, 0x28
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.0044efac
add esp, 0x4010
ret
mov ecx, dword [esp + 0x4010]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x4010
ret
Function at 0x40ddc0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x2024
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x2020], eax
xor eax, eax
test esi, esi
je 0x40de4b
push 0x2000
mov dword [esp + 8], eax
push eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x10], 3
call fcn.0044efc0
push 0x1000
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0044ff5b
add esp, 0x18
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0044efac
add esp, 0x2024
ret

Function at 0x40ec00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ced8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004081c0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0040ea50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 4]
test esi, esi
je 0x40ec8b
cmp esi, dword [esp + 0x14]
je 0x40ec90
call fcn.0044f5fa
xor eax, eax
cmp edi, dword [esp + 0x18]
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ced8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.004081c0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push esi
lea ebx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.0040ea50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ed2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
add esi, 4
test edi, edi
je 0x40ed40
cmp edi, eax
je 0x40ed45
call fcn.0044f5fa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ed5a
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.0040f0b0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ff10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d218
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x486d80]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40ffba
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ffba
lea eax, [esp + 0x14]
push eax
mov edi, str.version1.0_encodingutf_16
call fcn.00404080
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov dword [esp + 0x6c], 0
call fcn.00404080
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x74], 1
call fcn.0040a2c0
lea edi, [esp + 0x10]
call fcn.00404120
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.00404120
cmp dword [esp + 0x4c], 0
sete al
test al, al
sete al
test al, al
jne 0x40ffd0
lea ecx, [esp + 0x48]
call fcn.00409f80
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [esp + 0x14]
push edx
mov edi, 0x479cc4
call fcn.00404080
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
lea esi, [esp + 0x3c]
mov byte [esp + 0x6c], 5
call fcn.00409e80
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.00404120
cmp dword [esp + 0x40], 0
sete al
test al, al
sete al
test al, al
je 0x410033
cmp dword [esp + 0x3c], 0
sete al
test al, al
sete al
test al, al
je 0x410033
mov edx, dword [ebp + 8]
add edx, 8
mov ecx, esi
call fcn.004101b0
lea ecx, [esp + 0x14]
push ecx
mov edi, str.Plugin_AfterSetup
call fcn.00404080
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
lea esi, [esp + 0x2c]
mov byte [esp + 0x6c], 8
call fcn.00409e80
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xa
call fcn.00404120
cmp dword [esp + 0x30], 0
sete al
test al, al
sete al
test al, al
je 0x410096
cmp dword [esp + 0x2c], 0
sete al
test al, al
sete al
test al, al
je 0x410096
mov edx, dword [ebp + 8]
add edx, 0x20
mov ecx, esi
call fcn.004101b0
lea eax, [esp + 0x14]
push eax
mov edi, str.Plugin_BeforeUninstall
call fcn.00404080
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x18]
lea esi, [esp + 0x1c]
mov byte [esp + 0x6c], 0xb
call fcn.00409e80
lea edi, [esp + 0x14]
mov byte [esp + 0x68], 0xd
call fcn.00404120
cmp dword [esp + 0x20], 0
sete al
test al, al
sete al
test al, al
je 0x4100f9
cmp dword [esp + 0x1c], 0
sete al
test al, al
sete al
test al, al
je 0x4100f9
mov edx, dword [ebp + 8]
add edx, 0x38
mov ecx, esi
call fcn.004101b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0xa
call fcn.004041f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.004041f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 4
call fcn.004041f0
lea ecx, [esp + 0x48]
call fcn.00409f80
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4138d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push edi
push esi
call ecx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x4139fd
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x413932
call fcn.0044f5fa
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp dword [ecx - 0xc], 0
je 0x4139ed
cmp dword [esi + 0x1c], 0
je 0x4139e3
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x41396e
push 4
lea edx, [eax + 0x14]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 4
push edx
push ecx
push eax
call ebx
jmp 0x4139ed
cmp edx, 1
jne 0x413991
mov edx, dword [eax + 0x18]
mov ebx, dword [edx - 0xc]
add ebx, ebx
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
push 1
push edx
push ecx
push eax
call ebx
jmp 0x4139ed
cmp edx, 2
jne 0x4139ed
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
lea eax, [esp + 0x430]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4139b0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x434]
push edx
mov edx, dword [esp + 0x20]
push 1
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebx
jmp 0x4139ed
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add dword [esp + 0x10], 0x1c
inc edi
cmp edi, dword [esp + 0x14]
jl 0x413910
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044efac
mov esp, ebp
pop ebp
ret 4

Function at 0x414820
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
cmp ecx, eax
jne 0x414856
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0044efac
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00415290
add esp, 4
mov eax, esi
call fcn.004153a0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x74]
pop esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, 1
call fcn.0044efac
mov esp, ebp
pop ebp
ret
Function at 0x4148d0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x414983
push esi
push eax
push 1
push 3
push eax
push 1
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x414980
cmp esi, 0xffffffff
je 0x414979
push ebp
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
mov ebp, eax
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 2
push 0
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebx
mov dword [esp + 0x14], 1
call fcn.00414820
add esp, 4
test ebx, ebx
je 0x414969
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebp, ebp
je 0x414974
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
add esp, 8
ret

Function at 0x4149f0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.0044fef0
mov eax, dword [0x486d80]
xor eax, esp
mov dword [esp + 0x400c], eax
xor eax, eax
push 0x3ffe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.0044efc0
add esp, 0xc
mov dword [esp + 4], 0
test edi, edi
je 0x414ae1
test esi, esi
je 0x414ae1
lea edx, [esp + 4]
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x414ae1
cmp eax, 0x3fff
ja 0x414ae1
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414ae1
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0x478bf8
lea ecx, [esp + 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414ae1
xor eax, eax
mov dword [esi], eax
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 eax, dword [esp]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push str._d._d._d._d
push 0xf
push esi
call fcn.004529cc
add esp, 0x1c
mov eax, 1
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.0044efac
add esp, 0x4010
ret
mov ecx, dword [esp + 0x400c]
xor ecx, esp
xor eax, eax
call fcn.0044efac
add esp, 0x4010
ret