joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476c10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4cc], ecx
cmp dword [ebp + 8], 0
je 0x476c35
cmp dword [ebp + 0xc], 0
jne 0x476c3c
xor eax, eax
jmp 0x476d59
lea eax, [ebp - 0x400]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x476d49
mov dword [ebp - 8], 0
jmp 0x476c68
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 0x476d49
push 0x48cea4
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx*2 - 0x400]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x476caf
push 0x48ceac
mov eax, dword [ebp - 8]
lea ecx, [ebp + eax*2 - 0x400]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x476cb1
jmp 0x476c5f
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 0x476cf0
xor eax, eax
jmp 0x476d59
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.00454108
add esp, 0xc
test eax, eax
jne 0x476d44
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 0x476d59
jmp 0x476c5f
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.00451a25
mov esp, ebp
pop ebp
ret 8
Function at 0x476df0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4a5294]
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 0x476e30
cmp dword [ebp + 8], 4
je 0x476e30
cmp dword [ebp + 8], 8
jne 0x476e35
jmp 0x476f0b
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 0x476e54
jmp 0x476f0b
mov word [ebp - 0x218], 0
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00451930
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 0x476eec
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00451930
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 0x476ecd
jmp 0x476f0b
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp - 0x448]
call fcn.00476c10
test eax, eax
jne 0x476eec
jmp 0x476f0b
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401bff
mov dword [ebp - 0xc], 1
xor edx, edx
jne 0x476e1e
cmp dword [ebp - 8], 0
je 0x476f1b
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.00451a25
mov esp, ebp
pop ebp
ret 8

Function at 0x4779a0
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 0x478170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49cd78
push 0x4592b0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
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 0x4781ca
cmp dword [ebp + 0xc], 0
je 0x4781ca
cmp dword [ebp + 0x10], 1
jae 0x4781cf
jmp 0x4782ad
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 0x4781f1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4781f6
jmp 0x4782ad
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.0044ffdc
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x478231
mov dword [ebp - 4], 0xfffffffe
jmp 0x4782ad
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00451930
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 0x47828d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x47828d
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.004567b2
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4782ad
cmp dword [ebp - 0x20], 0
je 0x4782cc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00451709
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 0x478520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.00426ab2
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x478540
xor eax, eax
jmp 0x478551
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x47854c
xor eax, eax
jmp 0x478551
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x479500
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481dad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a5294]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.00401b91
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.0040a818
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4795ea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00426ab2
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004541ac
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4795b8
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.00401bb4
mov eax, dword [ebp - 0x1c]
jmp 0x479603
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.00426ab2
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4795ea
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bb4
mov eax, dword [ebp - 0x20]
jmp 0x479603
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bb4
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 0x479930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x244], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.004022ea
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.00451930
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47998e
jmp 0x4799f7
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x4799b9
jmp 0x4799f7
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
call fcn.0040792d
test eax, eax
jne 0x4799e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov dword [ebp - 0x244], 1
jmp 0x4799f7
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4799b9
cmp dword [ebp - 4], 0xffffffff
je 0x479a07
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 8]
call fcn.00401bb4
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x479a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4a5294]
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
push 0
lea ecx, [ebp - 0x230]
call fcn.00432310
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.00451930
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00401b91
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 0x479b22
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x479b22
push 0x48d738
mov ecx, dword [ebp + 8]
push ecx
call fcn.004022ea
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401bb4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00432d50
mov eax, dword [ebp + 8]
jmp 0x479c0a
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x479b43
jmp 0x479bc9
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.00451a34
add esp, 4
test eax, eax
je 0x479b87
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401bff
lea ecx, [ebp - 0x230]
call fcn.004313d0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x479bc9
lea ecx, [ebp - 0x230]
call fcn.00432d40
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x280]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00401ba2
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401bb4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00432d50
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.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x47a8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48229b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4a5294]
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.00401b84
movzx eax, al
test eax, eax
jne 0x47a931
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00401b84
movzx ecx, al
test ecx, ecx
jne 0x47a931
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00401b84
movzx edx, al
test edx, edx
je 0x47a938
xor eax, eax
jmp 0x47aad4
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.00426ab2
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 0x47a997
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x47aad4
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.00451930
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.00426ab2
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 0x47aad2
cmp dword [ebp - 0x10], 1
jne 0x47aad2
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004022ea
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.00479c30
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.004025aa
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00424b64
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00426ab2
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.004025aa
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00424b64
lea edx, [ebp - 0x234]
push edx
call fcn.00478520
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00401bb4
mov eax, dword [ebp - 0x238]
jmp 0x47aad4
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.00451a25
mov esp, ebp
pop ebp
ret 4
Function at 0x47ad70
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.00401b84
movzx eax, al
test eax, eax
je 0x47ad8f
xor eax, eax
jmp 0x47ade2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00426ab2
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47adae
xor eax, eax
jmp 0x47ade2
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x47adce
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00426ab2
push eax
call fcn.0047ab40
add esp, 4
jmp 0x47ade2
mov eax, dword [ebp - 8]
add eax, 4
call fcn.00426ab2
push eax
call fcn.00479500
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x47b7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481e2e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a5294]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x20]
push eax
call fcn.004022ea
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.004278ee
cmp eax, 2
jne 0x47b81c
mov ecx, dword [ebp - 0x10]
or ecx, 0x100
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
call fcn.00426ab2
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 0x47b849
cmp dword [ebp - 0x14], 0
jne 0x47b84b
jmp 0x47b8a5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x24]
push eax
push 0
push str.InstallDate
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47b88c
cmp dword [ebp - 0x24], 4
je 0x47b88e
jmp 0x47b8a5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov dword [ebp - 0x1c], 1
xor ecx, ecx
jne 0x47b806
cmp dword [ebp - 0x14], 0
je 0x47b8bc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401bb4
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 0x47c1a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482311
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4a5294]
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.00451930
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00401b91
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 0x47c2c3
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 0x47c24b
jmp 0x47c34a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401bff
lea edx, [ebp - 0x22c]
push edx
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.0040793e
mov dword [ebp - 0x280], eax
push 0x48df28
mov eax, dword [ebp - 0x280]
push eax
call fcn.004079e9
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.00401bb4
movzx ecx, byte [ebp - 0x225]
test ecx, ecx
je 0x47c2b3
push 0x48df2c
lea edx, [ebp - 0x14]
push edx
call fcn.00407bf8
push 0x48df30
lea eax, [ebp - 0x14]
push eax
call fcn.00407bf8
jmp 0x47c32b
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00401bff
lea eax, [ebp - 0x234]
push eax
mov ecx, 1
lea eax, [ebp - 0x14]
call fcn.0040793e
mov dword [ebp - 0x284], eax
push 0x48df68
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.004079e9
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.00401bb4
movzx edx, byte [ebp - 0x22d]
test edx, edx
je 0x47c32b
push 0x48df6c
lea eax, [ebp - 0x14]
push eax
call fcn.00407bf8
push 0x48df70
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407bf8
lea eax, [ebp - 0x14]
call fcn.00426ab2
push eax
call fcn.00409821
add esp, 4
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00401ba2
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bb4
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.00451a25
mov esp, ebp
pop ebp
ret
Function at 0x47c710
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 0x47c754
jmp 0x47c78f
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 0x47c784
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
je 0x47c788
jmp 0x47c78f
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x47c79f
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 0x47faf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4a5294]
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 0x47fb51
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x47fb5b
jmp 0x47fc7e
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 0x47fb8a
jmp 0x47fc7e
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 0x47fba9
jmp 0x47fc7e
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 0x47fbd2
jmp 0x47fc7e
lea edx, [ebp - 0xc]
push edx
call fcn.0047fa10
add esp, 4
test eax, eax
jne 0x47fbec
jmp 0x47fc7e
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 0x47fc11
jmp 0x47fc7e
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 0x47fc4e
jmp 0x47fc7e
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0047fa40
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x47fc7e
cmp dword [ebp - 0x24], 0
je 0x47fc7e
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 0x47fc95
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.00451a25
mov esp, ebp
pop ebp
ret