joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40d8bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40d8df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40d8fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41409f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4140cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4140eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414005
jmp 0x4140eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4140eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414005
test edi, edi
mov eax, edi
jne 0x4140d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c00
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, dword [0x40408c]
push edi
push 0x10000
push 2
call esi
mov edi, dword [0x4040c8]
push eax
mov dword [0x405434], eax
call edi
push 0x8040
push 2
mov dword [0x405430], eax
call esi
push eax
mov dword [0x40546c], eax
call edi
push 0x400
push 2
mov dword [0x40545c], eax
call esi
push eax
mov dword [0x40544c], eax
call edi
mov dword [0x405438], eax
and dword [eax], 0
push 1
pop eax
pop edi
pop esi
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x401c6c
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x401c6e
shr ecx, 1
dec edx
jne 0x401c5d
mov edx, dword [0x405438]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x401c58
ret

Function at 0x402ca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x402cb2
or eax, 0xffffffff
mov dword [section..data], eax
jmp 0x402ceb
mov edx, dword [esp + 8]
mov eax, dword [section..data]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x402ce5
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x405438]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x402cc5
pop edi
mov dword [section..data], eax
pop esi
not eax
ret 8
Function at 0x401c90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x4251a4]
mov edx, dword [0x425440]
push ebx
xor eax, ebp
xor ebx, ebx
cmp edx, ebx
push esi
mov dword [esp + 0x240], eax
push edi
jne 0x401cf3
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0x1c
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
push 0x425440
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x20]
mov dword [0x425440], edx
xor eax, eax
mov word [esp + 0x38], bx
mov ecx, 0x81
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x3c]
push eax
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x401d4b
lea eax, [esi + esi]
push eax
call fcn.00414cb6
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x401d62
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, ebp
call fcn.00414f09
mov esp, ebp
pop ebp
ret
push edi
push esi
push ebx
lea ecx, [esp + 0x44]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401de7
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x418808
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401de7
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x30]
push esi
mov esi, dword [eax + 0x2c]
push esi
mov esi, dword [eax + 0x28]
push esi
mov esi, dword [eax + 0x24]
push esi
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0xc]
push esi
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 8]
push esi
mov esi, dword [eax + 0x1c]
push esi
mov esi, dword [eax]
push esi
mov esi, dword [eax + 0x14]
push esi
mov esi, dword [eax + 0x10]
push esi
push ecx
push edx
movzx esi, cx
push esi
shr ecx, 0x10
push ecx
movzx ecx, dx
push ecx
shr edx, 0x10
push edx
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push 0x425448
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x4c
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ax, word [0x425448]
mov ecx, dword [esp + 0x248]
add esp, 4
neg ax
pop edi
pop esi
pop ebx
sbb eax, eax
xor ecx, ebp
and eax, 0x425448
call fcn.00414f09
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4251a4]
xor eax, ebp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x124], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], esi
stosb byte es:[edi], al
je 0x4020a6
mov al, byte [esi + 1]
test al, al
lea ecx, [esi + 1]
mov dword [esp + 0x10], ecx
je 0x40208a
mov ebx, ecx
sub ebx, esi
cmp al, 0x5c
jne 0x40207d
mov ecx, ebx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + ebx + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402064
test al, 0x10
jne 0x402075
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4020a6
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 1]
inc ecx
inc ebx
test al, al
mov dword [esp + 0x10], ecx
jne 0x402033
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.00414f09
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret 4

Function at 0x4020c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4251a4]
xor eax, ebp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x224], eax
xor eax, eax
test esi, esi
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
stosw word es:[edi], ax
je 0x402199
mov ax, word [esi + 2]
test ax, ax
lea ecx, [esi + 2]
mov dword [esp + 0x10], ecx
je 0x40217d
mov ebx, ecx
sub ebx, esi
cmp ax, 0x5c
jne 0x40216a
mov eax, ebx
sar eax, 1
shl eax, 1
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + eax + 0x18], 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402151
test al, 0x10
jne 0x402162
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402199
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + 2]
add ecx, 2
add ebx, 2
test ax, ax
mov dword [esp + 0x10], ecx
jne 0x402116
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, ebp
call fcn.00414f09
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret 4
Function at 0x4023c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x42504c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push eax
call esi
mov ecx, dword [0x425048]
push 0
push ecx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
push 6
call fcn.00407d80
pop esi
ret

Function at 0x402c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4158b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x4251a4]
xor eax, esp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
push edi
lea ecx, [esp + 0xc]
call fcn.00402240
mov dword [esp + 0x38], 0
push esi
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x20]
lea edx, [esp + 8]
mov dword [edi + 0x20], ecx
push edx
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
call fcn.00414f09
add esp, 0x34
ret
Function at 0x403ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415a19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4251a4]
xor eax, esp
push ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea eax, [esi - 1]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x2c]
sar edi, 1
cmp eax, esi
jge 0x403b62
push ebx
lea ecx, [edi + edi*4]
lea edx, [esp + 0x34]
lea ebx, [ebp + ecx*8]
push edx
push ebx
call dword [esp + 0x18]
add esp, 8
test al, al
je 0x403b61
mov ecx, dword [ebx]
lea eax, [esi + esi*4]
lea eax, [ebp + eax*8]
lea esi, [ebx + 4]
lea ebx, [eax + 4]
mov dword [eax], ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
lea eax, [edi - 1]
cdq
sub eax, edx
sar eax, 1
mov esi, edi
mov edi, eax
cmp dword [esp + 0x30], esi
jl 0x403b11
pop ebx
mov edx, dword [esp + 0x30]
lea ecx, [esi + esi*4]
lea eax, [ebp + ecx*8]
lea esi, [eax + 4]
mov dword [eax], edx
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 8]
pop ebp
xor ecx, esp
call fcn.00414f09
add esp, 0x14
ret
Function at 0x407c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x425b88]
test eax, eax
push esi
mov esi, ecx
jne 0x407d38
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x407d0f
push edi
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x407d07
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x407cfe
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
jne 0x407cfe
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x407cfe
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
jne 0x407cfe
pop edi
xor eax, eax
pop esi
ret
push 0
mov ecx, esi
call fcn.00406b90
pop edi
mov eax, 1
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407d3c
cmp eax, 0x102
je 0x407d38
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push 0
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
call fcn.00406b90
test eax, eax
je 0x407d6f
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
mov eax, 1
pop esi
ret
Function at 0x40c790
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
shl eax, 1
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7fd
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40c7d5
cmp eax, 2
jne 0x40c7ed
test esi, esi
mov eax, dword [esp + 0x14]
je 0x40c7f7
test al, 1
jne 0x40c7ed
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40c7f7
pop edi
mov eax, 0xd
pop esi
ret 0xc
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40fed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416cb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov eax, dword [0x4251a4]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
mov esi, ecx
push esi
push str.int___thiscall_CBugReporter::Init_void_
push 0x41bde0
xor eax, ebp
push str.int___thiscall_CBugReporter::Init_void_
lea ecx, [esp + 0x28]
mov dword [esp + 0x268], eax
call fcn.00408360
mov dword [esp + 0x25c], ebx
xor eax, eax
mov word [esp + 0x40], bx
mov ecx, 0x81
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x25c], 1
push str.XLBugHandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x40ffa4
mov byte [esp + 0x25c], bl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00408660
xor eax, eax
jmp 0x410024
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push eax
call edi
mov edx, dword [esi + 0x18]
push str._XL_InitBugHandler_20
push edx
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x18]
push str._XL_SetPeerID_4
push eax
call edi
mov ecx, dword [esi + 0x18]
push str._XL_SetReportShowMode_4
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x18]
push str._XL_SetAlwaysSendReport_4
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
push str._XL_AddCrashProcess_12
push eax
call edi
mov dword [esi + 0x14], eax
mov byte [esp + 0x25c], bl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00408660
mov eax, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret
Function at 0x410c60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x416e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0
push 0
push 1
push 0
push str.void___cdecl_SendHttpStat_const_wchar_t__const_wchar_t__const_wchar_t__
push 0x41c694
push str.void___cdecl_SendHttpStat_const_wchar_t__const_wchar_t__const_wchar_t__
lea ecx, [esp + 0x24]
call fcn.00408360
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x30]
test esi, esi
mov dword [esp + 4], 0
je 0x410d00
push edi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x410cff
push 0xc
call fcn.00414c6c
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x2c], 1
test eax, eax
je 0x410ce1
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push esi
mov ecx, eax
call fcn.0040cba0
jmp 0x410ce3
xor eax, eax
mov byte [esp + 0x2c], 0
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x410950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 8]
call fcn.00408660
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x410d30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x416e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4251a4]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push str.void___cdecl_SendLastExitStatus_const_wchar_t__unsigned_long_
push 0x41c790
push str.void___cdecl_SendLastExitStatus_const_wchar_t__unsigned_long_
lea ecx, [esp + 0x38]
mov dword [esp + 0x90], eax
call fcn.00408360
mov dword [esp + 0x80], ebx
xor esi, esi
mov dword [esp + 0x10], esi
mov byte [esp + 0x80], 1
lea eax, [esp + 0xc]
push eax
push 0x20007
push ebx
push str.SOFTWAREThunder_NetworkXmp
push SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410e3a
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.LastExitStatus
mov dword [esp + 0x24], esi
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x410e26
push edi
mov word [esp + 0x38], bx
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
push 0xa
lea ecx, [esp + 0x3c]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll__itow]
push ebp
lea edx, [esp + 0x48]
push edx
push str.XMP_LastExitStatus
call fcn.00410c60
add esp, 0x18
pop edi
mov eax, dword [esp + 0x8c]
push 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push ecx
jmp 0x410e7f
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREThunder_NetworkXmp
push SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x410e6d
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x8c]
push 4
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
push 4
push ebx
push str.LastExitStatus
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [esp + 0x80], bl
cmp esi, ebx
je 0x410ea4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00408660
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
pop ebx
xor ecx, esp
call fcn.00414f09
add esp, 0x78
ret