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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b70a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x479299
inc eax
mov dword [esi + 0x10], eax
jmp 0x4793ac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4792ad
mov eax, 0xffffffc7
jmp 0x4793ae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4792be
cmp dword [esi + 8], eax
jne 0x4792ad
cmp dword [esi + 8], eax
jne 0x4792d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4792d7
mov eax, 0xffffffc7
jmp 0x4793ae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4792eb
push eax
mov ecx, ebx
call fcn.00478a90
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00447200
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x47931c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00447220
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00478200
test eax, eax
mov dword [esp + 0x38], eax
je 0x47934f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4da350
call fcn.00447400
mov eax, dword [esp + 0x38]
jmp 0x4793ae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004790c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x479393
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004790e0
mov esi, eax
test esi, esi
jne 0x4793c3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004790c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x479365
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4da350
call fcn.00447400
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4da350
call fcn.00447400
mov eax, esi
jmp 0x4793ae

Function at 0x47c4d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x47c530
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x47c530
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x47c530
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x47c530
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x47c570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4826d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b76d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004b00d5
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00482070
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004b0003
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004ac8c7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004ac8c7
push 1
push 0
push 0
mov ecx, esi
call fcn.004ac86f
push 1
push 0
push 1
mov ecx, esi
call fcn.004ac86f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b0147
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x482850
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b76f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b00d5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00482070
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b0003
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x482914
cmp dword [esp + 0x40], 1
jne 0x482912
cmp ecx, eax
jge 0x482914
mov eax, ecx
cmp eax, 0xc8
jge 0x482920
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004826d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b0147
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x483090
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b7763
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004aace4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004b037d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b1899
test eax, eax
je 0x4831ac
mov ecx, dword [esp + 0x3c]
call fcn.004b03aa
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x483170
push edi
mov ecx, esi
call fcn.004ada12
mov ecx, esi
call fcn.00483310
cmp dword [esp + 0x38], 1
jne 0x4831a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004adb4d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x485bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x485bf3
push esi
call fcn.00488cc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x485bec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x485c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x485c62
mov eax, dword [esi + 8]
test eax, eax
je 0x485c17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x485c5e
cmp eax, 2
je 0x485c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x485c0a
cmp eax, 3
je 0x485c3d
cmp eax, 1
jne 0x485c0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x485c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x485c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00485ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x485c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00485ca0
add esp, 4
pop esi
ret

Function at 0x491d70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x491e13
test eax, eax
jbe 0x491e13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x491e13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x491dbe
xor esi, esi
jmp 0x491dc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x491def
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00447c00
add esi, eax
push esi
mov ebx, esi
call fcn.00447c00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x491dd0
pop ebp
test edi, edi
pop edi
jne 0x491e13
test ebx, ebx
je 0x491e13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0049a1e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x491f55
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49206d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49206d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ab136
mov esi, eax
test esi, esi
je 0x49206d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49206d
mov ecx, esi
call fcn.00491ec0
cmp edi, eax
jge 0x49206d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x491ff3
mov dword [esp + 0x34], 1
jmp 0x49204e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49206d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00491410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4abada
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4abb12
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a9b67
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a9b3f
jmp 0x4abb1e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ad1cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ad211
call fcn.004b2c84
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ad211
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ad208
xor eax, eax
jmp 0x4ad219
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ad21f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b31b4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b31e2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b3200
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b311a
jmp 0x4b3200
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b3200
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b311a
test edi, edi
mov eax, edi
jne 0x4b31ea
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.A_Wild_Native_Is_Executed_r_n
lea eax, [ebp - 0x10]
push eax
call fcn.00401050
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_NtDisplayString]
or edx, 0xffffffff
mov dword [ebp - 8], 0xff676980
mov dword [ebp - 4], edx
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.ntdll.dll_NtDelayExecution]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret 4
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x406243
pop dword [ebp - 0x18]
mov eax, 0xbbd8cefe
add eax, 0x44679345
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xd62f919e
add dword [ebp - 0x28], 0x7822b3ad
mov dword [ebp - 0x24], 0x7a39a0f4
add dword [ebp - 0x24], 0xb7f9ab51
mov dword [ebp - 0x20], 0x7ac35562
sub dword [ebp - 0x20], 0x2e771134
mov dword [ebp - 0x1c], 0x79888bfa
sub dword [ebp - 0x1c], 0x79888bfa
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x180c942
sub dword [ebp - 0x28], 0x8d0e5fec
mov dword [ebp - 0x24], 0x8b3238bb
add dword [ebp - 0x24], 0xb63a28ba
mov dword [ebp - 0x20], 0x5318668c
sub dword [ebp - 0x20], 0xefa8fa20
mov dword [ebp - 0x1c], 0x79bda016
sub dword [ebp - 0x1c], 0x79bda016
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x499f51f3
add eax, 0xb6a12f0d
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x399e7
push 0
call eax
mov ecx, 0xe5b98c48
add ecx, 0x1a46c61a
xor edi, edi
add edi, eax
mov esi, 0xf2b51979
add esi, 0xd91ca87
add esi, dword [ebp - 0x18]
mov ebx, 0x701230ff
sub ebx, 0x4579b0c
add dword [ebp - 0xc], 0xfc9801d6
mov edx, dword [esi]
xor dword [ebp - 8], ecx
add edx, ebx
xor dword [ebp - 4], 0x7ca92991
mov dword [edi], edx
sub dword [ebp - 4], 0x8510d71d
add edi, 0x5ada256a
add edi, 0xa525da9a
add esi, 0xdc2e1a64
add esi, 0x23d1e5a0
loop 0x406362
add eax, 0x8d02429a
sub eax, 0x8d01063f
xor ebx, ebx
add ebx, eax
add eax, 0x57583165
sub eax, 0x57583160
mov ecx, 0x8a2d746d
sub ecx, 0x89ed746d
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x100082c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x58], 0
mov dword [esp + 0x18], ecx
jne 0x10008481
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x58]
mov ecx, 3
cmp eax, dword [ebx + 0x5c]
jb 0x10008354
cmp dword [ebx + 0x58], 8
jae 0x100082ff
lea eax, [ecx + 5]
jmp 0x10008319
mov eax, dword [ebx + 0x58]
mul ecx
test edx, edx
ja 0x10008448
jb 0x10008317
cmp eax, 0xffffffff
ja 0x10008448
shr eax, 1
push 0x3b
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_array.h
push 0xc
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push eax
call dword [0x1012b304]
call esi
add esp, 0x14
test eax, eax
je 0x10008453
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x5c], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x54]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [ebx + 0x58], eax
test ecx, ecx
je 0x1000842b
mov eax, dword [esi + 0x1016bef0]
mov dword [ecx], eax
mov eax, dword [esi + 0x1016bef8]
add esi, 0xc
mov dword [ecx + 8], eax
mov dword [esp + 0x14], esi
cmp esi, 0x18
jb 0x100082e7
test byte [ebx + 0x60], 1
jne 0x10008481
lea esi, [ebx + 0x78]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov edx, eax
mov dword [esp + 0x14], edx
cmp edx, 0xffffffff
jne 0x100083e1
mov edx, ebx
lea ecx, [esp + 0x10]
call fcn.100078b0
test eax, eax
js 0x100083ea
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 3
call fcn.100409e0
add esp, 4
test eax, eax
js 0x100083ea
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
mov ecx, edx
lock cmpxchg dword [esi], ecx
mov esi, fcn.1003ee30
test edx, edx
je 0x100083ef
mov esi, fcn.1003ee60
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x10008401
mov ecx, ebx
call fcn.10008210
test eax, eax
js 0x1000842b
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10008481
push dword [ebx + 0x44]
mov ecx, esi
push eax
call dword [0x1012b304]
call esi
add esp, 8
test eax, eax
jne 0x10008481
mov edx, dword [ebx + 0x3c]
mov ecx, ebx
call fcn.10008210
test eax, eax
jns 0x10008481
mov ecx, dword [esp + 0x18]
xor al, al
mov dword [ecx], str..git
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1002b150
mov dword [eax], str.Out_of_memory
mov eax, dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x1012b304]
call esi
mov dword [ebx + 0x5c], 0
add esp, 4
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
jmp 0x1000842b
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x54]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x58]
pop ebx
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x100311a0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x2028
call fcn.10105da0
mov eax, dword [0x1016b440]
xor eax, esp
mov dword [esp + 0x2024], eax
push esi
mov edx, ecx
mov dword [esp + 0x10], 0
push edi
lea ecx, [esp + 0x18]
xor esi, esi
call fcn.10053030
test eax, eax
js 0x10031366
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
push 5
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, 2
je 0x10031339
cmp eax, 3
je 0x10031339
test eax, eax
je 0x10031220
push str.failed_to_get_security_information
push 2
call fcn.10028220
add esp, 8
or edi, 0xffffffff
jmp 0x1003133e
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10031245
push str.programdata_configuration_file_owner_is_unknown
push 3
call fcn.10028220
add esp, 8
or edi, 0xffffffff
jmp 0x1003133e
push 0x1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031335
push 0x16
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x10031335
lea eax, [esp + 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100312f9
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100312f9
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push 0x726
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_fs_path.c
push dword [esp + 0x14]
call dword [0x1012b304]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10031366
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10031321
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x1012b304]
call esi
add esp, 4
xor esi, esi
push str.programdata_configuration_file_owner_is_not_valid
push 3
call fcn.10028220
add esp, 8
or edi, 0xffffffff
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x1012b304]
call esi
add esp, 4
jmp 0x1003133e
push dword [esi]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100312f9
xor edi, edi
jmp 0x1003130b
xor edi, edi
jmp 0x1003133e
mov edi, 0xfffffffd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003134d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x2024]
xor ecx, esp
call fcn.10105004
add esp, 0x2028
ret
mov ecx, dword [esp + 0x202c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.10105004
add esp, 0x2028
ret
Function at 0x1003a700
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x2018
call fcn.10105da0
mov eax, dword [0x1016b440]
xor eax, esp
mov dword [esp + 0x2014], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov edx, esi
call fcn.10053030
test eax, eax
js 0x1003a768
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a768
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x1003a781
push ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1003a781
push esi
push 0x10152efc
push str.failed_to__s_hidden_bit_for__s
push 2
call fcn.10028220
add esp, 0x10
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.10105004
add esp, 0x2018
ret
mov ecx, dword [esp + 0x2018]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10105004
add esp, 0x2018
ret