joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4337ca
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f4840
push 0x4f4838
push str.FlsSetValue
push 0x22
call fcn.0043358c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433804
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4f166c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x435833
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x535738]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x435873
cmp byte [ebx], 0xa
jne 0x435873
or byte [edi + eax + 0x28], 4
jmp 0x435878
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x435977
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43595a
inc eax
cmp dl, 0xd
je 0x4358a4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4358ca
cmp eax, ecx
jae 0x4358d8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43588c
jmp 0x435977
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435955
cmp dword [ebp - 0x10], 0
je 0x435955
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x535738]
test byte [eax + edi + 0x28], 0x48
je 0x43592f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43591a
mov byte [esi], dl
jmp 0x43592b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x535738]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x435977
cmp byte [ebp - 1], 0xa
jne 0x43593e
cmp esi, ebx
jne 0x43593e
mov byte [esi], 0xa
jmp 0x435976
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004357d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x435977
mov byte [esi], 0xd
jmp 0x435976
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x535738]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x435974
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x435977
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x435980
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x535738]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4359c6
cmp word [ebx], dx
jne 0x4359c6
or byte [eax + edi + 0x28], 4
jmp 0x4359cb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x435b2e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x435b0e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x435a0c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x435a42
cmp eax, edx
jae 0x435a50
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4359e7
jmp 0x435b2e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435b09
cmp dword [ebp - 0x18], 0
je 0x435b09
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x535738]
test byte [eax + edi + 0x28], 0x48
je 0x435adf
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x435aa3
mov word [esi], cx
jmp 0x435ada
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x535738]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x535738]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x535738]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x435b2e
pop eax
cmp word [ebp - 4], ax
jne 0x435aef
cmp esi, ebx
jne 0x435aef
mov word [esi], ax
jmp 0x435b2b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004357d5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x435b2e
push 0xd
pop eax
jmp 0x435aea
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x535738]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x435b28
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x435b2e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x438125
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51f014]
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 0x438170
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004382c0
test al, al
jne 0x43816a
sub edx, 2
cmp edx, edi
jne 0x438150
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x438192
lea eax, [edi + 2]
cmp edx, eax
je 0x438192
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00438071
add esp, 0x10
jmp 0x43828c
push esi
lea ecx, [ebp - 0x255]
call fcn.004382c0
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 0x4381d5
push dword [ebp - 0x25c]
jmp 0x438182
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 0x438212
cmp word [ebp - 0x226], 0
je 0x438233
cmp word [ebp - 0x226], ax
jne 0x438212
cmp word [ebp - 0x224], 0
je 0x438233
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00438071
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43827f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4381ec
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x438267
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43828c
push 0x437ea1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00429fe0
add esp, 0x10
jmp 0x43825c
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.0041bf96
leave
ret

Function at 0x4383c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4383d7
pop esi
ret
push ebx
push edi
push esi
call fcn.0043838f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00431866
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4383ff
push ebx
push esi
push edi
call fcn.0041d1d0
add esp, 0xc
push 0
call fcn.0043182c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4387cf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438414
Function at 0x43c1c5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043c141
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43c334
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43c334
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43c2e9
jg 0x43c221
test eax, eax
je 0x43c2df
push 1
push 0x1000
call fcn.004333ef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43c244
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43c2d6
push 0x8000
push ebx
call fcn.00431637
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43c26d
jg 0x43c268
cmp ecx, 0x1000
jb 0x43c26d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004370ee
add esp, 0x10
cmp eax, 0xffffffff
je 0x43c2b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43c268
jl 0x43c299
test ecx, ecx
jne 0x43c25a
push dword [ebp - 0xc]
push ebx
call fcn.00431637
push esi
call fcn.0043182c
add esp, 0xc
xor ebx, ebx
jmp 0x43c342
cmp byte [edi + 0x24], 0
je 0x43c2c9
cmp dword [edi + 0x20], 5
jne 0x43c2c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43c2d4
mov ebx, dword [edi + 0x18]
jmp 0x43c2d6
xor ebx, ebx
push esi
call fcn.0043182c
pop ecx
jmp 0x43c342
test ecx, ecx
jg 0x43c2ab
jl 0x43c2e9
test eax, eax
jae 0x43c2ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004357d5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43c309
cmp byte [edi + 0x1c], 0
je 0x43c2ab
jmp 0x43c33a
push ebx
call fcn.00437e37
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43c2ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43c342
cmp byte [edi + 0x1c], 0
je 0x43c33f
mov ebx, dword [edi + 0x18]
jmp 0x43c342
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004357d5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43dcf0
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x101c
call fcn.0041c880
cmp dword [esp + 0x1020], 0
push ebx
push ebp
push esi
push edi
je 0x443db8
mov esi, 0x556880
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x55b8a4]
jmp 0x443dad
push dword [esp + 0x1030]
push ebx
call fcn.0042bff5
pop ecx
pop ecx
test eax, eax
jne 0x443da7
lea ecx, [ebx + 0x894]
call fcn.00401887
test al, al
je 0x443dc7
mov ebx, dword [ebx + 0x18e0]
test ebx, ebx
jne 0x443d85
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], 0x50a824
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 0x443e0d
mov edi, dword [ebx + 0x89c]
cmp edi, ecx
cmovae edi, eax
lea esi, [edi + edi]
push esi
push dword [ebx + 0x898]
jmp 0x443e22
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.0041d1d0
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 0x443f04
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x443e7f
mov edx, dword [esp + 0x20]
test edx, edx
je 0x443e83
push 0x50a860
push ecx
call fcn.0041ca4e
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x443e7f
sub eax, ecx
sar eax, 1
jns 0x443eb6
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x443f04
lea eax, [edx + 0xc]
cmp eax, dword [esp + 0x24]
jae 0x443eba
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 0x443f04
mov esi, ebx
xor ebp, ebp
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x443ec5
sub esi, edi
sar esi, 1
je 0x443f04
lea eax, [esi + edx]
cmp eax, dword [esp + 0x24]
jae 0x443f04
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push ebx
push eax
call fcn.0041d1d0
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 0x556880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x28]
push 0x50a854
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
jmp 0x443dba
Function at 0x448e3d
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, 0x8000
push 0x4f186c
push eax
mov dword [ebp - 4], eax
call fcn.0041b84d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x448ebe
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 0x448ea5
mov eax, esi
test dword [eax + 0x38], 0x100
je 0x448e9e
mov ecx, dword [eax + 0x10]
jmp 0x448e9a
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x448e97
cmp word [edx], di
jne 0x448e97
cmp byte [edx + 8], 0xfe
jne 0x448ec4
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x448e85
mov eax, dword [eax + 8]
test eax, eax
jne 0x448e77
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
je 0x448eb7
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x448eae
push esi
call fcn.0041b848
pop ecx
xor al, al
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
je 0x448ed6
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x448ecd
push esi
call fcn.0041b848
pop ecx
mov al, 1
jmp 0x448ec0
Function at 0x448fc1
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x380
push esi
mov esi, dword [esp + 0x38c]
test esi, esi
jne 0x448fda
xor al, al
jmp 0x449203
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.004055c8
lea ebx, [ebp + 1]
push ebx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041d750
push ebx
push 0xfe
lea eax, [esp + 0x34]
mov edx, 0x50a8d4
push eax
push 0x50a910
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403ce0
add esp, 0x2c
mov edi, 0x2710
test al, al
je 0x449048
lea eax, [esp + 0x10]
push eax
call fcn.0042bca0
pop ecx
test edx, edx
jg 0x449083
jl 0x449048
cmp eax, edi
jae 0x449083
push ebx
push 0xfe
lea eax, [esp + 0x18]
mov edx, 0x50a8d4
push eax
push 0x50a910
mov ecx, closesocket
call fcn.00403ce0
add esp, 0x10
test al, al
je 0x44908a
lea eax, [esp + 0x10]
push eax
call fcn.0042bca0
pop ecx
test edx, edx
jg 0x449083
jl 0x44908a
cmp eax, edi
jb 0x44908a
mov ax, word [esp + 0x10]
jmp 0x449091
xor eax, eax
mov word [esp + 0x10], ax
test ax, ax
je 0x4490db
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 0x4490db
push str.utm_uniq
mov edx, ebp
mov ecx, esi
call fcn.00406c22
lea eax, [esp + 0x110]
mov edx, ebp
push eax
mov ecx, esi
call fcn.00406c22
cmp byte [0x55c720], 0
je 0x449100
push str.utm_link
mov edx, ebp
mov ecx, esi
call fcn.00406c22
push 0x55c720
mov edx, ebp
mov ecx, esi
call fcn.00406c22
push ebp
lea eax, [esp + 0x194]
push eax
push str.https:__www.mql5.com
call fcn.00448ee1
test al, al
je 0x4491e7
push 0x55bd40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x55c7ac], 0
je 0x4491dc
mov edi, dword [0x55c7a8]
jmp 0x4491d4
lea eax, [esp + 0x190]
push eax
push edi
call fcn.00448d67
test al, al
je 0x4491c7
lea ebp, [edi + 0x80]
mov edx, str.utm_campaign
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x44916e
inc ecx
cmp ecx, 0xd
jne 0x44915d
jmp 0x449184
mov edx, str.utm_source
xor ecx, ecx
movzx eax, byte [ecx + ebp]
cmp al, byte [edx + ecx]
jne 0x4491c7
inc ecx
cmp ecx, 0xb
jne 0x449175
lea ebx, [edi + 0xc0]
cmp byte [ebx], 0
je 0x4491c7
push 0x50aa20
mov edx, 0xff
mov ecx, esi
call fcn.00406c22
push ebp
mov ebp, 0xff
mov ecx, esi
mov edx, ebp
call fcn.00406c22
push 0x50aa24
mov edx, ebp
mov ecx, esi
call fcn.00406c22
push ebx
mov edx, ebp
mov ecx, esi
call fcn.00406c22
push edi
mov ecx, 0x55c7a0
call fcn.00406b8d
mov edi, eax
test edi, edi
jne 0x44913e
push 0x55bd40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
jmp 0x4491fb
cmp al, 0x20
jne 0x4491f5
mov byte [esi], 0x2b
jmp 0x4491fa
jge 0x4491fa
mov byte [esi], 0x5f
inc esi
mov al, byte [esi]
test al, al
jne 0x4491ec
inc al
pop esi
add esp, 0x380
ret 0xc
Function at 0x449663
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x2c
cmp dword [esp + 0x30], 0
push ebx
push ebp
push esi
push edi
je 0x4497f5
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4497f5
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
cmp dword [ebp], edi
jge 0x4497f5
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 0x4497ef
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4497ef
push 2
pop edx
mov ax, word [esp + 0x54]
test ax, ax
je 0x449705
movzx eax, ax
cmp dword [ebx + 4], eax
jne 0x4497da
mov eax, dword [ebx + 4]
push 0x17
pop ecx
cmp eax, ecx
jne 0x44977a
cmp byte [0x55c7d1], 0
je 0x4497da
mov eax, dword [ebx + 0x18]
mov edx, 0x535bf8
add eax, 8
xor ecx, ecx
mov dword [esp + 0x40], eax
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x449744
mov eax, dword [esp + 0x40]
inc ecx
cmp ecx, 4
jne 0x44972d
jmp 0x4497d7
mov eax, dword [ebp]
cmp eax, edi
jge 0x4497d7
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 0x4497b6
cmp eax, edx
jne 0x4497da
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x40], eax
cmp dword [eax + 4], 0
je 0x4497da
mov eax, dword [ebp]
cmp eax, edi
jge 0x4497da
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 0x4496ef
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [esp + 0x4c]
jmp 0x4497f7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x18
Function at 0x44a259
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.0044b50e
mov edx, 0x50c5ac
pop ecx
test al, al
je 0x44a299
lea esi, [ebp - 0x100]
xor ecx, ecx
movzx eax, byte [esi + ecx]
cmp al, byte [edx + ecx]
jne 0x44a2ac
inc ecx
cmp ecx, 3
jne 0x44a28a
push ecx
push edx
push ecx
push 0x3f
pop edx
mov ecx, 0x55c6e0
call fcn.00445589
pop esi
leave
ret
lea eax, [ebp - 0x100]
push eax
push str._s_en
push 0x3f
push 0x55c6e0
call fcn.00406bbf
add esp, 0x10
jmp 0x44a2a9
Function at 0x44a445
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, 0x55bd40
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, esi
mov dword [0x55c260], eax
cmp byte [0x55c7d0], 0
jne 0x44a4a8
push 0x190
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0041d750
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44a69a
mov byte [0x55c7d0], 1
cmp dword [0x55c7d8], esi
jne 0x44a4e4
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x55c7d8], eax
test eax, eax
je 0x44a69a
mov dword [0x420ecbc], 0x4485ed
mov dword [0x420ede8], 0x4485cf
mov dword [0x420ede4], 0x44858d
call fcn.00470f90
cmp eax, 1
jne 0x44a69a
cmp dword [0x55c7d4], esi
jne 0x44a51e
call fcn.0047bae0
mov ecx, eax
call fcn.004710f0
mov dword [0x55c7d4], eax
test eax, eax
je 0x44a69a
push ecx
mov ecx, eax
call fcn.004711a0
add esp, 4
mov ebx, 0x55be50
push ebx
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, 0x103
mov ecx, 0x55c058
push ebx
mov edx, esi
call fcn.00403d58
push ebx
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00403d58
lea eax, [esp + 0xc]
mov edx, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00441c06
test eax, eax
js 0x44a57c
mov eax, dword [esp + 0xc]
mov edx, esi
push ecx
push 0x50d510
push ecx
lea ecx, [esp + 0x1c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00441b44
lea ecx, [esp + 0x10]
call fcn.00408ef3
lea eax, [esp + 0xc]
mov edx, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00441c06
test eax, eax
js 0x44a5b4
mov eax, dword [esp + 0xc]
mov edx, esi
push ecx
push str.Terminal
push ecx
lea ecx, [esp + 0x1c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00441b44
lea ecx, [esp + 0x10]
call fcn.00408ef3
lea eax, [esp + 0xc]
mov edx, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00441c06
test eax, eax
js 0x44a5ec
mov eax, dword [esp + 0xc]
mov edx, esi
push ecx
push str.Community
push ecx
lea ecx, [esp + 0x1c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00441b44
lea ecx, [esp + 0x10]
call fcn.00408ef3
push str.MetaQuotesTerminalCommunitydns.dat
mov edx, esi
mov ecx, ebx
call fcn.00403a68
push str.MetaQuotesTerminalCommunitycookies.dat
mov edx, esi
mov ecx, 0x55c058
call fcn.00403a68
call fcn.0044a259
call fcn.0044a1db
call fcn.00449d6b
call fcn.00449c69
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str..mql5.com
call fcn.00449912
push str..mql5.net
call fcn.00449912
push str..finteza.com
call fcn.00449912
push str..metaquotes.net
call fcn.00449912
push str..metatrader.com
call fcn.00449912
call fcn.00448e3d
mov byte [0x55c7d1], al
call fcn.0044a168
test al, al
je 0x44a696
mov esi, 0x55c7c4
mov ecx, esi
call fcn.00403a23
test al, al
jne 0x44a696
push 0x400000
push edi
push 0x448cc1
mov ecx, esi
call fcn.004039c2
mov al, 1
jmp 0x44a6a3
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc