joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x415], 0
push 0
push eax
call fcn.00418cc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404fd1
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0
push 0
push eax
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x41c], 0
call fcn.00418cc0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x404fd1
push esi
call fcn.0041ff0e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x42c], ebx
test ebx, ebx
je 0x404fd1
push ebx
push esi
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404fb2
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push str.VarFileInfoTranslation
push ebx
call esi
test eax, eax
je 0x404fb2
cmp dword [ebp - 0x41c], 4
jb 0x404fb2
mov ecx, dword [ebp - 0x424]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x414]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.00407ae0
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
call esi
test eax, eax
je 0x404fb2
mov ecx, dword [ebp - 0x41c]
cmp ecx, 2
jbe 0x404fb2
mov eax, dword [ebp - 0x428]
push edi
mov edi, 0x44242c
cmp word [eax + ecx*2 - 2], 0
jne 0x404f38
test eax, eax
cmovne edi, eax
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404ef1
sub esi, ecx
mov ecx, 0x458e18
sar esi, 1
mov dword [0x458e14], esi
inc esi
push esi
call fcn.0040b140
cmp byte [0x458f2c], 0
lea eax, [esi + esi]
mov ecx, 0x458e1c
cmove ecx, dword [0x458e18]
push eax
push edi
lea eax, [ecx + 4]
push eax
call fcn.00418740
add esp, 0xc
jmp 0x404faa
test eax, eax
cmovne edi, eax
xor esi, esi
test eax, eax
cmovne esi, ecx
mov ecx, 0x458e18
push esi
mov dword [0x458e14], esi
call fcn.0040b140
cmp byte [0x458f2c], 0
lea eax, [esi + esi]
mov ebx, 0x458e1c
mov edx, ebx
cmove edx, dword [0x458e18]
push eax
push edi
lea eax, [edx + 4]
push eax
call fcn.00418740
mov esi, dword [0x458e14]
add esp, 0xc
mov ecx, 0x458e18
lea eax, [esi + 1]
push eax
call fcn.0040b140
cmp byte [0x458f2c], 0
cmove ebx, dword [0x458e18]
xor eax, eax
mov word [ebx + esi*2 + 4], ax
mov ebx, dword [ebp - 0x42c]
mov byte [ebp - 0x415], 1
pop edi
push ebx
call fcn.0041fd4b
mov al, byte [ebp - 0x415]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.00416855
mov esp, ebp
pop ebp
ret
Function at 0x407b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434900
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x44e018]
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 dword [ebp - 0x13c], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], esi
cmp dword [eax + 4], esi
jbe 0x407bf8
mov ebx, eax
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00408090
movzx eax, word [eax + edi*2]
push eax
call fcn.00420145
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x407bc1
mov esi, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x144]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.0040b140
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push 0x446b94
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x446fac
push eax
call fcn.0040af90
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x446fac
push eax
call fcn.0040af90
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.0040af90
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push ebx
call fcn.0040fec0
test al, al
jne 0x407d1b
mov eax, dword [ebx]
test eax, eax
je 0x407cdc
nop dword [eax]
lea ebx, [eax + 0x124]
mov eax, dword [ebx]
test eax, eax
jne 0x407cd0
push 0x128
call fcn.00416863
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x13c], esi
call fcn.0040abd0
push 0x446bbc
push 0x446fac
mov dword [esi + 0x124], 0
push esi
mov dword [ebx], esi
call fcn.0040af90
add esp, 0xc
xor bl, bl
jmp 0x407d1d
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407d46
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x407d46
push eax
call fcn.0041fd4b
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.00416855
mov esp, ebp
pop ebp
ret 8
Function at 0x4081f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov cl, byte [edi + 0x11c]
lea eax, [edi + 0xc]
test cl, cl
jne 0x408217
mov eax, dword [edi + 8]
cmp word [eax + 6], 0x3a
jne 0x4082af
lea eax, [edi + 0xc]
test cl, cl
jne 0x40822c
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x4082af
push edi
lea ecx, [ebp - 0x24c]
call fcn.0040ac80
push 0x4467c4
lea eax, [ebp - 0x24c]
push 0x446fac
push eax
call fcn.0040af90
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408281
xor bl, bl
jmp 0x408287
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4083d0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x4083c3
push edi
lea ecx, [ebp - 0x128]
call fcn.0040ac80
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x4082cb
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4082f4
lea ecx, [edi + 0xc]
test al, al
jne 0x4082dc
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4082f4
lea ecx, [edi + 0xc]
test al, al
jne 0x4082ed
mov ecx, dword [edi + 8]
cmp word [ecx + 0xa], 0
je 0x40833c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40833c
test al, al
lea eax, [edi + 0xc]
jne 0x408305
mov eax, dword [edi + 8]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x40833c
push esi
lea esi, [ecx - 1]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], esi
call fcn.0040b140
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2 + 4], cx
pop esi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408362
xor bl, bl
jmp 0x4083a7
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x408372
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4083a1
lea ecx, [edi + 0xc]
test al, al
jne 0x408383
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4083a1
test al, al
je 0x408393
add edi, 0xc
jmp 0x408396
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x4083a1
mov bl, 1
jmp 0x4083a7
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4083d0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4083d0
push eax
call fcn.0041fd4b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00416855
mov esp, ebp
pop ebp
ret
Function at 0x408630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a1b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.ImmCleanup.0
mov edx, dword [0x44f0cc]
mov eax, dword [0x44f0d0]
cmp edx, eax
jne 0x4086a3
test eax, eax
jne 0x408685
mov edx, dword [0x44f0d4]
test edx, edx
jne 0x408689
lea edx, [eax + 1]
jmp 0x408693
add edx, edx
test edx, edx
js 0x4086c5
cmp edx, 0xfffffff
ja 0x4086c5
push edx
call fcn.004078a0
test eax, eax
je 0x4086c5
mov edx, dword [0x44f0cc]
mov eax, dword [0x44f0c8]
lea eax, [eax + edx*8]
test eax, eax
je 0x4086be
mov dword [eax], ebx
mov dword [eax + 4], str.t_antiHook
mov edx, dword [0x44f0cc]
inc edx
mov dword [0x44f0cc], edx
mov dword [ebx], vtable.ImmSingleton_class_t_antiHook_.0
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], fcn.0041ff0e
mov dword [ebx + 8], fcn.0041fc6d
mov dword [ebx + 0xc], fcn.0041fd4b
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x4000
mov dword [ebx], vtable.common::t_heap.0
lea edi, [ebx + 0x18]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
movss xmm0, dword [0x4498ac]
mulss xmm0, dword [0x4498a8]
mov dword [edi], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
call fcn.00433de0
movss xmm0, dword [0x4498ac]
mulss xmm0, dword [0x44989c]
mov dword [esi + 0x18], eax
call fcn.00433de0
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [esi + 0x1c], eax
lea esi, [edi + 0x38]
mov dword [ebp - 0x14], esi
movss xmm0, dword [0x4498ac]
mulss xmm0, dword [0x4498a8]
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 8], 0x11
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x24], 0xa
mov dword [esi + 0x30], ebx
mov dword [esi + 0xc], 0x3f400000
mov dword [esi + 0x10], 0x3e800000
mov dword [esi + 0x14], 0x40100000
call fcn.00433de0
movss xmm0, dword [0x4498ac]
mulss xmm0, dword [0x44989c]
mov dword [esi + 0x18], eax
call fcn.00433de0
xor ecx, ecx
cmp eax, 0x11
cmovb eax, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], ecx
mov dword [ebx + 0x94], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434af6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
lea eax, [edi + 0x20]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], fcn.0041ff0e
mov dword [edi + 0x18], fcn.0041fc6d
mov dword [edi + 0x1c], fcn.0041fd4b
mov dword [eax + 4], fcn.0041ff0e
mov dword [eax + 8], fcn.0041fc6d
mov dword [eax + 0xc], fcn.0041fd4b
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x1fff8
mov dword [eax], vtable.common::t_heap.0
mov dword [edi + 0x3c], fcn.0041ff0e
mov dword [edi + 0x40], fcn.0041fc6d
mov dword [edi + 0x44], fcn.0041fd4b
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0x8000
mov dword [edi + 0x38], vtable.common::t_heap.0
mov dword [edi + 0x50], 0
mov byte [edi + 0x54], 1
mov dword [ebp - 4], 0
lea ecx, [edi + 0x58]
mov dword [edi], vtable.t_configGameFile.0
mov dword [ebp - 0x10], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0x446c74
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], fcn.0041ff0e
mov dword [ecx + 0x20], fcn.0041fc6d
mov dword [ecx + 0x24], fcn.0041fd4b
mov dword [ecx + 0x28], eax
mov dword [ecx], vtable.t_configGameFile::t_setting.0
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x34], 0x446cc4
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x2c], vtable.n_config::t_int.0
mov byte [ecx + 0x44], 0
mov dword [ecx + 0x48], str.version
mov dword [ecx + 0x4c], 0x44242c
mov dword [ecx + 0x50], 0x44242c
mov dword [ecx + 0x40], vtable.n_config::t_str.0
mov dword [ecx + 0x54], eax
lea esi, [edi + 0xb0]
mov dword [ebp - 0x10], esi
mov byte [esi + 4], 0
mov dword [esi + 8], str.item
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
lea eax, [edi + 0x84]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], fcn.0041ff0e
mov dword [esi + 0x24], fcn.0041fc6d
mov dword [esi + 0x28], fcn.0041fd4b
mov dword [esi], vtable.n_config::t_arraySection_class_t_configGameFile::t_item_.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 4]
push eax
call fcn.00409c90
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [edi + 4]
call fcn.00409c90
xor esi, esi
cmp dword [edi + 8], esi
jle 0x409552
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x20]
inc esi
cmp esi, dword [edi + 8]
jl 0x409541
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x409ede
test edi, edi
je 0x409e97
cmp word [edi], 0
je 0x409e97
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x409e43
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040b2f0
push 0x446f10
mov esi, eax
push 0x446fac
push esi
call fcn.0040af90
lea ecx, [ebx + 4]
push ecx
push 0x446fac
push esi
call fcn.0040af90
push 0x4467c4
push 0x446fac
push esi
call fcn.0040af90
push edi
push 0x446fac
push esi
call fcn.0040af90
add esp, 0x30
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x409ea6
mov edi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040b2f0
push 0x446f10
mov esi, eax
push 0x446fac
push esi
call fcn.0040af90
lea ecx, [edi + 4]
push ecx
push 0x446fac
push esi
call fcn.0040af90
add esp, 0x18
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 0x409f93
test edi, edi
je 0x409f58
cmp word [edi], 0
je 0x409f58
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x409f03
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0
call fcn.0040b2f0
push 0x446f20
mov esi, eax
push 0x446fac
push esi
call fcn.0040af90
lea ecx, [ebx + 4]
push ecx
push 0x446fac
push esi
call fcn.0040af90
push 0x4467c4
push 0x446fac
push esi
call fcn.0040af90
push edi
push 0x446fac
push esi
call fcn.0040af90
add esp, 0x30
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x128], 0
je 0x409f66
add esi, 0x18
jmp 0x409f69
mov esi, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
push 0x446f20
call fcn.00402750
lea ecx, [esi + 4]
push ecx
push 0x446fac
push eax
call fcn.0040af90
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 0x40a0a0
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 0x40a0e0
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.0041ff0e
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 0x40a13b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4467c4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a13b
mov ecx, dword [ebp - 8]
mov bl, 1
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 esi, esi
je 0x40a148
push esi
call fcn.0041fd4b
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a260
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
call fcn.0040a3e0
test al, al
je 0x40a2c1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.00411af0
mov esi, eax
cmp byte [esi], 0
je 0x40a326
mov ecx, esi
call fcn.00411eb0
mov eax, dword [esi + 4]
test eax, eax
jg 0x40a299
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 0x40a326
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret
call fcn.0040a7d0
test al, al
je 0x40a326
cmp byte [0x450a35], 0
je 0x40a326
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.00412320
mov esi, eax
cmp byte [esi + 4], 0
je 0x40a326
push ecx
mov ecx, esi
call fcn.00412440
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x40a300
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 0x40a326
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
pop esi
ret
Function at 0x40b540
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 0x40b580
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.0041ff0e
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 0x40b601
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4467c4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b601
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 0x40b5ff
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 0x40b60e
push esi
call fcn.0041fd4b
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434e98
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x44e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x40eb81
push 0x60
call fcn.00407a70
mov ecx, eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x30], esi
mov dword [ecx], 0
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0xc], 0x3f400000
mov dword [ecx + 0x10], 0x3e800000
mov dword [ecx + 0x14], 0x40100000
mov dword [ecx + 0x18], 0x26
mov dword [ecx + 0x1c], 0
lea eax, [ecx + 0x34]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 0x10], eax
mov dword [eax + 0x10], esi
lea eax, [ecx + 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], esi
mov dword [ebp - 0x10], eax
mov eax, ecx
mov dword [ecx + 0x5c], esi
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret