joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418128
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.0040491d
cmp dword [ebp + 0xc], 0x80
mov bl, 1
ja 0x4182e1
mov ecx, esi
call fcn.00401b89
test al, al
jne 0x4182e1
cmp dword [esi + 8], 3
jbe 0x4182e1
push dword [edi + 4]
lea eax, [esp + 0x26c]
push dword [esi + 4]
push 0x470ff8
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 0x4182e3
test byte [esp + 0x18], 0x10
je 0x41825f
mov edx, 0x46fe84
lea ecx, [esp + 0x44]
call fcn.00415b0b
test eax, eax
je 0x4182c4
mov edx, 0x470ff0
lea ecx, [esp + 0x44]
call fcn.00415b0b
test eax, eax
je 0x4182c4
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470ff8
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.00418128
add esp, 0x18
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x41828d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4182c2
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 0x4182be
lea eax, [esp + 0x44]
push eax
push dword [esi + 4]
lea eax, [esp + 0x270]
push 0x470ff8
push eax
call fcn.004011fb
add esp, 0x10
push dword [esp + 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x418294
mov eax, dword [ebp + 8]
inc dword [eax]
jmp 0x4182c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4182c2
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 0x4182c4
xor bl, bl
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4181ab
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4182e3
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418314
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 0x476c24
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edi
call fcn.00403488
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x476c20
push edi
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, esi
call fcn.00418128
pop ecx
pop ecx
test al, al
je 0x4183af
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x4183ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4183af
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 0x4183b1
mov al, 1
jmp 0x4183b1
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418ed7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test edx, edx
je 0x418f29
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 0x418f29
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 0x418f2b
xor al, al
pop ebx
leave
ret
Function at 0x41a9d7
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x34]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
movlpd qword [esp + 0x28], xmm0
xor esi, esi
push esi
mov ebx, dword [edi + 0x4d10]
push ebx
push ebp
push dword [esp + 0x44]
call fcn.00439910
mov ecx, eax
mov dword [esp + 0x1c], eax
and ecx, 0xf
mov dword [esp + 0x20], edx
or ecx, esi
je 0x41aa1d
and eax, 0xfffffff0
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
lea esi, [edi + 0x10]
test ebx, ebx
je 0x41ab0c
mov eax, dword [esp + 0x2c]
mov ebx, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
push dword [esp + 0x34]
or dword [ebx], 0xffffffff
lea ecx, [ebx + 8]
and dword [ebx + 4], 0
mov edx, 0xff
mov dword [ebx + 0x218], edi
call fcn.00403ead
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x208], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x210], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [ebx + 0x20c], edx
mov dword [ebx + 0x214], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
cmp eax, dword [edi + 0x4d10]
jne 0x41aabb
mov ecx, dword [esp + 0x38]
mov eax, ebp
sub ecx, dword [esp + 0x14]
mov dword [ebx + 0x210], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
mov dword [ebx + 0x214], eax
jmp 0x41aabf
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
adc edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.0041b208
mov dword [ebx + 0x21c], eax
test eax, eax
je 0x41ab9b
mov dword [eax + 0x438], 1
add ebx, 0x268
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 0x4d10]
jb 0x41aa3e
mov ebx, dword [edi + 0x4d10]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
shrd eax, ebp, 0xa
shr ebp, 0xa
push ebp
push eax
call fcn.0045e4f0
mulsd xmm0, qword [0x4781e0]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [esp + 0x44]
push ebx
push str._u_threads_for__s__ping__.2lf_ms__size__I64u_kb
push str.Parallel
push 0x4b9590
call fcn.0044637c
xor ebx, ebx
add esp, 0x24
cmp dword [edi + 0x4d10], ebx
jbe 0x41ab8f
lea eax, [esi + 4]
push eax
push 0x10000
push esi
push 0x41a99c
push 0x40000
push 0
call fcn.0042b88c
add esp, 0x18
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41ab9b
inc ebx
add esi, 0x268
cmp ebx, dword [edi + 0x4d10]
jb 0x41ab5b
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14
xor al, al
jmp 0x41ab91

Function at 0x41ab9f
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
cmp dword [esi], 0xffffffff
je 0x41abcf
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41abc4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor bl, bl
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x41abe5
mov dword [eax + 0x438], 0
jmp 0x41abe7
xor bl, bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x431265
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.004310e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431299
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6c0]
call esi
jmp 0x43129f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4312e3
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.004310e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43131a
push dword [ebp + 8]
mov ecx, esi
call dword [0x45f6c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431322
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.004310e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43135c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45f6c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x433341
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 0x43338c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004334dc
test al, al
jne 0x433386
sub edx, 2
cmp edx, edi
jne 0x43336c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4333ae
lea eax, [edi + 2]
cmp edx, eax
je 0x4333ae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043328d
add esp, 0x10
jmp 0x4334a8
push esi
lea ecx, [ebp - 0x255]
call fcn.004334dc
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 0x4333f1
push dword [ebp - 0x25c]
jmp 0x43339e
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 0x43342e
cmp word [ebp - 0x226], 0
je 0x43344f
cmp word [ebp - 0x226], ax
jne 0x43342e
cmp word [ebp - 0x224], 0
je 0x43344f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043328d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43349b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x433408
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x433483
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4334a8
push 0x4330bd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00429cb0
add esp, 0x10
jmp 0x433478
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.0041c3d8
leave
ret

Function at 0x4335e2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4335f3
pop esi
ret
push ebx
push edi
push esi
call fcn.004335ab
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042f522
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43361b
push ebx
push esi
push edi
call fcn.0041d610
add esp, 0xc
push 0
call fcn.0042f4e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4339eb
Capabilities:
Set environment variable

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

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

Disassembly:
mov eax, 0x101c
call fcn.0041ccc0
cmp dword [esp + 0x1020], 0
push ebx
push ebp
push esi
push edi
je 0x43f93a
mov esi, 0x4b40c0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4b90ec]
jmp 0x43f92f
push dword [esp + 0x1030]
push ebx
call fcn.0042b999
pop ecx
pop ecx
test eax, eax
jne 0x43f929
lea ecx, [ebx + 0x894]
call fcn.00401b89
test al, al
je 0x43f949
mov ebx, dword [ebx + 0x18e0]
test ebx, ebx
jne 0x43f907
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], 0x46cf54
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 0x43f98f
mov edi, dword [ebx + 0x89c]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x898]
jmp 0x43f9a4
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.0041d610
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 0x43fa86
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43fa01
mov edx, dword [esp + 0x20]
test edx, edx
je 0x43fa05
push 0x46cf90
push ecx
call fcn.0041ce8e
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x43fa01
sub eax, ecx
sar eax, 1
jns 0x43fa38
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x43fa86
lea eax, [edx + 0xc]
cmp eax, dword [esp + 0x24]
jae 0x43fa3c
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 0x43fa86
mov esi, ebx
xor ebp, ebp
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x43fa47
sub esi, edi
sar esi, 1
je 0x43fa86
lea eax, [esi + edx]
cmp eax, dword [esp + 0x24]
jae 0x43fa86
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push ebx
push eax
call fcn.0041d610
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 0x4b40c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x28]
push 0x46cf84
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
jmp 0x43f93c
Function at 0x444859
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, 0x8000
push 0x45f8cc
push eax
mov dword [ebp - 4], eax
call fcn.0041bcdd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4448da
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x1e
push 0x17
pop edi
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x4448c1
mov eax, esi
test dword [eax + 0x38], 0x100
je 0x4448ba
mov ecx, dword [eax + 0x10]
jmp 0x4448b6
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x4448b3
cmp word [edx], di
jne 0x4448b3
cmp byte [edx + 8], 0xfe
jne 0x4448e0
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x4448a1
mov eax, dword [eax + 8]
test eax, eax
jne 0x444893
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
je 0x4448d3
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x4448ca
push esi
call fcn.0041bce6
pop ecx
xor al, al
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
je 0x4448f2
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x4448e9
push esi
call fcn.0041bce6
pop ecx
mov al, 1
jmp 0x4448dc
Function at 0x4449dd
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x380
push esi
mov esi, dword [esp + 0x38c]
test esi, esi
jne 0x4449f6
xor al, al
jmp 0x444c1f
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.00405214
lea ebx, [ebp + 1]
push ebx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041db90
push ebx
push 0xfe
lea eax, [esp + 0x34]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d038
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403e35
add esp, 0x2c
mov edi, 0x2710
test al, al
je 0x444a64
lea eax, [esp + 0x10]
push eax
call fcn.0042b644
pop ecx
test edx, edx
jg 0x444a9f
jl 0x444a64
cmp eax, edi
jae 0x444a9f
push ebx
push 0xfe
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_Software
push eax
push 0x46d038
mov ecx, SysReAllocStringLen
call fcn.00403e35
add esp, 0x10
test al, al
je 0x444aa6
lea eax, [esp + 0x10]
push eax
call fcn.0042b644
pop ecx
test edx, edx
jg 0x444a9f
jl 0x444aa6
cmp eax, edi
jb 0x444aa6
mov ax, word [esp + 0x10]
jmp 0x444aad
xor eax, eax
mov word [esp + 0x10], ax
test ax, ax
je 0x444af7
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 0x444af7
push str.utm_uniq
mov edx, ebp
mov ecx, esi
call fcn.00407473
lea eax, [esp + 0x110]
mov edx, ebp
push eax
mov ecx, esi
call fcn.00407473
cmp byte [0x4b9f70], 0
je 0x444b1c
push str.utm_link
mov edx, ebp
mov ecx, esi
call fcn.00407473
push 0x4b9f70
mov edx, ebp
mov ecx, esi
call fcn.00407473
push ebp
lea eax, [esp + 0x194]
push eax
push str.https:__www.mql5.com
call fcn.004448fd
test al, al
je 0x444c03
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4b9ffc], 0
je 0x444bf8
mov edi, dword [0x4b9ff8]
jmp 0x444bf0
lea eax, [esp + 0x190]
push eax
push edi
call fcn.00444783
test al, al
je 0x444be3
lea ebp, [edi + 0x80]
mov edx, str.utm_campaign
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x444b8a
inc ecx
cmp ecx, 0xd
jne 0x444b79
jmp 0x444ba0
mov edx, str.utm_source
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x444be3
inc ecx
cmp ecx, 0xb
jne 0x444b91
lea ebx, [edi + 0xc0]
cmp byte [ebx], 0
je 0x444be3
push 0x46d148
mov edx, 0xff
mov ecx, esi
call fcn.00407473
push ebp
mov ebp, 0xff
mov ecx, esi
mov edx, ebp
call fcn.00407473
push 0x46d14c
mov edx, ebp
mov ecx, esi
call fcn.00407473
push ebx
mov edx, ebp
mov ecx, esi
call fcn.00407473
push edi
mov ecx, 0x4b9ff0
call fcn.004073e0
mov edi, eax
test edi, edi
jne 0x444b5a
push 0x4b9590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
jmp 0x444c17
cmp al, 0x20
jne 0x444c11
mov byte [esi], 0x2b
jmp 0x444c16
jge 0x444c16
mov byte [esi], 0x5f
inc esi
mov al, byte [esi]
test al, al
jne 0x444c08
inc al
pop esi
add esp, 0x380
ret 0xc
Function at 0x445079
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
cmp dword [esp + 0x30], 0
push ebx
push ebp
push esi
push edi
je 0x44520b
mov esi, dword [esp + 0x48]
test esi, esi
je 0x44520b
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
cmp dword [ebp], edi
jge 0x44520b
lea eax, [esp + 0x14]
mov dword [esp + 0x20], 1
push eax
xor ecx, ecx
mov dword [esp + 0x28], 6
lea eax, [esp + 0x1c]
mov dword [esp + 0x50], ecx
push eax
push ecx
push dword [esp + 0x4c]
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x445205
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x445205
push 2
pop edx
mov ax, word [esp + 0x54]
test ax, ax
je 0x44511b
movzx eax, ax
cmp dword [ebx + 4], eax
jne 0x4451f0
mov eax, dword [ebx + 4]
push 0x17
pop ecx
cmp eax, ecx
jne 0x445190
cmp byte [0x4ba021], 0
je 0x4451f0
mov eax, dword [ebx + 0x18]
mov edx, 0x493440
add eax, 8
xor ecx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x44515a
mov eax, dword [esp + 0x40]
inc ecx
cmp ecx, 4
jne 0x445143
jmp 0x4451ed
mov eax, dword [ebp]
cmp eax, edi
jge 0x4451ed
imul edx, eax, 0x1c
xor eax, eax
push 7
pop ecx
push dword [esp + 0x44]
add edx, esi
mov esi, dword [esp + 0x44]
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [edx + 8]
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 esi, dword [esp + 0x48]
push 0x17
jmp 0x4451cc
cmp eax, edx
jne 0x4451f0
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x40], eax
cmp dword [eax + 4], 0
je 0x4451f0
mov eax, dword [ebp]
cmp eax, edi
jge 0x4451f0
imul edx, eax, 0x1c
xor eax, eax
push 7
pop ecx
push dword [esp + 0x44]
add edx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
push 2
mov edx, dword [ebp]
mov edi, dword [esp + 0x54]
imul ecx, edx, 0x1c
inc dword [esp + 0x50]
movzx eax, ax
mov word [ecx + esi + 2], ax
pop eax
mov word [ecx + esi], ax
lea eax, [edx + 1]
mov dword [ebp], eax
push 2
pop edx
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x445105
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [esp + 0x4c]
jmp 0x44520d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x18
Function at 0x445c6f
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.00446f32
mov edx, 0x46f1bc
pop ecx
test al, al
je 0x445caf
lea esi, [ebp - 0x100]
xor ecx, ecx
movzx eax, byte [esi + ecx]
cmp al, byte [edx + ecx]
jne 0x445cc2
inc ecx
cmp ecx, 3
jne 0x445ca0
push ecx
push edx
push ecx
push 0x3f
pop edx
mov ecx, 0x4b9f30
call fcn.004410fb
pop esi
leave
ret
lea eax, [ebp - 0x100]
push eax
push str._s_en
push 0x3f
push 0x4b9f30
call fcn.00407410
add esp, 0x10
jmp 0x445cbf
Function at 0x445e1a
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 0x445e82
push 0x190
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0041db90
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x445e7b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x445ffb
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.00403ead
push ebx
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403ead
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043d78f
test eax, eax
js 0x445ee2
mov eax, dword [esp + 0x14]
mov edx, esi
push ecx
push 0x4700c0
push ecx
lea ecx, [esp + 0x24]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0043d6cd
lea ecx, [esp + 0x18]
call fcn.004095c6
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043d78f
test eax, eax
js 0x445f1a
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.0043d6cd
lea ecx, [esp + 0x18]
call fcn.004095c6
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0043d78f
test eax, eax
js 0x445f52
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.0043d6cd
lea ecx, [esp + 0x18]
call fcn.004095c6
push str.MetaQuotesTerminalCommunitydns.dat
mov edx, esi
mov ecx, ebx
call fcn.00403c4d
push str.MetaQuotesTerminalCommunitycookies.dat
mov edx, esi
mov ecx, ebp
call fcn.00403c4d
call fcn.00445c6f
call fcn.00445bf1
call fcn.00445781
call fcn.0044567f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str..mql5.com
call fcn.00445328
push str..mql5.net
call fcn.00445328
push str..finteza.com
call fcn.00445328
push str..metaquotes.net
call fcn.00445328
push str..metatrader.com
call fcn.00445328
call fcn.00444859
mov byte [0x4ba021], al
call fcn.00445b7e
test al, al
je 0x445ff9
mov esi, 0x4ba014
mov ecx, esi
call fcn.00403c08
test al, al
jne 0x445ff9
push 0x400000
push edi
push 0x4446dd
mov ecx, esi
call fcn.00403ba7
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc