joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cfe70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5007b0
push 0x48e840
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x508464]
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 0x4cfeca
cmp dword [ebp + 0xc], 0
je 0x4cfeca
cmp dword [ebp + 0x10], 1
jae 0x4cfecf
jmp 0x4cffad
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 0x4cfef1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4cfef6
jmp 0x4cffad
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.00485550
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4cff31
mov dword [ebp - 4], 0xfffffffe
jmp 0x4cffad
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00486d70
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 0x4cff8d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4cff8d
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.0048ab83
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4cffad
cmp dword [ebp - 0x20], 0
je 0x4cffcc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004883a2
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 0x4d0070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.004152b6
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d0090
xor eax, eax
jmp 0x4d00a1
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4d009c
xor eax, eax
jmp 0x4d00a1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d0eb0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db816
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x508464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.004239c9
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.0042318c
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4d0f9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.004152b6
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0048bb63
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d0f68
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 0x4d0fb3
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.004152b6
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4d0f9a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x20]
jmp 0x4d0fb3
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
Function at 0x4d12e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db839
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
call fcn.00423978
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00486d70
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d135c
jmp 0x4d13c5
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x4d1387
jmp 0x4d13c5
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x14]
call fcn.00406fa4
test eax, eax
jne 0x4d13b1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x244]
mov dword [edx], eax
mov dword [ebp - 0x250], 1
jmp 0x4d13c5
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4d1387
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d13d5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret
Function at 0x4d1410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db874
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.0042b55a
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.004239c9
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d14ff
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d14ff
push 0x4eacac
mov eax, dword [ebp + 8]
call fcn.00423978
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.0043538d
mov eax, dword [ebp + 8]
jmp 0x4d15e7
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4d1520
jmp 0x4d15a6
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x224]
push eax
call fcn.0048650a
add esp, 4
test eax, eax
je 0x4d1564
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.004152b9
lea eax, [ebp - 0x230]
call fcn.0046bab5
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4d15a6
lea eax, [ebp - 0x230]
call fcn.004152b6
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004249e0
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.0043538d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret
Function at 0x4d22c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbe6c
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.0041528e
movzx eax, al
test eax, eax
jne 0x4d2331
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.0041528e
movzx ecx, al
test ecx, ecx
jne 0x4d2331
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.0041528e
movzx edx, al
test edx, edx
je 0x4d2338
xor eax, eax
jmp 0x4d24d3
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.004152b6
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4d2397
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4d24d3
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.004152b6
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4d24d1
cmp dword [ebp - 0x10], 1
jne 0x4d24d1
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
call fcn.00423978
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004d1610
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.004010cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00414b2b
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.004152b6
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.004010cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00414b2b
lea ecx, [ebp - 0x234]
push ecx
call fcn.004d0070
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004011f0
mov eax, dword [ebp - 0x238]
jmp 0x4d24d3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret 4
Function at 0x4d2ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 4
call fcn.0041528e
movzx eax, al
test eax, eax
je 0x4d2acf
xor eax, eax
jmp 0x4d2b22
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004152b6
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d2aee
xor eax, eax
jmp 0x4d2b22
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4d2b0e
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004152b6
push eax
call fcn.004d2870
add esp, 4
jmp 0x4d2b22
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004152b6
push eax
call fcn.004d0eb0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4d34f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db8c7
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x508464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x20]
call fcn.00423978
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.0044063d
cmp eax, 2
jne 0x4d355a
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.004152b6
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 0x4d3587
cmp dword [ebp - 0x14], 0
jne 0x4d3589
jmp 0x4d35e3
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 0x4d35ca
cmp dword [ebp - 0x24], 4
je 0x4d35cc
jmp 0x4d35e3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 1
xor eax, eax
jne 0x4d3545
cmp dword [ebp - 0x14], 0
je 0x4d35fa
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 0x4d3f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc3b1
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.004239c9
mov dword [ebp - 4], 0
push 1
push 0x23
lea ecx, [ebp - 0x224]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d4093
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d401b
jmp 0x4d411a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004152b9
lea edx, [ebp - 0x22c]
push edx
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.00406fd3
mov dword [ebp - 0x274], eax
push 0x4eb8a8
mov eax, dword [ebp - 0x274]
push eax
call fcn.00407061
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.004011f0
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x4d4083
push 0x4eb8ac
lea edx, [ebp - 0x14]
push edx
call fcn.00401000
push 0x4eb8b0
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
jmp 0x4d40fb
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004152b9
lea eax, [ebp - 0x234]
push eax
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.00406fd3
mov dword [ebp - 0x278], eax
push 0x4eb8e8
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00407061
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.004011f0
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x4d40fb
push 0x4eb8ec
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
push 0x4eb8f0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401000
lea eax, [ebp - 0x14]
call fcn.004152b6
push eax
call fcn.0046b2fe
add esp, 4
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004249e0
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret
Function at 0x4d4440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4d4484
jmp 0x4d44bf
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d44b4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x4d44b8
jmp 0x4d44bf
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d44cf
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d6ab0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc3fa
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x550], ecx
mov word [ebp - 0x4cc], 0
push 0x18e
push 0
lea eax, [ebp - 0x4ca]
push eax
call fcn.00486d70
add esp, 0xc
push 0x324
push 0
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00486d70
add esp, 0xc
lea edx, [ebp - 0x4cc]
push edx
call fcn.004d8350
add esp, 4
test eax, eax
jne 0x4d6b34
mov eax, 1
jmp 0x4d6d21
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.004152b9
mov eax, dword [ebp + 8]
add eax, 8
mov ecx, 0x32
lea edx, [ebp - 0x4f8]
call fcn.00415108
mov dword [ebp - 0x554], eax
mov edx, dword [ebp - 0x554]
mov dword [ebp - 0x558], edx
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
add edi, 8
mov eax, dword [ebp - 0x558]
call fcn.00424a4a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.004011f0
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
call fcn.004152b9
mov eax, dword [ebp + 8]
add eax, 0xc
mov ecx, 0x32
lea edx, [ebp - 0x4fc]
call fcn.00415108
mov dword [ebp - 0x55c], eax
mov edx, dword [ebp - 0x55c]
mov dword [ebp - 0x560], edx
mov dword [ebp - 4], 1
mov edi, dword [ebp + 8]
add edi, 0xc
mov eax, dword [ebp - 0x560]
call fcn.00424a4a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4fc]
call fcn.004011f0
lea eax, [ebp - 0x4cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004152b9
mov ecx, 0x32
lea edx, [ebp - 0x500]
mov eax, dword [ebp + 8]
call fcn.00415108
mov dword [ebp - 0x564], eax
mov edx, dword [ebp - 0x564]
mov dword [ebp - 0x568], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x568]
mov edi, dword [ebp + 8]
call fcn.00424a4a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x500]
call fcn.004011f0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x56c], 0
fild qword [ebp - 0x570]
fdiv qword [0x4f7ac8]
sub esp, 8
fstp qword [esp]
push str._.2f_GHZ
mov eax, dword [ebp + 8]
add eax, 4
call fcn.0042318c
add esp, 0xc
mov dword [ebp - 0x4f4], 0
xor ecx, ecx
mov dword [ebp - 0x4f0], ecx
mov dword [ebp - 0x4ec], ecx
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 0x4d4], ecx
push 0x4eba00
push 0x4eba14
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x4d0], eax
cmp dword [ebp - 0x4d0], 0
jne 0x4d6d03
lea edx, [ebp - 0x4f4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x4d6d10
lea eax, [ebp - 0x4f4]
push eax
call dword [ebp - 0x4d0]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4e0]
mov dword [ecx + 0x10], edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret 4
Function at 0x4d83e0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db616
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x508464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x228]
call fcn.00423978
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
call fcn.0041507a
cmp eax, 3
jl 0x4d8493
mov ecx, 3
lea edx, [ebp - 0x66c]
lea eax, [ebp - 0x228]
call fcn.00415108
mov dword [ebp - 0x6a4], eax
mov edx, dword [ebp - 0x6a4]
mov dword [ebp - 0x6a8], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6a8]
lea edi, [ebp - 0x228]
call fcn.00424a4a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x66c]
call fcn.004011f0
mov dword [ebp - 0x668], 0x104
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x444], 0x104
mov eax, dword [ebp - 0x444]
push eax
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x44c]
push ecx
mov edx, dword [ebp - 0x668]
push edx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x228]
call fcn.004152b6
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x4d853b
mov dword [ebp - 0x670], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011f0
mov eax, dword [ebp - 0x670]
jmp 0x4d8574
mov ecx, dword [ebp - 0x44c]
push ecx
push 0x4eac70
mov eax, dword [ebp + 8]
call fcn.0042318c
add esp, 8
mov dword [ebp - 0x674], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011f0
mov eax, dword [ebp - 0x674]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e9d6
mov esp, ebp
pop ebp
ret
Function at 0x4d9850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbbba
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x508464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.QQPCRTP
push 0x4e8d1c
push 0x4e8d34
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004d9760
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.0041528e
movzx ecx, al
test ecx, ecx
je 0x4d98c5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
jmp 0x4d9937
lea eax, [ebp - 0x18]
call fcn.004152b6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d98e9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
jmp 0x4d9937
mov dword [ebp - 0x1c], 0
jmp 0x4d98fb
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4d9920
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.004734cb
add esp, 4
test eax, eax
je 0x4d991e
mov dword [ebp - 0x14], 1
jmp 0x4d9920
jmp 0x4d98f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011f0
xor edx, edx
jne 0x4d9883
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret