joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c04e
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], edi
mov dword [edi + 4], fcn.00429f82
mov dword [edi + 8], fcn.0042a3c4
mov dword [edi + 0xc], fcn.00429f67
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x8000
mov dword [edi], vtable.common::t_heap.0
mov dword [ebp - 0x150], edi
mov dword [edi + 0x18], 0
mov byte [edi + 0x1c], 1
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x158], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00422267
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
movups xmmword [edi + 0x28], xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov dword [edi + 0x40], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14c]
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 1
call fcn.004050d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x148], 0
je 0x4042ce
cmp byte [ebp - 0x30], 0
lea eax, [ebp - 0x140]
cmove eax, dword [ebp - 0x144]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4042ce
shr eax, 4
not al
test al, 1
je 0x4042ce
cmp byte [ebp - 0x30], 0
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x28]
cmove eax, dword [ebp - 0x144]
add eax, 4
push eax
call fcn.004055a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0040a180
lea ecx, [ebp - 0x28]
call fcn.00405540
cmp byte [ebp - 0x30], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4042f7
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x140]
cmp eax, ecx
je 0x4042f7
push eax
call fcn.00429f67
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c140
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x4599d4], 0
jne 0x404da0
call fcn.00407b90
test al, al
jne 0x404da0
call fcn.00406800
test al, al
je 0x404da0
mov ecx, str.CheckSig1
call fcn.00409370
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x134]
call fcn.00402110
mov dword [ebp - 4], 0
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d6e
shr eax, 4
not al
test al, 1
je 0x404d6e
call fcn.00409400
cmp byte [0x45fa89], 0
jne 0x404d48
push 0x114
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00424340
push 0x114
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.00424340
add esp, 0x18
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x248]
call fcn.00407760
cmp dword [ebp - 0x244], 6
mov ecx, dword [ebp - 0x240]
ja 0x404d01
jne 0x404d41
cmp ecx, 2
jae 0x404d0a
jmp 0x404d41
mov byte [0x45fa88], 1
jne 0x404d21
movzx eax, byte [0x45fa88]
cmp ecx, 3
mov edx, 1
cmovae eax, edx
mov byte [0x45fa88], al
mov eax, dword [ebp - 0x358]
cmp eax, 0xa
jae 0x404d3a
cmp eax, 6
jne 0x404d41
cmp dword [ebp - 0x354], 3
jb 0x404d41
mov byte [0x45fa88], 1
mov byte [0x45fa89], 1
sub esp, 8
mov ecx, esi
cmp byte [0x45fa88], 0
je 0x404d62
call fcn.00404910
add esp, 8
mov esi, eax
jmp 0x404d73
call fcn.00404480
add esp, 8
mov esi, eax
jmp 0x404d73
mov esi, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404d9c
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x404d9c
push eax
call fcn.00429f67
add esp, 4
mov eax, esi
jmp 0x404da2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
Function at 0x405c60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push edi
lea edi, [ebx + 0x130]
push esi
push dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
test al, al
je 0x405e68
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.00409190
test al, al
je 0x405e68
mov dword [ebx + 0x34c], edi
mov eax, 0x44e4b0
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx + 8], edi
cmp dword [eax], edi
je 0x405d18
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x405cb1
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x44ea2c
call fcn.00401e30
push edi
push 0x44eac0
push eax
call fcn.00406410
add esp, 0xc
cmp byte [esi + 0x11c], 0
je 0x405cec
add esi, 0xc
jmp 0x405cef
mov esi, dword [esi + 8]
push 0x44ea40
mov ecx, ebx
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
push ecx
mov dword [ebp - 4], ecx
mov ecx, esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
call fcn.00402400
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
mov edi, 1
cmp eax, 0xffffffff
jne 0x405dd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 8]
cmp eax, 0x20
jne 0x405d7f
cmp edi, 3
jge 0x405de7
cmp byte [ebx + 0x350], 0
je 0x405daa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405daa
cmp eax, 5
jne 0x405de7
lea ecx, [esi + 8]
cmp edi, 3
jge 0x405de7
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x405d9b
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 0xc]
mov ecx, esi
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.00402400
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x405d55
push esi
lea ecx, [ebx + 0xc]
call fcn.00402540
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x405e22
lea esi, [ecx + 4]
cmp byte [ecx + 0x114], al
jne 0x405df8
mov esi, dword [ecx]
mov ecx, dword [ebp + 8]
push 0x44ea50
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ecx + 0x114], 0
lea edi, [ecx + 4]
jne 0x405e30
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407350
push 0x44ea40
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
lea ecx, [edi + 4]
push ecx
push 0x44eac8
push esi
call fcn.00406410
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0x44a75c
call fcn.00401e30
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407680
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
mov edi, edx
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4076c0
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.00429f82
add esp, 4
mov esi, eax
push esi
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407741
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44a758
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407741
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edi + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 6], ax
test edx, edx
je 0x40773f
movzx eax, word [ecx + 0x12]
mov word [edx], ax
movzx eax, word [ecx + 0x10]
mov word [edx + 2], ax
movzx eax, word [ecx + 0x16]
mov word [edx + 4], ax
movzx eax, word [ecx + 0x14]
mov word [edx + 6], ax
mov bl, 1
test esi, esi
je 0x40774e
push esi
call fcn.00429f67
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409400
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
call fcn.00409580
test al, al
je 0x409469
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call fcn.0040cf60
push esi
mov ecx, eax
call fcn.0040cad0
mov esi, eax
cmp byte [esi], 0
je 0x4094ce
mov ecx, esi
call fcn.0040ce80
mov eax, dword [esi + 4]
test eax, eax
jg 0x409441
mov dword [esi + 4], 0
pop esi
ret
mov dword [esi + eax*8 + 0xfc8], 0
mov dword [esi + eax*8 + 0xfcc], 0
add dword [esi + 4], 0xffffffff
je 0x4094ce
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret
call fcn.00409950
test al, al
je 0x4094ce
cmp byte [0x4599d6], 0
je 0x4094ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.0040d320
mov esi, eax
cmp byte [esi + 4], 0
je 0x4094ce
push ecx
mov ecx, esi
call fcn.0040d440
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4094a8
mov dword [esi + 0xc], 0
pop esi
ret
mov dword [esi + eax*8 + 0xfb0], 0
mov dword [esi + eax*8 + 0xfb4], 0
add dword [esi + 0xc], 0xffffffff
je 0x4094ce
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret

Function at 0x409d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409dfe
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x409dc8
mov edi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.004073e0
push 0x44eaa0
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
lea ecx, [edi + 4]
push ecx
push 0x44eac8
push esi
call fcn.00406410
add esp, 0x18
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], edi
je 0x409e97
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x409e1c
mov eax, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x450398
mov dword [ebp + 0x10], eax
call fcn.00401e30
push 0x4503a8
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
push edi
push 0x44eac0
push esi
call fcn.00406410
push 0x4503b4
push 0x44eac8
push esi
call fcn.00406410
push dword [ebp - 4]
push 0x44eac0
push esi
call fcn.00406410
push 0x4503c4
push 0x44eac8
push esi
call fcn.00406410
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0x44eac8
push esi
call fcn.00406410
add esp, 0x48
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409eb0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x45604c]
xor eax, esp
mov dword [esp + 0x470], eax
push esi
push 0x44ec24
push ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov esi, edx
call fcn.0042ad68
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x409f05
xor al, al
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
push eax
push 0x400
lea eax, [esp + 0x78]
mov dword [esp + 0x14], 0
push 1
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042b387
add esp, 0x10
test eax, eax
je 0x409f7a
nop
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0xc]
call fcn.0040d7d0
push dword [esp + 8]
lea eax, [esp + 0x78]
push 0x400
push 1
push eax
call fcn.0042b387
add esp, 0x14
test eax, eax
jne 0x409f50
mov edx, esi
lea ecx, [esp + 8]
call fcn.0040d890
push dword [esp + 4]
call fcn.0042aed4
mov ecx, dword [esp + 0x478]
add esp, 4
mov al, 1
pop esi
xor ecx, esp
call fcn.004224f6
mov esp, ebp
pop ebp
ret
Function at 0x40c670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c755
test edi, edi
je 0x40c70b
cmp word [edi], 0
je 0x40c70b
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40c6c5
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407350
push 0x45063c
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
add esp, 0xc
lea ecx, [ebx + 4]
push ecx
push 0x44eac8
push esi
call fcn.00406410
add esp, 0xc
push 0x44a758
push 0x44eac8
push esi
call fcn.00406410
add esp, 0xc
push edi
jmp 0x40c73c
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x40c71a
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407350
push 0x45063c
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x44eac8
push esi
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
je 0x40c7c5
test edi, edi
je 0x40c78a
cmp word [edi], 0
je 0x40c78a
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40c776
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.00407350
push 0x45064c
jmp 0x40c6d3
cmp byte [esi + 0x128], 0
je 0x40c798
add esi, 0x18
jmp 0x40c79b
mov esi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0x45064c
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
pop edi
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cf60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f50], 0
push ebx
mov dword [ebp - 4], 0
je 0x40d097
push dword [0x456f58]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40cfc7
cmp dword [eax], 0xd
jbe 0x40cfc7
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40cfc7
push 0
push 0x45705c
push 0x457094
push 0
push eax
call fcn.0043bce4
add esp, 0x14
test eax, eax
je 0x40cfc7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d0da
cmp dword [0x456f50], 0
je 0x40d097
push esi
push edi
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040d120
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40d083
push 0x2014
call fcn.00422267
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040c9f0
cmp dword [0x456f50], 0
mov esi, eax
je 0x40d083
push dword [0x456f58]
call ebx
test eax, eax
je 0x40d083
cmp dword [eax], 0xd
jbe 0x40d083
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x40d07d
push 8
call fcn.00422267
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov dword [edi + 4], esi
cmp dword [0x456f50], 0
je 0x40d083
push dword [0x456f58]
call ebx
test eax, eax
je 0x40d083
cmp dword [eax], 0xd
jbe 0x40d083
mov eax, dword [eax + 8]
push 0x45fa70
mov dword [eax + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45fad0]
test eax, eax
jne 0x40d0da
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45fc08]
cmp eax, dword [ecx + 4]
jg 0x40d0df
push 0x45fa70
mov dword [0x45fad0], 0x45fc10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fad0]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x45fc08
call fcn.0042287f
add esp, 4
cmp dword [0x45fc08], 0xffffffff
jne 0x40d0c0
mov ecx, 0x45fc10
call fcn.0040c9f0
push 0x43dd00
call fcn.004224e1
push 0x45fc08
call fcn.00422835
add esp, 8
jmp 0x40d0c0

Function at 0x40d120
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f50], 0
push esi
mov esi, edx
je 0x40d173
push dword [0x456f58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d173
cmp dword [eax], 0xd
jbe 0x40d173
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40d173
push 0
push 0x45705c
push 0x457094
push 0
push eax
call fcn.0043bce4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40d173
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40d4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f50], 0
push ebx
mov dword [ebp - 4], 0
je 0x40d627
push dword [0x456f58]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40d557
cmp dword [eax], 0x17
jbe 0x40d557
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40d557
push 0
push 0x4570b4
push 0x457094
push 0
push eax
call fcn.0043bce4
add esp, 0x14
test eax, eax
je 0x40d557
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d66a
cmp dword [0x456f50], 0
je 0x40d627
push esi
push edi
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040d6b0
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40d613
push 0x202c
call fcn.00422267
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040d220
cmp dword [0x456f50], 0
mov esi, eax
je 0x40d613
push dword [0x456f58]
call ebx
test eax, eax
je 0x40d613
cmp dword [eax], 0x17
jbe 0x40d613
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x40d60d
push 8
call fcn.00422267
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfCationManager_.0
mov dword [edi + 4], esi
cmp dword [0x456f50], 0
je 0x40d613
push dword [0x456f58]
call ebx
test eax, eax
je 0x40d613
cmp dword [eax], 0x17
jbe 0x40d613
mov eax, dword [eax + 8]
push 0x45fa70
mov dword [eax + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x45fad4]
test eax, eax
jne 0x40d66a
push 0x45fa70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x463c54]
cmp eax, dword [ecx + 4]
jg 0x40d66f
push 0x45fa70
mov dword [0x45fad4], 0x461c28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fad4]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x463c54
call fcn.0042287f
add esp, 4
cmp dword [0x463c54], 0xffffffff
jne 0x40d650
mov ecx, 0x461c28
call fcn.0040d220
push 0x43dd30
call fcn.004224e1
push 0x463c54
call fcn.00422835
add esp, 8
jmp 0x40d650

Function at 0x40d6b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f50], 0
push esi
mov esi, edx
je 0x40d703
push dword [0x456f58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d703
cmp dword [eax], 0x17
jbe 0x40d703
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40d703
push 0
push 0x4570b4
push 0x457094
push 0
push eax
call fcn.0043bce4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40d703
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40e190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c710
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40e1e9
push eax
call fcn.00429f67
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push ecx
lea ecx, [ebp - 0x370]
call fcn.00405ac0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x4508c0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.00405c60
test al, al
je 0x40e37f
lea eax, [ebp - 0x378]
mov dword [ebp - 0x378], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x40e26e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e268
xor eax, eax
jmp 0x40e26e
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x40e2b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e2ad
xor eax, eax
mov dword [ebp - 0x374], eax
jmp 0x40e2b3
mov eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.00429f82
add esp, 4
mov dword [ebp - 0x378], eax
test eax, eax
jne 0x40e2ec
mov dword [edi + 0x24], 2
cmp byte [esi + 0x11c], al
je 0x40e2e2
add esi, 0xc
push 0x450778
jmp 0x40e32c
mov esi, dword [esi + 8]
push 0x450778
jmp 0x40e32c
push dword [ebp - 0x374]
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.0040e7a0
test al, al
jne 0x40e347
mov ecx, dword [ebp - 0x378]
push ecx
mov dword [edi + 0x24], 3
call fcn.00429f67
add esp, 4
cmp byte [esi + 0x11c], 0
je 0x40e324
add esi, 0xc
jmp 0x40e327
mov esi, dword [esi + 8]
push 0x44ea40
mov ecx, ebx
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
jmp 0x40e386
lea ecx, [ebp - 0x370]
call fcn.00405e80
mov ecx, dword [ebp - 0x378]
xor edx, edx
mov eax, dword [ebp - 0x374]
push ecx
push eax
push ecx
mov dword [ecx + eax], edx
mov ecx, edi
push ebx
call fcn.0040e4a0
test al, al
jne 0x40e37b
mov dword [edi + 0x24], 4
jmp 0x40e316
mov bl, 1
jmp 0x40e388
mov dword [edi + 0x24], 1
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.00405ba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret 0x10