joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409430
Capabilities:
Accept command line arguments
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44ec19
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409460
sub eax, esi
sar eax, 1
je 0x4094d0
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp dword [esp + 0x10], esi
mov edi, eax
jle 0x4094c9
nop
mov ecx, dword [edi + esi*4]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x3c], 0
call fcn.00409d20
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x409490
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x40a9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a9b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a9e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40a9e4
cmp esi, eax
jae 0x40a9e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40a9d4
cmp esi, eax
jb 0x40a9ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40b9a0
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44f60b
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
inc dword [ebp + 0xb0]
lea edi, [ebp + 0xb0]
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 4
push edi
lea ebx, [ebp + 0x90]
mov dword [esi], 0x416020
mov dword [esi + 4], eax
mov dword [esi + 8], 0
call fcn.0040dff0
push 0x2c
mov dword [eax], esi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x40ba27
lea ecx, [esi + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
jmp 0x40ba29
xor esi, esi
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi], edx
lea edx, [esp + 0x24]
push edx
push ebx
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov ecx, dword [edi]
push 0x40ba90
push ebx
mov dword [esi + 0xc], ecx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x14

Function at 0x40bc80
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
inc dword [ebp + 0xb0]
push esi
push edi
lea esi, [ebp + 0xb0]
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push esi
lea ebx, [ebp + 0x90]
mov dword [edi], 0x416090
mov dword [edi + 4], eax
mov dword [edi + 8], 0
call fcn.0040dff0
push 8
mov dword [eax], edi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push 0x40bd00
push 0
mov dword [eax], ecx
mov dword [eax + 4], ebp
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40c4f0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44f59b
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
inc dword [ebp + 0xb0]
lea edi, [ebp + 0xb0]
push 0xc
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
push edi
lea ebx, [ebp + 0x90]
mov dword [esi], 0x416120
mov dword [esi + 4], eax
mov dword [esi + 8], 0
call fcn.0040dff0
push 0x24
mov dword [eax], esi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp esi, ebx
je 0x40c577
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
jmp 0x40c579
xor esi, esi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [edi]
mov dword [esi + 4], ecx
push edx
lea ecx, [esi + 8]
mov dword [esi], ebp
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push 0x40c5d0
push ebx
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40da80
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x44e934
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
lea edi, [eax + 8]
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.0040ea10
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], eax
push ecx
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040ea10
push 0x3c
lea edx, [esp + 0x48]
push 0
push edx
mov byte [esp + 0x98], 1
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add esp, 0xc
sar eax, 1
mov dword [esp + 0x44], 0x3c
jne 0x40db17
call ebx
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
sar edx, 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
jne 0x40db31
call ebx
cmp dword [esi + 0x18], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x74], edi
jb 0x40db4b
mov esi, dword [esi + 4]
jmp 0x40db4e
add esi, 4
lea ecx, [esp + 0x44]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x38]
sar edx, 1
jne 0x40db6b
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x94]
push eax
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
sar ecx, 1
jne 0x40db8b
call ebx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x98]
push edx
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x14]
push edx
mov dword [ecx], eax
mov byte [esp + 0x90], 0
call fcn.0040ea70
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x90], 0xffffffff
call fcn.0040ea70
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0xc
Function at 0x40e210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e8c5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi + 0xc], 1
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.xl::xml::basic_xml_element_char_.0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esi + 0x68]
push eax
mov byte [esp + 0x18], 3
call fcn.0040f590
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040f590
mov edx, dword [esp + 0x20]
mov byte [esp + 0x14], 5
push edx
mov ecx, edi
mov dword [esi + 8], 1
call dword [0x451324]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], 0
mov dword [esi + 0xa0], 0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
Function at 0x40e750
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45010e
mov eax, dword fs:[0]
push eax
mov eax, 0x4010
call fcn.00436dc0
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x4024]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4034]
mov edi, ecx
push 0x457bb0
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
mov bl, 1
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40e7be
xor al, al
jmp 0x40e8e8
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
je 0x40e7d2
push eax
call dword [sym.imp.libexpat.dll_Ordinal_21]
add esp, 4
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.libexpat.dll_Ordinal_20]
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x40e802
lea esi, [edi - 4]
call fcn.00410840
mov eax, dword [edi]
push edi
push eax
call dword [sym.imp.libexpat.dll_Ordinal_52]
add esp, 8
mov esi, dword [sym.imp.MSVCR90.dll_feof]
push ebp
call esi
add esp, 4
test eax, eax
jne 0x40e86d
test bl, bl
je 0x40e8dc
push ebp
push 0x4000
lea ecx, [esp + 0x28]
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
test eax, eax
jge 0x40e849
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x40e840
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e840
sub eax, edx
push 0
push eax
mov eax, dword [edi]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.libexpat.dll_Ordinal_16]
test eax, eax
push ebp
setne bl
call esi
add esp, 0x14
test eax, eax
je 0x40e812
test bl, bl
je 0x40e8dc
mov ecx, dword [esp + 0x14]
xor esi, esi
cmp dword [ecx + 0x20], esi
je 0x40e8dc
push 0x48
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x402c], esi
cmp eax, esi
je 0x40e899
push eax
call fcn.0040ae40
mov esi, eax
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esi + 0x10]
mov dword [esp + 0x4030], 0xffffffff
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x20]
mov eax, esi
call fcn.0040f510
lea edx, [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40e8dc
test esi, esi
je 0x40e8dc
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x4024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.00436772
add esp, 0x401c
ret 4
Function at 0x416750
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push str.MNFileDownload.dll
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x416804
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Init
push esi
call edi
push str.Uninit
push esi
mov dword [0x4aa33c], eax
call edi
push str.CreateDownload
push esi
mov dword [0x4aa338], eax
call edi
push str.StopDownload
push esi
mov dword [0x4aa334], eax
call edi
push str.StopAll
push esi
mov dword [0x4aa330], eax
call edi
push str.GetTaskInfo
push esi
mov dword [0x4aa32c], eax
call edi
mov ecx, dword [0x4aa33c]
mov dword [0x4aa328], eax
pop edi
test ecx, ecx
je 0x416804
cmp dword [0x4aa338], 0
je 0x416804
cmp dword [0x4aa334], 0
je 0x416804
cmp dword [0x4aa330], 0
je 0x416804
cmp dword [0x4aa32c], 0
je 0x416804
test eax, eax
je 0x416804
call ecx
test eax, eax
jne 0x416804
mov dword [0x4aa340], 1
xor ebx, ebx
mov eax, dword [esp + 0xc]
push ebx
push eax
call dword [sym.imp.XLLuaRuntime.dll_lua_pushinteger]
add esp, 8
pop esi
mov eax, 1
pop ebx
ret

Function at 0x41a5b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41a5e8
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41a5cd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
push 0
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop edi
ret 8
mov eax, 0x80004005
pop edi
ret 8
Function at 0x41c000
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44cd1b
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
mov dword [esp + 0x224], 2
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
mov eax, 8
add esp, 0xc
cmp dword [esi + 0x18], eax
jb 0x41c06e
mov esi, dword [esi + 4]
jmp 0x41c071
add esi, 4
mov edx, dword [esp + 0x260]
cmp dword [esp + 0x274], eax
jae 0x41c088
lea edx, [esp + 0x260]
mov ecx, dword [esp + 0x244]
cmp dword [esp + 0x258], eax
jae 0x41c09f
lea ecx, [esp + 0x244]
cmp dword [esp + 0x23c], eax
mov eax, dword [esp + 0x228]
jae 0x41c0b6
lea eax, [esp + 0x228]
push esi
push 0x104
lea esi, [esp + 0x10]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
lea ecx, [esp + 0x224]
mov byte [esp + 0x21c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x240]
mov byte [esp + 0x21c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x25c]
mov dword [esp + 0x21c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00436772
add esp, 0x218
ret 0x54
Function at 0x41dc40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44cca8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.Xunlei::XARFileChecker.0
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esi + 0x68], 0
cmp edi, 2
jne 0x41dcca
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dcb4
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov dword [esi + 0x68], edx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8

Function at 0x41e560
Capabilities:
Get file size

Disassembly:
sub esp, 8
push edi
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 8]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x41e59a
call fcn.00408d00
pop edi
add esp, 8
ret
mov ecx, dword [esp + 4]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x41e5ef
call fcn.00408d00
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [esi + 8], 0
pop edi
add esp, 8
ret
xor eax, eax
pop edi
add esp, 8
ret

Function at 0x41e680
Capabilities:
Hide graphical window

Disassembly:
push esi
push ecx
mov esi, eax
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004228a0
test eax, eax
jne 0x41e6a7
pop esi
ret
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x41e740
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x450784
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x5c]
mov esi, 8
cmp dword [esp + 0x70], esi
jae 0x41e788
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41e7ac
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x41e8c9
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x41e7be
lea eax, [esp + 0x5c]
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41e83e
call fcn.00408d00
cmp eax, ebx
jne 0x41e793
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.0041e560
cmp eax, ebx
jne 0x41e89d
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x41e89d
push 0x20
mov dword [esp + 0x20], ebx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x4c], 3
cmp esi, ebx
je 0x41e844
lea ecx, [esi + 4]
push ecx
mov dword [esi], vtable.LuaNewTaskDataList.0
call fcn.0040f590
jmp 0x41e846
mov dword [esp + 0x18], eax
jmp 0x41e7e0
xor esi, esi
mov byte [esp + 0x4c], 2
push ebp
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00420710
cmp eax, ebx
jbe 0x41e89d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edx
cmp eax, ebx
jne 0x41e886
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push ebx
push 0x1401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
jmp 0x41e89d
mov ecx, dword [esp + 0x24]
push eax
push 0x1401
add ecx, 4
call fcn.0040aa00
mov edi, 1
lea esi, [esp + 0x24]
call fcn.0041e8e0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41e8b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x20
Function at 0x41e930
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xd0
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xdc]
push ebx
push ebp
mov ebp, dword [esp + 0xe0]
push esi
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov word [esp + 0x1c], cx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0xec]
push eax
push str.ThunderAgent.Unicode
lea ecx, [esp + 0x24]
push str._s_TaskData__08x
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
test esi, esi
je 0x41e9d6
push edi
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41e9ce
mov ecx, dword [esp + 0x10]
push edi
mov edx, ebp
call fcn.0041ea10
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0xd8]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00436772
add esp, 0xd0
ret 0xc
Function at 0x427370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x4273ef
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4273b7
sub eax, edx
sar eax, 1
push esi
push eax
lea eax, [esp + 8]
push eax
call fcn.0043c531
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00436772
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.00436772
add esp, 0x20c
ret