joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407480
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cc10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a8068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004554fe
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453f04
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d558
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
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, dword [ebp + 8]
mov ecx, esi
call fcn.00405280
test al, al
je 0x40cf50
xor al, al
jmp 0x40d086
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405410
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f610
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405290
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d073
lea ecx, [ebp - 0x44]
call fcn.004053f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193a0
test al, al
je 0x40cfb2
lea ecx, [ebp - 0x44]
call fcn.00405290
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052d0
cmp esi, 0xffffffff
jne 0x40d073
lea ecx, [ebp - 0x2c]
call fcn.004069d0
cmp eax, 2
jbe 0x40d06f
lea ecx, [ebp - 0x2c]
call fcn.004069d0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406720
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40cff7
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d016
lea ecx, [ebp - 0x2c]
call fcn.004069d0
cmp dword [esi + 0x14], 8
jb 0x40d00e
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d06f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f610
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405290
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d073
lea ecx, [ebp - 0x44]
call fcn.004053f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193a0
test al, al
je 0x40d05e
lea ecx, [ebp - 0x44]
call fcn.00405290
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052d0
cmp esi, 0xffffffff
jne 0x40d073
xor bl, bl
jmp 0x40d075
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052d0
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 - 0x14]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x40d0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d558
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
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, dword [ebp + 8]
mov ecx, esi
call fcn.00405280
test al, al
je 0x40d0f0
xor al, al
jmp 0x40d22c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405410
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f610
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405290
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d15f
lea ecx, [ebp - 0x44]
call fcn.004053f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193a0
test al, al
je 0x40d14e
lea ecx, [ebp - 0x44]
call fcn.00405290
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052d0
cmp ebx, 0xffffffff
je 0x40d168
test bl, 0x10
je 0x40d219
lea ecx, [ebp - 0x2c]
call fcn.004069d0
cmp eax, 2
jbe 0x40d215
lea ecx, [ebp - 0x2c]
call fcn.004069d0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406720
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d198
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d1b7
lea ecx, [ebp - 0x2c]
call fcn.004069d0
cmp dword [esi + 0x14], 8
jb 0x40d1af
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d215
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f610
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405290
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d210
lea ecx, [ebp - 0x44]
call fcn.004053f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193a0
test al, al
je 0x40d1ff
lea ecx, [ebp - 0x44]
call fcn.00405290
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052d0
cmp ebx, 0xffffffff
je 0x40d215
test bl, 0x10
je 0x40d219
xor bl, bl
jmp 0x40d21b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052d0
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 - 0x14]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x40d250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d590
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405280
test al, al
je 0x40d28f
xor al, al
jmp 0x40d31a
push esi
lea ecx, [ebp - 0x28]
call fcn.00405410
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f610
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00405290
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d2fe
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193a0
test al, al
je 0x40d2ed
lea ecx, [ebp - 0x40]
call fcn.00405290
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052d0
cmp ebx, 0xffffffff
je 0x40d307
test bl, 0x10
je 0x40d307
mov bl, 1
jmp 0x40d309
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x40dc20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d700
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8068]
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, dword [ebp + 8]
mov ecx, edi
call fcn.00405280
test al, al
je 0x40dc60
xor al, al
jmp 0x40de1b
push edi
call fcn.0040d250
add esp, 4
test al, al
je 0x40dc74
mov al, 1
jmp 0x40de1b
push 0
mov ecx, edi
call fcn.00405290
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dcc3
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004193a0
test al, al
je 0x40dcb4
push 0
lea ecx, [ebp - 0x28]
call fcn.00405290
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
push edi
call fcn.0040d250
add esp, 4
test al, al
jne 0x40dc6d
mov ecx, edi
call fcn.004069d0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40ddbc
mov ecx, edi
call fcn.00406720
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dcfc
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40dd1f
mov eax, ebx
cmp ecx, 8
jb 0x40dd15
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40ddac
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00405230
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405280
test al, al
jne 0x40dd9d
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf10
add esp, 4
test al, al
jne 0x40dd9d
push 0
lea ecx, [ebp - 0x28]
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd9d
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193a0
test al, al
je 0x40dd91
push 0
lea ecx, [ebp - 0x40]
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dcf0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cf10
add esp, 4
test al, al
jne 0x40de12
push 0
mov ecx, edi
call fcn.00405290
push eax
call ebx
test eax, eax
jne 0x40de12
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004193a0
test al, al
je 0x40de03
push 0
lea ecx, [ebp - 0x40]
call fcn.00405290
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052d0
push edi
call fcn.0040d250
add esp, 4
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.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x417e00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ec18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8068]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x417e46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041ce30
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417e6f
lea ebx, [esi + 8]
jmp 0x417e71
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405280
test al, al
jne 0x417e87
mov ecx, dword [ebp - 0x18]
call fcn.00405290
jmp 0x417e89
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x417eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417eaa
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417ed3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417ee8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0045552e
add esp, 8
mov dword [ebp - 0x14], 0
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.004554e8
mov esp, ebp
pop ebp
ret 4

Function at 0x418990
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d938
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4189d9
mov al, 1
jmp 0x418a21
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193a0
test al, al
je 0x418a0e
push esi
lea ecx, [ebp - 0x28]
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a0e
mov bl, 1
jmp 0x418a10
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x418a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d938
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418abe
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193a0
test al, al
je 0x418aad
lea ecx, [ebp - 0x28]
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret

Function at 0x418bf0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee08
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a8068]
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 esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00405290
push eax
mov ecx, edi
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418c42
mov al, 1
jmp 0x418d30
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.004053f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004193a0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004193a0
test al, al
jne 0x418c88
test bl, bl
je 0x418ca6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00405290
push eax
lea ecx, [ebp - 0x58]
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418cfa
mov ecx, esi
call fcn.00418a40
cmp eax, 0xffffffff
je 0x418d11
push esi
lea ecx, [ebp - 0x28]
call fcn.00405410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00418ff0
test al, al
je 0x418d05
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00418ae0
test al, al
je 0x418d05
mov edx, esi
mov ecx, edi
call fcn.00418ae0
lea ecx, [ebp - 0x28]
test al, al
je 0x418cfe
call fcn.00418d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052d0
mov bl, 1
jmp 0x418d13
mov edx, esi
call fcn.00418ae0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052d0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004052d0
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.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x418d50
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee58
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a8068]
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 esi, ecx
call fcn.00405290
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x418d96
mov al, 1
jmp 0x418ee8
mov ecx, esi
call fcn.00405290
push eax
lea ecx, [ebp - 0x28]
call fcn.004053b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00418a40
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
cmp ebx, 0xffffffff
jne 0x418dd5
xor al, al
jmp 0x418ee8
mov ecx, esi
call fcn.00405290
push eax
lea ecx, [ebp - 0x28]
call fcn.004053b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00405290
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x418e07
xor bl, bl
jmp 0x418e51
lea ecx, [ebp - 0x40]
call fcn.004053f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193a0
test al, al
je 0x418e43
push 0
lea ecx, [ebp - 0x40]
call fcn.00405290
push eax
call ebx
test eax, eax
je 0x418e43
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052d0
xor bl, bl
jmp 0x418e51
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052d0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
test bl, bl
jne 0x418dce
mov ecx, esi
call fcn.00405290
push eax
call edi
test eax, eax
jne 0x418d8f
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004193a0
test al, al
je 0x418eaa
lea ecx, [ebp - 0x28]
call fcn.00405290
push eax
call edi
test eax, eax
je 0x418eaa
mov bl, 1
jmp 0x418ed7
mov ecx, esi
call fcn.00405290
push eax
lea ecx, [ebp - 0x40]
call fcn.004053b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.00418990
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004052d0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052d0
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.004554e8
mov esp, ebp
pop ebp
ret
Function at 0x418f40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00457760
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00405290
push eax
mov ecx, edi
call fcn.00405290
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418fd5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.004076a0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004069e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004554e8
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004554e8
add esp, 0x210
ret
Function at 0x41a9c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004554fe
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00457760
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41aa1c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004554e8
add esp, 0x120
ret
Function at 0x41cf80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a16d8
push 0x457080
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a8068]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x41cfe9
xor eax, eax
jmp 0x41d15f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d12a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x41d12a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x41d12a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x41d12a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d12a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x41d12a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41d12a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41d113
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d100
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x41d110
jmp 0x41d12a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d186
test ebx, ebx
jne 0x41d15d
test esi, esi
je 0x41d14f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41d15d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004554e8
mov esp, ebp
pop ebp
ret 0xc