joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467d4d
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x467d97
xor eax, eax
jmp 0x467ea3
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], 0
jmp 0x467dc1
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 7
jae 0x467e3c
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx*4 + 0x51c354]
push edx
push 0x104
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00409190
lea ecx, [ebp - 0x104]
push ecx
call dword [0x5429b0]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x467e07
jmp 0x467db2
push 0x80
lea edx, [ebp - 0x104]
push edx
call dword [0x5429a0]
push 4
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x104]
push ecx
call dword [0x542978]
jmp 0x467db2
push str.360.log
push 0x104
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00409190
lea eax, [ebp - 0x104]
push eax
call dword [0x5429b0]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x467e9e
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call dword [0x5429a0]
push 4
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x104]
push eax
call dword [0x542978]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x467ea7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x10]
call fcn.0046693a
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x467ecd
mov eax, dword [ebp - 8]
jmp 0x467f23
push 0x51c66c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x467f20
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call sub.ntdll.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
jbe 0x467f13
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x469ee4
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.0041e600
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x469f3e
xor eax, eax
jmp 0x46a007
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.0041e600
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x469f7d
xor eax, eax
jmp 0x46a007
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x51d6a8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a2c0
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x469fcd
mov eax, 1
jmp 0x46a007
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x51d6bc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a2c0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46a005
mov eax, 1
jmp 0x46a007
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x46a00d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
mov dword [ebp - 0x108], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x46a062
push str.dllcachelsass.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x46a074
push 0x51d6e8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409190
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46a094
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeb00
push 0x4a2bd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x46a0e7
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x46a0ee
xor eax, eax
jmp 0x46a22b
mov dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp + 0xc], 0
sete cl
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x46a143
cmp dword [ebp - 0x2c], 0
je 0x46a148
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x4550
je 0x46a148
jmp 0x46a1fd
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042b565
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0xc], 0
je 0x46a1fd
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042b565
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x134]
push edx
call fcn.00468e10
add esp, 8
test eax, eax
je 0x46a1fd
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x46a1fd
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
add ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x84]
sub ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x84], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x46a216
cmp dword [ebp - 0x1c], 0
je 0x46a228
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042b171
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46c484
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
push 0
push 0
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [0x54299c]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x46c4c2
xor eax, eax
jmp 0x46c68a
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x46c4eb
cmp dword [ebp - 4], 0x1000000
jb 0x46c4ff
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46c68a
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x40
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x542984]
test eax, eax
je 0x46c598
mov ecx, dword [ebp - 0x144]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x46c598
push 0
push 0
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x5429a4]
cmp eax, dword [ebp - 0x108]
jne 0x46c598
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0xf8
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [0x542984]
test eax, eax
je 0x46c598
cmp dword [ebp - 0xfc], 0x4550
jne 0x46c598
mov ecx, dword [ebp - 0xf6]
and ecx, 0xffff
test ecx, ecx
jne 0x46c5ac
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46c68a
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x46c5c9
mov eax, 1
jmp 0x46c68a
mov dword [ebp - 0x14c], 0
jmp 0x46c5e4
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x14c], 2
jae 0x46c688
mov dword [ebp - 0x218], 0
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx*4 + 0x4af1dc]
mov ecx, dword [ebp - 0x218]
movsx edx, byte [eax + ecx]
cmp edx, 0xffffffff
je 0x46c64b
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax*4 + 0x4af1dc]
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
mov cl, byte [ecx + eax]
mov byte [ebp + edx - 0x214], cl
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
jmp 0x46c5fb
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x214], 0
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x51f804
mov eax, dword [ebp + 8]
push eax
call fcn.0042a682
add esp, 0x10
test eax, eax
je 0x46c683
mov eax, 1
jmp 0x46c68a
jmp 0x46c5d5
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x46c690
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14c], ecx
push str.inf_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
jne 0x46c6bc
xor eax, eax
jmp 0x46c7e4
push 0
push 0
push 3
push 0
push 3
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x46c6eb
xor eax, eax
jmp 0x46c7e4
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x46c714
cmp dword [ebp - 4], 0x1000000
jb 0x46c728
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46c7e4
push 0
lea edx, [ebp - 0x100]
push edx
push 0x40
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x542984]
test eax, eax
je 0x46c7c1
mov edx, dword [ebp - 0x144]
and edx, 0xffff
cmp edx, 0x5a4d
jne 0x46c7c1
push 0
push 0
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x5429a4]
cmp eax, dword [ebp - 0x108]
jne 0x46c7c1
push 0
lea edx, [ebp - 0x100]
push edx
push 0xf8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x542984]
test eax, eax
je 0x46c7c1
cmp dword [ebp - 0xfc], 0x4550
jne 0x46c7c1
mov edx, dword [ebp - 0xf6]
and edx, 0xffff
test edx, edx
jne 0x46c7d2
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46c7e4
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x46c7ea
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af1e8
push 0x4a2bd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x46c875
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x46c87a
jmp 0x46c945
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042b565
add esp, 8
mov edx, dword [ebp - 0x28]
add edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
je 0x46c945
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042b565
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.0042a4b6
add esp, 0x14
test eax, eax
je 0x46c937
push 6
push 0x51f814
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x46c937
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x46c935
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], 0
jmp 0x46c945
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
jmp 0x46c898
mov dword [ebp - 4], 0xffffffff
jmp 0x46c95e
cmp dword [ebp - 0x1c], 0
je 0x46c970
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042b171
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46c986
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x46c9c1
push str.dllcache_services.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x46c9d3
push str.services.exe
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409190
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46da2b
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a733c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x114]
call fcn.0041b3f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
push eax
push str.._s_nul.dll_
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a2c0
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0x521964
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a2c0
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x46db18
mov ecx, dword [ebp + 8]
push ecx
call dword [0x542978]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041b948
push 1
mov eax, dword [ebp + 8]
push eax
call dword [0x5429a0]
jmp 0x46db9a
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5429a0]
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041b925
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [0x5429a0]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [0x5429a0]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5429a0]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0041b407
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x46e1fd
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.0041e600
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x46e257
xor eax, eax
jmp 0x46e320
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.0041e600
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x46e296
xor eax, eax
jmp 0x46e320
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push str._sWindows.old_s
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a2c0
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e2e6
mov eax, 1
jmp 0x46e320
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push str._sWindows.old.000_s
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a2c0
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e31e
mov eax, 1
jmp 0x46e320
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x46f004
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10c], 0
je 0x46f021
mov eax, 1
jmp 0x46f0d9
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.fixfinal2.dll
mov edx, dword [ebp - 4]
add edx, 8
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 4]
call fcn.0046f0dd
test eax, eax
jne 0x46f058
xor eax, eax
jmp 0x46f0d9
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x46f085
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [0x542978]
xor eax, eax
jmp 0x46f0d9
push str.ScanXXX
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10c], 0
jne 0x46f0d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [0x542978]
xor eax, eax
jmp 0x46f0d9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x47312f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], ecx
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47315c
xor eax, eax
jmp 0x473234
push 0x2e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a2a0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47317a
xor eax, eax
jmp 0x473234
push 0x531b74
mov edx, dword [ebp - 8]
push edx
call fcn.00402b10
add esp, 8
test eax, eax
jne 0x473232
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 8]
cmp eax, 0xa
jle 0x473232
mov ecx, dword [ebp - 8]
sub ecx, 6
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x3830
jne 0x473232
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x2e
je 0x4731ea
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x4731db
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x39
jle 0x4731df
xor eax, eax
jmp 0x473234
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4731ba
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x473232
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x114]
push ecx
call fcn.004153d0
add esp, 0xc
test eax, eax
jne 0x473232
mov eax, 1
jmp 0x473234
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x47408b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0578
push 0x4a2bd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0042ae0a
add esp, 4
test eax, eax
jne 0x4740de
jmp 0x47422c
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b0ac
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4740fe
jmp 0x47422c
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x47411d
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x47413b
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x474163
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x4550
jne 0x474163
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x47416f
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 6]
cmp eax, 6
jl 0x474190
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x4741b2
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov dword [ebp - 0x2c], 0
jmp 0x4741c4
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jge 0x474213
push 4
push str..bad
mov edx, dword [ebp - 0x28]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4741f9
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
mov eax, dword [ebp - 0x28]
add eax, 0x28
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x474211
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
jmp 0x4741bb
mov dword [ebp - 4], 0xffffffff
jmp 0x47422c
cmp dword [ebp - 0x24], 0
je 0x47423e
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0042b171
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x47425f
mov edx, dword [ebp + 8]
push edx
call fcn.0044b990
mov ecx, eax
call fcn.0044bdb4
test eax, eax
je 0x47425f
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4