joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b80f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb32d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x55a064]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x74]
push esi
call dword [sym.imp.PocoData.dll_public:_void___thiscall_Poco::Data::Statement::constructor_class_Poco::Data::Session__]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x78], 0x522860
push str.SELECT_COUNT_id__FROM_ETags_WHERE_requestUrlHash____
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0
call fcn.004baad0
sub esp, 8
mov edi, eax
mov esi, esp
lea eax, [ebx + 4]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00415750
mov ecx, esi
call fcn.004b8ff0
add esp, 0x18
lea ecx, [edi + 4]
call dword [sym.imp.PocoData.dll_public:_class_Poco::Data::Statement____thiscall_Poco::Data::Statement::operator__class_Poco::SharedPtr_class_Poco::Data::AbstractBinding__class_Poco::ReferenceCounter__class_Poco::ReleasePolicy_class_Poco::Data::AbstractBinding___]
sub esp, 8
lea edx, [ebp - 0x80]
mov ecx, esp
mov esi, eax
call fcn.004b8f30
mov ecx, esi
call dword [sym.imp.PocoData.dll_public:_class_Poco::Data::Statement____thiscall_Poco::Data::Statement::operator__class_Poco::SharedPtr_class_Poco::Data::AbstractExtraction__class_Poco::ReferenceCounter__class_Poco::ReleasePolicy_class_Poco::Data::AbstractExtraction___]
push dword [sym.imp.PocoData.dll_void___cdecl_Poco::Data::Keywords::now_class_Poco::Data::Statement__]
mov ecx, eax
call dword [sym.imp.PocoData.dll_public:_class_Poco::Data::Statement____thiscall_Poco::Data::Statement::operator__void____cdecl___class_Poco::Data::Statement___]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], vtable.galaxy::sql_fundamentals::DatabaseStatement.0
call dword [sym.imp.PocoData.dll_public:_void___thiscall_Poco::Data::Statement::destructor_void_]
cmp dword [ebp - 0x80], 0
seta al
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.004e9056
mov esp, ebp
pop ebp
ret 4
Function at 0x4b9750
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7ad
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x55a064]
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 esi, dword [edi + 0x30]
mov ebx, dword [edi + 0x24]
test esi, esi
je 0x4b981c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.PocoData.dll_public:_class_Poco::SharedPtr_class_Poco::Data::AbstractBinder__class_Poco::ReferenceCounter__class_Poco::ReleasePolicy_class_Poco::Data::AbstractBinder_____thiscall_Poco::Data::AbstractBinding::getBinder_void_]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4b9835
mov eax, dword [ecx]
push ebx
push esi
push dword [ebp + 8]
call dword [eax + 0x90]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x4b97fa
call dword [sym.imp.PocoFoundation.dll_public:_int___thiscall_Poco::AtomicCounter::operator___void_]
test eax, eax
jne 0x4b97fa
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4b97d9
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x6c], 0
test esi, esi
je 0x4b97fa
mov ecx, esi
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::AtomicCounter::destructor_void_]
push 4
push esi
call fcn.004e9606
add esp, 8
mov byte [edi + 0x34], 1
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.004e9056
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 0x3c]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::NullPointerException::constructor_int_]
push 0x54b3d8
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [ebp - 0x68]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::NullPointerException::constructor_int_]
push 0x54b3d8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4bdf00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x4bdf20
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x4beb20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push ecx
mov dword [esp], 0x4f800000
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2f]
fdivr dword [0x528680]
push ecx
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movss xmm1, dword [0x52864c]
mov eax, 1
fstp dword [ebp - 4]
fld dword [ebp - 4]
add esp, 8
fstp dword [ebp - 4]
cvttss2si edi, dword [ebp - 4]
xorps xmm3, xmm3
xorps xmm2, xmm2
cmp edi, eax
cmovl edi, eax
test edi, edi
jle 0x4bed35
mov edx, dword [0x56bf00]
movss xmm4, dword [0x5286a0]
push esi
cmp edx, 0x270
jne 0x4bebd6
mov edx, 0x56bf08
mov esi, 0x270
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4beb94
mov edx, dword [0x56bf00]
jmp 0x4becc9
cmp edx, 0x4e0
jb 0x4becc9
xor edx, edx
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [edx*4 + 0x56c8c4]
xor ecx, dword [edx*4 + 0x56c8c8]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x56c8c4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx*4 + 0x56cef8]
xor eax, ecx
mov dword [edx*4 + 0x56bf04], eax
inc edx
cmp edx, 0xe3
jb 0x4bebf0
cmp edx, 0x26f
jae 0x4bec86
nop
mov ecx, dword [edx*4 + 0x56c8c8]
xor ecx, dword [edx*4 + 0x56c8c4]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x56c8c4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx*4 + 0x56bb78]
xor eax, ecx
mov dword [edx*4 + 0x56bf04], eax
inc edx
cmp edx, 0x26f
jb 0x4bec40
mov ecx, dword [edx*4 + 0x56c8c4]
xor ecx, dword [0x56bf04]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x56c8c4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, ecx
xor eax, dword [0x56c534]
mov dword [edx*4 + 0x56bf04], eax
xor edx, edx
mov dword [0x56bf00], edx
mov ecx, dword [edx*4 + 0x56bf04]
mov eax, ecx
shr eax, 0xb
inc edx
and eax, dword [0x56d284]
xor ecx, eax
mov dword [0x56bf00], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5286e0]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm3
mulss xmm0, xmm1
mulss xmm1, xmm4
addss xmm2, xmm0
sub edi, 1
jne 0x4beb82
pop esi
divss xmm2, xmm1
pop edi
movaps xmm0, xmm2
mov esp, ebp
pop ebp
ret
Function at 0x4bedf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x4bee4e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4bee10
mov eax, dword [edi]
jmp 0x4bef39
cmp eax, 0x4e0
jb 0x4bef39
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4bee70
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4beec0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bf190
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7ad
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x55a064]
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 esi, dword [edi + 0x30]
mov ebx, dword [edi + 0x24]
test esi, esi
je 0x4bf25c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.PocoData.dll_public:_class_Poco::SharedPtr_class_Poco::Data::AbstractBinder__class_Poco::ReferenceCounter__class_Poco::ReleasePolicy_class_Poco::Data::AbstractBinder_____thiscall_Poco::Data::AbstractBinding::getBinder_void_]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4bf275
mov eax, dword [ecx]
push ebx
push esi
push dword [ebp + 8]
call dword [eax + 0x108]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x4bf23a
call dword [sym.imp.PocoFoundation.dll_public:_int___thiscall_Poco::AtomicCounter::operator___void_]
test eax, eax
jne 0x4bf23a
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4bf219
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x6c], 0
test esi, esi
je 0x4bf23a
mov ecx, esi
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::AtomicCounter::destructor_void_]
push 4
push esi
call fcn.004e9606
add esp, 8
mov byte [edi + 0x34], 1
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.004e9056
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 0x3c]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::NullPointerException::constructor_int_]
push 0x54b3d8
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
lea ecx, [ebp - 0x68]
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::NullPointerException::constructor_int_]
push 0x54b3d8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4c0800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4c082c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c084e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4c0850
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4c08d5
jg 0x4c0865
test esi, esi
je 0x4c08d5
test ecx, ecx
jl 0x4c08b8
jg 0x4c086f
test eax, eax
je 0x4c08b8
cmp edi, ecx
jg 0x4c0883
jl 0x4c0879
cmp esi, eax
jae 0x4c0883
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x4c08d5
jg 0x4c08bb
test esi, esi
je 0x4c08d5
jmp 0x4c08bb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4c08d5
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c08f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jg 0x4c091b
jl 0x4c090e
test esi, esi
jne 0x4c091b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4c0935
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0976
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4c0976
cmp eax, dword [ebp + 0xc]
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x4c097d
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x4c0a02
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4c09a6
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [esp + 0x10]
cmp edi, 0xfff
jbe 0x4c09ee
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4c0a15
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4c09c0
test edx, edx
je 0x4c0a02
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
mov eax, esi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c0e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x55a064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4c0e80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4c0eb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x4c0eb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x4c0fab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4c0ed9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c0f0d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4c0f6c
sub eax, 1
je 0x4c0f6c
sub eax, 2
jne 0x4c0fab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004c04a0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4c0f8a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4c0fab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x4c0fab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e9056
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x55a064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4c12ec
cmp byte [esi + 0x3d], 0
je 0x4c12ec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4c12da
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4c12a1
sub eax, 1
je 0x4c12a5
sub eax, 2
jne 0x4c12da
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4c12c3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4c12da
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004e9056
mov esp, ebp
pop ebp
ret

Function at 0x4c3760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcb55
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x55a064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x44
call fcn.004e9270
mov edi, eax
mov dword [ebp - 0x10], edi
push 2
mov dword [edi], 0
lea esi, [edi + 0xc]
mov dword [edi], vtable.galaxy::process_launching::internal::ProcessLauncherImpl.0
push esi
mov dword [edi + 4], 0
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
add esp, 0xc
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], edi
push 0
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QObject::constructor_class_QObject__]
mov byte [ebx + 8], 0
mov eax, ebx
mov byte [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], edi
mov dword [ebx], vtable.galaxy::process_launching::ProcessLauncher.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cd2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x55a064]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
push ebx
test eax, eax
jne 0x4cd2f8
sub esp, 8
mov eax, esp
mov dword [eax], str.Empty_path_passed
mov dword [eax + 4], 0x11
call fcn.004276f0
add esp, 8
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e9056
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 0x10
jb 0x4cd300
mov ecx, dword [ecx]
mov dword [esp + 4], ecx
lea edx, [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
call fcn.004d6a50
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 0xc]
setne bl
call fcn.0042ff30
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004e9056
mov esp, ebp
pop ebp
ret

Function at 0x4cd9c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe055
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x55a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.004d6a10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cda3e
lea ecx, [ebp - 0x28]
call fcn.0042ff30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9056
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], eax
lea ecx, [ebp - 0x40]
call fcn.00462310
push eax
mov edx, str.Could_not_get_the_current_attributes__error_code:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00434190
add esp, 4
push 0x2e
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0046cba0
add esp, 4
push eax
push edi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 3
call fcn.004cb730
push 0x54bab8
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3