joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43befb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
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 esi, ecx
mov edi, dword [ebp + 8]
call fcn.004025c0
test al, al
je 0x4029f3
mov al, 1
jmp 0x402b88
lea ecx, [ebp - 0x134]
call fcn.00406000
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00402bb0
test al, al
je 0x402ab9
cmp dword [ebp - 0x130], 2
jb 0x402aa1
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
test bl, bl
cmove eax, ecx
movzx edx, word [eax + 6]
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 0xa]
cmp edx, 0x3a
jne 0x402aa1
cmp word [ebp - 0x25c], 0x5c
jne 0x402aa1
test ax, ax
je 0x402ab9
push 1
push 0
push edi
lea ecx, [ebp - 0x134]
call fcn.004029b0
test al, al
je 0x402b49
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402ac8
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402b4d
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x402ae6
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x258]
push eax
call fcn.00402110
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
push 0x44a77c
mov ecx, edi
call fcn.004073e0
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b49
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x402b49
push eax
call fcn.00429f77
add esp, 4
xor bl, bl
jmp 0x402b5d
mov ecx, esi
call fcn.00402d70
mov ecx, esi
call fcn.00402ce0
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b86
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402b86
push eax
call fcn.00429f77
add esp, 4
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.00422505
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c05e
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.00429f92
mov dword [edi + 8], fcn.0042a3d4
mov dword [edi + 0xc], fcn.00429f77
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.00422276
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.0040a1a0
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.00429f77
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.00422505
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 0x43c150
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 [0x4599e4], 0
jne 0x404da0
call fcn.00407bd0
test al, al
jne 0x404da0
call fcn.00406800
test al, al
je 0x404da0
mov ecx, str.CheckSig1
call fcn.00409390
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.00409420
cmp byte [0x45fa99], 0
jne 0x404d48
push 0x114
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00424350
push 0x114
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.00424350
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 [0x45fa98], 1
jne 0x404d21
movzx eax, byte [0x45fa98]
cmp ecx, 3
mov edx, 1
cmovae eax, edx
mov byte [0x45fa98], 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 [0x45fa98], 1
mov byte [0x45fa99], 1
sub esp, 8
mov ecx, esi
cmp byte [0x45fa98], 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.00429f77
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.00422505
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.004091b0
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.00429f92
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.00429f77
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409420
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
call fcn.004095a0
test al, al
je 0x409489
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call fcn.0040ce40
push esi
mov ecx, eax
call fcn.0040c9b0
mov esi, eax
cmp byte [esi], 0
je 0x4094ee
mov ecx, esi
call fcn.0040cd60
mov eax, dword [esi + 4]
test eax, eax
jg 0x409461
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 0x4094ee
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret
call fcn.00409970
test al, al
je 0x4094ee
cmp byte [0x4599e6], 0
je 0x4094ee
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.0040d200
mov esi, eax
cmp byte [esi + 4], 0
je 0x4094ee
push ecx
mov ecx, esi
call fcn.0040d320
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4094c8
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 0x4094ee
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret

Function at 0x409da0
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 0x409e1e
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x409de8
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 0x409eb7
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x409e3c
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 0x409ed0
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.0042ad78
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
jne 0x409f25
xor al, al
pop esi
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00422505
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.0042b397
add esp, 0x10
test eax, eax
je 0x409f9a
nop
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0xc]
call fcn.0040d6b0
push dword [esp + 8]
lea eax, [esp + 0x78]
push 0x400
push 1
push eax
call fcn.0042b397
add esp, 0x14
test eax, eax
jne 0x409f70
mov edx, esi
lea ecx, [esp + 8]
call fcn.0040d770
push dword [esp + 4]
call fcn.0042aee4
mov ecx, dword [esp + 0x478]
add esp, 4
mov al, 1
pop esi
xor ecx, esp
call fcn.00422505
mov esp, ebp
pop ebp
ret
Function at 0x40c5b0
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 0x40c695
test edi, edi
je 0x40c64b
cmp word [edi], 0
je 0x40c64b
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40c605
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 0x40c67c
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x40c65a
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 0x40c705
test edi, edi
je 0x40c6ca
cmp word [edi], 0
je 0x40c6ca
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x40c6b6
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.00407350
push 0x45064c
jmp 0x40c613
cmp byte [esi + 0x128], 0
je 0x40c6d8
add esi, 0x18
jmp 0x40c6db
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 0x40ce40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f60], 0
push ebx
mov dword [ebp - 4], 0
je 0x40cf77
push dword [0x456f68]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40cea7
cmp dword [eax], 0xd
jbe 0x40cea7
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40cea7
push 0
push 0x45706c
push 0x4570a4
push 0
push eax
call fcn.0043bcf4
add esp, 0x14
test eax, eax
je 0x40cea7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40cfba
cmp dword [0x456f60], 0
je 0x40cf77
push esi
push edi
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040d000
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40cf63
push 0x2014
call fcn.00422276
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040c8d0
cmp dword [0x456f60], 0
mov esi, eax
je 0x40cf63
push dword [0x456f68]
call ebx
test eax, eax
je 0x40cf63
cmp dword [eax], 0xd
jbe 0x40cf63
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x40cf5d
push 8
call fcn.00422276
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 [0x456f60], 0
je 0x40cf63
push dword [0x456f68]
call ebx
test eax, eax
je 0x40cf63
cmp dword [eax], 0xd
jbe 0x40cf63
mov eax, dword [eax + 8]
push 0x45fa80
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 0x45fa80
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 [0x45fae0]
test eax, eax
jne 0x40cfba
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45fc18]
cmp eax, dword [ecx + 4]
jg 0x40cfbf
push 0x45fa80
mov dword [0x45fae0], 0x45fc20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fae0]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x45fc18
call fcn.0042288f
add esp, 4
cmp dword [0x45fc18], 0xffffffff
jne 0x40cfa0
mov ecx, 0x45fc20
call fcn.0040c8d0
push 0x43dd10
call fcn.004224f0
push 0x45fc18
call fcn.00422845
add esp, 8
jmp 0x40cfa0

Function at 0x40d000
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f60], 0
push esi
mov esi, edx
je 0x40d053
push dword [0x456f68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d053
cmp dword [eax], 0xd
jbe 0x40d053
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x40d053
push 0
push 0x45706c
push 0x4570a4
push 0
push eax
call fcn.0043bcf4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40d053
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 0x40d3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456f60], 0
push ebx
mov dword [ebp - 4], 0
je 0x40d507
push dword [0x456f68]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x40d437
cmp dword [eax], 0x17
jbe 0x40d437
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40d437
push 0
push 0x4570c4
push 0x4570a4
push 0
push eax
call fcn.0043bcf4
add esp, 0x14
test eax, eax
je 0x40d437
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d54a
cmp dword [0x456f60], 0
je 0x40d507
push esi
push edi
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 4]
call fcn.0040d590
mov esi, dword [ebp - 4]
test esi, esi
jne 0x40d4f3
push 0x202c
call fcn.00422276
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0040d100
cmp dword [0x456f60], 0
mov esi, eax
je 0x40d4f3
push dword [0x456f68]
call ebx
test eax, eax
je 0x40d4f3
cmp dword [eax], 0x17
jbe 0x40d4f3
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x40d4ed
push 8
call fcn.00422276
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 [0x456f60], 0
je 0x40d4f3
push dword [0x456f68]
call ebx
test eax, eax
je 0x40d4f3
cmp dword [eax], 0x17
jbe 0x40d4f3
mov eax, dword [eax + 8]
push 0x45fa80
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 0x45fa80
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 [0x45fae4]
test eax, eax
jne 0x40d54a
push 0x45fa80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x463c64]
cmp eax, dword [ecx + 4]
jg 0x40d54f
push 0x45fa80
mov dword [0x45fae4], 0x461c38
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x45fae4]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x463c64
call fcn.0042288f
add esp, 4
cmp dword [0x463c64], 0xffffffff
jne 0x40d530
mov ecx, 0x461c38
call fcn.0040d100
push 0x43dd40
call fcn.004224f0
push 0x463c64
call fcn.00422845
add esp, 8
jmp 0x40d530

Function at 0x40d590
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x456f60], 0
push esi
mov esi, edx
je 0x40d5e3
push dword [0x456f68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40d5e3
cmp dword [eax], 0x17
jbe 0x40d5e3
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40d5e3
push 0
push 0x4570c4
push 0x4570a4
push 0
push eax
call fcn.0043bcf4
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x40d5e3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi], eax
mov al, 1
pop esi
ret
xor al, al
pop esi
ret