joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e35
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424db1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424fa4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424fa4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424f59
jg 0x424e91
test eax, eax
je 0x424f4f
push 1
push 0x1000
call fcn.0041b838
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424eb4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424f46
push 0x8000
push ebx
call fcn.004172f8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424edd
jg 0x424ed8
cmp ecx, 0x1000
jb 0x424edd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a089
add esp, 0x10
cmp eax, 0xffffffff
je 0x424f22
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424ed8
jl 0x424f09
test ecx, ecx
jne 0x424eca
push dword [ebp - 0xc]
push ebx
call fcn.004172f8
push esi
call fcn.00417e0d
add esp, 0xc
xor ebx, ebx
jmp 0x424fb2
cmp byte [edi + 0x24], 0
je 0x424f39
cmp dword [edi + 0x20], 5
jne 0x424f39
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424f44
mov ebx, dword [edi + 0x18]
jmp 0x424f46
xor ebx, ebx
push esi
call fcn.00417e0d
pop ecx
jmp 0x424fb2
test ecx, ecx
jg 0x424f1b
jl 0x424f59
test eax, eax
jae 0x424f1b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041954a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424f79
cmp byte [edi + 0x1c], 0
je 0x424f1b
jmp 0x424faa
push ebx
call fcn.00415937
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424fb2
cmp byte [edi + 0x1c], 0
je 0x424faf
mov ebx, dword [edi + 0x18]
jmp 0x424fb2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041954a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401680
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x506290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.004ea7b5
push ebx
push 0x2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.004eac8b
mov esi, eax
cmp esi, 0xffffffff
je 0x40172a
inc esi
push 3
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004e370d
mov ecx, dword [esp + 0x14]
push 0x53d3b0
push ecx
mov byte [esp + 0x28], 1
call fcn.0043521d
add esp, 8
cmp eax, ebx
je 0x401718
push esi
push 0x2d
lea ecx, [esp + 0x18]
call fcn.004eac8b
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x20], bl
call fcn.004ea741
cmp esi, 0xffffffff
jne 0x4016c9
jmp 0x40172a
lea ecx, [esp + 0x14]
mov edi, 1
mov byte [esp + 0x20], bl
call fcn.004ea741
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ea741
cmp edi, ebx
jne 0x401777
lea esi, [ebp + 0xd0]
mov ecx, esi
call fcn.004086e0
mov edi, eax
cmp edi, ebx
jne 0x401777
mov ecx, esi
call fcn.00412220
test eax, eax
jne 0x401777
mov ecx, esi
call fcn.00412290
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x401790
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5062a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
call fcn.004ea7b5
push str._NotFirst
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.004e390d
or ecx, 0xffffffff
cmp eax, ecx
mov dword [esp + 0xc], ecx
lea ecx, [esp]
je 0x4017f4
call fcn.004ea741
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.004ea741
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401810
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5062e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.004ea7b5
push 0
push 0x2d
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call fcn.004eac8b
mov esi, eax
cmp esi, 0xffffffff
je 0x4018a3
inc esi
push 3
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.004e370d
mov ecx, dword [esp + 0xc]
push 0x53d3cc
push ecx
mov byte [esp + 0x24], 1
call fcn.0043521d
add esp, 8
test eax, eax
je 0x4018c8
push esi
push 0x2d
lea ecx, [esp + 0x10]
call fcn.004eac8b
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x1c], 0
call fcn.004ea741
cmp esi, 0xffffffff
jne 0x401855
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004ea741
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
add esi, 3
lea edx, [esp + 4]
push esi
push edx
lea ecx, [esp + 0x10]
call fcn.004e36ea
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 2
call fcn.004e3f30
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401945
mov ax, word [eax]
cmp ax, 0x22
jne 0x401945
push 0x22
lea ecx, [esp + 8]
call fcn.004e3eed
push 1
push 0x22
lea ecx, [esp + 0xc]
call fcn.004eac8b
cmp eax, 0xffffffff
je 0x401945
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
call fcn.004e381f
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x20], 3
call fcn.004ea888
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call fcn.004ea741
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call fcn.004ea741
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004ea741
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x401ac0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x506318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
call fcn.004ea7b5
push str._Unpack
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.004e390d
or ecx, 0xffffffff
cmp eax, ecx
mov dword [esp + 0xc], ecx
lea ecx, [esp]
je 0x401b24
call fcn.004ea741
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.004ea741
mov ecx, dword [esp + 4]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x506398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push 0x556998
lea ecx, [esp + 8]
call fcn.004ea7b5
lea eax, [esp + 4]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.00401810
test eax, eax
pop esi
je 0x401ecc
push 0x556998
lea ecx, [esp + 8]
call fcn.004ea7b5
mov eax, dword [esp]
mov byte [esp + 0x14], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401ea0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ea0
test al, 0x10
je 0x401ea0
push 0x27
lea ecx, [esp + 4]
call fcn.004e3dfc
lea ecx, [esp]
push str.AKernel.log
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.004ea9e6
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call fcn.004ea888
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call fcn.004ea741
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x401eb0
push 2
jmp 0x401eb2
push 3
push 3
call sym.Kernel.exe_void___cdecl_Dll_SetLogOutput_unsigned_long_int__unsigned_long_int__unsigned_short_int_const__
add esp, 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004ea741
jmp 0x401eda
push 0
push 0
push 0
call sym.Kernel.exe_void___cdecl_Dll_SetLogOutput_unsigned_long_int__unsigned_long_int__unsigned_short_int_const__
add esp, 0xc
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x401f00
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5063d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x10]
call fcn.004ea7b5
xor ebx, ebx
lea ecx, [esp + 0xc]
push ebx
push 0x2d
mov dword [esp + 0x28], ebx
call fcn.004eac8b
mov esi, eax
cmp esi, 0xffffffff
je 0x401f90
inc esi
push 1
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004e370d
mov ecx, dword [esp + 0x10]
push 0x53d468
push ecx
mov byte [esp + 0x28], 1
call fcn.0043521d
add esp, 8
cmp eax, ebx
je 0x401fb6
push esi
push 0x2d
lea ecx, [esp + 0x14]
call fcn.004eac8b
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x20], bl
call fcn.004ea741
cmp esi, 0xffffffff
jne 0x401f43
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ea741
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
inc esi
lea edx, [esp + 8]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.004e36ea
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.004e3f30
mov eax, dword [esp + 8]
cmp dword [eax - 8], ebx
je 0x40202f
mov ax, word [eax]
cmp ax, 0x22
jne 0x40202f
push 0x22
lea ecx, [esp + 0xc]
call fcn.004e3eed
push 1
push 0x22
lea ecx, [esp + 0x10]
call fcn.004eac8b
cmp eax, 0xffffffff
je 0x40202f
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
call fcn.004e381f
mov ecx, dword [esp + 0x28]
push eax
mov byte [esp + 0x24], 3
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call fcn.004ea741
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004ea741
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.004ea741
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x18]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x404c30
Capabilities:
Create process on windows

Disassembly:
push ecx
mov dword [esp], 0
call fcn.0047a5d0
test eax, eax
jne 0x404c73
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ecx
ret
call fcn.00404ce0
test eax, eax
je 0x404cc4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [0x5569c4]
test eax, eax
je 0x404cc4
mov eax, 1
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
xor eax, eax
pop ecx
ret
Function at 0x405500
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5068e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x543c98]
mov dword [esp], eax
mov dword [eax + 0x28], ecx
mov edx, dword [0x543c98]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 0x2c], edx
mov byte [esp + 0xc], 1
mov dword [eax + 0x20], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword [eax], 0x511f80
mov dword [esp + 0xc], 0xffffffff
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4055f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x506920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x543c98]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 8]
push ecx
push str.softwareTEC_sOcular.3Agent
push edx
mov dword [esp + 0x54], 0
call fcn.004e3c81
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.0044c9c0
mov eax, dword [esp + 8]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.0044cae0
test eax, eax
jne 0x405675
mov ecx, dword [esp + 8]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.0044cb50
mov edx, dword [esi + 8]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.0042baaf
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push 0x20
push ecx
mov eax, dword [eax + 4]
push 0x53e0e8
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.0044dcf0
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x48], 0
call fcn.0044ca60
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4058c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x506a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x543c98]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], eax
mov byte [esp + 0x4c], 1
mov dword [esp + 0x2c], eax
mov byte [esp + 0x4c], 2
mov dword [esp + 0x30], eax
mov byte [esp + 0x4c], 3
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x4c], 5
mov dword [esp + 0x3c], eax
mov byte [esp + 0x4c], 6
mov dword [esp + 0x40], eax
mov byte [esp + 0x4c], 7
mov word [esp + 0x10], si
mov word [esp + 0x12], si
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], 8
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
push str.winoav3.dll
push eax
mov byte [esp + 0x54], 9
call fcn.0041cab0
push eax
lea ecx, [esp + 0x18]
push 0x53e100
push ecx
call fcn.004e3c81
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push esi
push edx
push eax
call fcn.00464680
mov ebp, eax
add esp, 0x20
cmp ebp, esi
je 0x40599b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 8
call fcn.004ea741
lea ecx, [esp + 0x40]
mov dword [esp + 0x4c], 0x10
call fcn.004ea741
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 0xf
call fcn.004ea741
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0xe
call fcn.004ea741
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xd
call fcn.004ea741
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 0xc
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 0xb
call fcn.004ea741
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0xa
call fcn.004ea741
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x44]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x405ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x506b10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x543c98]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], eax
mov byte [esp + 0x4c], 1
mov dword [esp + 0x2c], eax
mov byte [esp + 0x4c], 2
mov dword [esp + 0x30], eax
mov byte [esp + 0x4c], 3
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x4c], 5
mov dword [esp + 0x3c], eax
mov byte [esp + 0x4c], 6
mov dword [esp + 0x40], eax
mov byte [esp + 0x4c], 7
mov word [esp + 0x10], si
mov word [esp + 0x12], si
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], 8
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
push str.bakoav3.sys
push eax
mov byte [esp + 0x54], 9
call fcn.0041cae0
push eax
lea ecx, [esp + 0x18]
push 0x53e100
push ecx
call fcn.004e3c81
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push esi
push edx
push eax
call fcn.00464680
mov ebp, eax
add esp, 0x20
cmp ebp, esi
je 0x405bbb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 8
call fcn.004ea741
lea ecx, [esp + 0x40]
mov dword [esp + 0x4c], 0x10
call fcn.004ea741
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c], 0xf
call fcn.004ea741
lea ecx, [esp + 0x38]
mov byte [esp + 0x4c], 0xe
call fcn.004ea741
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xd
call fcn.004ea741
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 0xc
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 0xb
call fcn.004ea741
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0xa
call fcn.004ea741
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x44]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x406b60
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor esi, esi
xor ebp, ebp
xor ebx, ebx
cmp edi, esi
je 0x406c41
xor eax, eax
push 2
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push 0xc
push ecx
mov dword [esp + 0x24], eax
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 8
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x406c48
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x406c4d
test eax, eax
jbe 0x406c4d
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x406c00
mov eax, dword [esp + 0x20]
test byte [eax + 1], 0x10
jne 0x406c07
add eax, 8
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x406c0e
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x406bbf
jmp 0x406c4d
mov ebx, 3
jmp 0x406c4d
mov ebx, 4
jmp 0x406c4d
mov eax, dword [esp + 0x28]
mov ebp, 1
cmp eax, 0x10000000
jne 0x406c4d
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x406c38
mov ecx, dword [eax + 4]
and ecx, 0x1f0000
cmp ecx, 0x1f0000
je 0x406c4d
mov ebx, 5
xor ebp, ebp
jmp 0x406c4d
mov ebx, 1
jmp 0x406c4d
mov ebx, 2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push esi
push edx
push eax
push edi
push ebx
push ebp
push str.CKSecurity::IsInAcl_____Inner___ret:__d___myerror:__d___Acl:__08x___Sid:__08x___Mask:__08x___Index:__d_
push str.Security
push 0xf
push 0x556c74
call fcn.00427090
add esp, 0x28
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40db80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
push edi
push 0x540d58
mov ecx, esi
xor ebp, ebp
call fcn.00456a60
or ebx, 0xffffffff
cmp eax, ebx
je 0x40dd19
mov eax, dword [esi]
push 0x540d58
mov ecx, esi
mov ebp, ebx
mov edi, dword [eax - 8]
call fcn.00456a60
sub edi, eax
lea ecx, [esp + 0x24]
dec edi
push edi
push ecx
mov ecx, esi
call fcn.00457de0
mov edi, dword [esp + 0x28]
push eax
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.004559d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.00455820
push 0x540d58
mov ecx, esi
call fcn.00456a60
lea edx, [esp + 0x28]
push eax
push edx
mov ecx, esi
call fcn.00457ff0
push eax
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.004559d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
call fcn.00455820
push 0x540d48
mov ecx, esi
call fcn.00456a60
cmp eax, ebx
je 0x40dca7
push 0x540d48
mov ecx, edi
call fcn.00456a60
cmp eax, ebx
je 0x40dca7
push 0x540d4c
mov ecx, esi
call fcn.00456a60
mov ecx, dword [esp + 0x2c]
inc eax
neg eax
sbb eax, eax
push 0x540d48
add eax, 4
mov dword [ecx], eax
mov ecx, esi
call fcn.00456a60
lea edx, [esp + 0x2c]
push eax
push edx
mov ecx, esi
call fcn.00457ff0
push eax
mov ecx, esi
mov dword [esp + 0x20], 2
call fcn.004559d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
call fcn.00455820
jmp 0x40dd25
push 0x540d3c
mov ecx, esi
call fcn.00456a60
cmp eax, ebx
je 0x40dd25
push 0x540d3c
mov ecx, edi
call fcn.00456a60
cmp eax, ebx
je 0x40dd25
push 0x540d4c
mov ecx, esi
call fcn.00456a60
mov ecx, dword [esp + 0x2c]
inc eax
neg eax
sbb eax, eax
push 0x540d3c
add eax, 2
mov dword [ecx], eax
mov ecx, esi
call fcn.00456a60
lea edx, [esp + 0x2c]
push eax
push edx
mov ecx, esi
call fcn.00457ff0
push eax
mov ecx, esi
mov dword [esp + 0x20], 3
call fcn.004559d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
call fcn.00455820
jmp 0x40dd25
mov edi, dword [esp + 0x28]
push esi
mov ecx, edi
call fcn.004559d0
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040d9d0
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10