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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d538
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
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.004052a0
test al, al
je 0x40d100
xor al, al
jmp 0x40d23c
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052b0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d16f
lea ecx, [ebp - 0x44]
call fcn.00405410
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193c0
test al, al
je 0x40d15e
lea ecx, [ebp - 0x44]
call fcn.004052b0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052f0
cmp ebx, 0xffffffff
je 0x40d178
test bl, 0x10
je 0x40d229
lea ecx, [ebp - 0x2c]
call fcn.004069f0
cmp eax, 2
jbe 0x40d225
lea ecx, [ebp - 0x2c]
call fcn.004069f0
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.00406740
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d1a8
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d1c7
lea ecx, [ebp - 0x2c]
call fcn.004069f0
cmp dword [esi + 0x14], 8
jb 0x40d1bf
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d225
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d220
lea ecx, [ebp - 0x44]
call fcn.00405410
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004193c0
test al, al
je 0x40d20f
lea ecx, [ebp - 0x44]
call fcn.004052b0
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004052f0
cmp ebx, 0xffffffff
je 0x40d225
test bl, 0x10
je 0x40d229
xor bl, bl
jmp 0x40d22b
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x40d260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d570
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a8098]
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.004052a0
test al, al
je 0x40d29f
xor al, al
jmp 0x40d32a
push esi
lea ecx, [ebp - 0x28]
call fcn.00405430
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.004052b0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d30e
lea ecx, [ebp - 0x40]
call fcn.00405410
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193c0
test al, al
je 0x40d2fd
lea ecx, [ebp - 0x40]
call fcn.004052b0
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052f0
cmp ebx, 0xffffffff
je 0x40d317
test bl, 0x10
je 0x40d317
mov bl, 1
jmp 0x40d319
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x40dc30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a8098]
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.004052a0
test al, al
je 0x40dc70
xor al, al
jmp 0x40de2b
push edi
call fcn.0040d260
add esp, 4
test al, al
je 0x40dc84
mov al, 1
jmp 0x40de2b
push 0
mov ecx, edi
call fcn.004052b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dcd3
lea ecx, [ebp - 0x28]
call fcn.00405410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004193c0
test al, al
je 0x40dcc4
push 0
lea ecx, [ebp - 0x28]
call fcn.004052b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
push edi
call fcn.0040d260
add esp, 4
test al, al
jne 0x40dc7d
mov ecx, edi
call fcn.004069f0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40ddcc
mov ecx, edi
call fcn.00406740
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dd0c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40dd2f
mov eax, ebx
cmp ecx, 8
jb 0x40dd25
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40ddbc
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00405250
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052a0
test al, al
jne 0x40ddad
lea eax, [ebp - 0x28]
push eax
call fcn.0040cf20
add esp, 4
test al, al
jne 0x40ddad
push 0
lea ecx, [ebp - 0x28]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ddad
lea ecx, [ebp - 0x40]
call fcn.00405410
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193c0
test al, al
je 0x40dda1
push 0
lea ecx, [ebp - 0x40]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dd00
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cf20
add esp, 4
test al, al
jne 0x40de22
push 0
mov ecx, edi
call fcn.004052b0
push eax
call ebx
test eax, eax
jne 0x40de22
lea ecx, [ebp - 0x40]
call fcn.00405410
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004193c0
test al, al
je 0x40de13
push 0
lea ecx, [ebp - 0x40]
call fcn.004052b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004052f0
push edi
call fcn.0040d260
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x417e20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ebf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a8098]
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 0x417e66
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.0041ce50
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417e8f
lea ebx, [esi + 8]
jmp 0x417e91
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.004052a0
test al, al
jne 0x417ea7
mov ecx, dword [ebp - 0x18]
call fcn.004052b0
jmp 0x417ea9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x417eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417eca
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417ef3
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 0x417f08
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00455d7c
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.00455d36
mov esp, ebp
pop ebp
ret 4

Function at 0x4189b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d918
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8098]
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.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4189f9
mov al, 1
jmp 0x418a41
lea ecx, [ebp - 0x28]
call fcn.00405410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193c0
test al, al
je 0x418a2e
push esi
lea ecx, [ebp - 0x28]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a2e
mov bl, 1
jmp 0x418a30
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x418a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d918
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a8098]
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.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418ade
lea ecx, [ebp - 0x28]
call fcn.00405410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004193c0
test al, al
je 0x418acd
lea ecx, [ebp - 0x28]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret

Function at 0x418c10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ede8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a8098]
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.004052b0
push eax
mov ecx, edi
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418c62
mov al, 1
jmp 0x418d50
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00405410
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004193c0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00405410
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004193c0
test al, al
jne 0x418ca8
test bl, bl
je 0x418cc6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.004052b0
push eax
lea ecx, [ebp - 0x58]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418d1a
mov ecx, esi
call fcn.00418a60
cmp eax, 0xffffffff
je 0x418d31
push esi
lea ecx, [ebp - 0x28]
call fcn.00405430
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00419010
test al, al
je 0x418d25
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00418b00
test al, al
je 0x418d25
mov edx, esi
mov ecx, edi
call fcn.00418b00
lea ecx, [ebp - 0x28]
test al, al
je 0x418d1e
call fcn.00418d70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052f0
mov bl, 1
jmp 0x418d33
mov edx, esi
call fcn.00418b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004052f0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004052f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x418d70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ee38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a8098]
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.004052b0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x418db6
mov al, 1
jmp 0x418f08
mov ecx, esi
call fcn.004052b0
push eax
lea ecx, [ebp - 0x28]
call fcn.004053d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00418a60
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
cmp ebx, 0xffffffff
jne 0x418df5
xor al, al
jmp 0x418f08
mov ecx, esi
call fcn.004052b0
push eax
lea ecx, [ebp - 0x28]
call fcn.004053d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.004052b0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x418e27
xor bl, bl
jmp 0x418e71
lea ecx, [ebp - 0x40]
call fcn.00405410
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004193c0
test al, al
je 0x418e63
push 0
lea ecx, [ebp - 0x40]
call fcn.004052b0
push eax
call ebx
test eax, eax
je 0x418e63
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052f0
xor bl, bl
jmp 0x418e71
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004052f0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
test bl, bl
jne 0x418dee
mov ecx, esi
call fcn.004052b0
push eax
call edi
test eax, eax
jne 0x418daf
lea ecx, [ebp - 0x28]
call fcn.00405410
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004193c0
test al, al
je 0x418eca
lea ecx, [ebp - 0x28]
call fcn.004052b0
push eax
call edi
test eax, eax
je 0x418eca
mov bl, 1
jmp 0x418ef7
mov ecx, esi
call fcn.004052b0
push eax
lea ecx, [ebp - 0x40]
call fcn.004053d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.004189b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004052f0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004052f0
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.00455d36
mov esp, ebp
pop ebp
ret
Function at 0x418f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a8098]
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.00458120
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.004052b0
push eax
mov ecx, edi
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x418ff5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.004076c0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00406a00
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00455d36
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455d36
add esp, 0x210
ret
Function at 0x41a9e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00455d4c
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00458120
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 0x41aa3c
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.00455d36
add esp, 0x120
ret
Function at 0x41cfa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a16a8
push 0x457a40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a8098]
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 0x41d009
xor eax, eax
jmp 0x41d17f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d14a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d14a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d14a
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 0x41d14a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d14a
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 0x41d14a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d14a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x41d14a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d14a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x41d14a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41d14a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41d133
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x41d120
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x41d130
jmp 0x41d14a
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.0041d1a6
test ebx, ebx
jne 0x41d17d
test esi, esi
je 0x41d16f
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 0x41d17d
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.00455d36
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d5b0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x4a8098]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.00458120
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d6f7
cmp dword [esi + 4], 6
push edi
ja 0x41d60b
jne 0x41d693
cmp dword [esi + 8], 2
jb 0x41d693
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41d693
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d693
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d693
movups xmm0, xmmword [0x498264]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x498274]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41d693
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41d693
cmp word [edi + 2], ax
jbe 0x41d693
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41d6de
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00458120
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x41d6de
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00455d36
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00455d36
add esp, 0x140
ret
Function at 0x4223a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480099
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a8098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x84
call fcn.00455d4c
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 0x84
push 0
push edi
call fcn.00458120
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
push 0x18
call fcn.00455d4c
add esp, 0x14
mov dword [edi + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
lea esi, [edi + 0x20]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00405410
mov byte [ebp - 4], 3
lea ecx, [esi + 0x18]
call fcn.00405410
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.00405410
mov byte [ebp - 4], 5
lea ecx, [esi + 0x48]
call fcn.00405410
mov byte [ebp - 4], 7
push 0
call fcn.0045efbe
push eax
call fcn.0045f2b6
mov dword [edi + 0xc], 0
add esp, 8
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0x40
mov dword [edi + 0x80], 0
mov word [edi + 0x1c], 0x100
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov dword [ebx], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret