joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48435b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add eax, ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x41a230
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x484798
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x41a27a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.00424830
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x41a2a7
lea eax, [esi + 8]
jmp 0x41a2a9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x41a2b9
cmp dword [ebx + 0x14], 8
jb 0x41a2bb
mov ebx, dword [ebx]
jmp 0x41a2bb
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41a2dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a2dc
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41a306
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 ecx, dword [esi + 4]
test ecx, ecx
je 0x41a31b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0047ff74
add esp, 0x18
ret 4
Function at 0x41ddb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41de41
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x41dde7
jne 0x41de3a
cmp dword [esi + 8], 2
jb 0x41de3a
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0041e240
add esp, 8
test al, al
je 0x41de3a
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x41e240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41e30a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e30a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41e30a
movdqu xmm0, xmmword [0x4941e0]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x4941f0]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41e30a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41e30a
cmp word [esi + 2], ax
jbe 0x41e30a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047ff74
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff74
add esp, 0x28
ret
Function at 0x41e320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x485018
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x41e35c
mov eax, dword [esi]
jmp 0x41e35e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e3f4
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0041e940
test al, al
je 0x41e3c1
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41e3dd
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047ff74
add esp, 0x28
ret

Function at 0x41e420
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x485018
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x41e45c
mov eax, dword [esi]
jmp 0x41e45e
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e472
mov al, 1
jmp 0x41e502
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0041e940
test al, al
je 0x41e4cb
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41e4cb
mov bl, 1
jmp 0x41e4cd
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x41e4e9
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0047ff74
add esp, 0x28
ret
Function at 0x41e520
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48504b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4afcd0]
mov dword [esp + 8], 0x4afcd0
test eax, eax
je 0x41e572
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x638], 0
cmp dword [0x4af060], 0
je 0x41e5c0
cmp esi, 0x4af050
je 0x41e59e
push 0xffffffffffffffff
push 0
push 0x4af050
mov ecx, esi
call fcn.004030c0
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x4afcd0]
test eax, eax
je 0x41e5b9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x41e69b
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41e67e
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41e66d
test eax, eax
je 0x41e66d
add eax, eax
cmp eax, 0x412
jae 0x41e668
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.00403f80
jmp 0x41e59e
call fcn.004804d4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00403f80
jmp 0x41e59e
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x4afcd0]
test eax, eax
je 0x41e699
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.0047ff74
add esp, 0x634
ret

Function at 0x41e890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41e8b8
mov eax, dword [esi]
jmp 0x41e8ba
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x410
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41e905
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0047ff74
add esp, 0x418
ret
cmp eax, 0x208
jae 0x41e8ed
xor eax, eax
mov ecx, esi
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00403f80
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0047ff74
add esp, 0x418
ret
Function at 0x41f510
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x41f53d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0047ff74
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41f529
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f577
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41f577
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0047ff74
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.0047ff74
add esp, 8
ret 4

Function at 0x41f730
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x48527e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esi + 4], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x10
mov dword [esp + 0xc], 0x11c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f7b4
cmp dword [esp + 0x10], 6
mov ecx, dword [esi + 4]
setae dl
mov byte [ecx], dl
mov dword [esp + 0x134], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0047ff74
add esp, 0x130
ret
Function at 0x4216b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x485737
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
push 0x18
mov byte [edi], 0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [edi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x1c], 0
lea esi, [edi + 8]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00423600
mov dword [esi], eax
mov byte [esp + 0x1c], 3
lea esi, [edi + 0x10]
push 0
push 0
mov dword [esp + 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00423600
mov dword [esi], eax
mov byte [esp + 0x1c], 6
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
mov byte [esp + 0x1c], 7
lea ecx, [edi + 0x38]
call fcn.004049c0
mov byte [esp + 0x1c], 8
lea eax, [edi + 0xb0]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [esp + 0x10], eax
mov word [eax], cx
mov byte [esp + 0x1c], 9
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [esp + 0x1c], 0xa
xor eax, eax
mov dword [edi + 0xf4], 7
mov dword [edi + 0xf0], ecx
mov word [edi + 0xe0], ax
mov byte [esp + 0x1c], 0xb
mov dword [edi + 0x10c], 0xf
mov dword [edi + 0x108], eax
mov byte [edi + 0xf8], al
mov byte [esp + 0x1c], 0xc
mov dword [edi + 0x124], 0xf
mov dword [edi + 0x120], eax
mov byte [edi + 0x110], al
mov dword [esp + 0x1c], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x421b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485851
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], 0
lea esi, [ebx + 4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
test esi, esi
je 0x421bd3
mov eax, dword [esi]
test eax, eax
je 0x421bd3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 1
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov word [edi], ax
lea eax, [ebx + 0xe0]
push eax
call fcn.004030c0
mov dword [esp + 0x10], 1
mov byte [esp + 0x28], 0
test esi, esi
je 0x421c25
mov eax, dword [esi]
test eax, eax
je 0x421c1d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], 0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0047ff74
add esp, 0x1c
ret 4
Function at 0x422eb0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x483c08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00422d40
mov dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
je 0x422f5b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422f5b
test esi, esi
je 0x422f5b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 8
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x422f77
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047ff74
add esp, 0x2c
ret 8

Function at 0x422fb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x485b08
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x10], xmm0
call fcn.00422d40
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0
je 0x423072
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
push 0
cmovae eax, dword [esp + 0x20]
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x423072
test esi, esi
je 0x423072
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 8
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42306b
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x423096
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov edx, edi
mov dword [esp + 0x2c], 0
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0047ff74
add esp, 0x38
ret
Function at 0x4244b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485e6c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x42451d
push 0x34
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00424180
mov esi, eax
jmp 0x42451f
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.004291a0
test al, al
jne 0x424551
test esi, esi
je 0x42454d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x424593
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.00429330
test al, al
je 0x424541
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x424545
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0047ff74
mov esp, ebp
pop ebp
ret
Function at 0x4249d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a2100
push 0x480739
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
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 - 0x38], 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 - 0x34], 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 0x424a39
xor eax, eax
jmp 0x424baf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b7a
push 1
push dword [ebp - 0x38]
call eax
test eax, eax
je 0x424b7a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b7a
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 0x424b7a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b7a
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 0x424b7a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b7a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x424b7a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b7a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x424b7a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x424b7a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x424b63
push 0
push ecx
push 1
push dword [ebp - 0x38]
call eax
test eax, eax
je 0x424b50
mov ebx, 1
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x2c], 0
je 0x424b60
jmp 0x424b7a
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 - 0x38]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00424bd6
test ebx, ebx
jne 0x424bad
test esi, esi
je 0x424b9f
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 0x424bad
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.0047ff74
mov esp, ebp
pop ebp
ret 0xc