joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f51
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
push edi
lea eax, [ebp - 0x274]
call fcn.0040648e
xor esi, esi
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], esi
call fcn.004243a0
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
add eax, 0x20c
push eax
push 0x4378e4
lea eax, [ebp - 0x274]
call fcn.004017f8
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push dword [ebp - 0x270]
push esi
call dword [sym.imp.l_mt5clwtst__CreateProcessW]
test eax, eax
jne 0x417fc9
xor al, al
jmp 0x417ff3
mov edi, dword [sym.imp.l_mt5clwtst__CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x417fe7
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.l_mt5clwtst__WaitForSingleObject]
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], esi
je 0x417ff1
push dword [ebp - 0x10]
call edi
mov al, 1
pop edi
pop esi
leave
ret 4

Function at 0x417ff9
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 0x54]
push esi
xor esi, esi
cmp dword [eax + 0x82c], esi
jbe 0x418029
mov ecx, dword [eax + 0x834]
imul ecx, esi
add ecx, dword [eax + 0x828]
push ecx
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
mov eax, dword [edi + 0x54]
inc esi
cmp esi, dword [eax + 0x82c]
jb 0x418007
mov eax, dword [edi + 0x54]
xor ecx, ecx
cmp ecx, dword [eax + 0x82c]
pop esi
sbb eax, eax
neg eax
ret

Function at 0x4180f3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
lea eax, [ebp - 0x218]
call fcn.0040648e
mov eax, dword [esi + 0x54]
add eax, 0x414
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x218]
call fcn.004017f8
pop ecx
pop ecx
push str.advapi32.dll
call dword [sym.imp.l_mt5clwtst__LoadLibraryW]
mov edi, eax
test edi, edi
je 0x418174
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.l_mt5clwtst__GetProcAddress]
test eax, eax
je 0x418174
mov ecx, dword [esi + 0x54]
xor edx, edx
cmp dword [ecx + 0x844], 2
push 0
setne dl
dec edx
and edx, 0xffffff00
add edx, 0x20206
mov ecx, edx
push ecx
push dword [ebp - 0x214]
push 0x80000002
call eax
jmp 0x418185
push dword [ebp - 0x214]
push 0x80000002
call dword [0x43003c]
test edi, edi
je 0x418190
push edi
call dword [sym.imp.l_mt5clwtst__FreeLibrary]
pop edi
leave
ret
Function at 0x418714
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov esi, 0x3fe
push esi
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.004243a0
xor eax, eax
push esi
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.004243a0
add esp, 0x18
push dword [edi + 4]
call dword [0x430478]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
call fcn.00418b02
call fcn.00418574
push 5
push dword [edi + 4]
call fcn.0040b516
mov ebx, 0x200
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x5c]
call dword [0x4303ec]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
lea esi, [ebp - 0x804]
call fcn.0041641f
add esp, 0xc
mov eax, esi
push eax
push dword [edi + 0x5c]
call dword [0x430424]
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x80]
call dword [0x4303ec]
mov eax, dword [edi + 0x54]
add eax, 0x848
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.0041641f
add esp, 0xc
mov eax, esi
mov esi, dword [0x430424]
push eax
push dword [edi + 0x80]
call esi
mov eax, dword [edi + 0x54]
add eax, 4
push eax
push dword [edi + 0xa4]
call esi
push 0
push 0
push 0xf1
push dword [edi + 0xc8]
call dword [0x430444]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41908e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
xor eax, eax
mov esi, 0x40e
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004243a0
xor eax, eax
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.004243a0
add esp, 0x18
mov esi, 0x208
push esi
lea eax, [ebp - 0x824]
push eax
push dword [edi + 0x64]
call dword [0x4303ec]
mov eax, dword [edi + 0x54]
add eax, 0xe
push eax
lea eax, [ebp - 0x824]
push eax
push esi
lea esi, [ebp - 0x414]
call fcn.0041641f
add esp, 0xc
mov eax, esi
mov esi, dword [0x430424]
push eax
push dword [edi + 0x64]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 8]
dec eax
je 0x41912d
dec eax
je 0x419122
dec eax
dec eax
je 0x41912d
dec eax
jne 0x41917e
push 0x29
mov dword [ebp - 4], 0x2a
jmp 0x419136
push 0x2b
mov dword [ebp - 4], 0x2c
pop eax
push ebx
mov ebx, 0x207
push ebx
push eax
lea eax, [ebp - 0x414]
call fcn.0040b568
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0x88]
call esi
cmp dword [ebp - 4], 0
je 0x41917d
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x414]
call fcn.0040b568
lea eax, [ebp - 0x414]
push eax
push dword [edi + 0xac]
call esi
pop ebx
pop esi
leave
ret
Function at 0x41aa1a
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004243a0
push 0x24c
lea eax, [ebp - 0x454]
push esi
push eax
mov dword [ebp - 0x458], esi
call fcn.004243a0
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x23
push esi
call dword [0x430370]
test eax, eax
jl 0x41aaf0
lea eax, [ebp - 0x208]
push eax
mov esi, 0x104
push str._sMetaQuotesWebInstall.png
mov ecx, esi
lea edi, [ebp - 0x660]
call fcn.0040ccfb
pop ecx
pop ecx
lea eax, [ebp - 0x458]
push eax
mov eax, edi
push eax
call dword [sym.imp.l_mt5clwtst__FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41aaf0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x208]
push eax
push str._sMetaQuotesWebInstall_s
mov ecx, esi
lea edi, [ebp - 0x660]
call fcn.0040ccfb
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.l_mt5clwtst__FindNextFileW]
test eax, eax
jne 0x41aaab
push ebx
call dword [sym.imp.l_mt5clwtst__FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b0da
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
xor ebx, ebx
lea eax, [ebp - 0x4e]
push ebx
push eax
call fcn.004243a0
or edi, 0xffffffff
add esp, 0xc
mov esi, 0x435590
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jne 0x41b117
xor al, al
jmp 0x41b1da
push dword [ebp + 0xc]
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, edi
jne 0x41b13c
mov dword [ebp - 0xc], esi
cmp dword [ebp - 8], edi
je 0x41b135
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, 1
jmp 0x41b1da
push 3
push 3
push 0x80000000
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
call fcn.004018e1
test al, al
jne 0x41b167
cmp dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
je 0x41b110
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41b110
push 0x40
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0xc]
call fcn.0040188b
cmp eax, 0x40
je 0x41b17f
cmp dword [ebp - 8], 0xffffffff
jmp 0x41b157
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push 0
mov word [ebp - 2], ax
push 0
push dword [ebp - 4]
lea eax, [ebp - 0xc]
call fcn.0040183d
and eax, edx
cmp eax, 0xffffffff
je 0x41b179
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401757
test al, al
je 0x41b1bb
cmp dword [esi + 0x14], 1
jne 0x41b1a5
cmp dword [esi + 0x14], 1
mov dword [ebp - 0xc], 0x435590
sete bl
cmp dword [ebp - 8], 0xffffffff
je 0x41b1d8
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41b1e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
xor esi, esi
lea eax, [ebp - 0x4e]
push esi
push eax
call fcn.004243a0
add esp, 0xc
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
jne 0x41b213
xor al, al
jmp 0x41b2d3
push dword [ebp + 0xc]
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b20c
or dword [ebp - 0xc], 0xffffffff
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
mov esi, 0x435590
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.004018e1
test al, al
jne 0x41b259
cmp dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], esi
je 0x41b20c
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41b20c
push 0x40
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0x10]
call fcn.0040188b
cmp eax, 0x40
jne 0x41b245
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
xor edi, edi
push edi
mov word [ebp - 2], ax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0040183d
and eax, edx
or ebx, 0xffffffff
cmp eax, ebx
jne 0x41b298
cmp dword [ebp - 0xc], ebx
jmp 0x41b249
push 2
push edi
push edi
lea eax, [ebp - 0x10]
call fcn.0040183d
and eax, edx
cmp eax, ebx
je 0x41b293
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 8]
call fcn.004160b4
cmp dword [ebp - 0xc], 0xffffffff
mov bl, al
mov dword [ebp - 0x10], 0x435590
je 0x41b2d1
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41babd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x60], ax
xor edi, edi
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.004243a0
or ebx, 0xffffffff
add esp, 0xc
mov esi, 0x435590
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 1], 1
cmp dword [ebp + 0xc], edi
je 0x41bc20
push dword [ebp + 0xc]
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, ebx
jne 0x41bb29
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
je 0x41bb22
push dword [ebp - 0x18]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, 1
jmp 0x41bc22
push 3
push 3
push 0x80000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
call fcn.004018e1
test al, al
jne 0x41bb4c
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
jmp 0x41bc15
push 0x40
lea ebx, [ebp - 0x60]
lea edi, [ebp - 0x1c]
call fcn.0040188b
cmp eax, 0x40
je 0x41bb66
mov dword [ebp - 0x1c], esi
jmp 0x41bc11
mov ax, word [ebp - 0x3c]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x3a]
push 0
mov word [ebp - 6], ax
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
call fcn.0040183d
and eax, edx
cmp eax, 0xffffffff
je 0x41bb5e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401757
test al, al
je 0x41bba2
cmp dword [esi + 0x14], 4
jne 0x41bb8c
cmp dword [esi + 0x14], 4
jne 0x41bc0a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
mov ecx, esi
call fcn.0041621b
test al, al
je 0x41bc0a
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x41bc0a
mov eax, dword [ebp - 0x10]
cmp eax, 4
jb 0x41bc0a
mov ecx, dword [edx]
lea edi, [edx + 4]
cmp ecx, 1
ja 0x41bc0a
sub eax, edi
lea ebx, [ebp - 0x14]
push ebx
add eax, edx
lea ecx, [esi + 0x68]
mov esi, dword [ecx]
push eax
push edi
call dword [esi + 4]
test al, al
jne 0x41bbef
mov byte [ebp - 1], al
cmp dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0x435590
je 0x41bc05
push dword [ebp - 0x18]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, byte [ebp - 1]
jmp 0x41bc22
mov dword [ebp - 0x1c], 0x435590
cmp dword [ebp - 0x18], 0xffffffff
je 0x41bc20
push dword [ebp - 0x18]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41bc29
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x41bc46
xor al, al
jmp 0x41bd6e
push dword [ebp + 0xc]
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bc3f
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push 0x3e
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x4e]
push edi
mov esi, 0x435590
push eax
mov dword [ebp - 0x10], esi
call fcn.004243a0
add esp, 0xc
push 3
push 3
push 0xc0000000
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.004018e1
test al, al
jne 0x41bca1
cmp dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], esi
je 0x41bc3f
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
jmp 0x41bc3f
push 0x40
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0x10]
call fcn.0040188b
cmp eax, 0x40
jne 0x41bc8d
mov ax, word [ebp - 0x2c]
mov word [ebp - 4], ax
mov ax, word [ebp - 0x2a]
push 2
push 0
mov word [ebp - 2], ax
push 0
mov eax, edi
call fcn.0040183d
and eax, edx
cmp eax, 0xffffffff
je 0x41bc8d
mov edi, dword [ebp + 8]
add edi, 0x68
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov ebx, eax
add ebx, 4
push 0x4406a8
push ebx
call fcn.00422c07
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x41bc8d
mov dword [eax], 1
mov edx, dword [edi]
lea ecx, [ebp - 8]
push ecx
add eax, 4
mov ecx, ebx
sub ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, eax
push ecx
add eax, 4
push eax
mov ecx, edi
call dword [edx + 8]
test al, al
jne 0x41bd27
xor bl, bl
jmp 0x41bd51
mov esi, dword [ebp + 8]
push 4
call fcn.00401982
push dword [ebp + 0xc]
mov edi, ebx
push 7
pop eax
call fcn.0041b81c
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 4]
call fcn.004160b4
mov bl, al
mov esi, 0x435590
push dword [ebp + 0xc]
call fcn.00422772
cmp dword [ebp - 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0x10], esi
je 0x41bd6c
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41c24c
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [edi + 0x35c]
mov eax, dword [ebx + 4]
and dword [ebx + 8], 0
push esi
test eax, eax
je 0x41c268
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], 0
je 0x41c2f3
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41c2f3
mov eax, edi
call fcn.0041c407
mov eax, 0x4417c0
call fcn.0040afbe
test al, al
je 0x41c299
push str.MetaTrader_5
call fcn.0041bf0d
pop ecx
xor eax, eax
mov byte [ebp - 1], 0
cmp word [esi], ax
je 0x41c2c6
push esi
lea esi, [edi + 0x22c]
mov byte [edi + 0x228], 1
mov byte [ebp - 1], 1
call fcn.0040afd8
push 0
push 0
push dword [ebp + 0x10]
push 3
jmp 0x41c2cb
push eax
push eax
push eax
push 1
push dword [0x4417c4]
call dword [0x4304e0]
mov dword [edi + 8], eax
test eax, eax
jne 0x41c2fb
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
mov eax, ebx
call fcn.004017f8
pop ecx
pop ecx
xor al, al
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
lea esi, [edi + 0x14]
call fcn.0040afd8
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x224], eax
movzx ecx, word [edi + 0x224]
mov eax, dword [edi + 0x18]
xor esi, esi
push esi
push ecx
push eax
push dword [edi + 8]
call dword [0x4304e4]
mov dword [edi + 0xc], eax
cmp eax, esi
je 0x41c340
mov eax, edi
call fcn.0041c938
test al, al
jne 0x41c340
mov eax, edi
call fcn.0041c407
cmp dword [edi + 0xc], esi
jne 0x41c383
cmp byte [ebp - 1], 0
mov eax, ebx
je 0x41c368
push dword [ebp + 0x10]
push dword [edi + 0x224]
push dword [edi + 0x18]
push str._s:_d_via_proxy__s_failed
call fcn.004017f8
add esp, 0x10
jmp 0x41c2f3
push dword [edi + 0x224]
push dword [edi + 0x18]
push str._s:_d_failed
call fcn.004017f8
add esp, 0xc
jmp 0x41c2f3
push esi
call fcn.00422907
mov dword [edi + 0x350], eax
pop ecx
mov dword [edi + 0x354], edx
mov al, 1
jmp 0x41c2f5
Function at 0x41c48c
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
push edi
mov esi, ebx
call fcn.0041c452
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41c502
cmp dword [ebp + 0xc], esi
je 0x41c502
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x41c502
xor ecx, ecx
cmp dword [ebx + 0x224], 0x1bb
setne cl
dec ecx
and ecx, 0x800000
add ecx, 0x100
push ecx
push 0x44052c
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [0x4304ec]
mov dword [ebx + 0x10], eax
cmp eax, esi
jne 0x41c50a
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.request_opening_failed___d_
lea eax, [ebx + 0x35c]
call fcn.004017f8
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret 8
mov edi, dword [ebx + 0x33c]
cmp edi, esi
je 0x41c54f
mov esi, dword [ebx + 0x340]
test esi, esi
je 0x41c54f
mov edx, dword [ebx + 0x344]
test edx, edx
je 0x41c54f
mov ecx, dword [ebx + 0x348]
test ecx, ecx
je 0x41c54f
push ecx
push edx
push esi
push edi
push eax
call dword [0x4304f0]
test eax, eax
jne 0x41c54f
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.timeout_setting_failed___d_
jmp 0x41c4f5
cmp byte [ebx + 0x228], 0
je 0x41c60d
mov esi, 0x4416b0
mov eax, esi
call fcn.0040afbe
test al, al
jne 0x41c60d
lea eax, [ebp - 0x118]
call fcn.00416706
lea eax, [ebp - 0x228]
call fcn.00416706
mov eax, esi
lea edi, [ebp - 0x118]
call fcn.0040bd6e
push 0x4352a4
mov esi, edi
call fcn.0041616d
mov esi, eax
test esi, esi
jle 0x41c5dd
mov eax, 0x4416b0
lea edi, [ebp - 0x228]
call fcn.0040bd6e
lea edx, [esi + 1]
mov eax, edi
call fcn.00415ed3
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x41c5dd
cmp esi, dword [ebp - 0x110]
jae 0x41c5dd
xor ecx, ecx
mov dword [ebp - 0x110], esi
mov word [eax + esi*2], cx
push 0
push dword [ebp - 0x224]
push dword [ebp - 0x114]
push 1
push 1
push dword [ebx + 0x10]
call dword [0x4304f4]
test eax, eax
jne 0x41c60d
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.setting_credentials_for_proxy_failed___d_
jmp 0x41c4f5
cmp byte [ebx + 0x358], 0
jne 0x41c643
push 4
lea eax, [ebp - 4]
push eax
push 0x3f
push dword [ebx + 0x10]
mov dword [ebp - 4], 2
call dword [0x4304f8]
test eax, eax
jne 0x41c643
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.setting_disable_redirects_failed___d_
jmp 0x41c4f5
mov al, 1
jmp 0x41c504

Function at 0x41c839
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea edi, [eax + 0x35c]
and dword [edi + 8], 0
mov esi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41c857
xor edx, edx
mov word [ecx], dx
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41c89c
mov ecx, dword [esi + 0xc]
push 0
lea ecx, [ecx + ecx - 2]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 4]
push ecx
push str.Content_Length
push 0xffff
push eax
call dword [0x4304dc]
test eax, eax
jne 0x41c8a2
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.get_header_failed___d_
mov eax, edi
call fcn.004017f8
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret
call fcn.00406474
mov al, 1
jmp 0x41c89e
Function at 0x41c8e8
Capabilities:
Receive http response

Disassembly:
cmp dword [esp + 4], 0
je 0x41c930
cmp dword [esp + 8], 1
jb 0x41c930
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41c930
push ecx
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call dword [0x4304d8]
test eax, eax
jne 0x41c92c
call dword [sym.imp.l_mt5clwtst__GetLastError]
push eax
push str.read_failed___d_
lea eax, [esi + 0x35c]
call fcn.004017f8
pop ecx
pop ecx
jmp 0x41c933
mov al, 1
jmp 0x41c935
and dword [ecx], 0
xor al, al
ret 8

Function at 0x41cc2c
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [0x43002c]
test eax, eax
je 0x41cc5b
xor al, al
jmp 0x41cce6
mov eax, dword [esi + 0xc]
and dword [ebp - 8], 0
lea eax, [eax + eax - 2]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ProxyServer
push dword [ebp - 4]
call dword [0x43001c]
push dword [ebp - 4]
test eax, eax
je 0x41cc94
call dword [0x430038]
jmp 0x41cc54
call dword [0x430038]
call fcn.00406474
cmp dword [ebp - 8], 1
je 0x41ccb7
and dword [esi + 8], 0
mov esi, dword [esi + 4]
test esi, esi
je 0x41cc54
xor eax, eax
mov word [esi], ax
jmp 0x41cc54
push 0x438850
call fcn.0041616d
test eax, eax
jl 0x41cccf
lea edx, [eax + 1]
mov eax, esi
call fcn.00415ed3
push 0x438854
call fcn.0041616d
test eax, eax
jl 0x41cce4
mov ecx, esi
call fcn.00406434
mov al, 1
pop esi
leave
ret
Function at 0x41d994
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.l_mt5clwtst__GetSystemDirectoryW]
test eax, eax
je 0x41da06
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0042239f
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.l_mt5clwtst__GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x41da09
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe84
push esi
push edi
lea eax, [ebp - 0x210]
call fcn.0040f101
mov eax, dword [ebp + 8]
call fcn.0040bda3
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x41da53
lea eax, [ebp - 0x210]
push eax
call fcn.0041d0c1
pop ecx
movzx eax, al
test eax, eax
je 0x41da51
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
jmp 0x41da75
lea eax, [ebp - 0x210]
push eax
call fcn.0041d903
pop ecx
movzx eax, al
test eax, eax
je 0x41da75
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
lea eax, [ebp - 0x210]
push eax
call fcn.0041d94a
pop ecx
movzx eax, al
test eax, eax
je 0x41da97
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
call fcn.0041d994
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x41dad1
push dword [ebp - 0x214]
push 0x438c44
lea eax, [ebp - 0x210]
call fcn.004017f8
pop ecx
pop ecx
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
mov eax, dword [ebp + 8]
call fcn.0040afbe
movzx eax, al
test eax, eax
jne 0x41daf0
lea eax, [ebp - 0x210]
call fcn.0040f0f2
jmp 0x41db96
and dword [ebp - 0x238], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.l_mt5clwtst__GetSystemInfo]
movzx eax, word [ebp - 0x218]
test eax, eax
je 0x41db65
movzx eax, word [ebp - 0x216]
test eax, eax
je 0x41db65
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x218]
push eax
push str._u._u
lea eax, [ebp - 0x210]
call fcn.004017f8
add esp, 0xc
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
lea eax, [ebp - 0x210]
call fcn.0040f0f2
jmp 0x41db96
call fcn.004192e5
push eax
push 0x438c44
lea eax, [ebp - 0x210]
call fcn.004017f8
pop ecx
pop ecx
lea edi, [ebp - 0x210]
mov esi, dword [ebp + 8]
call fcn.0041de46
lea eax, [ebp - 0x210]
call fcn.0040f0f2
pop edi
pop esi
leave
ret