joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180cd
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
lea ecx, [esp + 0x268]
mov dword [esp + 0x14], edi
call fcn.004049dc
cmp dword [ebp + 0xc], 0x80
mov bl, 1
ja 0x418286
mov ecx, esi
call fcn.00401b89
test al, al
jne 0x418286
cmp dword [esi + 8], 3
jbe 0x418286
push dword [edi + 4]
lea eax, [esp + 0x26c]
push dword [esi + 4]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418288
test byte [esp + 0x18], 0x10
je 0x418204
mov edx, 0x46fdec
lea ecx, [esp + 0x44]
call fcn.00415a6b
test eax, eax
je 0x418269
mov edx, 0x470fa0
lea ecx, [esp + 0x44]
call fcn.00415a6b
test eax, eax
je 0x418269
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470fa8
push eax
call fcn.004011fb
and dword [esp + 0x20], 0
lea ecx, [esp + 0x278]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004180cd
add esp, 0x18
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x418232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x418267
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418263
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418239
mov eax, dword [ebp + 8]
inc dword [eax]
jmp 0x418269
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x418267
push 0x80
push dword [esp + 0x270]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x418269
xor bl, bl
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418150
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x418288
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4182b9
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0x4654d8
push edi
mov dword [esp + 0x14], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x1c], 0x10
xor edi, edi
mov word [esp + 0x20], ax
push 0x476bd4
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call fcn.0040349c
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x476bd0
push edi
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.004180cd
pop ecx
pop ecx
test al, al
je 0x418354
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x418350
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x418354
push 0x80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
call edi
test eax, eax
setne al
jmp 0x418356
mov al, 1
jmp 0x418356
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418e7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test edx, edx
je 0x418ece
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20119
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418ece
push ebx
push ebx
push ebx
push ebx
push str.EnableCertPaddingCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
inc ecx
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x418ed0
xor al, al
pop ebx
leave
ret
Function at 0x41b8a4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b8e3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b8e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b8e3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b8e3
cmp dword [ecx + 0x74], 0xe
jbe 0x41b8e3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4303b5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x462890
push 0x462888
push str.FlsAlloc
push 0x1f
call fcn.00430234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4303e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6b8]
call esi
jmp 0x4303ef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430433
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4628a0
push 0x462898
push str.FlsGetValue
push 0x21
call fcn.00430234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43046a
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x430472
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4628a8
push 0x4628a0
push str.FlsSetValue
push 0x22
call fcn.00430234
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4304ac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45f6b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432491
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4324dc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043262c
test al, al
jne 0x4324d6
sub edx, 2
cmp edx, edi
jne 0x4324bc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4324fe
lea eax, [edi + 2]
cmp edx, eax
je 0x4324fe
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004323dd
add esp, 0x10
jmp 0x4325f8
push esi
lea ecx, [ebp - 0x255]
call fcn.0043262c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432541
push dword [ebp - 0x25c]
jmp 0x4324ee
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43257e
cmp word [ebp - 0x226], 0
je 0x43259f
cmp word [ebp - 0x226], ax
jne 0x43257e
cmp word [ebp - 0x224], 0
je 0x43259f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004323dd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4325eb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432558
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4325d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4325f8
push 0x43220d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00428e00
add esp, 0x10
jmp 0x4325c8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b526
leave
ret

Function at 0x432732
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x432743
pop esi
ret
push ebx
push edi
push esi
call fcn.004326fb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e672
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43276b
push ebx
push esi
push edi
call fcn.0041c760
add esp, 0xc
push 0
call fcn.0042e638
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x432b3b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432780
Function at 0x4389b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4389dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4389dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43ea77
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x101c
call fcn.0041be10
cmp dword [esp + 0x1020], 0
push ebx
push ebp
push esi
push edi
je 0x43ead6
mov esi, 0x4b40d0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4b90f4]
jmp 0x43eacb
push dword [esp + 0x1030]
push ebx
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
jne 0x43eac5
lea ecx, [ebx + 0x894]
call fcn.00401b89
test al, al
je 0x43eae5
mov ebx, dword [ebx + 0x18e0]
test ebx, ebx
jne 0x43eaa3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret 8
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0x46cfac
mov ecx, 0x800
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x24], ecx
cmp byte [ebx + 0x80], al
mov dword [esp + 0x20], eax
mov word [esp + 0x28], ax
lea eax, [ecx - 1]
je 0x43eb2b
mov edi, dword [ebx + 0x89c]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x898]
jmp 0x43eb40
mov edi, dword [ebx + 0x10ac]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x10a8]
lea eax, [esp + 0x30]
push eax
call fcn.0041c760
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x2c], edi
add esp, 0xc
mov word [esi + eax], cx
xor eax, eax
mov byte [ebx + 0x80], al
mov ebx, dword [esp + 0x1034]
test ebx, ebx
je 0x43ec22
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43eb9d
mov edx, dword [esp + 0x20]
test edx, edx
je 0x43eba1
push 0x46cfe8
push ecx
call fcn.0041bfde
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x43eb9d
sub eax, ecx
sar eax, 1
jns 0x43ebd4
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x43ec22
lea eax, [edx + 0xc]
cmp eax, dword [esp + 0x24]
jae 0x43ebd8
lea edi, [ecx + edx*2]
mov esi, str._firstfalse
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 0xc
mov dword [esp + 0x20], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x43ec22
mov esi, ebx
xor ebp, ebp
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x43ebe3
sub esi, edi
sar esi, 1
je 0x43ec22
lea eax, [esi + edx]
cmp eax, dword [esp + 0x24]
jae 0x43ec22
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push ebx
push eax
call fcn.0041c760
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
add ecx, esi
xor edx, edx
mov dword [esp + 0x20], ecx
mov word [eax + ecx*2], dx
push 0x4b40d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x28]
push 0x46cfdc
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
jmp 0x43ead8
Function at 0x443b2b
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x380
push esi
mov esi, dword [esp + 0x38c]
test esi, esi
jne 0x443b44
xor al, al
jmp 0x443d6d
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ebp, 0xff
push eax
push str.utm_codepage_u
push ebp
push esi
call fcn.0040529f
lea ebx, [ebp + 1]
push ebx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041cce0
push ebx
push 0xfe
lea eax, [esp + 0x34]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d090
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403dd1
add esp, 0x2c
mov edi, 0x2710
test al, al
je 0x443bb2
lea eax, [esp + 0x10]
push eax
call fcn.0042a794
pop ecx
test edx, edx
jg 0x443bed
jl 0x443bb2
cmp eax, edi
jae 0x443bed
push ebx
push 0xfe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d090
mov ecx, closesocket
call fcn.00403dd1
add esp, 0x10
test al, al
je 0x443bf4
lea eax, [esp + 0x10]
push eax
call fcn.0042a794
pop ecx
test edx, edx
jg 0x443bed
jl 0x443bf4
cmp eax, edi
jb 0x443bf4
mov ax, word [esp + 0x10]
jmp 0x443bfb
xor eax, eax
mov word [esp + 0x10], ax
test ax, ax
je 0x443c45
push 0
push 0
push 0x7f
lea eax, [esp + 0x11c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x443c45
push str.utm_uniq
mov edx, ebp
mov ecx, esi
call fcn.004073db
lea eax, [esp + 0x110]
mov edx, ebp
push eax
mov ecx, esi
call fcn.004073db
cmp byte [0x4b9f70], 0
je 0x443c6a
push str.utm_link
mov edx, ebp
mov ecx, esi
call fcn.004073db
push 0x4b9f70
mov edx, ebp
mov ecx, esi
call fcn.004073db
push ebp
lea eax, [esp + 0x194]
push eax
push str.https:__www.mql5.com
call fcn.00443a4b
test al, al
je 0x443d51
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b9ffc], 0
je 0x443d46
mov edi, dword [0x4b9ff8]
jmp 0x443d3e
lea eax, [esp + 0x190]
push eax
push edi
call fcn.00443975
test al, al
je 0x443d31
lea ebp, [edi + 0x80]
mov edx, str.utm_campaign
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x443cd8
inc ecx
cmp ecx, 0xd
jne 0x443cc7
jmp 0x443cee
mov edx, str.utm_source
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x443d31
inc ecx
cmp ecx, 0xb
jne 0x443cdf
lea ebx, [edi + 0xc0]
cmp byte [ebx], 0
je 0x443d31
push 0x46d1a0
mov edx, 0xff
mov ecx, esi
call fcn.004073db
push ebp
mov ebp, 0xff
mov ecx, esi
mov edx, ebp
call fcn.004073db
push 0x46d1a4
mov edx, ebp
mov ecx, esi
call fcn.004073db
push ebx
mov edx, ebp
mov ecx, esi
call fcn.004073db
push edi
mov ecx, 0x4b9ff0
call fcn.00407348
mov edi, eax
test edi, edi
jne 0x443ca8
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
jmp 0x443d65
cmp al, 0x20
jne 0x443d5f
mov byte [esi], 0x2b
jmp 0x443d64
jge 0x443d64
mov byte [esi], 0x5f
inc esi
mov al, byte [esi]
test al, al
jne 0x443d56
inc al
pop esi
add esp, 0x380
ret 0xc
Function at 0x444228
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
test esi, esi
je 0x44431c
xor ebx, ebx
cmp word [esi], bx
je 0x44431c
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push edi
push ebp
push esi
call fcn.0044411c
test al, al
je 0x444261
mov al, 1
jmp 0x44431e
lea eax, [esp + 0x34]
mov dword [esp + 0x10], ebx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x38], ebx
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebx
push ebx
push esi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x44431c
mov edx, dword [esp + 0x34]
test edx, edx
je 0x44431c
mov eax, edx
movzx ecx, di
cmp dword [eax + 4], ecx
je 0x4442bd
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4442af
jmp 0x444311
mov ecx, dword [eax + 0x18]
push 0x17
pop eax
cmp di, ax
jne 0x4442fe
lea eax, [ebp + 8]
mov edi, eax
mov dword [esp + 0x3c], eax
lea esi, [ecx + 8]
push 0x17
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp], cx
mov esi, 0x493440
mov ecx, ebx
mov eax, dword [eax + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x4442fa
mov eax, dword [esp + 0x3c]
inc ecx
cmp ecx, 4
jne 0x4442e6
jmp 0x444311
mov bl, 1
jmp 0x444311
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
push 2
pop eax
mov word [ebp], ax
cmp dword [ecx + 4], ebx
setne bl
push edx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov al, bl
jmp 0x44431e
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc

Function at 0x444fa7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
lea edx, [ebp - 0x100]
call fcn.004464a9
mov edx, 0x46f29c
pop ecx
test al, al
je 0x444fe7
lea esi, [ebp - 0x100]
xor ecx, ecx
movzx eax, byte [esi + ecx]
cmp al, byte [edx + ecx]
jne 0x444ffa
inc ecx
cmp ecx, 3
jne 0x444fd8
push ecx
push edx
push ecx
push 0x3f
pop edx
mov ecx, 0x4b9f30
call fcn.0044032b
pop esi
leave
ret
lea eax, [ebp - 0x100]
push eax
push str._s_en
push 0x3f
push 0x4b9f30
call fcn.00407378
add esp, 0x10
jmp 0x444ff7
Function at 0x44514e
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, 0x4b9590
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov dword [0x4b9ab0], eax
cmp byte [0x4ba020], 0
jne 0x4451b6
push 0x190
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0041cce0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4451af
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x445325
mov byte [0x4ba020], 1
mov ebx, 0x4b96a0
push ebx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x103
mov ebp, 0x4b98a8
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00403e49
push ebx
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403e49
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c8dd
test eax, eax
js 0x445216
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push 0x470070
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c81b
lea ecx, [esp + 0x18]
call fcn.0040952e
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c8dd
test eax, eax
js 0x44524e
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push str.Terminal
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c81b
lea ecx, [esp + 0x18]
call fcn.0040952e
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c8dd
test eax, eax
js 0x445286
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push str.Community
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043c81b
lea ecx, [esp + 0x18]
call fcn.0040952e
push str.MetaQuotesTerminalCommunitydns.dat
mov edx, esi
mov ecx, ebx
call fcn.00403be9
push str.MetaQuotesTerminalCommunitycookies.dat
mov edx, esi
mov ecx, ebp
call fcn.00403be9
call fcn.00444fa7
call fcn.00444f29
call fcn.00444ab9
call fcn.004449b7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str..mql5.com
call fcn.00444660
push str..mql5.net
call fcn.00444660
push str..finteza.com
call fcn.00444660
push str..metaquotes.net
call fcn.00444660
push str..metatrader.com
call fcn.00444660
call fcn.00444eb6
test al, al
je 0x445323
mov esi, 0x4ba014
mov ecx, esi
call fcn.00403ba4
test al, al
jne 0x445323
push 0x400000
push edi
push 0x4438cf
mov ecx, esi
call fcn.00403b43
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc
Function at 0x44587e
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
test esi, esi
je 0x4459fd
xor ebp, ebp
cmp word [esi], bp
je 0x4459fd
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4459fd
push dword [esp + 0x40]
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00445d87
test al, al
je 0x4459fd
lea eax, [esp + 0x40]
mov dword [esp + 0x10], ebp
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x44], ebp
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], ebp
push ebp
mov edi, ebp
movlpd qword [esp + 0x2c], xmm0
push esi
mov dword [esp + 0x54], edi
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x44595a
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x44595a
push 0x17
pop eax
lea edx, [ebx + 8]
push 2
mov dword [esp + 0x3c], edx
pop esi
cmp dword [ebp + 4], eax
jne 0x4459a5
mov esi, dword [ebp + 0x18]
add esi, 8
xor ecx, ecx
mov eax, dword [esi + ecx*4]
mov edi, 0x493450
cmp eax, dword [edi + ecx*4]
mov edi, dword [esp + 0x44]
jne 0x445961
inc ecx
cmp ecx, 4
jne 0x44592c
push 2
pop esi
push 0x17
pop eax
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x44591b
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, edi
jmp 0x4459ff
cmp edi, 0x10
jge 0x445943
push 7
pop ecx
push dword [esp + 0x3c]
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
inc edi
push 0x17
mov word [ebx + 2], ax
pop eax
mov word [ebx], ax
add ebx, 0x1c
add edx, 0x1c
mov dword [esp + 0x44], edi
push 2
mov dword [esp + 0x3c], edx
pop esi
jmp 0x445949
cmp dword [ebp + 4], esi
jne 0x445949
mov edx, dword [ebp + 0x18]
cmp dword [edx + 4], 0
je 0x4459f4
cmp edi, 0x10
jge 0x4459f4
push 7
pop ecx
push dword [esp + 0x3c]
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
inc edi
mov word [ebx + 2], ax
mov word [ebx], si
add ebx, 0x1c
add edx, 0x1c
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], edx
jmp 0x445946
mov edx, dword [esp + 0x38]
jmp 0x445949
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x18