joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f0b0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov edi, 1
lea ebx, [esi + 0x13c8]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x13e4]
test eax, eax
jne 0x43f0ea
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
je 0x43f12c
mov edx, dword [esi + 0x13e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov dword [esi + 0x13e4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x13e4]
push ebx
push eax
call ebp
test eax, eax
je 0x43f1d8
cmp eax, 0x80
je 0x43f1ac
cmp eax, 0x102
jne 0x43f137
mov eax, dword [esi + 0x93c]
test eax, eax
jne 0x43f193
mov dword [esi + 0x93c], 1
lea ecx, [esi + 0x8c]
push ecx
push str._s:_shutdown_by_timeout
push 3
push 0x596158
call fcn.0046b660
add esp, 0x10
lea ecx, [esi + 0x920]
call fcn.0045a240
jmp 0x43f137
mov edx, dword [esi + 0x13e4]
xor edi, edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi + 0x8c]
push eax
jmp 0x43f1c4
mov ecx, dword [esi + 0x13e4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esi + 0x8c]
xor edi, edi
push edx
push str._s:_terminated_by_timeout
push 3
push 0x596158
call fcn.0046b660
add esp, 0x10
mov eax, dword [esi + 0x13e4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x13e4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x442f50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x44307f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esi + 0x18]
cmp edi, ebx
je 0x442f95
push ebx
push 0x5965b8
push str._s_s
push 0xff
push edi
call ebp
add esp, 0x14
mov eax, dword [esi + 0x118]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x11c], ebx
je 0x443078
mov ecx, esi
call fcn.00443090
mov ecx, esi
call fcn.00443230
mov ecx, esi
call fcn.00443470
mov ecx, esi
call fcn.004436d0
mov eax, dword [esi + 0x120]
mov dword [esp + 0x10], 0x190
cmp eax, 1
jne 0x443052
push edi
push str._smqlcache.dat
lea eax, [esp + 0x1c]
push 0xff
push eax
call ebp
lea ecx, [esp + 0x24]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x44304c
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea edx, [esp + 0x18]
push 4
push edx
call ebp
add esp, 0x10
cmp eax, 1
jne 0x443042
mov eax, dword [esi + 0x11c]
cmp eax, ebx
jle 0x443042
lea ecx, [eax + eax*4]
push edi
push 1
lea edx, [eax + ecx*8]
mov eax, dword [esi + 0x118]
shl edx, 3
push edx
push eax
call ebp
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x120], ebx
mov eax, dword [esi + 0x11c]
cmp eax, 1
jle 0x443078
mov ecx, dword [esi + 0x118]
push 0x442f30
push 0x148
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x443090
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
lea eax, [esi + 0x18]
xor ebx, ebx
push eax
push str._smqlcache.dat
push 0xff
push ecx
mov dword [esi + 0x120], ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [esp + 0x24]
push 0x581660
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x443216
push ebp
push 1
lea eax, [esp + 0x18]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4430f8
mov dword [esp + 0x10], ebx
jmp 0x443102
cmp dword [esp + 0x10], 0x190
je 0x443122
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xc7ce0c7d
sub ecx, 4
add esp, 4
mul ecx
mov edi, edx
shr edi, 8
cmp edi, 1
jge 0x44316f
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0x120], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
cmp edi, 0x200
jle 0x44317c
mov edi, 0x200
mov edx, dword [esi + 0x118]
lea eax, [edi + edi*4]
push ebp
push 1
lea ecx, [edi + eax*8]
shl ecx, 3
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push ebp
je 0x4431be
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ecx, ecx
cmp edi, ebx
mov dword [esi + 0x11c], edi
jle 0x443216
xor eax, eax
mov edx, dword [esi + 0x118]
inc ecx
mov byte [edx + eax + 0x7f], bl
mov edx, dword [esi + 0x118]
mov byte [edx + eax + 0xff], bl
mov edx, dword [esi + 0x118]
mov dword [edx + eax + 0x104], ebx
mov edx, dword [esi + 0x118]
mov dword [edx + eax + 0x114], ebx
mov edx, dword [esi + 0x11c]
add eax, 0x148
cmp ecx, edx
jl 0x4431d5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x443230
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 0xc]
lea eax, [ebp + 0x18]
push eax
push str._s.mq4
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x10c]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x443460
push esi
push edi
test byte [esp + 0x114], 0x10
jne 0x44343c
lea ecx, [esp + 0x140]
push 0xff
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x113], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x13]
lea ecx, [esp + 0x14]
cmp eax, ecx
jbe 0x4432d3
cmp byte [eax], 0x2e
je 0x4432d3
dec eax
lea edx, [esp + 0x14]
cmp eax, edx
ja 0x4432c5
mov byte [eax], 0
mov al, byte [esp + 0x14]
test al, al
je 0x44343c
mov eax, dword [ebp + 0x11c]
xor esi, esi
test eax, eax
jle 0x44331c
xor edi, edi
mov ecx, dword [ebp + 0x118]
lea eax, [esp + 0x14]
add ecx, edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x44331c
mov eax, dword [ebp + 0x11c]
inc esi
add edi, 0x148
cmp esi, eax
jl 0x4432f0
cmp esi, dword [ebp + 0x11c]
jl 0x443385
cmp esi, 0x200
jge 0x443457
mov edi, dword [ebp + 0x118]
lea edx, [esi + esi*4]
mov ecx, 0x52
xor eax, eax
lea ebx, [esi + edx*8]
push 0x7f
shl ebx, 3
add edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x118]
lea eax, [esp + 0x18]
add ecx, ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [ebp + 0x118]
add esp, 0xc
mov byte [edx + ebx + 0x7f], 0
mov eax, dword [ebp + 0x11c]
inc eax
mov dword [ebp + 0x120], 1
mov dword [ebp + 0x11c], eax
mov ecx, dword [ebp + 0x118]
lea eax, [esi + esi*4]
lea edi, [esp + 0x128]
lea ebx, [esi + eax*8]
shl ebx, 3
mov dword [ecx + ebx + 0x104], 1
mov edx, dword [ebp + 0x118]
mov ecx, 2
lea eax, [edx + ebx]
xor edx, edx
lea esi, [eax + 0x10c]
repe cmpsd dword [esi], dword es:[edi]
mov ecx, dword [esp + 0x134]
jne 0x4433cf
cmp dword [eax + 0x108], ecx
je 0x44343c
mov dword [eax + 0x108], ecx
mov eax, dword [ebp + 0x118]
mov ecx, dword [esp + 0x128]
mov dword [eax + ebx + 0x10c], ecx
mov edx, dword [esp + 0x12c]
mov ecx, ebp
mov dword [eax + ebx + 0x110], edx
mov eax, dword [ebp + 0x118]
add eax, ebx
push eax
call fcn.00443790
test eax, eax
jne 0x443432
mov ecx, dword [ebp + 0x118]
mov dword [ecx + ebx + 0x114], eax
mov edx, dword [ebp + 0x118]
mov dword [edx + ebx + 0x118], eax
mov ecx, dword [ebp + 0x118]
mov dword [ecx + ebx + 0x124], eax
mov dword [ebp + 0x120], 1
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44327a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x443470
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
push ebx
mov ebx, ecx
lea ecx, [esp + 0xc]
lea eax, [ebx + 0x18]
push eax
push str._s.ex4
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x10c]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x4436bc
push ebp
push esi
push edi
test byte [esp + 0x118], 0x10
jne 0x443693
lea ecx, [esp + 0x144]
push 0xff
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x117], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x17]
lea ecx, [esp + 0x18]
cmp eax, ecx
jbe 0x443511
cmp byte [eax], 0x2e
je 0x443511
dec eax
lea edx, [esp + 0x18]
cmp eax, edx
ja 0x443503
mov byte [eax], 0
mov al, byte [esp + 0x18]
test al, al
je 0x443693
mov eax, dword [ebx + 0x11c]
xor edi, edi
test eax, eax
jle 0x44355a
xor esi, esi
mov ecx, dword [ebx + 0x118]
lea eax, [esp + 0x18]
add ecx, esi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x44355a
mov eax, dword [ebx + 0x11c]
inc edi
add esi, 0x148
cmp edi, eax
jl 0x44352e
mov ebp, dword [ebx + 0x118]
mov eax, dword [ebx + 0x11c]
lea edx, [edi + edi*4]
lea esi, [edi + edx*8]
shl esi, 3
add ebp, esi
cmp edi, eax
mov dword [esp + 0x14], esi
jl 0x4435ed
cmp edi, 0x200
jge 0x4436ae
mov ecx, 0x52
xor eax, eax
mov edi, ebp
push 0x7f
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov byte [ebp + 0x7f], 0
mov ecx, dword [esp + 0x144]
mov dword [ebp + 0x118], ecx
mov edx, dword [esp + 0x128]
mov dword [ebp + 0x11c], edx
mov eax, dword [esp + 0x12c]
mov dword [ebp + 0x120], eax
mov dword [ebp + 0x104], 0
mov eax, dword [ebx + 0x11c]
add esp, 0xc
inc eax
mov dword [ebx + 0x120], 1
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp + 0x124]
mov dword [ebp + 0x114], 1
mov edx, dword [esp + 0x138]
cmp eax, 0x1ab
je 0x443612
cmp eax, 0x1ac
jne 0x443636
cmp dword [ebp + 0x118], edx
jne 0x443636
mov ecx, 2
lea edi, [esp + 0x12c]
lea esi, [ebp + 0x11c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x443693
mov esi, dword [esp + 0x14]
mov dword [ebp + 0x118], edx
mov ecx, dword [esp + 0x11c]
mov dword [ebp + 0x11c], ecx
mov edx, dword [esp + 0x120]
push ebp
mov ecx, ebx
mov dword [ebp + 0x120], edx
call fcn.004438d0
test eax, eax
jne 0x443693
mov ecx, dword [ebx + 0x118]
mov dword [ecx + esi + 0x114], eax
mov edx, dword [ebx + 0x118]
mov dword [edx + esi + 0x118], eax
mov ecx, dword [ebx + 0x118]
mov dword [ecx + esi + 0x124], eax
mov dword [ebx + 0x120], 1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4434b8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret
Function at 0x443790
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x354
push ebx
push esi
mov esi, dword [esp + 0x360]
mov ebx, ecx
test esi, esi
jne 0x4437b2
pop esi
xor eax, eax
pop ebx
add esp, 0x354
ret 4
push edi
push esi
push str.Compiling__s
push 0
push 0x596158
call fcn.0046b660
xor eax, eax
add esp, 0x10
mov dword [esp + 0xc], eax
mov ecx, 0x11
mov dword [esp + 0x10], eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0x5965b8
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
push str._smetalang.exe
lea ecx, [esp + 0x68]
push 0xff
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], ax
call edi
add esp, 0x10
add ebx, 0x18
lea edx, [esp + 0x160]
push esi
push ebx
push 0x5965b8
push str.__smetalang.exe____s_s.mq4_
push 0x1ff
push edx
call edi
add esp, 0x18
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x160]
push eax
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x44388f
push str.Could_not_launch_the_compiler
push 1
push 0x596158
call fcn.0046b660
add esp, 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x354
ret 4
mov ecx, dword [esp + 8]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
mov eax, 1
pop ebx
add esp, 0x354
ret 4
Function at 0x4438d0
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x27c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28c]
test esi, esi
push edi
mov ebp, ecx
je 0x443a2f
lea eax, [ebp + 0x18]
push esi
push eax
push str._s_s.ex4
lea ecx, [esp + 0x198]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x1a0]
push 0x581660
push edx
call ebx
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x44396f
push edi
push 1
lea eax, [esp + 0x18]
push 0x17c
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x443957
mov eax, dword [esp + 0x14]
cmp eax, 0x1ab
je 0x4439d6
cmp eax, 0x1ac
je 0x4439d6
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x104]
test eax, eax
je 0x443a2f
push esi
mov ecx, ebp
call fcn.00443790
test eax, eax
je 0x443a2f
lea edx, [esp + 0x18c]
push 0x581660
push edx
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x443a2f
push edi
push 1
lea eax, [esp + 0x18]
push 0x17c
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x443a17
mov eax, dword [esp + 0x14]
cmp eax, 0x1ab
je 0x4439d6
cmp eax, 0x1ac
jne 0x443a17
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x20]
push 0x7f
lea edx, [esi + 0x80]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esp + 0x24]
add esp, 0x10
mov byte [esi + 0xff], 0
mov dword [esi + 0x124], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x27c
ret 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x27c
ret 4

Function at 0x443b80
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
test eax, eax
push ebp
mov ebp, ecx
je 0x443c0d
push ebx
push esi
push edi
lea ebx, [ebp + 0x18]
push eax
push ebx
push str._s_s.ex4
lea eax, [esp + 0x1c]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x584a40
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov ecx, ebp
call fcn.00442f50
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x200
ret 4
Function at 0x443d70
Capabilities:
Check if file exists
Create process on windows
Enumerate gui resources
Get file attributes

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [esp + 0x208]
push esi
push edi
test ebx, ebx
jne 0x443d92
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x200
ret 4
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [ecx + 0x18]
push ebx
push edi
push str._s_s.mq4
lea eax, [esp + 0x18]
push 0xff
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x443dcf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x200
ret 4
lea edx, [esp + 0xc]
push edx
push 0x443c20
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x443e36
push 0x5965b8
push str._smetaeditor.exe
lea eax, [esp + 0x114]
push 0xff
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0xc]
push ebx
push edi
push str.__s_s.mq4_
push 0xff
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
lea eax, [esp + 0x10c]
push 0xa
push 0x5965b8
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x200
ret 4

Function at 0x4448cd
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
cmp eax, 1
push esi
mov esi, ecx
je 0x444908
mov ecx, dword [esi + 0x1384]
lea eax, [esi + 0x8c]
push str.FileDelete
push eax
push str._s:_invalid_parameters_for__s_function
push 3
push ecx
call fcn.0046b660
add esp, 0x14
mov dword [esi + 0x138c], 0xfd2
pop esi
add esp, 0x200
ret 4
push 0
push 0
lea edx, [esp + 0xc]
push 0x1ff
push edx
push str.FileDelete
mov ecx, esi
call fcn.00443ee0
test eax, eax
je 0x44495e
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44495e
mov eax, dword [esi + 0x1384]
lea ecx, [esp + 4]
lea edx, [esi + 0xc]
push ecx
push edx
push str._s:_cannot_delete_file__s
push 3
push eax
call fcn.0046b660
add esp, 0x14
mov dword [esi + 0x138c], 0x1004
pop esi
add esp, 0x200
ret 4
Function at 0x4549c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4549d8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
lea edi, [esi + 0x414]
push 4
push edi
call fcn.0046c140
mov eax, dword [edi]
cmp eax, 1
jl 0x454b26
cmp dword [esi + 0x55c], eax
jge 0x454a16
mov eax, dword [esi + 0x558]
test eax, eax
je 0x454a16
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x558], 0
mov eax, dword [esi + 0x558]
test eax, eax
jne 0x454a84
mov eax, dword [edi]
add eax, 0x10
mov dword [esi + 0x55c], eax
shl eax, 2
push eax
call fcn.004c2e90
add esp, 4
mov dword [esi + 0x558], eax
test eax, eax
jne 0x454a84
mov ecx, esi
call fcn.00456d40
mov ecx, 0x5f
xor eax, eax
lea edi, [esi + 0x2c8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x1384]
lea edi, [esi + 0x8c]
push edi
push str._s:_not_enough_memory_for_expert_data
push 3
push ecx
call fcn.0046b660
add esp, 0x10
mov byte [edi], 0
mov byte [esi + 0xc], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ebx, dword [edi]
mov edx, dword [esi + 0x558]
mov ecx, dword [ebp + 8]
shl ebx, 2
push ebx
push edx
call fcn.0046c140
cmp eax, ebx
je 0x454ac5
mov ecx, esi
call fcn.00456d40
mov ecx, 0x5f
xor eax, eax
lea edi, [esi + 0x2c8]
rep stosd dword es:[edi], eax
mov byte [esi + 0xc], al
mov byte [esi + 0x8c], al
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
jmp 0x454ad7
mov ecx, dword [0x5a2894]
mov eax, dword [0x5a28ac]
mov edx, dword [edi]
and ecx, 0xffff
and eax, 0xffff
xor ecx, eax
xor eax, eax
xor ecx, 0xc954
test edx, edx
jle 0x454b14
mov edx, dword [esi + 0x558]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, ecx
inc eax
mov dword [edx], ebx
mov edx, dword [edi]
cmp eax, edx
jl 0x454afd
jmp 0x454b26
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x46a7f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push esi
mov esi, ecx
test ebx, ebx
je 0x46a80c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x24], 1
jne 0x46a87a
push edi
push 0x5965b8
push str._sprofilesgvariables.dat
lea eax, [esp + 0x14]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x1c]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x46a872
mov eax, dword [esi + 0x1c]
test eax, eax
jle 0x46a868
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x46a868
lea edx, [eax + eax*4]
push edi
shl edx, 4
push 1
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x24], 0
pop edi
test ebx, ebx
je 0x46a885
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
add esp, 0x100
ret 4
Function at 0x46a890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
push esi
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x18]
sub ebx, 0x24ea00
push 0x5965b8
push str._sprofilesgvariables.dat
push 0xff
push eax
mov dword [esp + 0x20], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], 1
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x28]
push 0x581660
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x18
cmp edi, esi
je 0x46aa87
mov edx, dword [edi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
mov eax, dword [ebp + 0x20]
mov esi, edx
shr esi, 6
add esp, 4
cmp eax, esi
jge 0x46a969
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x46a92a
push eax
call fcn.004c2eb0
add esp, 4
lea edx, [esi + esi*4 + 0x500]
shl edx, 4
push edx
call fcn.004c2e90
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x46a960
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp + 0x20], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea eax, [esi + 0xfa]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x46aa7d
test esi, esi
je 0x46aa7d
lea ecx, [esi + esi*4]
push edi
shl ecx, 4
push 1
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x46a997
xor esi, esi
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0x18]
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], esi
test esi, esi
jle 0x46aa55
mov edx, dword [eax + 0x48]
mov byte [eax + 0x3f], 0
cmp edx, ebx
jae 0x46a9c8
mov edx, dword [esp + 0x10]
mov byte [eax], 0
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
inc ecx
add eax, 0x50
cmp ecx, edx
jl 0x46a9b1
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x46aa55
mov eax, dword [ebp + 0x20]
add eax, 2
lea edx, [eax + eax*4]
shl edx, 4
push edx
call fcn.004c2e90
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x46aa4e
mov eax, dword [ebp + 0x1c]
xor edx, edx
xor ebx, ebx
cmp eax, edx
mov dword [esp + 0x10], edx
jle 0x46aa3c
mov eax, edi
mov ecx, dword [ebp + 0x18]
lea esi, [edx + ecx]
mov cl, byte [edx + ecx]
test cl, cl
je 0x46aa29
mov edi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
inc ebx
add eax, 0x50
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 0x1c]
inc ecx
add edx, 0x50
cmp ecx, esi
mov dword [esp + 0x10], ecx
jl 0x46aa0b
mov edx, dword [ebp + 0x18]
push edx
call fcn.004c2eb0
add esp, 4
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x24], 1
mov eax, dword [ebp + 0x1c]
cmp eax, 1
jle 0x46aa87
push 0x495730
push 0x50
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret