joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ff50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100ab008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x244]
call fcn.10004c70
push 0x20c
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1003fff2
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ffd0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.100057c0
cmp dword [ebp - 0x234], 0
je 0x100400b3
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.100301d0
mov byte [ebp - 4], 1
call fcn.10072770
test al, al
je 0x1004003d
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1004003d
cmp dword [ebp - 0x220], 0
jne 0x1004003d
lea ecx, [ebp - 0x220]
push ecx
call eax
push str.temppmdata.dat
lea ecx, [ebp - 0x274]
call fcn.10005770
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x25c]
call fcn.1006c060
add esp, 4
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.10004be0
lea ecx, [ebp - 0x25c]
call fcn.1006dca0
test al, al
je 0x10040095
lea ecx, [ebp - 0x25c]
call fcn.10074e10
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.10004be0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.10030430
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret
Function at 0x10056090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100ab008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x244]
call fcn.10004c70
push 0x20c
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10056132
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056110
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.100057c0
cmp dword [ebp - 0x234], 0
je 0x100561f3
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.100301d0
mov byte [ebp - 4], 1
call fcn.10072770
test al, al
je 0x1005617d
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1005617d
cmp dword [ebp - 0x220], 0
jne 0x1005617d
lea ecx, [ebp - 0x220]
push ecx
call eax
push str.Temp_fmdata.dat
lea ecx, [ebp - 0x274]
call fcn.10005770
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x25c]
call fcn.1006c060
add esp, 4
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.10004be0
lea ecx, [ebp - 0x25c]
call fcn.1006dca0
test al, al
je 0x100561d5
lea ecx, [ebp - 0x25c]
call fcn.10074e10
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.10004be0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.10030430
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret
Function at 0x10058df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100856f0
mov eax, dword fs:[0]
push eax
mov eax, 0x494c
call fcn.1007d410
mov eax, dword [0x100ab008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
push 0x4928
lea eax, [ebp - 0x4958]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x4928
lea eax, [ebp - 0x4958]
mov dword [ebp - 0x14], 0
push eax
push 2
mov edx, 0x6b
lea ecx, [ebp - 0x14]
call fcn.1005ef10
add esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
mov dword [edx], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [esi + 8]
push 9
call fcn.10061910
cmp dword [ebp - 0x18], 0
jne 0x10058f3d
cmp dword [0x100ae35c], 0
je 0x10058f16
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x10058f16
cmp dword [eax + 0x58], 4
jb 0x10058f16
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c70
push 0x21
push 0x10091b88
mov byte [ebp - 4], 2
call fcn.100057c0
push 0x93
push 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
push 4
call fcn.10076760
test bl, bl
je 0x10058f0a
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004be0
push 0
push 0
push 0
push 0x10058b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10058f36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x10058fbc
cmp dword [0x100ae35c], 0
je 0x10058fba
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x10058fba
cmp dword [eax + 0x58], 4
jb 0x10058fba
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c70
push 0x21
push 0x10091ac8
mov byte [ebp - 4], 4
call fcn.100057c0
push 0x9b
push 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
push 4
call fcn.10076760
test bl, bl
je 0x10058fae
lea eax, [ebp - 0x30]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004be0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10058fde
mov dword [ebp - 4], 5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret
Function at 0x10069f50
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100ab008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1007b70a
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10069fac
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1007b6f9
add esp, 0x120
ret

Function at 0x1006c8e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f498
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ab008]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1006c91b
xor al, al
jmp 0x1006c9bf
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x1006c937
mov eax, dword [edi]
test eax, eax
je 0x1006c937
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1006c99c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1006c460
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1006c9db
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1006c994
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1006c620
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1006c9bd
mov eax, dword [edi]
test eax, eax
je 0x1006c9b6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 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 - 0x10]
xor ecx, ebp
call fcn.1007b6f9
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1006c9f3
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1006c97e
mov bl, 1
jmp 0x1006c99e
Function at 0x1006ecf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087c21
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ab008]
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, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 8
jb 0x1006ed33
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1006ed4e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x1006ed81
add eax, 2
sub ecx, 1
jne 0x1006ed40
push esi
mov ecx, edi
call fcn.10007310
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
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.1007b6f9
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1006ed4e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1006ed4e
push esi
lea ecx, [ebp - 0x28]
call fcn.10007310
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1006eda8
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1006ee22
push esi
mov ecx, edi
call fcn.10007310
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1006ee09
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006edff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006edff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1006ed64
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007b76b
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x1006ee49
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x1006ee89
cmp eax, dword [ebp - 0x34]
ja 0x1006ee89
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006ee70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100057c0
push esi
call fcn.1007bdfd
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1006ed64
Function at 0x10072420
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x100881a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ab008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp + 4]
push eax
push 0x3fe
call edi
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100724e7
lea edx, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x1007250c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007b76b
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp], esi
push eax
push ebx
call edi
test eax, eax
je 0x100724d1
cmp eax, ebx
ja 0x100724d1
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [edx + eax*2], ecx
jmp 0x10072534
mov dword [ebp - 4], 0xffffffff
mov eax, esi
test eax, eax
je 0x100724e7
push eax
call fcn.1007bdfd
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.1007b6f9
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1007263f
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x1007263f
mov word [ebp + eax + 4], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x1007261e
mov ecx, dword [ebp - 0x14]
mov ebx, 2
nop dword [eax + eax]
cmp word [edx + ebx - 2], 0
jne 0x10072612
cmp eax, edi
je 0x10072612
lea edx, [edx + eax*2]
mov dword [ebp - 0x24], 0
mov ecx, edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x20], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10072591
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.100057c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.10069b20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x100725f5
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100725eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10072639
push edx
push ecx
call fcn.1007b73a
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov edx, dword [ebp - 0x10]
mov word [ebp - 0x34], ax
lea eax, [edi + 1]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
inc edi
add ebx, 2
cmp edi, ecx
jb 0x10072550
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10072632
push esi
call fcn.1007bdfd
add esp, 4
mov al, 1
jmp 0x100724e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.1007bf23
int3
Function at 0x100741e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100ab008]
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 0x10074262
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 0x10074262
test ecx, ecx
je 0x1007425e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10074220
xor eax, eax
jmp 0x10074267
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10074271
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007b6f9
add esp, 0xc
ret 0xc
Function at 0x100747f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a8d30
push 0x1007c178
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ab008]
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 0x10074859
xor eax, eax
jmp 0x100749cf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1007499a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
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 0x1007499a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
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 0x1007499a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1007499a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007499a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1007499a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1007499a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10074983
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10074970
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10074980
jmp 0x1007499a
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.100749f6
test ebx, ebx
jne 0x100749cd
test esi, esi
je 0x100749bf
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 0x100749cd
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.1007b6f9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10074be0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100ab008]
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 edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10074c1f
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x10074c34
mov al, 1
jmp 0x10074cd9
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.10075300
test al, al
je 0x10074c7e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10074c7e
mov bl, 1
jmp 0x10074c80
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10074cc3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10074cb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10074cb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x14], 7
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.1007b6f9
mov esp, ebp
pop ebp
ret
Function at 0x10074d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ab008]
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 0x10074d36
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10074de6
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.10075300
test al, al
je 0x10074d8f
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 0x10074dd2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10074dc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10074dc8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b73a
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.1007b6f9
mov esp, ebp
pop ebp
ret