joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4c36f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x413556
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x413556
cmp dword [ebp + 0x10], 0
je 0x413556
mov edx, dword [ebp + 0xc]
push edi
mov dword [edi], 0
call fcn.004133e0
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
sub esp, 0x14
movdqa xmmword [esp + 0x3c], xmm0
movq qword [esp + 0x4c], xmm0
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_9cd9488bae2ea793931084582b4aa800____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
lea ecx, [esp + 0x38]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x3c]
mov dword [eax + 0x10], eax
mov dword [esp + 0x78], 0xffffffff
call fcn.00410a90
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41353f
xor eax, eax
cmp dword [edi], eax
jle 0x41353f
xor edx, edx
cmp dword [edi], eax
jle 0x413538
sub ecx, esi
mov dword [esp + 0x18], ecx
nop
mov cl, byte [ecx + esi]
lea esi, [esi + 1]
mov edi, dword [ebp + 0x10]
xor cl, byte [eax + edi]
inc eax
mov edi, dword [esp + 0x1c]
xor cl, 0x80
mov byte [esi - 1], cl
xor ecx, ecx
cmp eax, dword [ebp + 0x14]
cmovge eax, ecx
mov ecx, dword [esp + 0x18]
inc edx
cmp edx, dword [edi]
jl 0x413510
mov esi, 1
jmp 0x413541
xor esi, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0xffffffff
call fcn.00410b30
mov eax, esi
jmp 0x413558
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 0x18

Function at 0x413580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movdqa xmm0, xmmword [0x4e5860]
push ebx
mov ebx, dword [ebp + 0x18]
push edi
movdqu xmmword [ebp - 0x10], xmm0
test ebx, ebx
je 0x4135fe
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + edi]
mov dword [ebp + 0x18], eax
cmp dword [ecx], eax
jl 0x4135fe
push esi
xor esi, esi
test edi, edi
jle 0x4135ee
mov eax, esi
mov ecx, dword [ebp + 8]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [esi + ecx]
xor al, 0x80
movzx ecx, al
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [ebp + eax - 0x10]
mov byte [ebx + esi*2], al
movzx eax, byte [ebp + ecx - 0x10]
mov byte [ebx + esi*2 + 1], al
inc esi
cmp esi, edi
jl 0x4135b3
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
pop esi
pop edi
mov dword [ecx], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x414570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c3838
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x4146ca
cmp byte [edi + 0x45], 0
je 0x4146ca
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4145d0
xor al, al
jmp 0x4146cc
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea esi, [edi + 0x48]
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x414651
dec eax
je 0x414655
sub eax, 2
je 0x4146b0
xor bl, bl
jmp 0x4146b2
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x41468d
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x41464d
cmp byte [edi + 0x45], 0
je 0x4146b0
test esi, esi
lea esi, [edi + 0x48]
jne 0x414610
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.004107c0
jmp 0x414607
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4146c6
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x4146cc
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x416470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
je 0x41656e
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4164fe
push eax
push eax
push eax
push eax
push 0x4dc654
push str._s__d._d._d._d
push 0x80
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push edi
push esi
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4dc678
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call dword [sym.imp.MSVCR120.dll_free]
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
push edi
push 0x4dc654
push str._s__d._d._d._d
push 0x80
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x24
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x416580
Capabilities:
Access peb ldr_data
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c3b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x278], 0
call fcn.00416470
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64_s]
lea eax, [esp + 0x40]
push eax
push str._Y_m_d_H_M_S
lea eax, [esp + 0xec]
push 0x80
push eax
call dword [sym.imp.MSVCR120.dll_strftime]
add esp, 0x18
lea edx, [esp + 0x20]
mov ecx, str..dmp
call fcn.00461a30
test al, al
je 0x4166c7
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x164]
push str..dmp_s__s.dmp
push eax
call fcn.00416a10
add esp, 0x10
lea eax, [esp + 0x15c]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor eax, eax
mov dword [esp + 0x10], edi
push 0
push 0
test edi, edi
mov dword [esp + 0x1c], 0
cmove ecx, eax
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov ecx, dword [edi]
mov ecx, dword [ecx]
call fcn.004167d0
cmp dword [esp + 0x34], 0x10
jb 0x4166db
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret

Function at 0x416ba0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5106c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x416c03
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
push fcn.0040fb70
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ba66b
mov esp, ebp
pop ebp
ret
Function at 0x416c40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3baf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x1c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.00417070
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.00416a50
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.004a8940
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x416d0e
push str.mutex
lea eax, [ebp - 0x18]
push eax
call fcn.0040ad10
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x416d71
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004a8940
mov dword [ebp - 0x14], eax
test esi, esi
je 0x416d71
push str.iocp
lea eax, [ebp - 0x18]
push eax
call fcn.0040ad10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
Function at 0x4219a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c51c9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
add ecx, 0xffffffd4
mov dword [esp + 0x30], 0x4de874
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
push ecx
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.00421070
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.1.0
push 0x500bdc
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + eax + 0x30], 0
lea eax, [esp + 0x10]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3

Function at 0x422ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c51c9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
add ecx, 0xffffffd4
mov dword [esp + 0x30], 0x4de874
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
push ecx
mov dword [esp + 0x4c], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.00422650
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.1.0
push 0x500a20
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x34], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + eax + 0x30], 0
lea eax, [esp + 0x10]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3
Function at 0x42bc50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x42bc93
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42bc93
mov eax, dword [ecx]
test eax, eax
je 0x42bc93
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x42bc89
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebx + 1]
push eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x42bcb5
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x42bcc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x510720]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42bcd8
mov edx, dword [eax + 4]
jmp 0x42bcda
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x42bcf9
test edx, edx
je 0x42bcf9
cmp dword [edx], 0
jne 0x42bcf9
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop ebp
ret
Function at 0x42e880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6386
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0042e130
add esi, 0x1ac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e8da
test al, 0x10
jne 0x42e9b5
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
lea edx, [esp + 8]
mov dword [esp + 0x30], 0
mov ecx, esi
call fcn.00461a30
test al, al
jne 0x42e9a1
cmp dword [esp + 0x1c], 0x10
lea esi, [esp + 8]
mov eax, dword [0x510930]
cmovae esi, dword [esp + 8]
test al, 1
jne 0x42e959
or eax, 1
mov dword [0x510930], eax
push 0x57c
push 0
push 0x510940
mov byte [esp + 0x3c], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.0045a500
push 0x4d4740
call fcn.004ba7c1
add esp, 4
mov byte [esp + 0x30], 0
cmp dword [0x510c80], 3
jg 0x42e982
mov eax, dword [0x510988]
test eax, eax
je 0x42e982
mov eax, dword [0x510988]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x42e982
push 3
push esi
call fcn.00467a80
mov ecx, esi
call fcn.004395d0
cmp dword [esp + 0x1c], 0x10
jb 0x42e99d
push dword [esp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x42e9ba
cmp dword [esp + 0x1c], 0x10
jb 0x42e9b5
push dword [esp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 4
Function at 0x42e9e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c63c9
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x52c], eax
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x540]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x84]
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x42ea51
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x42ea51
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x84], 0
push 0x104
lea eax, [esp + 0x30]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edi, [esi + 0x1ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ea7f
test al, 0x10
jne 0x42eb71
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x548], 0
mov ecx, edi
call fcn.00461a30
test al, al
jne 0x42eb52
cmp dword [esp + 0x28], 0x10
lea esi, [esp + 0x14]
mov eax, dword [0x510930]
cmovae esi, dword [esp + 0x14]
test al, 1
jne 0x42eb07
or eax, 1
mov dword [0x510930], eax
push 0x57c
push 0
push 0x510940
mov byte [esp + 0x554], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.0045a500
push 0x4d4740
call fcn.004ba7c1
add esp, 4
mov byte [esp + 0x548], 0
cmp dword [0x510c80], 3
jg 0x42eb30
mov eax, dword [0x510988]
test eax, eax
je 0x42eb30
mov eax, dword [0x510988]
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x42eb30
push 3
push esi
call fcn.00467a80
mov ecx, esi
call fcn.004395d0
cmp dword [esp + 0x28], 0x10
jb 0x42eb4b
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x42ec31
mov dword [esp + 0x548], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x42eb71
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [esp + 0x10]
lea eax, [esp + 0x30]
push edi
push str._s_s.txt
push eax
call fcn.00416a10
push 0x18
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 0x14
test eax, eax
je 0x42ebab
xorps xmm0, xmm0
mov ecx, eax
movdqu xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
call fcn.00470040
mov ecx, eax
jmp 0x42ebad
xor ecx, ecx
mov dword [esi + 0x84], ecx
test ecx, ecx
je 0x42ec2c
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push 0x3041
push edx
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x42ec2c
push 0x400
push eax
lea eax, [esp + 0x13c]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esi + 0x84]
lea ecx, [esp + 0x140]
add esp, 0xc
push 0
push 0x400
push ecx
push 0x400
push dword [eax + 0x14]
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x30]
push eax
push 3
push str._s_open_failed__s_.
call fcn.0045deb0
add esp, 0x10
xor eax, eax
jmp 0x42ec31
mov eax, 1
mov ecx, dword [esp + 0x540]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x52c]
xor ecx, esp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 4
Function at 0x42f070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x42f0db
movdqa xmm0, xmmword [0x4e5840]
xor ecx, ecx
mov dword [ebp - 0xc], 5
mov dword [ebp - 8], 6
mov dword [ebp - 4], 7
movdqu xmmword [ebp - 0x1c], xmm0
test edi, edi
jle 0x42f0db
lea esp, [esp]
mov eax, 0x24924925
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
sub eax, edx
mov al, byte [ebp + eax*4 - 0x1c]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x42f0b0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43e780
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x506040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x43e7d8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x43e7d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 3
push str.CCommunicate::TryLock_Create_Mutex_failed_ecode_u
call fcn.0045deb0
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
je 0x43e83c
call fcn.0045c270
mov ecx, dword [ebp + 0xc]
add eax, 0x550
xchg dword [eax], ecx
call fcn.0045c270
mov al, byte [eax + 0x554]
test al, al
je 0x43e83c
call fcn.0045c270
mov eax, dword [eax + 0x550]
push eax
lea eax, [ebp - 0x404]
push str.Lock__d_
push eax
call fcn.0040e000
add esp, 0xc
lea eax, [ebp - 0x404]
push 0
push eax
push 0
call sym.NewThirdpartyServer.exe_GShowTPMessage
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
xor ecx, ebp
pop esi
call fcn.004ba66b
mov esp, ebp
pop ebp
ret 8