joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406614
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464de4
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x491330]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x491330]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x54]
push edi
push str.CFileListVerify::StartFileVersionCheck
call fcn.004075be
mov dword [esp + 0xa8], edi
cmp dword [ebx + 0x10], edi
jne 0x40667a
push str.quickLaunch__fileList__CheckFileVersion__invalid_Meeting_Path
jmp 0x406691
cmp dword [ebx + 0x18], edi
je 0x406686
push str.quickLaunch__fileList__CheckFileVersion__File_Version_Check_Thread_already_Running
jmp 0x406691
cmp dword [ebp + 8], 0
jne 0x40669c
push str.quickLaunch__fileList__CheckFileVersion__Thread_callback_Wnd_is_NULL
call fcn.0042ada2
pop ecx
jmp 0x4067f9
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xa8], 1
lea eax, [esp + 0x20]
push dword [ebx + 0x20]
lea ecx, [esp + 0x18]
push dword [ebx + 0x1c]
push edi
push eax
call fcn.00404e25
mov esi, dword [ebx + 0x28]
jmp 0x40671a
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0xac], 2
mov ecx, dword [ebx + 0x34]
push eax
call fcn.004040cd
push dword [esp + 0x28]
lea eax, [esp + 0x24]
push dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push dword [esp + 0x20]
push eax
call fcn.00404e25
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 1
call fcn.00404942
add esi, 0x18
cmp esi, dword [ebx + 0x2c]
jne 0x4066ca
mov esi, dword [esp + 0x14]
jmp 0x40677a
push 0x47b858
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.00404d93
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0xb0], 3
push eax
call fcn.00404dfe
add esp, 0xc
mov ecx, esi
push eax
call fcn.0040439d
push edi
push 1
lea ecx, [esp + 0x2c]
call fcn.00401833
push edi
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xb0], 1
call fcn.00401833
add esi, 0x34
cmp esi, dword [esp + 0x18]
jne 0x406725
push 0x14
call fcn.004428fc
mov esi, eax
pop ecx
test esi, esi
je 0x406798
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
jmp 0x40679a
mov esi, edi
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00404496
mov eax, dword [ebp + 8]
push edi
push edi
push esi
push 0x406461
push edi
push edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4067cf
xor edi, edi
inc edi
jmp 0x4067f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.quickLaunch__failed_to_launch_thread_err_d
call fcn.0042ada2
pop ecx
pop ecx
mov ecx, esi
call fcn.00404942
push esi
call fcn.00442808
pop ecx
lea ecx, [esp + 0x14]
call fcn.00404942
or dword [esp + 0xa8], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.004076a4
mov eax, edi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00441f6f
mov esp, ebp
pop ebp
ret 4
Function at 0x4069dc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov dword [ebp - 0x214], edx
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.00447ae0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x406aa4
push esi
push edi
call fcn.004413a2
mov esi, eax
pop ecx
test esi, esi
je 0x406aa3
and dword [ebp - 0x210], 0
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x47b858
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x406a9c
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._u__u__u__u
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405b88
add esp, 0x1c
push esi
call fcn.004427e1
pop ecx
pop esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004012f1
pop ecx
mov ecx, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a41
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x20c], ax
pop edi
setne al
xor ecx, ebp
pop ebx
call fcn.00441f6f
mov esp, ebp
pop ebp
ret

Function at 0x4078d2
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
cmp dword [ebx + 4], edi
je 0x4078e2
xor eax, eax
inc eax
jmp 0x40794e
push esi
push str.A6269ACC_B90F_4E5F_A1FA_FC31EE19E299
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
je 0x40792b
cmp esi, 0xffffffff
je 0x40792b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407918
push str.quickLaunch__preJoinWarmUp__checkMutext__alreadyExist
call fcn.0042ade0
jmp 0x40793f
xor edi, edi
mov dword [ebx + 4], esi
push str.quickLaunch__preJoinWarmUp__checkMutex_success
inc edi
call fcn.0042ade0
pop ecx
jmp 0x40794b
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.quickLaunch__preJoinWarmUp__checkMutext_open_failed__not_exist__err_x
call fcn.0042ade0
pop ecx
pop ecx
test esi, esi
je 0x40794b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
Function at 0x407ce7
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x418], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x414], edx
push eax
push 0x8000000
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x410], eax
mov ebx, eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x40c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.fail_to_Open_file__s__err__d_
push ebx
push 8
push str...crypttoolCryptoEx.cpp
push 0x264
call fcn.0042ab69
add esp, 0x1c
xor eax, eax
jmp 0x407e71
push 0xf0000000
push 0x18
xor esi, esi
lea eax, [ebp - 0x410]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x407da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_fail_err__d_
push esi
push 8
push str...crypttoolCryptoEx.cpp
push 0x272
jmp 0x407e47
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x407ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptCreateHash_fail__err__d_
push esi
push 8
push str...crypttoolCryptoEx.cpp
push 0x278
jmp 0x407e47
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x407e12
cmp dword [ebp - 0x40c], ebx
je 0x407e9f
push 0
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407e82
push 0
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call esi
test eax, eax
jne 0x407de5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.calhash_fail__err__d_
xor esi, esi
push esi
push 8
push str...crypttoolCryptoEx.cpp
push 0x298
call fcn.0042ab69
add esp, 0x18
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptHashData_fail_err__d_
xor esi, esi
push esi
push 8
push str...crypttoolCryptoEx.cpp
push 0x286
jmp 0x407e47
test eax, eax
je 0x407e2c
xor esi, esi
push esi
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push 2
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x407ec9
xor ebx, ebx
inc ebx
jmp 0x407e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptGetHashParam_err__d_
push esi
push 8
push str...crypttoolCryptoEx.cpp
push 0x293
jmp 0x407e47
Function at 0x407ee7
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf0000000
xor ebx, ebx
lea eax, [ebp - 8]
push 0x18
push ebx
push ebx
push eax
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x407f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CalHashOfData::CryptAcquireContext_fail_err__d_
push ebx
push 8
push str...crypttoolCryptoEx.cpp
push 0x2b8
call fcn.0042ab69
push esi
push str.CalHash:Acq__d_
push 2
call fcn.0042ab8f
add esp, 0x24
xor eax, eax
jmp 0x408026
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x407fe1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407fb9
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, eax
test edi, edi
jne 0x408011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CalHashOfData::CryptGetHashParam_fail__err__d_
push ebx
push 8
push str...crypttoolCryptoEx.cpp
push 0x2c5
call fcn.0042ab69
push esi
push str.CalHash:GetHash__d_
jmp 0x408007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CalHashOfData::CryptHashData_fail__err__d_
push ebx
push 8
push str...crypttoolCryptoEx.cpp
push 0x2cc
call fcn.0042ab69
push esi
push str.CalHash:HashData__d_
jmp 0x408007
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CalHashOfData::CryptCreateHash_fail_err__d_
push ebx
push 8
push str...crypttoolCryptoEx.cpp
push 0x2d4
call fcn.0042ab69
push esi
push str.CalHash:Create__d_
push 2
call fcn.0042ab8f
add esp, 0x24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409034
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409047
push dword [ebp + 8]
call fcn.00409353
jmp 0x409063
lea eax, [ecx + 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ecx + 0x214]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0xc
Function at 0x409282
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
lea eax, [ecx + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ecx + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebp
ret 4

Function at 0x409353
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x4650e7
call fcn.0044584f
mov edi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40936f
xor eax, eax
jmp 0x409472
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401720
and dword [ebp - 4], 0
mov esi, 0x47e554
push esi
call fcn.004012f1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402a5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00409282
mov esi, eax
test esi, esi
jle 0x4093db
mov edi, 0x4b000
cmp esi, edi
jle 0x409464
push esi
push str.Beyond_max_size:_d
push 0
push 2
push str...crypttool_verify4orion.cpp
push 0x8a
call fcn.0042ab69
add esp, 0x18
mov esi, edi
jmp 0x409464
xor esi, esi
cmp dword [edi + 4], esi
jne 0x409417
push 0xa000
call fcn.004413a2
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5000
pop ecx
test eax, eax
jne 0x409417
push str.low_memory
push esi
push 8
push str...crypttool_verify4orion.cpp
push 0x97
call fcn.0042ab69
add esp, 0x14
jmp 0x409464
lea eax, [edi + 0xc]
push eax
push dword [edi + 8]
lea eax, [edi + 0x214]
push dword [edi + 4]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [esi + 2]
cmp eax, dword [edi + 8]
jbe 0x409464
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push str.The_length_of___s__is_too_big__please_use___s__to_store_lenght
push 0
push 8
push str...crypttool_verify4orion.cpp
push 0xa1
call fcn.0042ab69
add esp, 0x1c
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401833
mov eax, esi
call fcn.004457fe
ret 4

Function at 0x40ad2f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
js 0x40ad52
cmp esi, dword [edi + 8]
jle 0x40ad87
push 0x1a3
push str..._npatgpc_npbase_win.cpp
push str.nIndex___0__nIndex___m_nUsed
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
js 0x40adcb
cmp esi, dword [edi + 8]
jg 0x40adcb
mov ecx, edi
call fcn.0040af7d
test eax, eax
je 0x40adcb
mov ecx, dword [edi + 8]
cmp esi, ecx
jge 0x40adbb
mov eax, dword [edi]
sub ecx, esi
shl ecx, 2
push ecx
lea eax, [eax + esi*4]
push eax
push ecx
add eax, 4
push eax
call fcn.00443c8d
add esp, 0x10
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
xor eax, eax
inc dword [edi + 8]
inc eax
jmp 0x40adcd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret 8
Function at 0x40addf
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x40ae32
push 0x1b9
push str..._npatgpc_npbase_win.cpp
push 0x47e878
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x40ae49
mov eax, dword [esi]
cmp dword [eax], edi
je 0x40ae49
inc ecx
add eax, 4
cmp ecx, edx
jl 0x40ae3d
cmp ecx, edx
jge 0x40ae79
lea eax, [edx - 1]
cmp ecx, eax
jge 0x40ae71
mov eax, dword [esi]
sub edx, ecx
lea edx, [edx*4 - 4]
lea ecx, [eax + ecx*4]
push edx
lea eax, [ecx + 4]
push eax
push edx
push ecx
call fcn.00443c8d
add esp, 0x10
dec dword [esi + 8]
xor eax, eax
inc eax
jmp 0x40ae7b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret 4

Function at 0x40aee0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40af30
push 0x1f7
push str..._npatgpc_npbase_win.cpp
push str.m_ppHead___NULL
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x40af43
cmp ecx, dword [esi + 8]
jge 0x40af43
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
jmp 0x40af45
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret 4
Function at 0x40afd6
Capabilities:
Get file version info
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x80c], edi
test edi, edi
jne 0x40b031
push 0x3ef
push str..._npatgpc_npbase_win.cpp
push str.lpszPath
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call ebx
test esi, esi
jne 0x40b066
push 0x3f0
push str..._npatgpc_npbase_win.cpp
push str.lpszVersion
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call ebx
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x814]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov dword [ebp - 0x810], eax
test eax, eax
je 0x40b145
push eax
call fcn.004413a2
mov edi, eax
pop ecx
test edi, edi
je 0x40b143
push edi
push dword [ebp - 0x810]
xor eax, eax
push eax
push dword [ebp - 0x80c]
mov dword [ebp - 0x808], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push 0x47b858
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x808]
test ecx, ecx
jne 0x40b115
push 0x405
push str..._npatgpc_npbase_win.cpp
push str.pFileInfo
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call ebx
mov ecx, dword [ebp - 0x808]
test ecx, ecx
je 0x40b13c
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._u__u__u__u
push 0x80
push esi
call fcn.00442c1e
add esp, 0x1c
push edi
call fcn.004427e1
pop ecx
xor ecx, ecx
xor eax, eax
cmp word [esi], cx
mov ecx, dword [ebp - 4]
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
Function at 0x40b15e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40b1b1
push 0x427
push str..._npatgpc_npbase_win.cpp
push str.lpszString
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40b1fa
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [esi - 1]
mov ebx, str.__t_r_n
add edi, eax
jmp 0x40b1da
movsx eax, byte [edi]
push eax
push ebx
call fcn.00443fa0
pop ecx
pop ecx
test eax, eax
je 0x40b1f1
mov byte [edi], 0
dec edi
cmp edi, esi
jae 0x40b1c6
jmp 0x40b1f1
movsx eax, byte [esi]
push eax
push ebx
call fcn.00443fa0
pop ecx
pop ecx
test eax, eax
je 0x40b1f6
inc esi
cmp byte [esi], 0
jne 0x40b1e0
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret

Function at 0x40b209
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x491330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x40b25d
push 0x448
push str..._npatgpc_npbase_win.cpp
push str.lpszString
push str.ASSERT__s_failed_at_file__s__line__d_r_n
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00405b88
add esp, 0x18
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40b29e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [esi - 2]
lea edi, [edi + eax*2]
jmp 0x40b280
mov dx, word [edi]
call fcn.004084c9
test eax, eax
je 0x40b284
xor eax, eax
mov word [edi], ax
sub edi, 2
cmp edi, esi
jae 0x40b26c
xor edi, edi
jmp 0x40b297
mov dx, word [esi]
call fcn.004084c9
test eax, eax
je 0x40b29c
add esi, 2
cmp word [esi], di
jne 0x40b288
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441f6f
mov esp, ebp
pop ebp
ret
Function at 0x40c671
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40c6ac
jmp loc.004b0408
cmp dword [esi + 4], edi
je 0x40c6ba
pop edi
pop esi
pop ebp
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x40c997
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x40c9aa
push 0xd
pop eax
jmp 0x40c9ee
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x40c9bd
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40c9b5
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40cddf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4652aa
call fcn.004458bb
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40ce5c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40ce5c
call fcn.0040c576
mov esi, eax
jmp 0x40cf67
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40ce7f
call fcn.0040c576
jmp 0x40cf5a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40ce75
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x40ceb2
mov esi, 0x8007000e
jmp 0x40cf5c
xor eax, eax
mov byte [ebp - 4], 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x40ceeb
cmp ecx, 0xffffffff
ja 0x40ceeb
cmp ecx, 0x400
jbe 0x40cedd
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040eddb
jmp 0x40cf09
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40cf09
push 0x80070216
call fcn.0040c504
mov eax, 0x40cefb
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40cea8
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40ce75
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040d9cc
mov esi, eax
test edi, edi
je 0x40cf67
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40cf80
lea ecx, [ebp - 0x418]
call fcn.0040ed29
mov eax, esi
call fcn.0044580d
ret 0x10