joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416380
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
mov edi, ecx
mov bh, dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x416390
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416545
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4163a9
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4163ba
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
je 0x4164a7
test bh, bh
je 0x4164a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4164a7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4163ef
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x4164a7
mov esi, dword [0x524fac]
test esi, esi
je 0x416441
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x416415
mov ecx, dword [edi]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x20
jmp 0x41647a
mov eax, dword [0x524fb0]
test eax, eax
je 0x41647a
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x416454
mov ecx, dword [edi]
mov esi, dword [eax]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x50e6dc
push 0x50cdf8
push 0x14
push eax
call dword [0x4f4350]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x416484
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41649a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x41653f
cmp dword [0x524fac], 0
je 0x4164fc
cmp dword [edi + 0x14], 8
jb 0x4164c0
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x524fac]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x32
call dword [0x4f4350]
call esi
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
ret
mov esi, dword [0x524fb0]
test esi, esi
je 0x41653f
cmp dword [edi + 0x14], 8
jb 0x41650e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x50e6dc
push 0x50cdf8
push 0x32
push dword [0x524fb0]
call dword [0x4f4350]
call esi
add esp, 0x1c
pop esi
pop edi
mov al, bl
pop ebx
ret
pop edi
mov al, 1
pop ebx
ret
Function at 0x419980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1500
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x521284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004cc236
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004cb154
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41bd50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f22bd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x521284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edi + 0x18]
mov dword [ebp - 4], eax
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004cc236
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x20], 0
mov word [edi + 0x20], ax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41bf40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x521284]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x8c], 1
jne 0x41bfe2
xor eax, eax
cmp dword [ebx + 0x60], 8
mov word [esp + 0xc], ax
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x4c]
jb 0x41bf7b
mov eax, dword [eax]
push 0x50f520
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004d3c5a
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x41bfe2
push eax
push 2
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004d9e5e
push dword [esp + 0x20]
call fcn.004d3d18
mov ax, word [esp + 0x20]
add esp, 0x14
cmp al, 0xff
jne 0x41bfbf
cmp ah, 0xfe
je 0x41bfe2
cmp ah, 0xff
jne 0x41bfc8
cmp al, 0xfe
je 0x41bfe2
mov eax, dword [edi]
test eax, eax
je 0x41bfdb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, ebx
call fcn.0041dfe0
lea esi, [ebx + 0x4c]
push 1
mov ecx, esi
call fcn.00420cb0
add esp, 4
test eax, eax
je 0x41c011
cmp eax, 1
jne 0x41c063
push ecx
mov dl, al
mov ecx, esi
call fcn.00416380
add esp, 4
test al, al
je 0x41c063
mov dword [edi], 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41c01b
mov eax, dword [esi]
push 0
push 0x200080
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x41c0ba
cmp dword [esi + 0x14], 8
jb 0x41c043
mov esi, dword [esi]
push 0
push 0x200080
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x41c079
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x8c], 1
push 0
jne 0x41c09b
mov ecx, 0xfeff
mov word [esp + 0x10], cx
lea ecx, [esp + 0x14]
push ecx
push 2
lea ecx, [esp + 0x18]
jmp 0x41c0b2
lea ecx, [esp + 0x14]
mov word [esp + 0x10], 0xbbef
push ecx
mov byte [esp + 0x16], 0xbf
lea ecx, [esp + 0x14]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4
Function at 0x41c520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c540
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
push edi
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x50f53c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4

Function at 0x41c5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
mov edi, ecx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41c5d0
push 2
push 0
push 0
push dword [edi + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push ebx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x50f544
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4
Function at 0x41dfe0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2585
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x4c]
push esi
lea ecx, [ebp - 0x28]
call fcn.00402eb0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00425b70
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004259d0
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x41e185
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0x50cda0
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.00402c40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.00403260
lea ecx, [ebp - 0x74]
call fcn.00402a30
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00425dc0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00425bf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x41e14d
push 0
mov ecx, esi
call fcn.00420cb0
add esp, 4
test eax, eax
jne 0x41e14d
cmp dword [esi + 0x10], eax
je 0x41e14d
cmp dword [ebp - 0x18], eax
je 0x41e14d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x41e11d
mov esi, dword [esi]
push eax
push esi
call fcn.004da1e8
add esp, 8
test eax, eax
jne 0x41e14d
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x41e149
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402a90
mov bl, 1
jmp 0x41e14f
xor bl, bl
lea ecx, [ebp - 0x58]
call fcn.00402a30
lea ecx, [ebp - 0x40]
call fcn.00402a30
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
call fcn.004020e0
int3
Function at 0x420cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2825
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x420ce7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420d04
test eax, 0x400
je 0x420d04
mov eax, 1
jmp 0x420dd3
cmp byte [ebp + 8], 0
je 0x420d57
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x420d14
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x420d57
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x420d57
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x420d57
mov eax, 3
jmp 0x420dd3
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402eb0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00402eb0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004156f0
test al, al
je 0x420dc1
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov edx, dword [ebp - 0x34]
cmp edi, 8
cmovae eax, ebx
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x1c]
jne 0x420def
test edx, edx
je 0x420dc1
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x420def
add eax, 2
sub edx, 1
jne 0x420db0
lea ecx, [ebp - 0x44]
call fcn.00402a30
lea ecx, [ebp - 0x2c]
call fcn.00402a30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
cmp edi, 8
lea eax, [ebp - 0x2c]
cmovae eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x420e0b
test eax, 0x400
jne 0x420e34
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00402a90
lea ecx, [ebp - 0x2c]
call fcn.004156f0
test al, al
jne 0x420d80
jmp 0x420dc1
lea ecx, [ebp - 0x44]
call fcn.00402a30
lea ecx, [ebp - 0x2c]
call fcn.00402a30
mov eax, 2
jmp 0x420dd3
Function at 0x421950
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
push esi
test ecx, ecx
jne 0x42198f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4219a2
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4219c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4219c4
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x421a74
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4219fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x421a74
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x421a74
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x421a74
xor edi, edi
cmp dword [ebx], edi
jbe 0x421a72
lea esi, [ebx + 8]
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x421a67
test byte [esi], 4
jne 0x421ab9
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x421a52
mov esi, dword [ebp - 0x1c]
xor edi, edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421a82
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x421a8d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421a9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x421aa6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov edi, 1
jmp 0x421a74
Function at 0x422d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x521284]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0x110
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.004ce0b0
add esp, 0xc
xor eax, eax
mov word [esp + 0x124], ax
mov dword [esp + 0x126], eax
mov word [esp + 0x12a], ax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x422e01
inc esi
cmp esi, 0xf
jl 0x422d70
jmp 0x422e06
lea eax, [esi - 1]
mov dword [ebx], eax
mov edi, 1
nop dword [eax + eax]
movzx esi, word [ebx]
lea eax, [esp + 0x14]
push 0x110
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.004ce0b0
add esp, 0xc
xor eax, eax
mov word [esp + 0x124], ax
mov dword [esp + 0x126], eax
mov word [esp + 0x12a], ax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x422ea2
inc edi
cmp edi, 0xa
jl 0x422e10
jmp 0x422ea8
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
nop dword [eax]
mov eax, dword [esp + 0xc]
push 0x110
push 0
mov dword [esp + 0x18], 0x11c
movzx edi, word [eax + 4]
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.004ce0b0
add esp, 0xc
xor eax, eax
mov word [esp + 0x124], ax
mov dword [esp + 0x126], eax
mov word [esp + 0x12a], ax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x422f5c
inc ebx
cmp ebx, 0xa
jl 0x422eb0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
Function at 0x425e70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004cd260
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, edx
mov edi, ecx
push 1
mov ecx, esi
call fcn.00420cb0
add esp, 4
test eax, eax
je 0x425ec5
cmp eax, 1
jne 0x425eb3
push ecx
mov dl, al
mov ecx, esi
call fcn.00416380
add esp, 4
test al, al
jne 0x425ec5
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [edi + 0x14], 8
jb 0x425ed0
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x425ef3
mov esi, dword [esi]
push 0
push 0x200080
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425f6f
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x425f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x2008], 0x1000
je 0x425f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
sete al
xor ecx, ebp
pop edi
pop esi
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
Function at 0x428780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3185
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 4], eax
lea ecx, [eax + 0x2c]
call fcn.004150f0
add esp, 4
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 5
push 0x50ce00
call fcn.00402a90
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402a30
push 4
xor eax, eax
mov dword [ebp - 0x28], 0
push str.caps
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402a30
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x428893
push ecx
lea ecx, [ebp - 0x40]
call fcn.00415880
add esp, 4
push 8
xor eax, eax
mov dword [ebp - 0x28], 0
push str.hdpim.db
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402a30
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea esi, [edi + 8]
cmovae ecx, dword [ebp - 0x40]
mov edx, esi
push 0
call fcn.00416df0
lea ecx, [edi + 0x20]
add esp, 4
cmp dword [ecx], 0
jne 0x428928
cmp dword [esi + 0x14], 0x10
jb 0x428909
mov esi, dword [esi]
xor eax, eax
cmp dword [ebp + 8], eax
setne al
push eax
push esi
call fcn.0042a130
test al, al
jne 0x428928
push dword [edi + 0x24]
call fcn.00428640
mov esi, eax
jmp 0x42892a
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4