joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422760
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b30
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4227ad
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4227e2
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0x19000
jbe 0x42280f
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
test edi, edi
jne 0x422847
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
call ebx
test esi, esi
jne 0x42287a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x38], edi
xor ecx, ecx
mov cx, word [edi + 0x14]
lea eax, [ecx + edi + 0x18]
mov dword [ebp - 0x34], eax
cmp dword [eax + 0x24], 0xe0000060
je 0x4228fb
push 8
push 0x450648
push eax
call dword [sym.imp.ntdll.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4228fb
mov edi, dword [edi + 0x80]
mov dword [ebp - 0x40], edi
push edi
push esi
call fcn.00422970
add esp, 8
mov dword [ebp - 0x44], eax
lea edi, [eax + esi]
mov dword [ebp - 0x30], edi
mov ebx, dword [sym.imp.ntdll.dll__stricmp]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x422929
push eax
push esi
call fcn.00422970
mov dword [ebp - 0x44], eax
push str.wininet.dll
add eax, esi
push eax
call ebx
add esp, 0x10
test eax, eax
jne 0x422921
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edi, 0x14
mov dword [ebp - 0x30], edi
jmp 0x4228d9
mov dword [ebp - 4], 0xffffffff
jmp 0x422945
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x422970
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b40
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ebp - 0x24], edx
xor eax, eax
mov ax, word [edx + 0x14]
lea edi, [eax + edx + 0x18]
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 0xc]
cmp esi, dword [edi + 0xc]
jae 0x4229d8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jae 0x422a39
lea ebx, [ecx + 1]
cmp ebx, eax
jne 0x4229f1
mov eax, dword [edx + 0x50]
jmp 0x4229f8
lea eax, [ecx + ecx*4]
mov eax, dword [edi + eax*8 + 0x34]
mov dword [ebp - 0x2c], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + ecx*8]
mov ecx, dword [eax + 0xc]
cmp esi, ecx
jb 0x422a2c
cmp esi, dword [ebp - 0x2c]
jae 0x422a2c
mov eax, dword [eax + 0x14]
sub eax, ecx
add eax, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
jmp 0x4229d8
or eax, 0xffffffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422ea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x558
lea eax, [esp + 8]
push esi
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x423084
mov ecx, 0x104
lea eax, [esp + 0xc]
cmp byte [eax], 0
je 0x422ed4
inc eax
dec ecx
jne 0x422ec9
jmp 0x422f18
test ecx, ecx
je 0x422f18
lea edx, [esp + 8]
test edx, edx
je 0x422ee9
mov eax, 0x104
sub eax, ecx
jmp 0x422eed
mov eax, dword [esp + 8]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0xc]
je 0x422f18
mov esi, 0x4506c0
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x422f10
mov byte [eax], cl
inc eax
dec edx
jne 0x422f01
jmp 0x422f14
test edx, edx
jne 0x422f15
dec eax
mov byte [eax], 0
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x423084
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x214]
cmp eax, 0xffffffff
je 0x423084
test al, 0x10
jne 0x423084
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 4]
push edx
push 0x431fcc
push 1
push 0
push 0x431fdc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x42307e
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x431fec
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x422faf
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
add esp, 0x558
ret 8
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x358]
push edx
push eax
call dword [sym.imp.ntdll.dll_mbstowcs]
mov eax, dword [esp + 0x14]
add esp, 0xc
lea edx, [esp + 0x354]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x42306a
mov eax, dword [esp + 4]
push 2
push 0
lea edx, [esp + 0x118]
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x42306a
mov ecx, dword [esp + 0x564]
cmp ecx, 0x7fffffff
ja 0x423041
mov eax, dword [esp + 0x560]
mov esi, ecx
test ecx, ecx
je 0x423041
lea edx, [esp + 0x110]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x423039
mov byte [eax], cl
inc eax
dec esi
jne 0x42302a
jmp 0x42303d
test esi, esi
jne 0x42303e
dec eax
mov byte [eax], 0
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop esi
add esp, 0x558
ret 8
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
add esp, 0x558
ret 8
Function at 0x4230b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4230e7
pop edi
add esp, 0x104
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push esi
inc edi
mov ebx, 0x450480
mov ecx, dword [ebx]
mov esi, 0x104
mov eax, edi
mov dl, byte [ecx]
test dl, dl
je 0x42310e
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x4230ff
jmp 0x423112
test esi, esi
jne 0x423113
dec eax
lea edx, [esp + 0x10]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42314c
lea eax, [esp + 0x10]
push 0x80
push eax
call ebp
push 4
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
add ebx, 4
cmp ebx, str.LibDrv.dat
jb 0x4230f6
mov edx, str.360.log
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x423174
mov byte [eax], cl
inc eax
dec esi
jne 0x423165
jmp 0x423178
test esi, esi
jne 0x423179
dec eax
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4231b2
lea ecx, [esp + 0x10]
push 0x80
push ecx
call ebp
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x104
ret

Function at 0x4231d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
xor ebp, ebp
call fcn.00421f40
mov esi, eax
test esi, esi
jne 0x4231e4
pop esi
pop ebp
ret 4
mov eax, dword [esp + 0xc]
push ebx
push 0x437bac
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42322d
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
pop edi
jbe 0x423223
mov ebp, 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebx
mov eax, ebp
pop esi
pop ebp
ret 4
Function at 0x4246c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov eax, dword [esp + 0x110]
test eax, eax
je 0x4246ed
lea ecx, [esp]
push str.dllcachelsass.exe
push ecx
jmp 0x4246f7
lea edx, [esp]
push str.lsass.exe
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x10c]
push esi
cmp ecx, 0x7fffffff
ja 0x424748
mov eax, dword [esp + 0x10c]
mov esi, ecx
test ecx, ecx
je 0x424748
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x424740
mov byte [eax], cl
inc eax
dec esi
jne 0x424720
dec eax
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x104
ret 0xc
test esi, esi
jne 0x424745
dec eax
mov byte [eax], 0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc

Function at 0x424760
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c20
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp + 0xc], eax
sete cl
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00411fe0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x2c], edi
cmp word [esi], 0x5a4d
jne 0x42484b
cmp dword [edi], 0x4550
jne 0x42484b
mov eax, dword [edi + 0x80]
push eax
push esi
call fcn.004123d0
add esp, 8
add eax, esi
mov dword [ebp - 0x24], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42484b
push ecx
push esi
call fcn.004123d0
add esp, 8
mov ebx, eax
add ebx, esi
mov dword [ebp - 0x30], ebx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push ebx
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea ecx, [ebp - 0x134]
push ecx
call fcn.00423b50
add esp, 8
test eax, eax
je 0x42484b
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42484b
add dword [edi + 0x80], 0x14
add dword [edi + 0x84], 0xffffffec
mov dword [ebp - 4], 0xffffffff
jmp 0x424867
test esi, esi
je 0x424874
push esi
call fcn.00412080
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424c50
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x460674]
test al, al
jne 0x424ca0
push esi
push edi
push 0x104
push 0x460674
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, str._sens.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x460674
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x460674
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
mov eax, 0x460674
ret
Function at 0x425240
Capabilities:
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x13c
push ebx
mov ebx, dword [esp + 0x144]
push ebp
push esi
push edi
push 0x2e
push ebx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4253a4
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x437a08
push esi
call edi
add esp, 8
test eax, eax
je 0x42529e
push str..scr
push esi
call edi
add esp, 8
test eax, eax
je 0x42529e
push str..com
push esi
call edi
add esp, 8
test eax, eax
jne 0x4253a4
mov eax, dword [esp + 0x154]
push 0
neg eax
sbb eax, eax
push 0
and eax, 0x40000000
push 3
push 0
or eax, 0x80000000
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4253a4
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
call ebx
test eax, eax
je 0x42539d
cmp word [esp + 0x14], 0x5a4d
jne 0x42539d
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push eax
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0xf8
push edx
push esi
call ebx
test eax, eax
je 0x42539d
cmp dword [esp + 0x54], 0x4550
jne 0x42539d
mov eax, dword [esp + 0x5a]
test ax, ax
je 0x42539d
and eax, 0xffff
lea eax, [eax + eax*4]
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x42539d
mov eax, dword [esp + 0x5a]
mov edx, dword [esp + 0x68]
and eax, 0xffff
and edx, 0xffff
push 0
push 0
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x58]
shl ecx, 3
mov dword [esp + 0x18], ecx
lea ecx, [edx + eax + 0x18]
push ecx
push esi
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push edi
push esi
call ebx
test eax, eax
jne 0x4253b3
push edi
call fcn.0042d5f4
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13c
ret 8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x62]
push eax
push ecx
push edi
push esi
xor ebx, ebx
call fcn.00412570
cmp eax, dword [esp + 0x7c]
je 0x425417
mov ecx, dword [esp + 0x154]
mov ebx, 1
test ecx, ecx
je 0x425417
mov edx, dword [esp + 0x50]
push 0
push 0
push edx
push esi
mov dword [esp + 0x8c], eax
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x5c]
push 0xf8
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call fcn.0042d5f4
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x13c
ret 8
Function at 0x426440
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x426591
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x42658a
cmp eax, 0x1000000
jae 0x42658a
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x40
push edx
push esi
call edi
test eax, eax
je 0x42658a
cmp word [esp + 0x14], 0x5a4d
jne 0x42658a
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, dword [esp + 0x50]
jne 0x42658a
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x124]
push 0xf8
push edx
push esi
call edi
test eax, eax
je 0x42658a
cmp dword [esp + 0x11c], 0x4550
jne 0x42658a
cmp word [esp + 0x122], 0
je 0x42658a
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x21c]
test eax, eax
jne 0x426538
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret 8
mov esi, 0x431cb4
mov edx, dword [esi]
xor eax, eax
mov cl, byte [edx]
cmp cl, 0xff
je 0x426556
mov byte [esp + eax + 0x54], cl
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, 0xff
jne 0x426548
mov byte [esp + eax + 0x54], 0
push eax
lea eax, [esp + 0x58]
push eax
push str..rdata
push ebp
call fcn.00411950
add esp, 0x10
test eax, eax
jne 0x426527
add esi, 4
cmp esi, 0x431cbc
jb 0x42653d
pop edi
pop esi
pop ebp
add esp, 0x208
ret 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret 8

Function at 0x4265a0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
push edi
push str.inf_
push esi
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
je 0x426688
push 0
push 0
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x426688
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x426681
cmp eax, 0x1000000
jae 0x426681
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x40
push edx
push esi
call edi
test eax, eax
je 0x426681
cmp word [esp + 0x10], 0x5a4d
jne 0x426681
mov eax, dword [esp + 0x4c]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, dword [esp + 0x4c]
jne 0x426681
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x58]
push 0xf8
push edx
push esi
call edi
test eax, eax
je 0x426681
cmp dword [esp + 0x50], 0x4550
jne 0x426681
cmp word [esp + 0x56], 0
je 0x426681
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret 4
Function at 0x4266a0
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ce8
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp + 0xc], eax
sete cl
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00411fe0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x2c], eax
cmp word [esi], 0x5a4d
jne 0x4267c9
cmp dword [eax], 0x4550
jne 0x4267c9
mov eax, dword [eax + 0x80]
push eax
push esi
call fcn.004123d0
add esp, 8
mov ebx, eax
add ebx, esi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4267c9
mov ecx, eax
push ecx
push esi
call fcn.004123d0
add esp, 8
mov edi, eax
add edi, esi
mov dword [ebp - 0x30], edi
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea ecx, [ebp - 0x15c]
push ecx
push 0
push 0
lea edx, [ebp - 0x134]
push edx
call fcn.004117e0
add esp, 0x14
test eax, eax
je 0x4267b8
push 6
push str..Upack
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4267b8
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4267c9
mov dword [ebx + 0xc], 0
jmp 0x4267c9
add ebx, 0x14
jmp 0x426725
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4267e0
push eax
call fcn.00412080
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426800
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov eax, dword [esp + 0x110]
test eax, eax
je 0x42682d
lea ecx, [esp]
push str.dllcache_services.exe
push ecx
jmp 0x426837
lea edx, [esp]
push str.services.exe
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [esp + 0x10c]
push esi
cmp ecx, 0x7fffffff
ja 0x426888
mov eax, dword [esp + 0x10c]
mov esi, ecx
test ecx, ecx
je 0x426888
lea edx, [esp + 4]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x426880
mov byte [eax], cl
inc eax
dec esi
jne 0x426860
dec eax
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x104
ret 0xc
test esi, esi
jne 0x426885
dec eax
mov byte [eax], 0
mov eax, 1
pop esi
add esp, 0x104
ret 0xc
Function at 0x427540
Capabilities:
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42e5eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
lea ecx, [esp + 8]
call fcn.0040e1a0
mov esi, dword [esp + 0x224]
lea eax, [esp + 0xc]
push esi
push str.._s_nul.dll_
push 0x104
push eax
mov dword [esp + 0x22c], 0
call fcn.004073a0
add esp, 0x10
lea ecx, [esp + 0x110]
push esi
push 0x451d10
push 0x104
push ecx
call fcn.004073a0
mov eax, dword [esp + 0x238]
add esp, 0x10
test eax, eax
je 0x4275fb
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
call edi
lea eax, [esp + 0x110]
push 0
push eax
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0040e3c0
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
jmp 0x42765b
mov edi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push ebx
push 0x80
push esi
call edi
push 0x1f01ff
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.0040e3a0
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x114]
push 0x80
push eax
call edi
lea ecx, [esp + 0x114]
push ecx
call ebx
push 0x80
push esi
call edi
push esi
call ebx
mov edi, eax
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0040e1d0
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 8