joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4263b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c02a0
mov edx, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edx, edx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
je 0x42645b
cmp word [edx], 0
je 0x42645b
mov dword [ebp - 0x10], 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
mov edx, 0
mov ebx, 0
je 0x42645d
lea edx, [ebp - 0x2c]
mov word [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x30], eax
call fcn.004265c0
mov eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x30]
dec ecx
cmp eax, ecx
jne 0x42652c
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
jmp 0x42645d
xor edx, edx
mov ecx, dword [ebp + 8]
cmp ebx, edx
mov edi, 0x658578
cmovne edi, ebx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4264b9
mov dword [ebp - 0x10], 1
sub esp, 0xc
mov al, byte [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x4264dc
jmp 0x426519
mov ecx, dword [ebp + 8]
mov eax, esi
add eax, esi
mov dword [ecx + 0x10], esi
push eax
push edi
mov edi, ecx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov esi, edi
test ebx, ebx
je 0x426519
mov eax, dword [ebp - 0x20]
sub eax, ebx
cmp eax, 0x1000
jb 0x4264fa
mov ecx, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, ecx
cmp ebx, 0x20
jae 0x426539
add eax, 0x23
mov ebx, ecx
push eax
push ebx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x28]
mov edx, ebx
mov dword [ebp - 0x24], ebx
jmp 0x42645d
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4265ab
mov eax, dword [ebp - 0x20]
sub eax, ecx
cmp eax, 0x1000
jb 0x42658c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4265b0
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
add esp, 0xc
pop ebp
ret
call fcn.006207e0
int3
Function at 0x428a90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x6ccc30]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x428ab9
mov eax, dword [esi]
push 8
push str.__UNC_
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428b4e
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x428adb
mov eax, dword [esi]
push 2
push 0x65d43c
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
jne 0x428b06
cmp dword [esi + 0x10], 4
jb 0x428b06
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x428aff
mov eax, dword [esi]
cmp word [eax + 4], 0x3f
jne 0x428b4e
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x428b10
mov eax, dword [esi]
push 8
push 0x65d442
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428b4e
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x428b2f
mov esi, dword [esi]
mov ebx, 2
test eax, eax
je 0x428b68
mov edi, esi
nop word [eax + eax]
cmp word [edi], 0x3a
je 0x428b5c
add edi, 2
dec eax
jne 0x428b40
jmp 0x428b68
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov al, 1
jmp 0x428b7a
sub edi, esi
sar edi, 1
lea eax, [edi + 1]
cmp eax, 2
jae 0x428b85
mov ecx, dword [ebp - 0x10]
cmp ebx, 1
sete bl
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 2
jb 0x428b92
cmp word [esi + edi*2 - 4], 0x5c
jne 0x428b68
movzx eax, word [esi + edi*2 - 2]
mov edx, 0xffffff9f
lea ecx, [eax - 0x61]
cmp cx, 0x1a
jb 0x428bb3
lea ecx, [eax - 0x41]
mov edx, 0xffffffbf
cmp cx, 0x19
ja 0x428b68
add edx, eax
mov ebx, dword [edx*4 + 0x6d1ec0]
cmp ebx, 2
je 0x428b68
cmp ebx, 1
jne 0x428bd3
mov eax, dword [ebp + 0xc]
mov ebx, 1
mov byte [eax], 1
jmp 0x428b68
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
push 0x208
push 0
push ebx
call fcn.0061e8c0
add esp, 0xc
mov eax, dword [esi + edi*2 - 2]
mov esi, ebx
mov ebx, 2
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x428b68
cmp eax, 0x104
je 0x428b68
push 0xc
push str.DeviceMup_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
push 0x19
push str.DeviceLanmanRedirector_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
push 0x19
push str.DeviceWebDavRedirector_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
push 0xf
push str.DeviceWinDfs_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
push 0x1a
push str.DeviceNetWareRedirector_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
push 0xe
push str.Device_nwrdr_
push esi
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x428ccc
mov ecx, dword [ebp - 0x224]
mov eax, 2
xor ebx, ebx
xchg dword [ecx*4 + 0x6d1ec0], eax
jmp 0x428b68
mov ecx, dword [ebp - 0x224]
mov eax, 1
mov ebx, 1
xchg dword [ecx*4 + 0x6d1ec0], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x428b68
Function at 0x435dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c2980
mov esi, ecx
lea eax, [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [esi + 0x30], 5
jne 0x435e20
mov eax, dword [edi]
xor esi, esi
inc eax
cmp eax, 2
jb 0x435f1f
call fcn.0040e440
push dword [edi]
call fcn.0040f9e0
add esp, 4
mov dword [edi], 0
jmp 0x435f1f
lea edi, [ebp - 0x28]
mov ecx, edi
call fcn.0040fe40
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x30]
mov esi, dword [esi + 0x34]
mov dword [ebp - 0x10], 1
mov ecx, edi
push eax
push esi
push 0
push edx
call fcn.00435fa0
mov esi, 0x2f
test eax, eax
jne 0x435f17
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
call fcn.004366b0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], eax
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 2
mov eax, dword [ebp + 8]
jb 0x435e87
mov dword [ebp - 0x10], 2
call fcn.0040e440
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
cmp dword [eax], ecx
je 0x435eee
mov dword [ebp - 0x10], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
mov edx, eax
inc esi
cmp esi, 2
jae 0x435eb0
cmp dword [ebp - 0x30], 2
jb 0x435ee7
jmp 0x435ed7
mov dword [ebp - 0x24], edx
call fcn.0040e440
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040f9e0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], 0
cmp dword [ebp - 0x30], 2
jb 0x435ee7
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
call fcn.0040e440
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 2
jb 0x435f15
mov dword [ebp - 0x10], 0
call fcn.0040e440
push dword [ebp - 0x20]
call fcn.0040f9e0
add esp, 4
mov dword [ebp - 0x20], 0
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00436760
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x435fa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x4c7090
mov ebx, ecx
lea eax, [esi + 0x90]
mov ecx, dword fs:[0]
mov dword [esi + 0x90], ecx
mov dword fs:[0], eax
mov eax, dword [ebx]
inc eax
cmp eax, 1
ja 0x436062
push dword [ebp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
cmp dword [ebx], eax
mov edi, eax
je 0x436052
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov ecx, dword [ebx]
inc ecx
cmp ecx, 2
jb 0x436036
mov dword [esi + 4], eax
call fcn.0040e440
mov dword [esi + 0xc], ebx
push dword [ebx]
call fcn.0040f9e0
mov eax, dword [esi + 4]
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov ecx, edi
inc ecx
cmp ecx, 2
jb 0x436049
mov dword [ebx], edi
mov edi, eax
call fcn.0040e440
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
lea eax, [edi + 1]
cmp eax, 1
ja 0x43607e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x436067
mov eax, 0x4df
mov ecx, dword [esi + 0x90]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
cmp dword [ebp + 8], 4
xorps xmm0, xmm0
mov dword [esi + 8], 0
movaps xmmword [esi + 0x70], xmm0
movaps xmmword [esi + 0x60], xmm0
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
movaps xmmword [esi + 0x10], xmm0
ja case.default.0x4360c1
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 0xc8
xor ebx, ebx
xor eax, eax
xor edx, edx
jmp dword [ecx*4 + 0x66063c]
mov ebx, 0x400
mov dword [esi + 0x20], 0x400
mov eax, 0x27
mov dword [esi + 8], 0x27
mov ecx, eax
or ebx, 8
or eax, 0xd8
or ecx, 0x10
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], 1
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov edx, ebx
mov ebx, dword [esi + 4]
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x436118
or edx, 0x100
mov dword [esi + 0x20], edx
mov dword [esi + 0x70], eax
or edx, 0x2000
lea eax, [esi + 0x10]
mov dword [esi + 0x20], edx
push 0x70
push eax
push 9
push edi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x43605a
mov eax, dword [ebp + 0x10]
not eax
and ebx, eax
lea eax, [esi + 8]
mov dword [esi + 8], ebx
push 4
push eax
push 4
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x43605a
test byte [esi + 8], 1
je 0x436193
mov edi, dword [0x6d1ebc]
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [edi + 0x58]
mov dword [esi + 0x98], 0
mov byte [esi + 4], al
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 4], 0
mov eax, dword [esi + 0xc]
je 0x4361a4
xor eax, eax
jmp 0x436067
mov eax, 0xa0
jmp 0x436067
mov dword [esi + 0x98], 0xffffffff
push eax
call fcn.004361f0
add esp, 4
test eax, eax
jne 0x436067
jmp 0x436193
Function at 0x4366d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov dword [ecx], 0
mov esi, ecx
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jae 0x4366f8
cmp dword [esi], ebx
jne 0x436701
jmp 0x43671b
call fcn.0040e440
cmp dword [esi], ebx
je 0x43671b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x436727
cmp edi, 2
jae 0x436747
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.0040e440
push dword [esi]
call fcn.0040f9e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp edi, 2
jb 0x436714
mov dword [esi], ebx
mov edi, eax
call fcn.0040e440
mov eax, edi
jmp 0x436714
Function at 0x438e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x6ccc30]
mov edi, 0x4df
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
jne 0x438f4b
mov ebx, dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
test ebx, ebx
je 0x438f2f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push 2
push 0
push 0
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x438f43
mov ebx, dword [ebp - 0x14]
cmp dword [esi + 0x30], ebx
je 0x438f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x30]
mov edi, eax
inc ecx
cmp ecx, 2
jb 0x438f10
call fcn.0040e440
push dword [esi + 0x30]
call fcn.0040f9e0
add esp, 4
mov dword [esi + 0x30], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x438f20
mov dword [esi + 0x30], ebx
call fcn.0040e440
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov byte [esi + 0x38], 1
jmp 0x438f4b
lea eax, [ebp - 0x14]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x438ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x439990
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c1d30
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
cmp byte [ecx + 0x38], 0
je 0x439a07
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x24], ecx
mov eax, dword [ecx + 0x30]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x10], 0
push ecx
push 2
push eax
call fcn.004398a0
add esp, 0xc
mov edx, dword [ebp - 0x78]
test eax, eax
je 0x439a11
test edx, edx
je 0x439b10
push edx
mov esi, eax
call fcn.005db8b4
mov eax, esi
add esp, 4
jmp 0x439b10
mov eax, 0x3f0
jmp 0x439b10
xor eax, eax
test edx, edx
je 0x439b10
cmp dword [edx], 0
je 0x439b05
mov eax, dword [ebp - 0x24]
xor esi, esi
mov dword [ebp - 0x20], edx
add eax, 0x18
mov dword [ebp - 0x2c], eax
jmp 0x439a56
push 0x44
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.0061e340
add esp, 0xc
add dword [esi + 0x1c], 0x44
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
inc esi
cmp esi, dword [edx]
jae 0x439b05
test dword [edx + esi*8 + 8], 0xc0000020
jne 0x439a4d
cmp dword [ebp + 8], 0
mov dword [ebp - 0x28], esi
je 0x439ad0
xor edi, edi
nop dword [eax + eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
sub eax, ecx
sar eax, 2
imul eax, eax, 0xf0f0f0f1
cmp edi, eax
jae 0x439ad0
mov eax, edi
mov dword [ebp - 0x30], edi
shl eax, 6
lea eax, [eax + edi*4]
add ecx, eax
mov eax, dword [edx + esi*8 + 4]
mov dword [ebp - 0x34], eax
call fcn.0040d830
push dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
inc edi
test eax, eax
je 0x439a70
jmp 0x439a4d
mov eax, dword [edx + esi*8 + 4]
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x78]
push eax
call fcn.0040d3c0
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jne 0x439a34
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x78]
push edx
push eax
call fcn.00439410
jmp 0x439a47
push edx
call fcn.005db8b4
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x43b7a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c1d20
lea eax, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
cmp byte [ecx + 0x38], 0
je 0x43b7f6
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 2
push eax
call fcn.00439f10
test eax, eax
je 0x43b800
mov ecx, dword [ebp - 0x28]
jmp 0x43b933
mov eax, 0x3f0
jmp 0x43b962
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 2
mov dword [ebp - 0x30], ecx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x43b85a
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x43b865
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov dword [ebp - 0x24], 0
cmp edx, 2
jb 0x43b851
mov dword [ebp - 0x2c], eax
call fcn.0040e440
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x43b86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43b930
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x38]
push 0
push 0
push 0xf01ff
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43b907
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx], edx
mov dword [ebp - 0x20], edx
je 0x43b90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
mov edx, eax
inc esi
cmp esi, 2
jb 0x43b8e3
mov dword [ebp - 0x2c], edx
call fcn.0040e440
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040f9e0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], 0
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 2
jb 0x43b8fc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [ecx], eax
call fcn.0040e440
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x43b90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
je 0x43b930
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
call fcn.0040e440
push dword [ebp - 0x24]
call fcn.0040f9e0
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [ebp - 0x30]
mov edx, ecx
inc edx
cmp edx, 2
jb 0x43b962
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], 1
call fcn.0040e440
push dword [ebp - 0x30]
call fcn.0040f9e0
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x43c350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jae 0x43c372
cmp dword [esi], ebx
jne 0x43c37b
jmp 0x43c395
call fcn.0040e440
cmp dword [esi], ebx
je 0x43c395
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x43c3a1
cmp edi, 2
jae 0x43c3c1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.0040e440
push dword [esi]
call fcn.0040f9e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp edi, 2
jb 0x43c38e
mov dword [esi], ebx
mov edi, eax
call fcn.0040e440
mov eax, edi
jmp 0x43c38e
Function at 0x43de10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x6ccc30]
mov edi, dword [ebp + 0x10]
xor eax, ebp
test edi, edi
mov dword [esp + 0x18], eax
je 0x43df33
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [edi], 0
test ecx, ecx
je 0x43df35
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
push 2
push 0xc
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x43df28
mov esi, dword [esp + 0xc]
add esi, 8
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test eax, eax
je 0x43df28
push 2
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x43df28
cmp dword [esp + 8], 0
je 0x43df22
xor edi, edi
jmp 0x43dece
mov eax, dword [esp + 4]
movzx ecx, word [esi + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x43df17
mov eax, dword [esp + 8]
inc edi
cmp edi, eax
jae 0x43df1b
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x43df17
mov esi, dword [esp + 4]
test esi, esi
je 0x43df17
cmp byte [esi], 0
mov eax, esi
jne 0x43deb0
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.0040d830
push eax
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43dec5
jmp 0x43deac
mov eax, dword [esp + 8]
cmp edi, eax
mov edi, dword [ebp + 0x10]
jne 0x43df28
mov dword [edi], ebx
mov bl, 1
jmp 0x43df35
test ebx, ebx
je 0x43df33
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret