joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b17
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push esi
mov esi, ecx
push edi
and dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x695368
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x417b55
xor al, al
jmp 0x417b6b
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push edi
call eax
test eax, eax
je 0x417b51
cmp dword [ebp - 4], 0
setne al
and dword [esi + 0x24], 0
push 0x118
mov byte [esi + 0x20], al
lea eax, [ebp - 0x14c]
push 0
push eax
mov dword [ebp - 0x150], 0x11c
call fcn.005e1780
add esp, 0xc
lea edi, [ebp - 0x34]
xor eax, eax
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
push 9
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0xc], edx
push eax
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x144]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push 6
pop edi
cmp edx, 5
jne 0x417beb
test ecx, ecx
jle 0x417c0d
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x417c0d
cmp edx, edi
jne 0x417c09
sub ecx, 0
je 0x417c01
sub ecx, 1
jne 0x417c0d
mov dword [esi], 4
jmp 0x417c0d
mov dword [esi], 3
jmp 0x417c0d
jle 0x417c0d
mov dword [esi], edi
cmp dword [esi], 0
movzx eax, word [ebp - 0x3c]
mov dword [esi + 0x10], eax
movzx eax, word [ebp - 0x3a]
mov dword [esi + 0x14], eax
je 0x417c24
cmp dword [esi], edi
jne 0x417c56
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00417d5b
test eax, eax
jne 0x417c56
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
call fcn.00417dfe
mov dword [esi], eax
push str.GetNativeSystemInfo
push 0x695368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x417c7d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x417c83
lea ecx, [ebp - 0x34]
push ecx
call eax
movzx eax, word [ebp - 0x34]
test eax, eax
je 0x417cb4
cmp eax, edi
je 0x417cab
cmp eax, 9
je 0x417ca2
cmp eax, 0xc
jne 0x417cb8
mov dword [esi + 0x18], 4
jmp 0x417cb8
mov dword [esi + 0x18], 1
jmp 0x417cb8
mov dword [esi + 0x18], 2
jmp 0x417cb8
and dword [esi + 0x18], 0
mov eax, dword [ebp - 0x20]
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.00417ef2
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00417f8a
test eax, eax
jne 0x417cda
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417f8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x417fb0
push 0x57
pop esi
jmp 0x41802c
cmp dword [ecx + 0x18], ebx
lea eax, [ebp - 4]
push eax
mov edx, 0x20019
mov eax, 0x20119
cmove eax, edx
push eax
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x41801e
cmp dword [ebp - 4], ebx
jne 0x417fe5
push 6
jmp 0x417fad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x6961d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41801e
cmp dword [ebp - 8], 4
jne 0x41801b
cmp dword [ebp - 0xc], 4
jne 0x41801b
mov eax, dword [ebp - 0x10]
mov esi, ebx
mov dword [edi], eax
jmp 0x41801e
push 0xd
pop esi
cmp dword [ebp - 4], ebx
je 0x41802c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41898c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4189b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418a75
push esi
push 0x228
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ebx
push ebx
push eax
mov esi, 0x490
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x234], 0x22c
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418a2f
lea eax, [ebp - 0x210]
push str.explorer.exe
push eax
call fcn.005f1988
pop ecx
pop ecx
test eax, eax
je 0x418a22
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4189f7
jmp 0x418a33
mov eax, dword [ebp - 0x22c]
xor esi, esi
mov dword [ebp - 4], eax
jmp 0x418a33
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x418a54
call ebx
jmp 0x418a74
push dword [ebp - 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x418a6b
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418b11
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, ecx
test esi, esi
jne 0x418b26
or eax, 0xffffffff
jmp 0x418b7f
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418b69
cmp dword [ebp - 0x110], 5
jne 0x418b69
cmp dword [ebp - 0x10c], 0
je 0x418b74
mov ecx, esi
call fcn.00418a7b
test eax, eax
je 0x418b7d
mov ecx, esi
call fcn.0041898c
jmp 0x418b7f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418b84
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov word [ebp - 0x10], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov esi, ecx
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x418c3a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push esi
call edi
test eax, eax
jne 0x418be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x418c39
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x418c2e
mov edi, ebx
cmp dword [esi], ebx
jbe 0x418c2e
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x418c2c
mov eax, dword [ebp - 0xc]
inc edi
add eax, 8
mov dword [ebp - 0xc], eax
cmp edi, dword [esi]
jb 0x418c0d
jmp 0x418c2e
mov bl, 1
test esi, esi
je 0x418c39
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
cmp dword [ebp - 4], 0
je 0x418c49
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418c51
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 1
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x418cc3
push 0x110
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418cbd
cmp dword [ebp - 0x118], 6
jne 0x418cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418cf9
mov dword [edi], ebx
xor eax, eax
jmp 0x418cf9
mov ecx, dword [ebp - 8]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 4], eax
jbe 0x418cef
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x418ce5
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x418cd6
jmp 0x418cef
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418d8a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
push 0x58
xor edi, edi
lea eax, [ebp - 0x64]
push edi
push eax
mov esi, ecx
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
push dword [ebp + 0x10]
mov dword [ebp - 0x5c], 0x98badcfe
push dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x10325476
push eax
call fcn.00418e55
push 8
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004131cf
mov edx, dword [ebp - 0x54]
push 0x38
pop ecx
push 0x78
shr edx, 3
pop eax
and edx, 0x3f
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovb eax, ecx
push eax
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.00418e55
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00418e55
push 0x10
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call fcn.004131cf
push 0x10
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.005e1780
push 8
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.005e1780
push 0x40
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.005e1780
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419178
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x60d712
call fcn.0060bd28
mov eax, 0x1024
call fcn.0060b390
push esi
push edi
push ecx
mov esi, ecx
xor edi, edi
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
call fcn.00418f2c
mov eax, 0x1000
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1030]
push edi
push eax
mov dword [ebp - 0x30], edi
call fcn.005e1780
sub dword [ebp - 0x2c], 2
lea eax, [ebp - 0x1c]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x10]
or eax, 0x2001f
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41921d
cmp dword [ebp - 0x1c], eax
setne al
test eax, eax
je 0x41921d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push str.idex
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
add eax, 1
je 0x41921d
lea eax, [ebp - 0x1030]
push eax
jmp 0x419222
push 0x693da4
mov ecx, esi
call fcn.00406173
cmp dword [ebp - 0x1c], 0
je 0x419238
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4193df
Capabilities:
Get hostname

Disassembly:
mov eax, 0x60d735
call fcn.0060bd28
sub esp, 0x130
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x13c]
mov edi, 0x104
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.005e1780
add esp, 0xc
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 7
xor eax, eax
mov byte [ebp - 0x38], bl
pop ecx
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x13c]
push eax
call fcn.005e4660
push eax
lea edx, [ebp - 0x13c]
lea ecx, [ebp - 0x38]
call fcn.00418ef3
pop ecx
pop ecx
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
movzx eax, byte [ebp + ebx - 0x38]
push eax
push str._02x
push esi
call fcn.004090e5
add esp, 0xc
inc ebx
cmp ebx, 0x10
jl 0x41946d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41949a
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, 0x60d758
call fcn.0060bd28
sub esp, 0x218
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x224]
push 0x208
mov esi, ecx
mov dword [ebp - 0x1c], esi
push edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x10], edi
call fcn.005e1780
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push edi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call fcn.00404f47
push eax
mov ecx, esi
call fcn.004065d8
mov dword [ebp - 4], edi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 1
push str._010lu
push esi
call fcn.00406cc8
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4197fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.hCZHGrLSqVZLWvNN
mov edi, edx
mov ebx, ecx
call fcn.005e4660
xor esi, esi
mov edx, eax
pop ecx
test edi, edi
je 0x419837
mov ecx, dword [ebp + 8]
sub ebx, ecx
mov al, byte [ebx + ecx]
xor al, byte [esi + str.hCZHGrLSqVZLWvNN]
inc esi
cmp esi, edx
mov byte [ecx], al
sbb eax, eax
and esi, eax
inc ecx
sub edi, 1
jne 0x41981f
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
Function at 0x41b522
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x60d9e4
call fcn.0060bd28
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0x10
mov dword [esi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], al
call fcn.0041ce9a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42b1ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, 0x80004005
cmp dword [eax + 0xc], ecx
je 0x42b1da
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x42b21a
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0042b686
test eax, eax
je 0x42b21a
xor esi, esi
jmp 0x42b21a
push edi
mov edi, dword [eax + 0x10]
cmp edi, 0xffffffff
je 0x42b219
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
push ecx
jmp 0x42b203
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
sub ebx, dword [ebp + 8]
je 0x42b216
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42b1f3
jmp 0x42b218
xor esi, esi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x42b9c2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x42ba0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.CreateFileByMem_CreateFile_error:_d__path:_ws
jmp 0x42baf7
xor ecx, ecx
push ecx
push dword [esi + 4]
push ecx
push 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
jne 0x42ba46
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x6c8880
call fcn.0048de60
add esp, 0x10
jmp 0x42babe
push dword [esi + 4]
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x42ba71
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
jmp 0x42ba37
mov ecx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x42bab1
mov ebx, dword [esp + 0x14]
mov edi, dword [esi + 8]
mov eax, dword [edi + 4]
sub eax, dword [edi]
push eax
push dword [edi]
push ecx
call fcn.005e0280
mov eax, dword [edi + 4]
add esp, 0xc
sub eax, dword [edi]
mov ecx, dword [esp + 0xc]
mov esi, dword [esi]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp esi, dword [ebx + 8]
jne 0x42ba84
mov ebx, dword [ebp + 8]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edi, edi
inc edi
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42bacf
push eax
call esi
push dword [esp + 0x10]
call esi
test edi, edi
je 0x42bb04
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0042bb0f
mov edi, eax
test edi, edi
jne 0x42bb04
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
push str.ChecksumFileByMem_return_d__path:_ws
push 0x6c8880
call fcn.0048de60
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bb0f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x42bb60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push str.ChecksumFileByMem_CreateFile_error:_d__path:_ws
push 0x6c8880
call fcn.0048de60
add esp, 0x10
jmp 0x42bc28
mov eax, dword [ebp - 4]
push edi
push dword [eax + 4]
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x42bb99
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x6c8880
call fcn.0048de60
add esp, 0x10
jmp 0x42bc13
mov esi, dword [ebp - 4]
push dword [esi + 4]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x42bbc4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
call esi
push eax
push str.ChecksumFileByMem_MapViewOfFile_error:_d__path:_ws
jmp 0x42bb8a
mov edx, eax
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x42bc07
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push eax
push dword [ecx]
push edx
call fcn.005e18dc
add esp, 0xc
test eax, eax
jne 0x42bc33
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov esi, dword [esi]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], edx
cmp esi, dword [eax + 8]
jne 0x42bbd2
xor edi, edi
inc edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42bc23
push eax
call esi
push dword [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push str.ChecksumFileByMem_memcmp_return_not_same__path:_ws
push 0x6c8880
call fcn.0048de60
add esp, 0xc
jmp 0x42bc0a
Function at 0x42bc76
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x60ca45
call fcn.0060bd28
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
push edi
call fcn.00406173
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42bcec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42bcec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42bcec
lea ecx, [ebp - 0x10]
call fcn.0040b418
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x42bcef
mov ecx, eax
call fcn.0042bc76
test eax, eax
je 0x42bcef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42bcec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42bcef
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x42bdb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword fs:[0x2c]
and dword [ebp - 8], 0
push esi
mov esi, ecx
mov edx, dword [eax]
mov eax, dword [0x6c8bd8]
push edi
mov dword [ebp - 4], esi
mov edi, 0x6c8bdc
cmp eax, dword [edx + 4]
jle 0x42be1b
push ebx
mov ebx, 0x6c8bd8
push ebx
call fcn.00499a91
cmp dword [0x6c8bd8], 0xffffffff
pop ecx
jne 0x42be1a
call fcn.00404f47
push eax
mov ecx, edi
call fcn.004065d8
push 0x61307f
call fcn.00499de8
push ebx
call fcn.00499a52
pop ecx
pop ecx
pop ebx
mov eax, dword [0x6c8bdc]
cmp dword [eax - 0xc], 0
jne 0x42be62
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42be5d
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.004060f8
mov ecx, edi
call fcn.0042bc48
push str.drivers_
mov ecx, edi
call fcn.004062d3
mov eax, dword [0x6c8bdc]
add eax, 0xfffffff0
push eax
call fcn.004067cf
add eax, 0x10
pop ecx
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret