joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
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 + 0xc], 0
call fcn.0050971d
mov edi, eax
add esp, 4
test edi, edi
je 0x45e9cd
push 1
mov dword [ebp - 4], 0
call fcn.00507973
add esp, 4
mov dword [edi + 4], eax
jmp 0x45e9cf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004523b0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x45ea31
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x45ea31
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x45ea54
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x45ea77
cmp byte [ebp + 0xc], 0
je 0x45ea63
push esi
call fcn.00507da3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x45ea83
mov esi, str.ios_base::badbit_set
jmp 0x45ea93
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0045eb70
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00453330
push 0x595558
lea eax, [ebp - 0x30]
push eax
call fcn.005211b7
int3
Function at 0x45ee10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x45ee40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45ee7c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x45ee7c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x45ef61
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x45eea4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45eed7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0052d99a
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x45ef61
cmp eax, 1
jle 0x45ef34
cmp eax, 3
jne 0x45ef61
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00451720
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x45ef51
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053233b
add esp, 0x10
cmp edi, eax
jne 0x45ef61
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x45ee67
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050970c
mov esp, ebp
pop ebp
ret 4
Function at 0x45fbb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x45fbd4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fca0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x45fbf5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x45fbf7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x45fc7f
jg 0x45fc0a
test esi, esi
je 0x45fc7f
test ecx, ecx
jl 0x45fc4c
jg 0x45fc14
test eax, eax
je 0x45fc4c
cmp ebx, ecx
jg 0x45fc26
jl 0x45fc1e
cmp esi, eax
jae 0x45fc26
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00521230
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x45fc52
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x45fc7f
jg 0x45fc5c
test esi, esi
je 0x45fc7f
cmp dword [edi + 0x4c], 0
je 0x45fc7f
mov ecx, edi
call fcn.0045e0f0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0052dc82
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45fd70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x45fd94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fe50
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x45fdb5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x45fdb7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x45fe34
jg 0x45fdca
test esi, esi
je 0x45fe34
test ecx, ecx
jl 0x45fe0e
jg 0x45fdd4
test eax, eax
je 0x45fe0e
cmp edi, ecx
jg 0x45fde6
jl 0x45fdde
cmp esi, eax
jae 0x45fde6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00521230
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x45fe11
mov edx, dword [ebp + 8]
test edi, edi
jl 0x45fe34
jg 0x45fe1b
test esi, esi
je 0x45fe34
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x45fe34
push eax
push esi
push 1
push edx
call fcn.0053233b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
nop
mov ebx, dword [esi]
xor edx, edx
cmp ebx, dword [esi + 4]
jae 0x468bdd
mov al, byte [ebx]
lea ecx, [ebx + 1]
movzx edx, al
test al, al
jle 0x468bb9
mov dword [esi], ecx
jmp 0x468bf6
cmp ecx, dword [esi + 4]
jae 0x468bdd
movzx ecx, byte [ecx]
mov eax, ecx
not eax
and eax, edx
cmp eax, 0x80
jb 0x468bdd
lea eax, [ebx + 2]
shl ecx, 7
add edx, 0xffffff80
mov dword [esi], eax
add edx, ecx
jmp 0x468bf6
push edx
mov ecx, esi
call fcn.0049f370
mov edx, eax
lea ecx, [edx - 1]
cmp ecx, 0x3fff
jae case.0x468c08.18
mov ecx, edx
shr ecx, 3
dec ecx
cmp ecx, 0x102
ja case.0x468c08.18
jmp dword [ecx*4 + 0x46a764]
cmp edx, 0xa
jne case.0x468c08.18
mov eax, dword [edi + 8]
cmp eax, 0x5be7b0
jne 0x468c32
push 0x5be7b0
lea ecx, [edi + 8]
call fcn.00465430
mov eax, dword [edi + 8]
push eax
push esi
call fcn.004c3360
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [edi + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x468c52
mov eax, dword [eax]
push str.asus.fan.Fan_Control.Version
push 0
push ecx
push eax
call fcn.004c3640
add esp, 0x10
jmp 0x46a745
cmp edx, 0x10
jne case.0x468c08.18
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x1a
jne case.0x468c08.18
mov eax, dword [edi + 0xc]
cmp eax, 0x5be7b0
jne 0x468ca3
push 0x5be7b0
lea ecx, [edi + 0xc]
call fcn.00465430
mov eax, dword [edi + 0xc]
push eax
push esi
call fcn.004c3360
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x468cc3
mov eax, dword [eax]
push str.asus.fan.Fan_Control.FanName
push 0
push ecx
push eax
call fcn.004c3640
add esp, 0x10
jmp 0x46a745
cmp edx, 0x20
jne case.0x468c08.18
lea eax, [ebp + 8]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp + 8]
mov dword [edi + 0x14], eax
jmp 0x468ba0
cmp edx, 0x28
jne case.0x468c08.18
lea eax, [edi + 0x18]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x30
jne case.0x468c08.18
lea eax, [edi + 0x1c]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x38
jne case.0x468c08.18
lea eax, [ebp - 4]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 4]
mov dword [edi + 0x20], eax
jmp 0x468ba0
cmp edx, 0x40
jne case.0x468c08.18
lea eax, [edi + 0x24]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x48
jne case.0x468c08.18
lea eax, [edi + 0x74]
push eax
push esi
call fcn.004619c0
jmp 0x46a742
cmp edx, 0x50
jne case.0x468c08.18
lea eax, [ebp - 8]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 8]
mov dword [edi + 0x28], eax
jmp 0x468ba0
cmp edx, 0x58
jne case.0x468c08.18
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x2c], eax
invalid
Function at 0x468c0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
nop
mov ebx, dword [esi]
xor edx, edx
cmp ebx, dword [esi + 4]
jae 0x468bdd
mov al, byte [ebx]
lea ecx, [ebx + 1]
movzx edx, al
test al, al
jle 0x468bb9
mov dword [esi], ecx
jmp 0x468bf6
cmp ecx, dword [esi + 4]
jae 0x468bdd
movzx ecx, byte [ecx]
mov eax, ecx
not eax
and eax, edx
cmp eax, 0x80
jb 0x468bdd
lea eax, [ebx + 2]
shl ecx, 7
add edx, 0xffffff80
mov dword [esi], eax
add edx, ecx
jmp 0x468bf6
push edx
mov ecx, esi
call fcn.0049f370
mov edx, eax
lea ecx, [edx - 1]
cmp ecx, 0x3fff
jae case.0x468c08.18
mov ecx, edx
shr ecx, 3
dec ecx
cmp ecx, 0x102
ja case.0x468c08.18
jmp dword [ecx*4 + 0x46a764]
cmp edx, 0xa
jne case.0x468c08.18
mov eax, dword [edi + 8]
cmp eax, 0x5be7b0
jne 0x468c32
push 0x5be7b0
lea ecx, [edi + 8]
call fcn.00465430
mov eax, dword [edi + 8]
push eax
push esi
call fcn.004c3360
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [edi + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x468c52
mov eax, dword [eax]
push str.asus.fan.Fan_Control.Version
push 0
push ecx
push eax
call fcn.004c3640
add esp, 0x10
jmp 0x46a745
cmp edx, 0x10
jne case.0x468c08.18
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x1a
jne case.0x468c08.18
mov eax, dword [edi + 0xc]
cmp eax, 0x5be7b0
jne 0x468ca3
push 0x5be7b0
lea ecx, [edi + 0xc]
call fcn.00465430
mov eax, dword [edi + 0xc]
push eax
push esi
call fcn.004c3360
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x468cc3
mov eax, dword [eax]
push str.asus.fan.Fan_Control.FanName
push 0
push ecx
push eax
call fcn.004c3640
add esp, 0x10
jmp 0x46a745
cmp edx, 0x20
jne case.0x468c08.18
lea eax, [ebp + 8]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp + 8]
mov dword [edi + 0x14], eax
jmp 0x468ba0
cmp edx, 0x28
jne case.0x468c08.18
lea eax, [edi + 0x18]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x30
jne case.0x468c08.18
lea eax, [edi + 0x1c]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x38
jne case.0x468c08.18
lea eax, [ebp - 4]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 4]
mov dword [edi + 0x20], eax
jmp 0x468ba0
cmp edx, 0x40
jne case.0x468c08.18
lea eax, [edi + 0x24]
push eax
push esi
call fcn.00461980
jmp 0x46a742
cmp edx, 0x48
jne case.0x468c08.18
lea eax, [edi + 0x74]
push eax
push esi
call fcn.004619c0
jmp 0x46a742
cmp edx, 0x50
jne case.0x468c08.18
lea eax, [ebp - 8]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 8]
mov dword [edi + 0x28], eax
jmp 0x468ba0
cmp edx, 0x58
jne case.0x468c08.18
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00461980
add esp, 8
test al, al
je 0x46a74d
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x2c], eax
invalid
Function at 0x46f0f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e9cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5a4ca4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5be300]
test eax, eax
jne 0x46f1aa
push 0x18
call fcn.0050971d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x46f1a0
push str.ROG_PUMP_MUTEX
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
mov word [esi + 0x13], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
push esi
mov byte [esi + 0x10], 0
push 0
mov byte [esi + 0x11], 0
push 0x46fa10
mov byte [esi + 0x12], 1
call fcn.00531d5f
add esp, 0xc
nop dword [eax]
mov al, byte [esi + 0x12]
test al, al
jne 0x46f190
mov ecx, esi
call fcn.0046eea0
jmp 0x46f1a2
xor esi, esi
mov dword [0x5be300], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x470e90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x470990
push 0
push 0
mov byte [esi + 8], 0
call fcn.00531def
add esp, 0x18
mov dword [esi], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x471ea6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00471c10
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x471e9e
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x471f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x471f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x471f76
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00471c10
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x471f6e
xor eax, eax
test eax, eax
pop edi
sete al
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x472030
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472110
test al, 0x10
je 0x472110
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push eax
push 1
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x472110
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], esi
call edi
test eax, eax
je 0x4720c9
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x472107
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
or esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050970c
mov esp, ebp
pop ebp
ret
Function at 0x472130
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5a4ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472257
test al, 0x10
je 0x472257
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x472257
push dword [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x47224e
mov ecx, dword [ebp - 0x10]
push esi
xor esi, esi
cmp ax, word [ecx + 4]
jae 0x47222f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x472222
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x472222
push esi
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x10]
inc esi
movzx eax, word [ecx + 4]
cmp esi, eax
jl 0x4721f1
pop edi
push 0
push ecx
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop ebx
call fcn.0050970c
mov esp, ebp
pop ebp
ret
Function at 0x474e20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ef43
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5a4ca4]
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 eax, ecx
mov dword [ebp - 0x7c], eax
lea esi, [eax + 0x30]
xor ebx, ebx
mov dword [ebp - 0x80], ebx
push esi
mov dword [ebp - 0x88], esi
call fcn.005072f5
add esp, 4
test eax, eax
je 0x474e77
push eax
call fcn.00507424
add esp, 4
push 0x64
mov dword [ebp - 4], 0
call fcn.0050971d
mov edi, eax
add esp, 4
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x474fa3
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_c4a36e7366b61b94062b933b1305c053___void___.0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [edi + 0xc]
mov dword [ebp - 4], 3
push 2
push eax
call fcn.005072d4
lea eax, [edi + 0x3c]
push eax
call fcn.0050873f
add esp, 0xc
cmp dword [ebp - 0x78], 0
jl 0x474f9e
jg 0x474f01
cmp dword [ebp - 0x74], 0
jbe 0x474f9e
lea eax, [ebp - 0x68]
mov byte [edi], 1
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x474f2d
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x94]
call fcn.00473170
cmp dword [edi + 8], 0
mov ecx, eax
jne 0x475043
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [edi + 8], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
cmp dword [ebp - 0x90], 0
jne 0x475048
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x474fa5
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x44], 0
jmp 0x474fa5
mov byte [edi], 0
jmp 0x474fa5
xor edi, edi
or ebx, 2
test bl, 1
je 0x474fcc
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x474fcc
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x84]
add eax, 0x110
cmp eax, ecx
je 0x474ff2
mov ebx, dword [eax]
mov dword [eax], edi
test ebx, ebx
je 0x475008
mov ecx, ebx
call fcn.00481de0
push 0x64
push ebx
jmp 0x475000
test edi, edi
je 0x475008
mov ecx, edi
call fcn.00481de0
push 0x64
push edi
call fcn.0050974d
add esp, 8
push esi
mov dword [ebp - 4], 9
call fcn.0050731a
add esp, 4
test eax, eax
je 0x475025
push eax
call fcn.00507424
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.0050970c
mov esp, ebp
pop ebp
ret 8
call fcn.005326a5
call fcn.005326a5
int3