joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f387
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x10], ecx
push str.GFIO::Write
lea ecx, [ebp - 0x38]
call fcn.004117cd
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 5], 0
jne 0x40f3db
push str.m_handle
push str.GFIO
push 0x21d
push str.D:projectsutil_srcgfio.cpp
call fcn.00405131
add esp, 0x10
mov eax, dword [ebp - 0x10]
cmp dword [eax + 5], 0
jne 0x40f3fc
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411939
mov eax, dword [ebp - 0x14]
jmp 0x40f47c
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax + 5]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f42d
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411939
mov eax, dword [ebp - 0x18]
jmp 0x40f47c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
je 0x40f466
xor eax, eax
inc eax
je 0x40f451
push 0x224
push str.D:projectsutil_srcgfio.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
and dword [ebp - 0x20], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411939
mov eax, dword [ebp - 0x20]
jmp 0x40f47c
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411939
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f48c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453a5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40f548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xce
je 0x40f4d9
cmp dword [ebp - 0x10], 3
jne 0x40f544
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x45814c
lea eax, [ebp - 0x35]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0042314c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
call fcn.004232a2
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004231b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35]
call fcn.004066e8
mov eax, dword [ebp - 0x24]
jmp 0x40f54b
xor eax, eax
jmp 0x40f54b
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f559
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40f58f
xor eax, eax
inc eax
jmp 0x40f627
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
push 0x45814c
lea eax, [ebp - 0x39]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
call fcn.0042314c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.004232a2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f5ed
mov dword [ebp - 0x14], 1
jmp 0x40f5f1
and dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004231b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x39]
call fcn.004066e8
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40f624
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40f627
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f8cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453aed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push 1
push str.GGetSpecialFolderLocation
lea ecx, [ebp - 0x44]
call fcn.00411882
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40f941
push 0x456610
mov ecx, dword [ebp + 8]
call fcn.0040650c
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00411939
mov eax, dword [ebp + 8]
jmp 0x40f9f8
lea ecx, [ebp - 0x24]
call fcn.0040661b
mov byte [ebp - 4], 2
push 0x105
lea ecx, [ebp - 0x24]
call fcn.004074bc
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0
lea ecx, [ebp - 0x24]
call fcn.00408473
movsx eax, al
cmp eax, 0x5c
je 0x40f99f
push 0x458040
lea ecx, [ebp - 0x2d]
call fcn.0040650c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406fcc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d]
call fcn.004066e8
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp dword [ebp - 0x10], 0
je 0x40f9c8
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
push dword [ebp - 0x10]
call dword [eax + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.004063f8
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00411939
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4103ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4103da
xor eax, eax
jmp 0x4103e9
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4103e7
xor eax, eax
inc eax
jmp 0x4103e9
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4103ed
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.00406b07
push eax
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41042f
xor eax, eax
inc eax
jmp 0x410524
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x45814c
lea eax, [ebp - 0x5a]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
call fcn.0042314c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.004232a2
push eax
push dword [ebp + 8]
push 0x45814c
lea eax, [ebp - 0x51]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.0042314c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.004232a2
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4104d2
mov dword [ebp - 0x14], 1
jmp 0x4104d6
and dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004231b5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x51]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004231b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5a]
call fcn.004066e8
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x410521
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x410524
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4117cd
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and dword [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
call fcn.00404fca
cmp eax, 0xffffffff
jne 0x411804
jmp 0x411879
call fcn.00404fca
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x411856
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
je 0x411839
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0xc], eax
jmp 0x411879
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411879
push str.NO_ERROR__GetLastError__
push 0x457ac4
push 0x38
push 0x458860
call fcn.00405131
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x411882
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
and dword [eax], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
call fcn.00404fca
cmp eax, 0xffffffff
jne 0x4118bb
jmp 0x411930
call fcn.00404fca
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x41190d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
je 0x4118f0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0xc], eax
jmp 0x411930
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411930
push str.NO_ERROR__GetLastError__
push 0x457ac4
push 0x4d
push 0x458860
call fcn.00405131
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4166f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0041646b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00424570
movzx eax, al
test eax, eax
je 0x416722
xor eax, eax
inc eax
jmp 0x4167bc
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416741
xor eax, eax
jmp 0x4167bc
push dword [ebp - 8]
call fcn.00403027
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x69], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x69], 0
jne 0x416763
xor eax, eax
jmp 0x4167bc
mov eax, dword [ebp - 4]
push dword [eax + 0x69]
push dword [ebp - 8]
push 0
mov ecx, dword [ebp + 8]
call fcn.00406b07
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41678c
mov ecx, dword [ebp - 4]
call fcn.0041646b
xor eax, eax
jmp 0x4167bc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
mov eax, dword [ebp - 4]
push dword [eax + 0x69]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4167b9
cmp dword [ebp - 0x10], 4
jb 0x4167b9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6d], eax
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42068f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454fd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x4207e2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
and dword [eax + 4], 0
cmp dword [ebp - 0x14], 0
je 0x4207e2
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x4206f1
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
and dword [eax + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x24]
jbe 0x4207e2
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
lea eax, [ebp - 0x3d]
push eax
push str._ms._Context:
lea eax, [ebp - 0x46]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
sub eax, dword [ecx + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
push str.Critical_section_was_detained_for
lea eax, [ebp - 0x4f]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.00406c9e
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
call fcn.00406b8d
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.00406b07
push eax
push str.GCS_LOCK
push 0x189
push str.D:projectsutil_srcglock.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3d]
call fcn.004066e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x46]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4f]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004066e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x426871
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
push str.GTHREAD::AllocTlsShouldQuit
lea ecx, [ebp - 0x24]
call fcn.004117cd
and dword [ebp - 4], 0
cmp dword [0x476b68], 0xffffffff
jne 0x4268d9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x476b68], eax
cmp dword [0x476b68], 0xffffffff
jne 0x4268d9
xor eax, eax
inc eax
je 0x4268d9
push 0x104
push str.D:projectsutil_srcgthread.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4f
call fcn.00425ef2
movzx eax, al
test eax, eax
jne 0x42690b
xor eax, eax
inc eax
je 0x42690b
push 0x109
push str.D:projectsutil_srcgthread.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00411939
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x426dab
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4554dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x479570]
cmp eax, 0xea60
jbe 0x426ec0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x479570], eax
push str.TraceSetQuits
lea ecx, [ebp - 0x26]
call fcn.0040650c
and dword [ebp - 4], 0
push str.SOFTWAREMarcottePerfgthread_
lea ecx, [ebp - 0x1d]
call fcn.0040650c
mov byte [ebp - 4], 1
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x1d]
push eax
call fcn.004181e9
add esp, 0x18
test eax, eax
je 0x426e2f
mov byte [ebp - 0xd], 1
jmp 0x426e33
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
mov dword [0x479574], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26]
call fcn.004066e8
push str.Trace
lea ecx, [ebp - 0x38]
call fcn.0040650c
mov dword [ebp - 4], 2
push str.SOFTWAREMarcottePerfgthread_
lea ecx, [ebp - 0x2f]
call fcn.0040650c
mov byte [ebp - 4], 3
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2f]
push eax
call fcn.004181e9
add esp, 0x18
test eax, eax
je 0x426e9b
mov byte [ebp - 0xe], 1
jmp 0x426e9f
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
mov dword [0x479578], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2f]
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004066e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x426ece
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453cef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
push str.GTHREAD::ResetTlsEventShouldQuit
lea ecx, [ebp - 0x24]
call fcn.004117cd
and dword [ebp - 4], 0
cmp dword [0x476b68], 0xffffffff
je 0x426f16
push 0
push dword [0x476b68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x426f32
xor eax, eax
inc eax
je 0x426f32
push 0x12f
push str.D:projectsutil_srcgthread.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00411939
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4272ab
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4553cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
push str.GTHREAD::SetTlsEventShouldQuit
lea ecx, [ebp - 0x28]
call fcn.004117cd
and dword [ebp - 4], 0
cmp dword [0x476b68], 0xffffffff
je 0x427326
mov ecx, dword [ebp - 0x14]
add ecx, 0x4f
call fcn.00425dc8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x427308
push dword [ebp - 0x10]
push dword [0x476b68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x427324
xor eax, eax
inc eax
je 0x427324
push 0x121
push str.D:projectsutil_srcgthread.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
jmp 0x427342
xor eax, eax
inc eax
je 0x427342
push 0x125
push str.D:projectsutil_srcgthread.cpp
push 0x456614
call fcn.00404768
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00411939
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x430fce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub ecx, dword [eax]
push ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call fcn.0043fba0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x431003
jmp 0x43101a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
jb 0x430fd8
cmp dword [ebp - 4], 0
jge 0x431040
call fcn.0043a601
push dword [eax]
call fcn.0043e650
pop ecx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00431b25
add esp, 0xc
or eax, 0xffffffff
jmp 0x431052
cmp dword [ebp - 4], 0
jne 0x431050
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x44b1e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47788c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0044327e
mov dword [ebp - 0x14], eax
cmp dword [0x47bb28], esi
jne 0x44b2d6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x44b263
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44b3b6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x44b3b6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44b3b6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47bb28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47bb2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47bb30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bb38], eax
test eax, eax
je 0x44b2d3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bb34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x44b2fb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44b2ee
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x44b310
push 4
pop eax
jmp 0x44b3b8
cmp dword [ebp - 0x14], esi
je 0x44b310
push dword [0x47bb28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44b2f5
mov eax, dword [0x47bb34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x44b36e
cmp dword [0x47bb38], edi
je 0x44b36e
push eax
call ebx
push dword [0x47bb38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x44b36e
test eax, eax
je 0x44b36e
call ecx
test eax, eax
je 0x44b363
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44b363
test byte [ebp - 8], 1
jne 0x44b36e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x44b39e
mov eax, dword [0x47bb2c]
cmp eax, edi
je 0x44b39b
push eax
call ebx
test eax, eax
je 0x44b39b
call eax
mov esi, eax
test esi, esi
je 0x44b39b
mov eax, dword [0x47bb30]
cmp eax, edi
je 0x44b39b
push eax
call ebx
test eax, eax
je 0x44b39b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47bb28]
call ebx
test eax, eax
je 0x44b3b6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x44b3b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440f7e
mov esp, ebp
pop ebp
ret