joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9280
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004857c0
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4c92d6
jmp 0x4c9383
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4c92fe
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jae 0x4c9383
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.004857c0
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x50906c]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004c3061
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c937e
mov byte [ebp - 1], 1
jmp 0x4c9383
jmp 0x4c92ef
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret

Function at 0x4c93a0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xd], 0
push 0x288
call fcn.00484c93
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c93c7
xor al, al
jmp 0x4c94b1
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x288
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x4c942a
mov edx, dword [ebp - 0x14]
push edx
call fcn.00485474
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00484c93
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c941a
xor al, al
jmp 0x4c94b1
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4c948e
cmp dword [ebp - 0x14], 0
je 0x4c948e
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x190], 3
ja 0x4c9452
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4c9436
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x194]
cmp edx, 0x52
jne 0x4c9484
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0x54
jne 0x4c9484
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x196]
test eax, eax
jne 0x4c9484
mov byte [ebp - 0xd], 1
jmp 0x4c948e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4c9436
cmp dword [ebp - 8], 0
je 0x4c94ae
mov eax, dword [ebp - 8]
push eax
call fcn.00485474
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4c94c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9500
mov byte [ebp - 9], 0
jmp 0x4c957d
push 0x80
call fcn.00484c93
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c9549
mov byte [ebp - 9], 0
jmp 0x4c9561
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0047632c
add esp, 8
test eax, eax
je 0x4c9561
mov byte [ebp - 9], 1
cmp dword [ebp - 0x18], 0
je 0x4c9573
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00485474
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4c9660
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004857c0
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4c96b6
jmp 0x4c9763
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4c96de
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 5
jae 0x4c9763
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.004857c0
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.00487869
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x509044]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004c3061
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c975e
mov byte [ebp - 1], 1
jmp 0x4c9763
jmp 0x4c96cf
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4c9780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x23d], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.004857c0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x4c97ea
jmp 0x4c9839
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4c9839
lea eax, [ebp - 0x214]
push eax
push str.vmusrvc.exe
call fcn.00483df2
add esp, 8
test eax, eax
jne 0x4c9822
mov byte [ebp - 0x23d], 1
jmp 0x4c9839
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4c9801
cmp dword [ebp - 0x23c], 0
je 0x4c9859
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x23c], 0
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4ca510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6e94
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x503454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ca552
xor eax, eax
jmp 0x4ca62b
push 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.00483fa1
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4ca570
xor eax, eax
jmp 0x4ca62b
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4ca59c
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00485474
add esp, 4
xor eax, eax
jmp 0x4ca62b
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x4e5dec
mov ecx, dword [ebp - 0x24]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ca61d
cmp dword [ebp - 0x20], 0
je 0x4ca61d
push 0x10
call fcn.0045c795
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x4ca602
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004ca4b0
mov dword [ebp - 0x30], eax
jmp 0x4ca609
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x4ca62b
mov edx, dword [ebp - 0x24]
push edx
call fcn.00485474
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ca640
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x25c]
mov dx, word [ecx + 4]
mov word [ebp + eax*2 - 0x18], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x25c]
mov cx, word [eax + 4]
mov word [ebp + edx*2 - 0x18], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x18], 0x4e4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov word [ebp + ecx*2 - 0x18], 0x4e4
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 8
jae 0x4ca7cf
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 0x1c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
push 0x4e5ff8
push 0x104
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.00485bfc
add esp, 0x1c
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4ca7ca
cmp dword [ebp - 0x20], 0
je 0x4ca7ca
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
call fcn.0042c8b0
mov al, 1
jmp 0x4ca7d1
jmp 0x4ca728
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8

Function at 0x4cab00
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4cb240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4cc], ecx
cmp dword [ebp + 8], 0
je 0x4cb265
cmp dword [ebp + 0xc], 0
jne 0x4cb26c
xor eax, eax
jmp 0x4cb389
lea eax, [ebp - 0x400]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x4cb379
mov dword [ebp - 8], 0
jmp 0x4cb298
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [ebp + edx*2 - 0x400]
test eax, eax
je 0x4cb379
push 0x4e6864
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx*2 - 0x400]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4cb2df
push 0x4e686c
mov eax, dword [ebp - 8]
lea ecx, [ebp + eax*2 - 0x400]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4cb2e1
jmp 0x4cb28f
mov edx, dword [ebp - 8]
mov ax, word [ebp + edx*2 - 0x400]
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 8]
mov dx, word [ebp + ecx*2 - 0x3fe]
mov word [ebp - 0x12], dx
mov word [ebp - 0x10], 0
push 0x64
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
jne 0x4cb320
xor eax, eax
jmp 0x4cb389
lea edx, [ebp - 0x4c8]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x4c8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00485922
add esp, 0xc
test eax, eax
jne 0x4cb374
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov eax, 1
jmp 0x4cb389
jmp 0x4cb28f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb420
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4cb460
cmp dword [ebp + 8], 4
je 0x4cb460
cmp dword [ebp + 8], 8
jne 0x4cb465
jmp 0x4cb53b
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4cb484
jmp 0x4cb53b
mov word [ebp - 0x218], 0
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x103
lea edx, [ebp - 0x218]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4cb51c
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004857c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x4cb4fd
jmp 0x4cb53b
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp - 0x448]
call fcn.004cb240
test eax, eax
jne 0x4cb51c
jmp 0x4cb53b
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414f90
mov dword [ebp - 0xc], 1
xor edx, edx
jne 0x4cb44e
cmp dword [ebp - 8], 0
je 0x4cb54b
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret 8
Function at 0x4cb640
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x503454]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
je 0x4cb6a1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4cb6ab
jmp 0x4cb7ce
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4cb6da
jmp 0x4cb7ce
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
ja 0x4cb6f9
jmp 0x4cb7ce
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cb722
jmp 0x4cb7ce
lea edx, [ebp - 0xc]
push edx
call fcn.004cb560
add esp, 4
test eax, eax
jne 0x4cb73c
jmp 0x4cb7ce
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4cb761
jmp 0x4cb7ce
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cb79e
jmp 0x4cb7ce
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004cb590
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4cb7ce
cmp dword [ebp - 0x24], 0
je 0x4cb7ce
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x4cb7e5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bcc6
mov esp, ebp
pop ebp
ret
Function at 0x4cc180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7381
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x503454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x20]
call fcn.00423484
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x20019
call fcn.004406fe
cmp eax, 2
jne 0x4cc1ea
mov eax, dword [ebp - 0x10]
or eax, 0x100
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x20]
call fcn.00423e27
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cc217
cmp dword [ebp - 0x14], 0
jne 0x4cc219
jmp 0x4cc273
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
push str.InstallDate
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4cc25a
cmp dword [ebp - 0x24], 4
je 0x4cc25c
jmp 0x4cc273
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 1
xor eax, eax
jne 0x4cc1d5
cmp dword [ebp - 0x14], 0
je 0x4cc28a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ce530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fbf88
push 0x48bb30
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x503454]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4ce58a
cmp dword [ebp + 0xc], 0
je 0x4ce58a
cmp dword [ebp + 0x10], 1
jae 0x4ce58f
jmp 0x4ce66d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4ce5b1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4ce5b6
jmp 0x4ce66d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004827bc
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4ce5f1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4ce66d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004857c0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4ce64d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4ce64d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00487869
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4ce66d
cmp dword [ebp - 0x20], 0
je 0x4ce68c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00483868
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ce730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.00423e27
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4ce750
xor eax, eax
jmp 0x4ce761
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4ce75c
xor eax, eax
jmp 0x4ce761
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4cf570
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d76a4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x503454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.004234d5
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
mov eax, dword [ebp + 8]
push eax
push str._s_del__x
lea eax, [ebp - 0x14]
call fcn.00422cb5
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4cf65a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00423e27
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00486e2b
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4cf628
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x1c]
jmp 0x4cf673
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.00423e27
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4cf65a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x20]
jmp 0x4cf673
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret