joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404643
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x404672
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004010f3
add esp, 0x14
jmp 0x404750
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x404750
test al, 0x40
jne 0x404750
test al, 2
je 0x404694
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x404750
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x404654
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x404740
cmp eax, 0xffffffff
je 0x404740
test byte [esi + 0xc], 0x82
jne 0x404715
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x404700
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x404700
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x404705
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x404715
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x404733
mov eax, dword [esi + 0xc]
test al, 8
je 0x404733
test eax, 0x400
jne 0x404733
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x404753
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x405f71
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x405fa0
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004010f3
add esp, 0x14
jmp 0x40608a
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x40608a
test al, 0x40
jne 0x40608a
test al, 2
je 0x405fc2
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x40608a
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x405f82
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40607a
cmp eax, 1
je 0x40607a
cmp eax, 0xffffffff
je 0x40607a
test byte [esi + 0xc], 0x82
jne 0x40604c
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x406037
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x406037
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x40603c
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x40604c
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x40606a
mov eax, dword [esi + 0xc]
test al, 8
je 0x40606a
test eax, 0x400
jne 0x40606a
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x40608f
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4064fc
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00406451
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40656f
cmp dword [ebp - 0x94], 5
jb 0x406590
jmp 0x40658c
cmp dword [ebp - 0x88], 1
jne 0x406590
cmp dword [ebp - 0x94], 4
ja 0x40658c
jne 0x406590
cmp dword [ebp - 0x90], 0
jbe 0x406590
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40b39c
call fcn.00406306
test eax, eax
jge 0x4065b1
mov byte [0x40d70c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401110
leave
ret
Function at 0x40765c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4076b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4076b5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4076a4
cmp esi, ecx
jae 0x4076b5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x407692
cmp esi, ecx
jae 0x4076b5
cmp word [esi], 0
je 0x4076b5
lfence
mov eax, esi
jmp 0x4076b7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407b4d
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
xor eax, eax
mov dword [ebp - 4], edx
push eax
push eax
push 0x23
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x407bb1
push str.Crypto_ProTrace.ini
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x407bb1
lea eax, [ebp - 0x210]
push eax
push dword [esi]
push dword [ebp - 4]
push 0x40b7a4
push dword [ebp - 8]
push str.Trace
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x407c02
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x407c08
push str.Crypto_ProTrace.ini
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x407c08
lea eax, [ebp - 0x210]
push eax
push dword [esi]
push dword [ebp - 4]
push 0x40b7a4
push dword [ebp - 8]
push str.Trace
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x407c08
mov dword [esi], eax
xor eax, eax
jmp 0x407c0e
and dword [esi], 0
push 2
pop eax
pop esi
leave
ret
Function at 0x408604
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4086f1
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x408636
push ecx
push dword [ebp + 8]
jmp 0x4086e9
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
js 0x408693
push str.Crypto_ProLogFiles
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x408693
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x408693
push ecx
lea eax, [ebp - 0x208]
push eax
call fcn.004085ac
mov dword [esi + 4], eax
xor ecx, ecx
cmp dword [esi + 4], ecx
jne 0x4086f1
lea eax, [ebp - 0x208]
push eax
push ecx
push ecx
push 0x1c
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4086f1
push str.Crypto_ProLogFiles
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x4086f1
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x4086f1
push ecx
lea eax, [ebp - 0x208]
push eax
call fcn.004085ac
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
pop esi
pop ebx
leave
ret 4
Function at 0x408934
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x410]
push ebx
push esi
mov ebx, 0x400
mov dword [ebp - 8], edx
push ebx
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
add esp, 0xc
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.00408d7e
test al, al
je 0x408b53
push edi
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call edi
and dword [eax], 0
lea eax, [ebp - 0x410]
push dword [0x40d340]
push str._S:
push 0x3ff
push ebx
push eax
call fcn.004012b4
add esp, 0x14
mov esi, eax
call edi
cmp dword [eax], 0
je 0x4089c3
call edi
mov ecx, dword [eax]
call fcn.0040678a
jmp 0x4089ca
call edi
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
test esi, esi
js 0x408b15
cmp esi, ebx
jge 0x408a4d
mov eax, dword [0x40d7f4]
cmp byte [eax + 0x42b], 0
je 0x408a54
lfence
call edi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call edi
push dword [ebp + 8]
push dword [ebp - 8]
and dword [eax], 0
mov eax, 0x3ff
sub eax, esi
push str._s__d__:
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp - 0x410]
add eax, esi
push eax
call fcn.004012b4
add esp, 0x18
mov dword [ebp - 8], eax
call edi
cmp dword [eax], 0
je 0x408a31
call edi
mov ecx, dword [eax]
call fcn.0040678a
jmp 0x408a38
call edi
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
test eax, eax
js 0x408b15
add esi, eax
js 0x408b15
cmp esi, ebx
jae 0x408ac7
mov eax, dword [0x40d7f4]
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x408ac7
cmp byte [eax + 0x42a], 0
je 0x408ac7
lfence
call edi
mov eax, dword [eax]
mov dword [ebp - 8], eax
call edi
and dword [eax], 0
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
push str._S:
mov eax, 0x3ff
sub eax, esi
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [ebp - 0x410]
add eax, esi
push eax
call fcn.004012b4
add esp, 0x14
mov dword [ebp - 4], eax
call edi
cmp dword [eax], 0
je 0x408ab5
call edi
mov ecx, dword [eax]
call fcn.0040678a
jmp 0x408abc
call edi
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
test eax, eax
js 0x408b15
add esi, eax
js 0x408b15
cmp esi, ebx
jge 0x408b15
lfence
call edi
mov eax, dword [eax]
mov dword [ebp - 4], eax
call edi
push dword [ebp + 0x18]
sub ebx, esi
push dword [ebp + 0x14]
and dword [eax], 0
mov eax, 0x3ff
sub eax, esi
push eax
lea eax, [ebp - 0x410]
add eax, esi
push ebx
push eax
call fcn.004011fa
add esp, 0x14
call edi
cmp dword [eax], 0
je 0x408b0e
call edi
mov ecx, dword [eax]
call fcn.0040678a
jmp 0x408b15
call edi
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0xc], 0
lea eax, [ebp - 0x410]
pop edi
push eax
je 0x408b38
push 0x40b828
push 0
push 0
push 0
push 0
call dword [ebp - 0xc]
add esp, 0x18
jmp 0x408b53
cmp dword [0x40d344], 0
je 0x408b4d
mov ecx, 0x40d340
call fcn.0040901f
jmp 0x408b53
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
leave
ret
Function at 0x40901f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x40a2e3
call fcn.00406634
push ecx
push ecx
mov eax, dword [0x40d350]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, 0x40d350
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
cmp dword [ebx + 4], edi
je 0x4090cf
push 0x14
lea ecx, [ebp - 0x10]
call fcn.004078a6
push eax
call fcn.00408e44
push 0x13
lea ecx, [ebp - 0x10]
call fcn.00407949
push 3
push 0x40b84c
lea ecx, [ebp - 0x10]
call fcn.00407972
mov edx, dword [ebp + 8]
test edx, edx
jne 0x409084
mov ecx, edi
jmp 0x409092
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409089
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00407972
push ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408ed8
mov eax, dword [ebx + 4]
push 2
push edi
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebx + 4]
push dword [esi - 0xc]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.004079cc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40969b
Capabilities:
Get system information on windows

Disassembly:
push 0x38
push 0x40c050
call fcn.00406654
mov edi, 0x40d7d8
mov dword [ebp - 0x24], edi
xor esi, esi
push esi
mov ecx, edi
call fcn.00409939
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 1
push 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4096dd
cmp dword [ebp - 0x1c], esi
je 0x4096f8
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x4096f8
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], esi
jmp 0x40981f
push dword [ebp + 8]
push 0x400000
push esi
push 0x4000004
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x40d7fc], eax
test eax, eax
je 0x40981f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
push esi
push esi
push 0xf001f
push dword [0x40d7fc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x40d804], eax
test eax, eax
je 0x40981f
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp ebx, 0xb7
jne 0x4097bf
mov ebx, dword [0x40d804]
mov dword [0x40d7f4], ebx
test ebx, ebx
je 0x40981f
mov eax, dword [ebx + 0x438]
test eax, eax
je 0x40981f
push dword [ebx + 0x414]
push eax
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40981f
inc dword [ebx + 0x434]
mov eax, dword [0x40d7f4]
mov eax, dword [eax + 0x438]
mov dword [0x40d7f4], eax
push dword [0x40d804]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x40d7f4]
mov dword [0x40d804], eax
jmp 0x409810
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x20], ebx
cmp ebx, 0x448
jae 0x4097d2
add ebx, dword [ebp - 0x44]
jmp 0x4097c2
push 4
push 0x1000
push ebx
push dword [0x40d804]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40981f
push ecx
mov ecx, dword [0x40d804]
call fcn.0040a11a
mov dword [0x40d7f4], eax
mov dword [eax + 0x414], ebx
mov eax, dword [0x40d7f4]
mov dword [eax + 0x41c], 0x448
mov eax, dword [ebp - 0x44]
mov dword [0x40d7f8], eax
mov byte [0x40d800], 1
or dword [ebp - 4], 0xffffffff
call fcn.00409843
mov al, byte [0x40d800]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4157e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x415805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x415878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x41583a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41586d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41586b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x415831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4157fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x432006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100010f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100220e0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push str.Enter_
mov esi, ecx
push 0x65
push 4
mov edx, str.CBugReportWrapper::LoadBugReportHandlerDll
mov ecx, str..BugReportWrapper.cpp
xor ebx, ebx
call fcn.10001780
add esp, 0xc
test esi, esi
jne 0x10001149
push str.NULL__ptchPath
push 0x6b
push 2
mov edx, str.CBugReportWrapper::LoadBugReportHandlerDll
mov ecx, str..BugReportWrapper.cpp
call fcn.10001780
add esp, 0xc
jmp 0x1000120c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, str.CBugReportWrapper::LoadBugReportHandlerDll
mov ecx, str..BugReportWrapper.cpp
test eax, eax
jne 0x10001175
push esi
push str.ptchPath_is_not_exist__ptchPath:_s
push 0x71
push 2
call fcn.10001780
add esp, 0x10
jmp 0x1000120c
cmp dword [edi + 0x28], ebx
je 0x10001192
push str.m_hBugReportHandlerDll
push 0x78
push 2
mov ebx, 1
call fcn.10001780
add esp, 0xc
jmp 0x1000120c
push esi
push str.ptchPath:_s
push 0x7c
push 3
call fcn.10001780
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x10001207
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
push esi
push str.errorid_u
lea edx, [esp + 0x1c]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
lea eax, [esp + 0x24]
push eax
push 0x81
push 3
mov edx, str.CBugReportWrapper::LoadBugReportHandlerDll
mov ecx, str..BugReportWrapper.cpp
call fcn.10001780
add esp, 0x28
jmp 0x1000120c
mov ebx, 1
push str.Leave_
push 0x89
push 4
mov edx, str.CBugReportWrapper::LoadBugReportHandlerDll
mov ecx, str..BugReportWrapper.cpp
call fcn.10001780
mov ecx, dword [esp + 0x21c]
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10015494
add esp, 0x20c
ret
Function at 0x10001250
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push str.Enter_
push 0x9c
push 4
mov edx, str.CBugReportWrapper::InitOutputProc
mov ecx, str..BugReportWrapper.cpp
xor edi, edi
call fcn.10001780
mov eax, dword [esi + 0x28]
add esp, 0xc
test eax, eax
jne 0x1000129b
push str.NULL__m_hBugReportHandlerDll
push 0xa2
push 2
mov edx, str.CBugReportWrapper::InitOutputProc
mov ecx, str..BugReportWrapper.cpp
call fcn.10001780
add esp, 0xc
jmp 0x100013af
cmp dword [esi], edi
je 0x100012df
cmp dword [esi + 4], edi
je 0x100012df
cmp dword [esi + 8], edi
je 0x100012df
cmp dword [esi + 0xc], edi
je 0x100012df
cmp dword [esi + 0x10], edi
je 0x100012df
cmp dword [esi + 0x14], edi
je 0x100012df
cmp dword [esi + 0x18], edi
je 0x100012df
cmp dword [esi + 0x1c], edi
je 0x100012df
cmp dword [esi + 0x20], edi
je 0x100012df
cmp dword [esi + 0x24], edi
je 0x100012df
push str.break_
push 0xaa
mov edi, 1
push 3
jmp 0x10001284
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x28]
push str._XL_EnableThreadLog_4
push eax
call edi
mov ecx, dword [esi + 0x28]
push str._XL_IsEnableThreadLog_0
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x28]
push str._XL_EnableModuleLoadLog_4
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x28]
push str._XL_IsEnableModuleLoadLog_0
push eax
call edi
mov ecx, dword [esi + 0x28]
push str._XL_InitBugHandler_20
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 0x28]
push str._XL_SetPeerID_4
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x28]
push str._XL_SetReportShowMode_4
push eax
call edi
mov ecx, dword [esi + 0x28]
push str._XL_EnableReportAutoRestartApp_8
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x28]
push str._XL_SetAlwaysSendReport_4
push edx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x24], eax
je 0x100013ad
cmp dword [esi + 4], 0
je 0x100013ad
cmp dword [esi + 8], 0
je 0x100013ad
cmp dword [esi + 0xc], 0
je 0x100013ad
cmp dword [esi + 0x10], 0
je 0x100013ad
cmp dword [esi + 0x14], 0
je 0x100013ad
cmp dword [esi + 0x18], 0
je 0x100013ad
cmp dword [esi + 0x1c], 0
je 0x100013ad
cmp dword [esi + 0x20], 0
je 0x100013ad
test eax, eax
je 0x100013ad
mov edi, 1
jmp 0x100013af
xor edi, edi
push str.Leave_
push 0xc7
push 4
mov edx, str.CBugReportWrapper::InitOutputProc
mov ecx, str..BugReportWrapper.cpp
call fcn.10001780
add esp, 0xc
mov eax, edi
pop edi
ret
Function at 0x100019e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push eax
push 0x1001a310
xor ebx, ebx
push connect
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10001a81
mov eax, dword [esp + 8]
test eax, eax
je 0x10001a90
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push str.Version
push eax
call edi
test eax, eax
jne 0x10001a80
mov eax, dword [esp + 8]
test eax, eax
je 0x10001a80
push esi
push eax
call fcn.100150d7
mov esi, eax
add esp, 4
test esi, esi
je 0x10001a7f
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call edi
test eax, eax
jne 0x10001a76
mov ecx, dword [esp + 0x1c]
push esi
call dword [0x10018228]
mov ebx, 1
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
mov eax, dword [esp + 8]
test eax, eax
je 0x10001a90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0xc
ret

Function at 0x10001aa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push eax
push str.SOFTWAREThunder_NetworkXmp
xor ebx, ebx
push connect
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10001b41
mov eax, dword [esp + 8]
test eax, eax
je 0x10001b50
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 8]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push str.Version
push eax
call edi
test eax, eax
jne 0x10001b40
mov eax, dword [esp + 8]
test eax, eax
je 0x10001b40
push esi
push eax
call fcn.100150d7
mov esi, eax
add esp, 4
test esi, esi
je 0x10001b3f
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call edi
test eax, eax
jne 0x10001b36
mov ecx, dword [esp + 0x1c]
push esi
call dword [0x10018228]
mov ebx, 1
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
pop edi
mov eax, dword [esp + 8]
test eax, eax
je 0x10001b50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0xc
ret