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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472728
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 0x437aa9
inc eax
mov dword [esi + 0x10], eax
jmp 0x437bbc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x437abd
mov eax, 0xffffffc7
jmp 0x437bbe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x437ace
cmp dword [esi + 8], eax
jne 0x437abd
cmp dword [esi + 8], eax
jne 0x437ae7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x437ae7
mov eax, 0xffffffc7
jmp 0x437bbe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x437afb
push eax
mov ecx, ebx
call fcn.004372a0
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.00408aa0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x437b2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00408ac0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00436a10
test eax, eax
mov dword [esp + 0x38], eax
je 0x437b5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476e88
call fcn.00408ca0
mov eax, dword [esp + 0x38]
jmp 0x437bbe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004378d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x437ba3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004378f0
mov esi, eax
test esi, esi
jne 0x437bd3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004378d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x437b75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476e88
call fcn.00408ca0
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], 0x476e88
call fcn.00408ca0
mov eax, esi
jmp 0x437bbe

Function at 0x43ace0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43ad40
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43ad40
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43ad40
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43ad40
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 0x43ad80
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 0x440cc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472d58
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.0046bb21
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00440660
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.0046ba4f
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.00468310
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.00468310
push 1
push 0
push 0
mov ecx, esi
call fcn.004682b8
push 1
push 0
push 1
mov ecx, esi
call fcn.004682b8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046bb93
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440e40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472d78
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.0046bb21
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00440660
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.0046ba4f
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 0x440f04
cmp dword [esp + 0x40], 1
jne 0x440f02
cmp ecx, eax
jge 0x440f04
mov eax, ecx
cmp eax, 0xc8
jge 0x440f10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440cc0
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.0046bb93
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x441680
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472de3
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.00466731
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.0046bdc9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046d2e5
test eax, eax
je 0x44179c
mov ecx, dword [esp + 0x3c]
call fcn.0046bdf6
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 0x441760
push edi
mov ecx, esi
call fcn.0046945a
mov ecx, esi
call fcn.00441900
cmp dword [esp + 0x38], 1
jne 0x441795
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.00469595
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 0x4441b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4441e3
push esi
call fcn.004472c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4441dc
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 0x444269
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444252
mov eax, dword [esi + 8]
test eax, eax
je 0x444207
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 0x44424e
cmp eax, 2
je 0x444252
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4441fa
cmp eax, 3
je 0x44422d
cmp eax, 1
jne 0x4441fa
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 0x4441fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4441fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444290
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444278
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444290
add esp, 4
pop esi
ret

Function at 0x450280
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 0x450323
test eax, eax
jbe 0x450323
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x450323
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 0x4502ce
xor esi, esi
jmp 0x4502d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4502ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004094d0
add esi, eax
push esi
mov ebx, esi
call fcn.004094d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4502e0
pop ebp
test edi, edi
pop edi
jne 0x450323
test ebx, ebx
je 0x450323
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00456050
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x450465
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 0x45057d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45057d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00466b83
mov esi, eax
test esi, esi
je 0x45057d
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 0x45057d
mov ecx, esi
call fcn.004503d0
cmp edi, eax
jge 0x45057d
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 0x450503
mov dword [esp + 0x34], 1
jmp 0x45055e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45057d
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.0044f9d0
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 0x467526
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46755e
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.004655b3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046558b
jmp 0x46756a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468c14
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 0x468c56
call fcn.0046e6d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468c56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468c4d
xor eax, eax
jmp 0x468c5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468c64
pop edi
pop esi
pop ebx
ret 4
Function at 0x46ec05
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 0x46ec33
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ec51
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046eb6b
jmp 0x46ec51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ec51
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046eb6b
test edi, edi
mov eax, edi
jne 0x46ec3b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6f5012c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
add eax, 4
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [esp], eax
mov dword [ebp - 0x38], edx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 0x10], 1
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_SetFilePointerEx]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x2c], eax
call eax
mov eax, dword [ebx]
sub esp, 0x14
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x38]
sub esp, 0x14
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x6f5013c8
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp + 8], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov eax, dword [ebp - 0x30]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
mov edx, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
xor edi, edi
jmp 0x6f50137d
Function at 0x6f501bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x500
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp + 8], 0x500
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov eax, dword [esi]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
lea eax, [ebx + 4]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [ebx + 0x4e8], 0
mov dword [ebx + 0x4f0], 0
sub esp, 0x1c
mov dword [ebx + 0x4f4], 0
mov dword [ebx + 0x4f8], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.mutex
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x1c]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.lzx_mutex
lea eax, [ebx + 0x34]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x34]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_itss_chm_lib.c:_chmFile.cache_mutex
mov eax, ebx
call sym._chm_set_param.part.0.constprop.0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x6f501cb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x6f501e12
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x6f501cd7
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov dword [ebx], 0xffffffff
mov dword [eax + 0x18], 0
lea eax, [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x1c]
sub esp, 4
mov dword [eax + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x34]
sub esp, 4
mov dword [eax + 0x18], 0
lea eax, [ebx + 0x34]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x4e8]
sub esp, 4
test eax, eax
je 0x6f501d34
mov dword [esp], eax
call sym._LZXteardown
mov dword [ebx + 0x4e8], 0
mov eax, dword [ebx + 0x4f0]
test eax, eax
je 0x6f501dbf
mov edx, dword [ebx + 0x4f8]
test edx, edx
jle 0x6f501d90
xor esi, esi
mov edi, dword fs:[0x18]
lea esi, [esi]
nop
mov eax, dword [eax + esi*4]
mov dword [esp + 4], 0
inc esi
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebx + 0x4f0]
sub esp, 0xc
cmp dword [ebx + 0x4f8], esi
jg 0x6f501d60
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 0x4f0], 0
sub esp, 0xc
mov eax, dword [ebx + 0x4f4]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 0x4f4], 0
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6f501e20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x34], eax
mov edi, eax
mov eax, dword [esi + 0x68]
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x6f501ecc
jmp 0x6f501eea
mov dword [esp + 0xc], ebx
mov ebx, eax
sar ebx, 0x1f
mov dword [esp + 8], edx
mov ecx, ebx
imul ecx, edx
mul edx
add edx, ecx
add eax, dword [esi + 0x50]
adc edx, dword [esi + 0x54]
mov dword [esp + 4], edx
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym.__chm_fetch_bytes.part.0
mov dword [ebp - 0x2c], 0
mov ebx, edx
mov edx, dword [esi + 0x70]
xor ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
xor eax, dword [ebp - 0x30]
or ebx, eax
jne 0x6f501eea
cmp dword [edi], 0x4c474d50
je 0x6f501f20
cmp dword [edi], 0x49474d50
jne 0x6f501eea
mov ecx, dword [ebp + 0xc]
mov eax, edi
call sym.__chm_find_in_PMGI
cmp eax, 0xffffffff
je 0x6f501eea
mov edx, dword [esi + 0x70]
xor ebx, ebx
cmp dword [esi], 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edx
jne 0x6f501e68
xor eax, eax
xor ebx, ebx
xor eax, dword [ebp - 0x30]
xor ebx, dword [ebp - 0x2c]
or ebx, eax
je 0x6f501ead
mov ebx, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
call sym.__chm_find_in_PMGL
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x6f501eea
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
call sym.__chm_parse_PMGL_entry
mov ebx, dword [ebp - 0x34]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6f5035a0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
mov ebx, 0xffffffff
push ecx
sub esp, 0x10
mov eax, dword [ecx]
lock xadd dword [eax + 4], ebx
dec ebx
je 0x6f5035d0
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lock dec dword [section..bss]
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x6f503d90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
test eax, eax
jne 0x6f503e28
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax], sym._ITStorageImpl_QueryInterface_12
sub esp, 0xc
mov ebx, eax
mov dword [eax + 4], 1
test byte [0x6f50d018], 8
jne 0x6f503df8
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
lock inc dword [section..bss]
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f50f25e
mov dword [esp + 8], str.ITSS_create
mov dword [esp + 4], 0x6f50d018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f503de2
mov eax, 0x80040110
jmp 0x6f503df0