joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4850d6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x52f220]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x485185
cmp ebx, edi
je 0x485185
cmp dword [ebp + 0x10], edi
jbe 0x485185
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x485185
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 2
push 0x400
push esi
push 1
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x485185
mov esi, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push 6
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x485168
push dword [ebp - 0x38]
call fcn.004d1ab7
cmp eax, edi
pop ecx
mov dword [ebp - 0x34], eax
jne 0x485196
cmp dword [ebp - 0x30], edi
je 0x485177
push edi
push dword [ebp - 0x30]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x2c], edi
je 0x485185
push dword [ebp - 0x2c]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret
lea ecx, [ebp - 0x38]
push ecx
push eax
push edi
push 6
push dword [ebp - 0x2c]
call esi
test eax, eax
jne 0x4851ca
cmp dword [ebp - 0x30], edi
je 0x4851b6
push edi
push dword [ebp - 0x30]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x2c], edi
je 0x485241
push dword [ebp - 0x2c]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
jmp 0x485241
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0xc]
lea eax, [edx + edx + 1]
cmp dword [ebp + 0x10], eax
jb 0x4851a7
push 8
pop ecx
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
xor ecx, ecx
cmp edx, esi
jbe 0x48521d
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
sub eax, ecx
movzx eax, byte [eax + edx - 1]
mov edi, eax
shr edi, 4
mov di, word [ebp + edi*2 - 0x28]
and eax, 0xf
mov ax, word [ebp + eax*2 - 0x28]
mov word [ebx + ecx*4], di
mov word [ebx + ecx*4 + 2], ax
inc ecx
cmp ecx, edx
jb 0x4851f0
cmp dword [ebp - 0x30], esi
mov word [ebx + ecx*4], si
je 0x485230
push esi
push dword [ebp - 0x30]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x2c], esi
je 0x48523e
push dword [ebp - 0x2c]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
xor edi, edi
inc edi
push dword [ebp - 0x34]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
jmp 0x485187
Function at 0x485251
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x52f220]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
mov dword [ebp - 4], eax
je 0x4852c8
test ebx, ebx
je 0x4852c8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4852c8
and word [ebp - 0x418], 0
push edi
xor eax, eax
mov ecx, 0x104
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x418]
push eax
push esi
call fcn.004850d6
add esp, 0xc
test eax, eax
pop edi
je 0x4852c8
lea eax, [ebp - 0x418]
push eax
push ebx
call dword [sym.imp.MSVCR71.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x4852ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret
Function at 0x487336
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x4e4f07
call fcn.004d1ec0
sub esp, 0x290
mov eax, dword [0x52f220]
push esi
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov esi, ecx
and dword [ebp - 4], 0
push 0x4f0440
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407691
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4873ad
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
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_]
or dword [ebp - 4], edi
lea ecx, [ebp + 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_]
jmp 0x487464
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_wcscmp]
lea eax, [ebp - 0x26c]
push 0x4edaf4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x487434
lea eax, [ebp - 0x26c]
push 0x4edaec
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x487434
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407691
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [esi + 0x200]
mov byte [ebp - 4], 2
call fcn.0047609f
mov eax, dword [eax]
cmp eax, dword [esi + 0x204]
jne 0x487427
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
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_]
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4873b4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], al
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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 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_]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret 0x1c
Function at 0x487cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x487d2d
xor ebx, ebx
cmp dword [edi + 0x5c], ebx
jne 0x487e7b
cmp dword [edi + 0x28], ebx
jne 0x487e7b
push ebx
push ebx
push edi
push 0x487b36
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x28], eax
jmp 0x487e7b
cmp dword [ebp + 0xc], 2
jne 0x487e55
mov esi, dword [edi + 0x74]
xor ebx, ebx
jmp 0x487db6
cmp dword [edi + 0x1f8], ebx
jne 0x487d67
cmp dword [edi + 0x34], ebx
jne 0x487d67
push dword [esi + 4]
push ebx
push 2
call dword [esi]
lea eax, [ebp + 0xc]
add esp, 0xc
push esi
push eax
lea ecx, [edi + 0x70]
call fcn.004860df
mov esi, dword [eax]
jmp 0x487db6
push ecx
push ecx
mov eax, esp
mov dword [eax], 0x1e
mov dword [eax + 4], ebx
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00486c34
mov ecx, dword [eax]
sub ecx, dword [ebp - 0xc]
mov eax, dword [eax + 4]
sbb eax, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.0048b134
cmp al, bl
je 0x487db3
push dword [esi + 4]
push ebx
push 2
call dword [esi]
lea eax, [ebp - 4]
jmp 0x487d56
add esi, 0x10
cmp esi, dword [edi + 0x78]
jne 0x487d3e
mov esi, dword [edi + 0x94]
jmp 0x487e47
cmp dword [edi + 0x1f8], ebx
jne 0x487df5
cmp dword [edi + 0x34], ebx
jne 0x487df5
push dword [esi + 4]
push ebx
push 5
push dword [esi + 0x10]
call dword [esi]
lea eax, [ebp + 0xc]
add esp, 0x10
push esi
push eax
lea ecx, [edi + 0x90]
call fcn.004879f4
mov esi, dword [eax]
jmp 0x487e47
push ecx
push ecx
mov eax, esp
mov dword [eax], 0x1e
mov dword [eax + 4], ebx
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00486c34
mov ecx, dword [eax]
sub ecx, dword [ebp - 0xc]
mov eax, dword [eax + 4]
sbb eax, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.0048b134
cmp al, bl
je 0x487e44
push dword [esi + 4]
push ebx
push 5
push dword [esi + 0x10]
call dword [esi]
lea eax, [ebp - 4]
jmp 0x487de1
add esi, 0x14
cmp esi, dword [edi + 0x98]
jne 0x487dc6
jmp 0x487e7b
cmp dword [ebp + 0xc], 3
jne 0x487e7b
xor ebx, ebx
push ebx
push ebx
push edi
push 0x487b36
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 3
push dword [edi + 4]
mov dword [edi + 0x28], eax
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x488265
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 8], eax
mov esi, ecx
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0xa0]
call fcn.00487f04
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x4882a2
push eax
push eax
push esi
push 0x487b36
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
pop esi
leave
ret 8
Function at 0x4887ab
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4e50ba
call fcn.004d1ec0
push ecx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x38]
mov dword [ebp - 4], edi
mov dword [esi], 0x4fd1d4
call fcn.00454f69
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
lea eax, [esi + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esi + 0x90]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esi + 0xb0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 9
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_void_]
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0xa
call fcn.004884ed
lea ecx, [esi + 0x188]
mov byte [ebp - 4], 0xb
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_void_]
lea ecx, [esi + 0x1a4]
mov byte [ebp - 4], 0xc
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_void_]
lea ecx, [esi + 0x1c0]
mov byte [ebp - 4], 0xd
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_void_]
lea ecx, [esi + 0x1dc]
mov byte [ebp - 4], 0xe
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_void_]
lea ecx, [esi + 0x200]
mov byte [ebp - 4], 0xf
call fcn.004acc77
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
inc eax
or dword [esi + 0x1fc], 0xffffffff
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x58], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x48aed1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e5571
call fcn.004d1ec0
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.0048c2ad
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 3
call fcn.00454f69
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x48bf58
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4e5698
call fcn.004d1ec0
sub esp, 0x20
mov eax, dword [0x52f220]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x4ed7dc
push eax
mov edi, ecx
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x48bf8e
xor al, al
jmp 0x48bfdc
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.0047c6d4
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret 4

Function at 0x48f2db
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e5bf8
call fcn.004d1ec0
push ecx
mov eax, ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
leave
ret
Function at 0x48fd32
Capabilities:
Copy file

Disassembly:
mov eax, 0x4e5ce4
call fcn.004d1ec0
sub esp, 0x88
mov eax, dword [0x52f220]
push esi
xor eax, ebp
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x10], eax
call fcn.0048f516
and dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00491f74
cmp dword [ebp - 0x14], 1
pop ecx
pop ecx
jne 0x48fe33
add esi, 0x1c
push esi
lea ecx, [ebp - 0x8c]
call fcn.00413e54
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x90]
call fcn.004014ba
push dword [eax]
lea ecx, [ebp - 0x8c]
call fcn.0048f64b
push dword [ebp - 0x90]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x90]
call fcn.004014ba
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x94]
call fcn.004014ba
push dword [eax]
lea ecx, [ebp - 0x90]
call fcn.0048f64b
push dword [ebp - 0x94]
call esi
push 0
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp - 0x90]
mov edi, eax
call esi
push dword [ebp - 0x8c]
call esi
mov esi, edi
jmp 0x48fea0
cmp dword [ebp - 0x14], 0
jne 0x48fe9e
add esi, 0x1c
push esi
lea ecx, [ebp - 0x8c]
call fcn.00413e54
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x94]
call fcn.004014ba
push dword [eax]
lea ecx, [ebp - 0x8c]
call fcn.0048f64b
push dword [ebp - 0x94]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push dword [ebp - 0x8c]
call fcn.0048fc65
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
sete cl
mov edi, ecx
jmp 0x48fe27
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0048f563
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret 4
Function at 0x49141f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e5e7f
call fcn.004d1ec0
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0xc], edi
mov dword [ebp - 0x10], esi
mov dword [eax], vtable.xl::win32::net::asyn_http_file_event.0
mov dword [ebp - 4], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00453831
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x5e0], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x491968
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4e5f0d
call fcn.004d1ec0
sub esp, 0x2a0
mov eax, dword [0x52f220]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
push str.silence.ini
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xf
pop ecx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x50], bx
lea edi, [ebp - 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x258]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
push str.00_00_00
push str.LastDate
push str.date
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x274]
push eax
call fcn.00486c34
push str._Y__m__d
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x274]
call fcn.004918f0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x25c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR71.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jle 0x491aaa
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.0040d343
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x2ac]
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__]
push str.http:__media.info.client.xunlei.com_silence.ini
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x290]
push eax
push ebx
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00453df7
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 1
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_]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], bl
call fcn.0040cadd
mov ecx, dword [ebp - 0x25c]
add ecx, 0xfffffff0
call fcn.00401591
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret
Function at 0x495c31
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x495c5f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 4
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0xc]
mov ecx, dword [esi]
push dword [ebp + 8]
call fcn.004075f0
pop esi
leave
ret 8
Function at 0x497d9d
Capabilities:
Check if file exists

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
je 0x497dc0
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x497dc0
mov ecx, esi
call fcn.00497ba3
test eax, eax
jne 0x497dc6
xor al, al
pop esi
ret 8
pop esi
mov ecx, eax
jmp 0x4a8961
mov eax, 0x4e781d
call fcn.004d1ec0
sub esp, 0x38
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x10], ecx
je 0x4a8986
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a898d
xor al, al
jmp 0x4a8ac1
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040f63e
mov dword [ebp - 0x44], vtable.xlue_basic_xml_dom_parser_char_.0
push esi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.00410250
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004a4dd6
test al, al
lea ecx, [ebp - 0x40]
jne 0x4a89c8
call fcn.0040e109
xor bl, bl
jmp 0x4a8aab
push edi
call fcn.0040e109
lea ecx, [ebp - 0x44]
call fcn.0040df1b
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, esi
mov byte [ebp - 4], 1
jne 0x4a89ea
xor bl, bl
jmp 0x4a8aaa
lea ecx, [edi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
cmp eax, esi
je 0x4a8a9d
push str.skin
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a8a9d
lea ecx, [edi + 0x80]
call fcn.004a39d5
cmp eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 0xc], esi
jbe 0x4a8a99
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0040eb25
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ebx, eax
push str.color_scheme
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a8a62
mov ecx, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.004a6843
jmp 0x4a8a7f
push str.auto_color_scheme
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a8a7f
mov ecx, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.004a685b
test esi, esi
mov byte [ebp - 4], 1
je 0x4a8a8e
mov ecx, esi
call fcn.0040db94
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x4a8a25
mov bl, 1
jmp 0x4a8a9f
xor bl, bl
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040db94
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], vtable.xlue_basic_xml_dom_parser_char_.0
call fcn.0040eebd
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8