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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5759f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5dccb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x475131
push esi
lea ecx, [ebp + 0x10]
call fcn.0040e210
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x4750d9
mov eax, dword [ebp + 8]
add eax, 8
push 0x588e04
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bee0
add esp, 0xc
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0041ba60
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4750d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
lea ecx, [ebp + 0x10]
call fcn.0044d940
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475112
push 0
push 0
push 1
push dword [ebp + 0x1c]
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043afc0
push eax
push dword [ebp + 0x10]
push str.run_exe__s__ret_:__d
call fcn.004790f0
add esp, 0x30
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x475131
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x475150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4751b6
push esi
mov esi, dword [edx + 4]
test esi, esi
je 0x4751b5
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475170
sub eax, ebx
sar eax, 1
je 0x4751b4
mov ebx, dword [edx + 0xc]
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp + 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475190
sub ecx, dword [ebp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push dword [edx + 0x10]
push dword [edx + 8]
push esi
push dword [edx]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x478cb0
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x478d14
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x478d06
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x478d06
push edx
call fcn.0040c790
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x478cff
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x478d13
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.0040da40
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478d7a
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x478d7a
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x478d61
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x478d7a
jg 0x478d72
cmp dword [ebp - 8], 0x40000000
jbe 0x478d7a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4793e0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576070
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x59adf8
mov dword [edi], vtable.CFileManager.0
mov dword [edi + 4], vtable.CFileManager.1.0
call fcn.004790f0
mov eax, dword [edi + 0x50]
add esp, 4
mov dword [edi + 0x68], 1
test eax, eax
je 0x47944e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x50], 0
push dword [edi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x479580
push dword [edi + 0x40]
call fcn.0040f830
mov edx, dword [edi + 0x40]
add esp, 4
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479490
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00412a70
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.0040c790
mov ecx, 1
add esp, 4
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
sub eax, 0x104
mov dword [ebp - 0x2c], esi
or ecx, eax
jge 0x4794e2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.0040b390
mov esi, dword [ebp - 0x2c]
cmp dword [esi - 8], 0x104
jl 0x4795e7
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.005424d0
add esp, 8
test eax, eax
js 0x4795e7
cmp eax, dword [esi - 8]
jg 0x4795e7
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47954a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x479580
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x479576
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4795f1
push edx
push ecx
call fcn.004b0a8e
add esp, 8
lea ecx, [edi + 0x44]
call fcn.00435e70
mov edx, dword [edi + 0x40]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4795a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x28]
mov dword [edi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [edi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4795cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040af40
call fcn.00533703
int3
Function at 0x479c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x1318], ecx
cmp dword [edi - 0xc], 0x104
jg 0x479dd8
push 0x800
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.00516300
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.00516300
push edi
lea eax, [ebp - 0x1304]
push 0x400
push eax
call fcn.00541cac
add esp, 0x24
test esi, esi
je 0x479c9b
cmp word [esi], 0
je 0x479c9b
push esi
lea eax, [ebp - 0x1304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.00516300
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
nop
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.00516300
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.0040f310
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479d66
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00541ddd
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.00541bd7
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x479deb
inc esi
cmp esi, 0xa
jl 0x479cc0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x479df4
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040da40
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
Function at 0x47bf90
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3004
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov edi, ecx
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x804]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x804]
push 0x58cd40
push eax
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x804]
push eax
call ebx
test eax, eax
jne 0x47c01f
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x804]
push eax
push str.Create_directory_:__s
call fcn.004790f0
add esp, 8
push 0x800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x59b4d4
push eax
lea eax, [ebp - 0x1804]
push eax
call esi
push 0x800
lea eax, [ebp - 0x3004]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x3004]
push str.ComputerZTray.exe
push dword [edi + 8]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x1004]
push str.ThemesUIicon_black.ico
push dword [edi + 8]
push eax
call esi
lea eax, [ebp - 0x1004]
push eax
call ebx
test eax, eax
jne 0x47c0cb
push 0x800
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x58bd84
push dword [edi + 8]
push eax
call esi
lea eax, [ebp - 0x1804]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x47c0fb
lea eax, [ebp - 0x1804]
push eax
call ebx
lea eax, [ebp - 0x1804]
push eax
push str.Delete__s
call fcn.004790f0
add esp, 8
push 0
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
lea eax, [ebp - 0x1804]
push eax
push dword [0x5dcaa8]
lea eax, [ebp - 0x3004]
push eax
push 0x58cd40
call fcn.0047d1d0
push 0x800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x2804]
push str.uninst.exe
push dword [edi + 8]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x59b64c
push eax
lea eax, [ebp - 0x2004]
push eax
call esi
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47c1a4
lea eax, [ebp - 0x2004]
push eax
call ebx
lea eax, [ebp - 0x2004]
push eax
push str.Delete__s
call fcn.004790f0
add esp, 8
push 0
lea eax, [ebp - 0x2804]
mov ecx, edi
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
lea eax, [ebp - 0x2804]
push eax
push 0x59b660
call fcn.0047d1d0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
Function at 0x47c950
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5768c6
mov eax, dword fs:[0]
push eax
mov eax, 0x2008
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x1810]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00516300
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1810]
add esp, 0xc
push 0x59b4d4
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x2010]
push str.ComputerZTray.exe
push dword [edi + 8]
push eax
call esi
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push str.ThemesUIicon_black.ico
push dword [edi + 8]
push eax
call esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47ca62
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x58bd84
push dword [edi + 8]
push eax
call esi
call fcn.0040cf00
mov ecx, eax
test ecx, ecx
je 0x47cba2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2014], eax
push str.__fromdeskshortcut
lea ecx, [ebp - 0x2014]
mov dword [ebp - 4], 0
call fcn.0040e400
test al, al
jne 0x47caac
push 0x14
push str.__fromdeskshortcut
lea ecx, [ebp - 0x2014]
call fcn.0040da40
mov edx, dword [str._ShowExaminePage]
mov dword [ebp - 4], 1
test edx, edx
jne 0x47cac1
xor ecx, ecx
jmp 0x47cad5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cac6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2014]
call fcn.0042dd20
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47cb14
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1010]
push eax
push str.Delete__s_n
call fcn.004790f0
add esp, 8
mov esi, dword [ebp - 0x2014]
lea eax, [ebp - 0x810]
push 0
push eax
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x2010]
push eax
push 0x58cd40
call fcn.0047d1d0
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47cb82
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af40
int3
Function at 0x47d830
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576a36
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x47d87e
mov eax, 1
jmp 0x47da0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x47d890
xor eax, eax
jmp 0x47da0a
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00438100
add esp, 8
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.0048ac60
push 0x1a
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.0048ae30
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x47d905
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push 0xf003f
cmovae ecx, dword [ebp - 0x234]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.0048af70
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.0048acd0
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x47d976
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push 0xf003f
cmovae ecx, dword [ebp - 0x234]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.0048af70
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x47d98a
mov esi, 1
jmp 0x47d9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x47d999
xor esi, esi
jmp 0x47d9f2
push 1
lea ecx, [ebp - 0x238]
call fcn.0048ae30
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x47d9e7
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push 0xf003f
cmovae ecx, dword [ebp - 0x234]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x238]
call fcn.0048af70
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [ebp - 0x238]
call fcn.0048ac70
lea ecx, [ebp - 0x234]
call fcn.00410b20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484ef0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004b0ed0
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x484f97
cmp eax, 0x1fff
ja 0x484f97
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x484f97
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x588e04
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x484f97
mov eax, dword [ebp - 0x2008]
movzx eax, word [eax + 0xa]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 8

Function at 0x485390
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516300
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 1
push 9
push eax
mov dword [ebp - 0x22c], 0x208
call fcn.00438100
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x4853e3
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push str.ProgramFilesDir
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x48544f
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485445
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4854f3
push edx
push ecx
call fcn.004b0a8e
add esp, 8
test bl, bl
pop ebx
jne 0x485470
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4854a5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485480
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x4854a5
mov dword [ebp + ecx*2 - 0x20c], 0x5c
push 0x103
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0054a9e2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x228]
add esp, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00484ef0
cmp dword [ebp - 0x228], 7
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4
call fcn.00533703
int3
Function at 0x485500
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5dcb24]
test ecx, ecx
js 0x485534
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4
push 0x118
xorps xmm0, xmm0
mov dword [0x5dcb24], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.00516300
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4855a5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4855fb
push 0x58a240
push 0x588f20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4855fb
lea ecx, [ebp - 0x144]
push ecx
call eax
mov ax, word [ebp - 0x144]
cmp ax, 9
je 0x4855dc
cmp ax, 6
jne 0x4855fb
mov dword [0x5dcb24], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4

Function at 0x485800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 5
jne 0x4858d0
cmp dword [eax + 0xc], 1
jb 0x4858d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516300
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 1
push 8
push eax
mov dword [ebp - 0x228], 0x208
call fcn.00438100
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x48586a
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0x59c4f4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.00410b20
test esi, esi
pop esi
jne 0x4858d0
lea eax, [ebp - 0x20c]
push str.Service_Pack_2
push eax
call fcn.00541642
add esp, 8
test eax, eax
js 0x4858d0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4