joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e280
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e3f8
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.00466eb8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043dc20
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.00466de6
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.004636aa
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.004636aa
push 1
push 0
push 0
mov ecx, esi
call fcn.00463652
push 1
push 0
push 1
mov ecx, esi
call fcn.00463652
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466f2a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e400
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e418
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.00466eb8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043dc20
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.00466de6
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 0x43e4c4
cmp dword [esp + 0x40], 1
jne 0x43e4c2
cmp ecx, eax
jge 0x43e4c4
mov eax, ecx
cmp eax, 0xc8
jge 0x43e4d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e280
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.00466f2a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ec50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e483
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.00461ac8
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.00467160
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004686bf
test eax, eax
je 0x43ed6c
mov ecx, dword [esp + 0x3c]
call fcn.0046718d
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 0x43ed30
push edi
mov ecx, esi
call fcn.004647fa
mov ecx, esi
call fcn.0043eed0
cmp dword [esp + 0x38], 1
jne 0x43ed65
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.00464935
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 0x4417a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4417d3
push esi
call fcn.00444890
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4417cc
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 0x441859
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441842
mov eax, dword [esi + 8]
test eax, eax
je 0x4417f7
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 0x44183e
cmp eax, 2
je 0x441842
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4417ea
cmp eax, 3
je 0x44181d
cmp eax, 1
jne 0x4417ea
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 0x4417ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4417ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441868
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441880
add esp, 4
pop esi
ret

Function at 0x44d390
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 0x44d433
test eax, eax
jbe 0x44d433
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44d433
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 0x44d3de
xor esi, esi
jmp 0x44d3e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44d40f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044f330
add esi, eax
push esi
mov ebx, esi
call fcn.0044f330
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44d3f0
pop ebp
test edi, edi
pop edi
jne 0x44d433
test ebx, ebx
je 0x44d433
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004517b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44d575
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 0x44d68d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d68d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00461f1a
mov esi, eax
test esi, esi
je 0x44d68d
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 0x44d68d
mov ecx, esi
call fcn.0044d4e0
cmp edi, eax
jge 0x44d68d
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 0x44d613
mov dword [esp + 0x34], 1
jmp 0x44d66e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44d68d
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.0044cae0
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 0x4628bd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4628f5
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.00460974
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046094c
jmp 0x462901
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463fb2
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 0x463ff4
call fcn.00469aaa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463ff4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463feb
xor eax, eax
jmp 0x463ffc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464002
pop edi
pop esi
pop ebx
ret 4
Function at 0x469fda
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 0x46a008
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a026
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469f40
jmp 0x46a026
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a026
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469f40
test edi, edi
mov eax, edi
jne 0x46a010
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4039c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4039d0
pop dword [ebp - 0x44]
mov eax, 0x4039d0
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xbb1d9ab9
add dword [ebp - 0x54], 0x9334aa92
mov dword [ebp - 0x50], 0x25aba677
add dword [ebp - 0x50], 0xc87a5ce
mov dword [ebp - 0x4c], 0x73ce1c0d
sub dword [ebp - 0x4c], 0x2781d7df
mov dword [ebp - 0x48], 0xa8e1e27d
add dword [ebp - 0x48], 0x571e1d83
lea eax, [ebp - 0x54]
push eax
mov eax, 0x61ce276e
sub eax, 0x618de6ea
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x6ebcba96
add dword [ebp - 0x54], 0x5b5aec0
mov dword [ebp - 0x50], 0xcf5c6053
add dword [ebp - 0x50], 0x72100122
mov dword [ebp - 0x4c], 0x380f1f59
sub dword [ebp - 0x4c], 0xd49fb2ed
mov dword [ebp - 0x48], 0x4a587b14
add dword [ebp - 0x48], 0xb5a784ec
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x3351020c
add eax, 0xccef3e7c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x394f0
push 0
call eax
mov ecx, 0xe2e23dc8
add ecx, 0x1d1e149b
mov ebx, eax
mov esi, 0x408800
add esi, dword [ebp - 0x44]
mov edi, 0x793a06f4
sub edi, 0x3f144515
add dword [ebp - 0x2c], 0xb6a4f618
mov edx, dword [esi]
xor dword [ebp - 0x30], 0xb624ab3e
add edx, edi
add dword [ebp - 0xc], 0x2fd499c0
mov dword [ebx], edx
add dword [ebp - 0x3c], 0xcd8d5968
add ebx, 0x6f4d4672
sub ebx, 0x6f4d466e
add esi, 0xcd34c9bc
add esi, 0x32cb3648
loop 0x403ae7
add eax, 0x13c5f
mov ebx, eax
add eax, 0x45d83545
add eax, 0xba27cac0
mov ecx, 0x7b484466
sub ecx, 0x7b084466
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x4229f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x422a01
pop dword [ebp - 0x48]
mov eax, 0x90610ce5
add eax, 0x6fe11d1c
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x39893
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x20a701f3
sub ecx, 0x20a6c577
mov ebx, eax
mov edx, 0xe229a17a
sub edx, 0xe1e6737a
add edx, dword [ebp - 0x48]
mov edi, 0x3cacfa3d
sub edi, 0x510de620
mov esi, dword [edx]
mov dword [ebp - 0x40], 0x8ecb7409
xor esi, edi
mov dword [ebx], esi
mov dword [ebp - 0x20], 0x19b90eb7
add ebx, 0xb13194d4
add ebx, 0x4ece6b30
add edx, 4
loop 0x422a5b
add eax, 0xe4c3
xor ebx, ebx
add ebx, eax
add eax, 0x9b7234ac
sub eax, 0x9b7234a7
mov ecx, 0x3af7b6d
add ecx, 0xfc908493
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x1002493d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x48
mov eax, 0x1008570e
call fcn.10063f44
mov esi, ecx
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x1002495c
mov eax, 0x80004005
jmp 0x10024a90
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.100499e7
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.10022781
test eax, eax
jne 0x10024a90
push 0xa
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0xc8
mov dword [ebp - 0x54], 1
call fcn.100499e7
xor edi, edi
cmp dword [esi + 0x27c4], edi
je 0x100249cc
mov ecx, dword [esi + 0x30]
cmp dword [ecx + 0x5bc], edi
je 0x100249cc
call fcn.1001bd83
mov ecx, dword [esi + 0x27c4]
push eax
call fcn.100499e7
xor eax, eax
mov word [esi + 0x78], ax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x30]
push dword [eax + 0x484]
mov ecx, esi
call fcn.100229fb
mov edi, eax
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x4000
test edi, edi
jne 0x10024a35
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.10023df6
mov edi, eax
test edi, edi
jne 0x10024a35
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10024360
mov edi, eax
test edi, edi
jne 0x10024a35
mov ecx, esi
call fcn.10024591
mov edi, eax
mov ecx, esi
call fcn.10024616
test edi, edi
jne 0x10024a70
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x628]
test ecx, ecx
je 0x10024a59
push dword [esi + 0x1018]
push ebx
call fcn.100499e7
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10024a70
or eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
cmp dword [ebp - 0x2c], 0
je 0x10024a7f
push dword [ebp - 0x2c]
call fcn.100499e7
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x10024a8e
push dword [ebp - 0x1c]
call fcn.100499e7
pop ecx
mov eax, edi
call fcn.1006401c
ret 8
Function at 0x1003121b
Capabilities:
Get graphical window text

Disassembly:
push 0x14
mov eax, 0x10085f3a
call fcn.10063fad
mov edi, ecx
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi*2 + 2]
call fcn.10064635
mov ecx, esp
lea eax, [esi + 1]
push eax
push ecx
push dword [edi + 4]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10001964
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
xor esi, esi
test eax, eax
je 0x1003127f
mov eax, dword [eax]
test eax, eax
je 0x1003127f
movzx esi, word [eax]
push esi
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], ecx
test ebx, ebx
je 0x100312cb
test esi, esi
je 0x100312cb
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
add ecx, 2
push esi
push ecx
push eax
call fcn.100499e7
add esp, 0xc
push ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 0x10008de8
push ebx
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [edi + 4]
mov ecx, edi
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.100314e2
test eax, eax
jns 0x1003131b
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
test eax, eax
je 0x10031302
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10031313
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
or eax, 0xffffffff
jmp 0x100313c7
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push 0x10001f44
push esi
call dword [eax]
test eax, eax
jns 0x1003134c
mov eax, dword [esi]
push esi
mov byte [ebp - 4], bl
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10031313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10031313
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffffffffffffffeb
push dword [edi + 4]
call ebx
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x10000
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call ebx
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x100313a1
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, 0x10000
test ecx, eax
jne 0x100313a1
or eax, ecx
push eax
push 0xffffffffffffffec
push dword [edi + 4]
call ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100313c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x30]
call fcn.10064030
ret 0x10
Function at 0x10039725
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 4
mov eax, 0x100864f4
call fcn.10063f44
mov esi, ecx
mov ecx, dword [esi + 0x298]
test ecx, ecx
jne 0x10039744
xor eax, eax
jmp 0x100398e5
lea ebx, [esi + 0x2c4]
xor edi, edi
cmp word [ebx], di
jne 0x1003976d
push 0x10003264
lea eax, [esi + 0x84]
push eax
push 0x10003270
push 0x104
push ebx
call fcn.100499e7
mov ecx, dword [esi + 0x298]
push ebx
call fcn.100499e7
push 0x318
mov dword [esi + 0x2bc], edi
call fcn.100499e7
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1003979d
mov ecx, eax
call fcn.1007b0e6
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003973d
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100397bc
and eax, 0xfffffffd
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov ecx, edi
call fcn.1007b15c
mov ecx, edi
test eax, eax
je 0x100397da
call fcn.1007b102
push edi
call fcn.100499e7
pop ecx
jmp 0x1003973d
push 0
push ebx
call fcn.100499e7
test eax, eax
je 0x100397ea
mov ecx, edi
jmp 0x100397c9
push 0xc
call fcn.100499e7
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10039809
mov ecx, eax
call fcn.10024aee
jmp 0x1003980b
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp dword [esi + 4], 0
mov dword [esi + 0x4cc], eax
push edi
mov ecx, esi
je 0x10039825
call fcn.100499e7
jmp 0x1003982a
call fcn.100499e7
test eax, eax
je 0x100397e6
cmp dword [esi + 0x4cc], 0
je 0x1003986d
mov ecx, dword [esi + 0x298]
cmp dword [ecx + 0x5bc], 0
je 0x10039857
call fcn.1001bd83
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.100499e7
mov eax, dword [esi + 0x278]
test eax, eax
je 0x1003986d
mov ecx, dword [esi + 0x4cc]
push eax
call fcn.100499e7
push edi
mov ecx, esi
call fcn.100499e7
mov ecx, edi
call fcn.1007b2ed
mov ecx, edi
call fcn.1007b102
push edi
call fcn.100499e7
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100398a1
or eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0x628]
test ecx, ecx
je 0x100398bd
push dword [esi + 0x2b8]
push ebx
call fcn.100499e7
mov edi, dword [esi + 0x4cc]
test edi, edi
je 0x100398d5
mov ecx, edi
call fcn.10024b14
push edi
call fcn.100499e7
pop ecx
and dword [esi + 0x4cc], 0
xor eax, eax
inc eax
mov dword [esi + 0x294], eax
call fcn.1006401c
ret