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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x503cd8
push 0x490fd0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x50c464]
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 0x4d265a
cmp dword [ebp + 0xc], 0
je 0x4d265a
cmp dword [ebp + 0x10], 1
jae 0x4d265f
jmp 0x4d273d
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 0x4d2681
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4d2686
jmp 0x4d273d
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.00487ce0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d26c1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d273d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00489500
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 0x4d271d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4d271d
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.0048d313
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d273d
cmp dword [ebp - 0x20], 0
je 0x4d275c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0048ab32
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 0x4d2800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.004011fb
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d2820
xor eax, eax
jmp 0x4d2831
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4d282c
xor eax, eax
jmp 0x4d2831
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d3640
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddfa6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x50c464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.00422470
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.00421c33
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4d372a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.004011fb
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0048e2f3
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d36f8
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.004011fe
mov eax, dword [ebp - 0x1c]
jmp 0x4d3743
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.004011fb
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4d372a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011fe
mov eax, dword [ebp - 0x20]
jmp 0x4d3743
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011fe
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 0x4d3a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddfc9
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x50c464]
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.0042241f
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00489500
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d3aec
jmp 0x4d3b55
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 0x4d3b17
jmp 0x4d3b55
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x14]
call fcn.0040700c
test eax, eax
jne 0x4d3b41
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x244]
mov dword [edx], eax
mov dword [ebp - 0x250], 1
jmp 0x4d3b55
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4d3b17
cmp dword [ebp - 0x10], 0xffffffff
je 0x4d3b65
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.004011fe
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.00491166
mov esp, ebp
pop ebp
ret
Function at 0x4d3ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de004
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x50c464]
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.00413576
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.00489500
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00422470
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 0x4d3c8f
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d3c8f
push 0x4edcac
mov eax, dword [ebp + 8]
call fcn.0042241f
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011fe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00433cd9
mov eax, dword [ebp + 8]
jmp 0x4d3d77
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 0x4d3cb0
jmp 0x4d3d36
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.00488c9a
add esp, 4
test eax, eax
je 0x4d3cf4
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.00413b94
lea eax, [ebp - 0x230]
call fcn.0042cf34
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4d3d36
lea eax, [ebp - 0x230]
call fcn.004011fb
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.00423480
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011fe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00433cd9
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.00491166
mov esp, ebp
pop ebp
ret
Function at 0x4d4a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de5fc
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x50c464]
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.00422f07
movzx eax, al
test eax, eax
jne 0x4d4ac1
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00422f07
movzx ecx, al
test ecx, ecx
jne 0x4d4ac1
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00422f07
movzx edx, al
test edx, edx
je 0x4d4ac8
xor eax, eax
jmp 0x4d4c63
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.004011fb
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 0x4d4b27
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4d4c63
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.00489500
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.004011fb
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 0x4d4c61
cmp dword [ebp - 0x10], 1
jne 0x4d4c61
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
call fcn.0042241f
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004d3da0
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.00413401
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.004011fb
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.00413401
lea ecx, [ebp - 0x234]
push ecx
call fcn.004d2800
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004011fe
mov eax, dword [ebp - 0x238]
jmp 0x4d4c63
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.00491166
mov esp, ebp
pop ebp
ret 4
Function at 0x4d5240
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.00422f07
movzx eax, al
test eax, eax
je 0x4d525f
xor eax, eax
jmp 0x4d52b2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004011fb
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d527e
xor eax, eax
jmp 0x4d52b2
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4d529e
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004011fb
push eax
call fcn.004d5000
add esp, 4
jmp 0x4d52b2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.004011fb
push eax
call fcn.004d3640
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4d5c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de057
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50c464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x20]
call fcn.0042241f
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.0043ee91
cmp eax, 2
jne 0x4d5cea
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.004011fb
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 0x4d5d17
cmp dword [ebp - 0x14], 0
jne 0x4d5d19
jmp 0x4d5d73
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 0x4d5d5a
cmp dword [ebp - 0x24], 4
je 0x4d5d5c
jmp 0x4d5d73
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov dword [ebp - 0x1c], 1
xor eax, eax
jne 0x4d5cd5
cmp dword [ebp - 0x14], 0
je 0x4d5d8a
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.004011fe
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 0x4d6700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deb41
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x50c464]
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.00489500
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00422470
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 0x4d6823
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 0x4d67ab
jmp 0x4d68aa
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00413b94
lea edx, [ebp - 0x22c]
push edx
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.0040703b
mov dword [ebp - 0x274], eax
push 0x4ee8a8
mov eax, dword [ebp - 0x274]
push eax
call fcn.004070c9
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.004011fe
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x4d6813
push 0x4ee8ac
lea edx, [ebp - 0x14]
push edx
call fcn.00401000
push 0x4ee8b0
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
jmp 0x4d688b
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00413b94
lea eax, [ebp - 0x234]
push eax
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.0040703b
mov dword [ebp - 0x278], eax
push 0x4ee8e8
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.004070c9
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.004011fe
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x4d688b
push 0x4ee8ec
lea eax, [ebp - 0x14]
push eax
call fcn.00401000
push 0x4ee8f0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401000
lea eax, [ebp - 0x14]
call fcn.004011fb
push eax
call fcn.0047561c
add esp, 4
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00423480
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004011fe
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.00491166
mov esp, ebp
pop ebp
ret
Function at 0x4d6bd0
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 0x4d6c14
jmp 0x4d6c4f
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 0x4d6c44
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x4d6c48
jmp 0x4d6c4f
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d6c5f
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 0x4d9240
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4deb8a
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x50c464]
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.00489500
add esp, 0xc
push 0x324
push 0
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00489500
add esp, 0xc
lea edx, [ebp - 0x4cc]
push edx
call fcn.004daae0
add esp, 4
test eax, eax
jne 0x4d92c4
mov eax, 1
jmp 0x4d94b1
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.00413b94
mov eax, dword [ebp + 8]
add eax, 8
mov ecx, 0x32
lea edx, [ebp - 0x4f8]
call fcn.004139e2
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.004234ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.004011fe
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
call fcn.00413b94
mov eax, dword [ebp + 8]
add eax, 0xc
mov ecx, 0x32
lea edx, [ebp - 0x4fc]
call fcn.004139e2
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.004234ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4fc]
call fcn.004011fe
lea eax, [ebp - 0x4cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413b94
mov ecx, 0x32
lea edx, [ebp - 0x500]
mov eax, dword [ebp + 8]
call fcn.004139e2
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.004234ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x500]
call fcn.004011fe
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x56c], 0
fild qword [ebp - 0x570]
fdiv qword [0x4fab60]
sub esp, 8
fstp qword [esp]
push str._.2f_GHZ
mov eax, dword [ebp + 8]
add eax, 4
call fcn.00421c33
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 0x4eea00
push 0x4eea14
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 0x4d9493
lea edx, [ebp - 0x4f4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x4d94a0
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.00491166
mov esp, ebp
pop ebp
ret 4
Function at 0x4dab70
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddda6
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x50c464]
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.0042241f
mov dword [ebp - 4], 0
lea eax, [ebp - 0x228]
call fcn.00413954
cmp eax, 3
jl 0x4dac23
mov ecx, 3
lea edx, [ebp - 0x66c]
lea eax, [ebp - 0x228]
call fcn.004139e2
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.004234ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x66c]
call fcn.004011fe
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.004011fb
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x4daccb
mov dword [ebp - 0x670], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011fe
mov eax, dword [ebp - 0x670]
jmp 0x4dad04
mov ecx, dword [ebp - 0x44c]
push ecx
push 0x4edc70
mov eax, dword [ebp + 8]
call fcn.00421c33
add esp, 8
mov dword [ebp - 0x674], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.004011fe
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.00491166
mov esp, ebp
pop ebp
ret
Function at 0x4dbfe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de34a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50c464]
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 0x4ebd1c
push 0x4ebd34
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004dbef0
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.00422f07
movzx ecx, al
test ecx, ecx
je 0x4dc055
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011fe
jmp 0x4dc0c7
lea eax, [ebp - 0x18]
call fcn.004011fb
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dc079
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011fe
jmp 0x4dc0c7
mov dword [ebp - 0x1c], 0
jmp 0x4dc08b
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4dc0b0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.00475c60
add esp, 4
test eax, eax
je 0x4dc0ae
mov dword [ebp - 0x14], 1
jmp 0x4dc0b0
jmp 0x4dc082
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004011fe
xor edx, edx
jne 0x4dc013
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret