joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054b2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4054e0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4054e7
cmp ebx, dword [eax + 4]
jae 0x4054e7
xor eax, eax
jmp 0x4056d7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4054f8
xor eax, eax
inc eax
jmp 0x4056d6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40550e
cmp ecx, edx
jae 0x405653
cmp dword [eax + 4], 0
je 0x405517
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4054ff
cmp dword [ebp + 8], 0
je 0x405539
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405653
cmp eax, esi
jae 0x405653
mov eax, dword [0x40a108]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40555e
cmp dword [esi*4 + 0x40a110], edi
je 0x405657
inc esi
cmp esi, eax
jl 0x40554c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4056d3
cmp dword [ebp - 8], 0x1000000
jne 0x4056d3
test byte [ebp - 0xc], 0xcc
je 0x4055dc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4056d3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4056d3
cmp word [eax + 0x18], 0x10b
jne 0x4056d3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4056d3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4055dc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4055dc
test byte [ecx + 0x27], 0x80
jne 0x405653
push 1
push 0x40a150
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4054f0
mov ecx, dword [0x40a108]
test ecx, ecx
mov edx, ecx
jle 0x405610
lea eax, [ecx*4 + 0x40a10c]
cmp dword [eax], edi
je 0x405610
dec edx
sub eax, 4
test edx, edx
jg 0x405604
test edx, edx
jne 0x405641
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40561d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405635
lea eax, [edx*4 + 0x40a110]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405623
cmp ecx, 0x10
jge 0x405641
inc ecx
mov dword [0x40a108], ecx
push 0
push 0x40a150
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4054f0
xor eax, eax
jmp 0x4056d6
test esi, esi
jle 0x4054f0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40a150
call ebx
test eax, eax
jne 0x4054f0
cmp dword [esi*4 + 0x40a110], edi
je 0x4056ad
mov eax, dword [0x40a108]
lea esi, [eax - 1]
test esi, esi
jl 0x40569b
cmp dword [esi*4 + 0x40a110], edi
je 0x405697
dec esi
jns 0x40568b
test esi, esi
jge 0x4056ab
cmp eax, 0x10
jge 0x4056a6
inc eax
mov dword [0x40a108], eax
lea esi, [eax - 1]
jmp 0x4056ad
je 0x4056c5
xor ecx, ecx
test esi, esi
jl 0x4056c5
lea eax, [ecx*4 + 0x40a110]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4056b3
push 0
push 0x40a150
call ebx
jmp 0x4054f0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ae9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403540
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406b84
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x409e24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406b84
cmp eax, 1
je 0x406ba5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406b84
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406b51
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406b80
xor eax, eax
inc eax
jmp 0x406bc4
cmp edi, eax
jae 0x406b88
xor eax, eax
jmp 0x406bc4
cmp eax, esi
jae 0x406b8f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x409e24]
jmp 0x406ba8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e158
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10016014]
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 dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
push dword [0x100166a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xfcfcfcfc
jne 0x100018e4
test ebx, ebx
je 0x100018e4
mov edi, dword [0x100166b8]
mov esi, dword [edi + ebx]
push esi
call fcn.10001980
test al, al
je 0x100018e4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10001918
lea edi, [ebx + 0x28]
lea eax, [ebx + 0x2c]
neg edi
sbb edi, edi
and edi, eax
je 0x10001914
cmp dword [edi + 4], 0
jbe 0x10001914
cmp dword [edi + 8], 0
je 0x10001914
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [edi + 4]
inc eax
push eax
call fcn.1000d406
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003580
mov byte [ebp - 4], 1
mov eax, dword [edi + 4]
inc eax
push eax
push 0
mov esi, dword [ebp - 0x1c]
push esi
call sub.VCRUNTIME140.dll_memset
push dword [edi + 4]
push dword [edi + 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x100018dd
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100018dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100018dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
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.1000d049
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x100018e9
cmp eax, 3
je 0x10001914
cmp eax, 2
jne 0x100018e4
cmp esi, 0x16
ja 0x10001947
je 0x1000193c
cmp esi, eax
je 0x1000193c
mov eax, 1
cmp esi, 0xf
jbe 0x100018e9
cmp esi, 0x12
ja 0x100018e9
mov dword [edi + ebx], 0
xor eax, eax
jmp 0x100018e9
mov eax, 1
cmp esi, 0x112
jne 0x100018e9
cmp dword [edi + ebx + 4], 0xf060
jne 0x100018e9
mov dword [edi + ebx], 0
mov eax, dword [0x100166b8]
mov dword [eax + ebx + 4], 0
xor eax, eax
jmp 0x100018e9
Function at 0x10006090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e910
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10016014]
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 edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x1000620f
cmp byte [esi + 0x54], 0
je 0x1000620f
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x10006110
mov eax, dword [esi]
test eax, eax
je 0x1000610d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10006104
cmp eax, 0x80
je 0x10006104
xor bl, bl
jmp 0x1000610a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000a090
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x10006147
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006195
push 2
push 0
push 0
push edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100061cf
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100061c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100061c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000d3f8
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
test esi, esi
je 0x10006201
test bl, bl
je 0x10006201
mov eax, dword [esi]
test eax, eax
je 0x100061fd
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
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.1000d049
mov esp, ebp
pop ebp
ret 4
Function at 0x10007750
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000eac0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10016014]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10007793
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 0x2c
mov word [edi + 4], 0
mov dword [ebp - 0x18], 0
call fcn.1000d3c8
mov esi, eax
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0
lea eax, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
xor eax, eax
push 0xc
push str.Advapi32.dll
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.10003c50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.10003e30
mov ecx, eax
call fcn.10003ef0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x1000785e
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007854
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10007854
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000d3f8
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
sub esp, 8
mov word [ebp - 0x30], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x18]
push eax
call fcn.1000ae40
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x10007897
lea eax, [esi + 8]
jmp 0x10007899
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x100078a9
cmp dword [ebx + 0x14], 8
jb 0x100078ab
mov ebx, dword [ebx]
jmp 0x100078ab
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100078cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100078cc
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100078f5
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 0x1000790a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1000d3f8
add esp, 8
mov dword [ebp - 0x18], 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 - 0x14]
xor ecx, ebp
call fcn.1000d049
mov esp, ebp
pop ebp
ret 4
Function at 0x10007d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ec05
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10016014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.1000d3c8
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
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 esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
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 [ebp - 0x14], esi
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 byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000a9d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10016014]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 0x1000aa06
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000aab6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1000aae0
test al, al
je 0x1000aa5f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000aaa2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000aa98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000aa98
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000d3f8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.1000d049
mov esp, ebp
pop ebp
ret
Function at 0x1000ae40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10014b80
push 0x1000d3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10016014]
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 0x1000aea9
xor eax, eax
jmp 0x1000b01f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000afea
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
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 0x1000afea
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
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 0x1000afea
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1000afea
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000afea
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1000afea
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000afea
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1000afd3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000afc0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x1000afd0
jmp 0x1000afea
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.1000b046
test ebx, ebx
jne 0x1000b01d
test esi, esi
je 0x1000b00f
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 0x1000b01d
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.1000d049
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000b670
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10016014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x1000b6f2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x1000b6f2
test ecx, ecx
je 0x1000b6ee
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1000b6b0
xor eax, eax
jmp 0x1000b6f7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1000b701
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000d049
add esp, 0xc
ret 0xc

Function at 0x1000b780
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10016014]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1000b7ae
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1000d049
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x1000b797
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000b7f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000b7f4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1000d049
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1000d049
add esp, 8
ret 4

Function at 0x1000bf2e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
add eax, 0xffff0000
push esi
push edi
push eax
call fcn.1000c055
mov esi, eax
pop ecx
cmp esi, dword [ebp + 8]
jbe 0x1000bfbd
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1000bf65
mov esi, 0x4fff0000
jmp 0x1000bfb8
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000bfbd
cmp dword [ebp - 0xc], edi
jne 0x1000bfa7
cmp dword [ebp - 0x10], edi
jb 0x1000bfa7
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1000bfbf
sub esi, edi
jmp 0x1000bfb8
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
push eax
call fcn.1000c055
pop ecx
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x1000bf51
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000bfc5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
call fcn.1000c066
mov esi, eax
pop ecx
cmp esi, dword [ebp + 0xc]
jae 0x1000c04d
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x1000bff6
mov esi, 0x80010000
jmp 0x1000c048
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000c04d
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], edi
jne 0x1000c03a
cmp ecx, edi
jb 0x1000c03a
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1000c04f
add esi, edi
jmp 0x1000c048
mov eax, dword [ebp - 0x1c]
add eax, ecx
push eax
call fcn.1000c066
pop ecx
mov esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x1000bfe2
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret