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

Disassembly:
push 0xffffffffffffffff
push 0x1009be56
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
mov eax, dword [esp + 0x678]
mov ebp, dword [esp + 0x67c]
push 0x206
xor ebx, ebx
lea edx, [esp + 0x7a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], eax
xor edi, edi
mov word [esp + 0x80], cx
call fcn.10079c60
xor eax, eax
add esp, 0xc
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x670], ebx
push 0x104
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x74]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054950
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
lea esi, [esp + 0x5c]
call fcn.10007450
lea edx, [esp + 0x30]
push edx
mov eax, esi
push eax
mov ecx, 2
xor edx, edx
call fcn.10006760
mov byte [esp + 0x670], 1
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x670], bl
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x100549b2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
cmp dword [esp + 0x70], esi
jae 0x100549d3
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10054a84
push 0x3e6
lea eax, [esp + 0x282]
xor edx, edx
push ebx
push eax
mov word [esp + 0x288], dx
call fcn.10079c60
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov esi, edi
shrd edx, eax, 0x1e
shrd esi, ecx, 0x1e
add esp, 0xc
shr eax, 0x1e
shr ecx, 0x1e
cmp dword [esp + 0x70], 8
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [ebp], edi
jae 0x10054a48
lea ebx, [esp + 0x5c]
push ecx
push esi
push eax
push edx
push ebx
push str._s__I64uGB__I64uGB
mov ecx, 0x1f4
lea ebx, [esp + 0x294]
call fcn.10001fd0
mov edx, dword [esp + 0x30]
mov ecx, ebx
push ecx
push 0x1f4
push edx
call fcn.1007925d
add esp, 0x24
mov edi, 1
xor ebx, ebx
mov esi, 8
mov dword [esp + 0x670], 0xffffffff
cmp dword [esp + 0x70], esi
jb 0x10054aa2
mov eax, dword [esp + 0x5c]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov eax, edi
mov ecx, dword [esp + 0x668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.100755ed
add esp, 0x660
ret 8
Function at 0x1005dca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009a24b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
push 0x208
xor ebx, ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x24], eax
xor ebp, ebp
call fcn.10079c60
add esp, 0xc
push 0x104
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1005ddc3
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1005dd30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.10007450
mov dword [esp + 0x24c], ebx
cmp dword [esp + 0x30], 3
mov esi, 8
jbe 0x1005dd92
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x34], esi
jae 0x1005dd72
lea eax, [esp + 0x20]
movzx ecx, word [eax]
push ecx
lea edi, [esp + 0x18]
call fcn.1005e210
test eax, eax
je 0x1005dd92
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], edx
mov dword [esp + 0x24c], 0xffffffff
cmp dword [esp + 0x34], esi
jb 0x1005ddb0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
mov eax, ebp
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100755ed
add esp, 0x23c
ret 4
Function at 0x1005e210
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x218], eax
xor eax, eax
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
cmp edi, ebp
je 0x1005e2c3
push ebx
push esi
push 0x208
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.10079c60
movzx ecx, word [esp + 0x238]
push ecx
push str.._c:
mov ecx, 0x104
lea ebx, [esp + 0x30]
call fcn.10001fd0
add esp, 0x14
push ebp
push ebp
push 3
push ebp
push 3
push 0xc0000000
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005e2bf
push ebp
lea eax, [esp + 0x10]
push eax
push 0xc
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebp
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1005e2b8
mov edx, dword [esp + 0x14]
mov ebp, 1
mov dword [edi], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebx
mov ecx, dword [esp + 0x21c]
pop ebp
xor ecx, esp
call fcn.100755ed
add esp, 0x21c
ret 4

Function at 0x1005e2e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x20
push esi
xor esi, esi
test ecx, ecx
je 0x1005e357
cmp word [ecx], si
je 0x1005e357
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1005e357
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
shrd ecx, edx, 0x14
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
shr edx, 0x14
mov edx, dword [esp + 0x14]
shrd ecx, edx, 0x14
mov dword [eax], ecx
shr edx, 0x14
lea eax, [esi + 1]
pop esi
add esp, 0x20
ret 8
mov eax, esi
pop esi
add esp, 0x20
ret 8

Function at 0x1005e360
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [esp + 0xc]
push ebx
push eax
mov esi, ecx
call fcn.10079c60
add esp, 0xc
test edi, edi
je 0x1005e3eb
cmp word [edi], bx
je 0x1005e3eb
test esi, esi
je 0x1005e3eb
push 0x104
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1005e3eb
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005e3b6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
call fcn.10007450
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100755ed
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x20c
ret
Function at 0x1005e860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.EnablePrefetcher
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
mov dword [esp + 0x1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1005e8b2
cmp dword [esp + 4], 4
jne 0x1005e8b2
lea eax, [esi + 1]
cmp dword [esp + 8], esi
jne 0x1005e8b4
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x1005e900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.EnableSuperfetch
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
mov dword [esp + 0x1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1005e952
cmp dword [esp + 4], 4
jne 0x1005e952
lea eax, [esi + 1]
cmp dword [esp + 8], esi
jne 0x1005e954
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x1005e9a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.Start
push str.SYSTEMCurrentControlSet_servicesSysMain
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
mov dword [esp + 0x1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1005e9f3
cmp dword [esp + 4], 4
jne 0x1005e9f3
cmp dword [esp + 8], 2
lea eax, [esi + 1]
je 0x1005e9f5
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x1005ea40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x3c], eax
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x24]
push eax
push 1
push reloc.OLEAUT32.dll_SysReAllocString
lea ebx, [esp + 0x1c]
mov edi, str.Enable
mov ecx, str.SOFTWAREMicrosoftDfrgBootOptimizeFunction
mov edx, ebp
xor esi, esi
mov dword [esp + 0x1c], 0x28
call fcn.1005f720
test eax, eax
je 0x1005eaca
lea ecx, [esp + 0x24]
push 0x100a9384
push ecx
call fcn.10075f11
add esp, 8
test eax, eax
je 0x1005eaca
mov esi, 1
lea edx, [esp + 0x18]
push edx
push 4
push reloc.OLEAUT32.dll_SysReAllocString
lea ebx, [esp + 0x1c]
mov edi, 0x100a9388
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionOptimalLayout
mov edx, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
call fcn.1005f720
test eax, eax
je 0x1005eb0d
cmp dword [esp + 0x18], 0
je 0x1005eb0d
mov esi, 1
jmp 0x1005eb12
cmp esi, 1
jne 0x1005eb74
mov eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push str.bdopt
push str.SOFTWARE360Safe_softmgrdg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1005eb74
cmp dword [esp + 0x14], 1
jne 0x1005eb74
mov ecx, ebp
call fcn.1005eb90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.100755ed
add esp, 0x40
ret 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x40
ret 4
Function at 0x10069ee0
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x1009e0f3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
lea eax, [esp + 0x2c]
mov edi, ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ebp
call fcn.10068e50
xor ebx, ebx
mov dword [esp + 0xbc], ebx
lea esi, [esp + 0x2c]
mov eax, edi
call fcn.10069d70
test al, al
je 0x1006a07d
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
jle 0x1006a03c
add ebp, 4
lea ecx, [esp + 0x4c]
push ecx
call fcn.100688b0
mov byte [esp + 0xbc], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x30]
call edx
mov edi, eax
lea ebx, [edi + 4]
lea esi, [esp + 0x4c]
call fcn.10068ad0
mov al, byte [edi + 0x68]
mov ebx, dword [edi + 0x64]
mov byte [esp + 0x1b], al
test ebp, ebp
je 0x1006a010
cmp byte [esp + 0x94], 0
je 0x1006a010
mov esi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea ecx, [esp + 0x50]
push ecx
call esi
test eax, eax
setne al
test al, al
je 0x1006a010
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x48], 0
je 0x1006a010
push ebp
call esi
test eax, eax
setne al
test al, al
je 0x1006a010
push ebp
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x1006a010
and ebx, 0x1f01ff
cmp ebx, 0x1f01ff
jne 0x1006a010
movzx ecx, byte [esp + 0x1b]
and cl, 0xef
je 0x1006a0be
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0x4c]
call fcn.10068960
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x10069f69
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.10068ff0
test al, al
je 0x1006a07d
test edi, edi
je 0x1006a07d
push 0
lea esi, [esp + 0x30]
call fcn.10068c30
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
jne 0x1006a0cf
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10068f30
mov eax, 0x80004005
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100755ed
add esp, 0xac
ret
mov byte [esp + 0xbc], 0
lea ecx, [esp + 0x4c]
call fcn.10068960
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10068f30
xor eax, eax
jmp 0x1006a096
Function at 0x1006b070
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096499
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006b0eb
push 0x100acf58
mov ebx, dword [ebp + 0xc]
call fcn.1002b3c0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100025b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
call fcn.1006b270
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x1006b109
push 0x100acf58
mov ebx, dword [ebp + 0xc]
call fcn.1002b3c0
jmp 0x1006b0c2
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x1006b21e
push esi
lea edx, [ebp - 0x24]
push edx
push 0xc
lea eax, [ebp - 0x30]
push eax
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
call ebx
test eax, eax
je 0x1006b217
push esi
push esi
mov ecx, dword [ebp - 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1006b217
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
je 0x1006b17d
cmp eax, dword [ebp - 0x20]
jae 0x1006b217
cmp eax, esi
jbe 0x1006b217
push eax
call fcn.10074adf
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x28]
push ecx
push 0
push esi
call fcn.10079c60
add esp, 0x10
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x1006b20e
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
jbe 0x1006b20e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
mov eax, ebx
xor edx, edx
div ecx
mov edi, edx
mov eax, dword [ebp + 8]
call fcn.100160c0
mov dl, byte [eax]
xor byte [ebx + esi], dl
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x1006b1b8
test ebx, ebx
jbe 0x1006b20b
cmp byte [ebx + esi - 1], 0
jne 0x1006b20b
mov byte [ebp - 4], 3
mov ebx, esi
lea ecx, [ebp - 0x1c]
call fcn.1006af40
mov dword [ebp - 4], 2
jmp 0x1006b20b
mov edi, dword [ebp - 0x14]
push esi
call fcn.10076993
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
test eax, eax
je 0x1006b234
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea edi, [ebp - 0x1c]
call fcn.10021420
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.100025b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x78002050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7801d828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x780293e0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x780293e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [esp + 4]
lea ecx, [esp + 0xc]
push dword [ebp + 0x14]
mov dword [esp + 0x24], 0xf
push dword [ebp + 0x10]
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.780023a0
mov dword [esp + 0x30], 0
cmp dword [0x7802a804], 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, 0x7802a7f0
cmovae edx, dword [0x7802a7f0]
test ecx, ecx
jne 0x780020d5
xor ecx, ecx
jmp 0x780020d7
sub ecx, eax
test eax, eax
je 0x780020dd
sub eax, edx
sub esp, 8
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.78002130
cmp dword [esp + 0x1c], 0x10
jb 0x780020ff
push dword [esp + 8]
call fcn.78006770
add esp, 4
mov eax, 0x7802a7f0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.7800ce67
mov esp, ebp
pop ebp
ret 0x10

Function at 0x78002530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x7800257d
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x7800256d
push edi
push dword [ebp - 0x10]
push esi
call fcn.78009480
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.7800ce67
mov esp, ebp
pop ebp
ret

Function at 0x78002590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
test esi, esi
je 0x78002636
test edi, edi
je 0x78002636
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x78002605
mov eax, dword [ebp - 0x10]
sub edi, esi
sub edi, 5
mov byte [esi], 0xe8
mov dword [esi + 1], edi
test eax, eax
jle 0x78002614
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esi + 5]
mov eax, 0x90909090
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x78002614
push esi
push edi
push 0x78023c58
call fcn.7800d34c
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x78002636
push esi
push 0x78023cb8
call fcn.7800d34c
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.7800ce67
mov esp, ebp
pop ebp
ret
Function at 0x78002650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov esi, ecx
test edi, edi
je 0x780026f2
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x780026c1
mov al, byte [ebp + 8]
mov byte [esi], al
mov eax, dword [ebp - 0x10]
sub edi, esi
sub edi, 5
mov dword [esi + 1], edi
test eax, eax
jle 0x780026d0
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esi + 5]
mov eax, 0x90909090
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x780026d0
push esi
push edi
push str.FAILED_to_hook_function___08x__at___08x_
call fcn.7800d34c
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x780026f2
push esi
push str.FAILED_to_restore_protection_at__p
call fcn.7800d34c
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.7800ce67
mov esp, ebp
pop ebp
ret

Function at 0x78002710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi], 0xff
jne 0x78002783
mov eax, dword [edx + 2]
push esi
mov esi, dword [edi + 2]
mov eax, dword [eax]
mov dword [ebp - 8], eax
test esi, esi
je 0x7800276d
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x7800275a
push 4
lea eax, [ebp - 8]
push eax
push esi
call fcn.78009480
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
push eax
push 0xe9
mov edx, 1
mov ecx, edi
call fcn.78002650
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.7800ce67
mov esp, ebp
pop ebp
ret
Function at 0x780027a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x78023cac
push 0x78023d54
push 0x60000
push 0xe42bfe
call dword [sym.imp.dsound.dll_unsigned_long_int___cdecl_FindPattern_unsigned_long_int__unsigned_long_int__unsigned_char___char__]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x78002829
push str.Patch_performance_fix_1
push 0x78023dd8
call dword [sym.imp.dsound.dll_void___cdecl__Global_Log_wchar_t_const___wchar_t_const__]
add esp, 8
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x7800280a
push 6
push 0x78023df0
push esi
call fcn.78009480
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 6
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.7800ce67
mov esp, ebp
pop ebp
ret
push 0x78023df8
push 0x78023e0c
call dword [sym.imp.dsound.dll_void___cdecl__Global_Log_wchar_t_const___wchar_t_const__]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.7800ce67
mov esp, ebp
pop ebp
ret