joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b269
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbd0
push ebx
push esi
lea eax, [ebp - 0x430]
call fcn.0040648e
lea eax, [ebp - 0x898]
call fcn.0040648e
lea eax, [ebp - 0x218]
call fcn.0040648e
lea eax, [ebp - 0xbd0]
call fcn.00409fa5
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x67c]
push ebx
push eax
mov dword [ebp - 0x680], ebx
call fcn.004243a0
add esp, 0xc
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call dword [sym.imp.l_mt5clwtst__GetTempPathW]
test eax, eax
jne 0x40b2e4
lea eax, [ebp - 0xbd0]
call fcn.00409fea
pop esi
mov al, bl
pop ebx
leave
ret
lea esi, [ebp - 0x218]
call fcn.00406474
mov esi, 0x4323d8
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
push str._s_s_
call fcn.004017f8
add esp, 0xc
push dword [ebp - 0x42c]
push 0x40b3cc
push 0xa
push ebx
call dword [sym.imp.l_mt5clwtst__EnumResourceNamesW]
push 0x435ab0
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
push str._s_s_._s
call fcn.004017f8
add esp, 0x10
lea eax, [ebp - 0x680]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.l_mt5clwtst__FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b3c5
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x898]
push str._s_s
call fcn.004017f8
add esp, 0xc
lea eax, [ebp - 0x898]
lea ecx, [ebp - 0xbd0]
call fcn.0040a128
test al, al
je 0x40b39c
lea eax, [ebp - 0xbd0]
push eax
call fcn.0040b6c0
push dword [ebp - 0x894]
push 0x441578
call fcn.0040baf6
lea eax, [ebp - 0x680]
push eax
push esi
call dword [sym.imp.l_mt5clwtst__FindNextFileW]
test eax, eax
jne 0x40b35b
push esi
call dword [sym.imp.l_mt5clwtst__FindClose]
mov bl, 1
jmp 0x40b2d3

Function at 0x40b607
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [0x441580], esi
jbe 0x40b630
mov eax, dword [0x441588]
imul eax, esi
add eax, dword [0x44157c]
push eax
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
inc esi
cmp esi, dword [0x441580]
jb 0x40b612
and dword [0x441580], 0
pop esi
ret
Function at 0x40bc52
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40bcba
cmp dword [ebp + 0xc], esi
je 0x40bcba
cmp dword [ebp + 0x10], esi
je 0x40bcba
cmp dword [ebp + 0x14], esi
je 0x40bcba
mov eax, dword [edi]
cmp eax, esi
je 0x40bcba
cmp dword [eax + 0xc], esi
je 0x40bcba
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [0x430018]
test eax, eax
je 0x40bcba
lea eax, [ebp - 8]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 4]
call dword [0x4300cc]
test eax, eax
jne 0x40bcc1
push esi
push dword [ebp - 4]
call dword [0x430014]
xor al, al
pop esi
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 4]
call dword [0x43000c]
test eax, eax
jne 0x40bce4
push dword [ebp - 8]
call dword [0x430010]
jmp 0x40bcb0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [0x430008]
test eax, eax
jne 0x40bd0c
push dword [ebp - 8]
call dword [0x430010]
push dword [ebp - 0xc]
call dword [0x430004]
jmp 0x40bcb0
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [section..rdata]
push dword [ebp - 8]
test eax, eax
je 0x40bcfb
call dword [0x430010]
push dword [ebp - 0xc]
call dword [0x430004]
push esi
push dword [ebp - 4]
call dword [0x430014]
mov al, 1
jmp 0x40bcbc
Function at 0x40c4b9
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x874], ax
xor esi, esi
lea eax, [ebp - 0x872]
push esi
push eax
call fcn.004243a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c64d
cmp dword [ebp + 0x10], esi
je 0x40c64d
cmp dword [ebp + 0x14], esi
je 0x40c64d
cmp dword [ebp + 0x18], esi
je 0x40c64d
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x430370]
test eax, eax
jl 0x40c64d
lea ebx, [ebp - 0x874]
call fcn.0040cd87
mov eax, ebx
push eax
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c64d
push 0x24c
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.004243a0
mov eax, ebx
push eax
mov ebx, 0x103
push 0x435d40
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040ccfb
add esp, 0x14
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.l_mt5clwtst__FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40c64d
test byte [ebp - 0x25c], 2
jne 0x40c5ad
test byte [ebp - 0x25c], 0x10
je 0x40c5ad
cmp word [ebp - 0x230], 0x2e
jne 0x40c5c3
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__FindNextFileW]
test eax, eax
jne 0x40c591
jmp 0x40c640
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov esi, str._s_s_s_s.sol
push eax
lea eax, [ebp - 0x874]
push eax
push esi
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040ccfb
mov eax, edi
push 0x5c
push eax
call fcn.004227a7
add esp, 0x1c
test eax, eax
je 0x40c600
xor ecx, ecx
mov word [eax], cx
lea ebx, [ebp - 0x464]
call fcn.0040cc03
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, 0x103
push eax
lea eax, [ebp - 0x874]
push eax
push esi
mov edi, ebx
call fcn.0040ccfb
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push eax
call fcn.0040c656
push dword [ebp - 8]
call dword [sym.imp.l_mt5clwtst__FindClose]
mov al, 1
jmp 0x40c64f
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40c656
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xbf00
mov word [ebp - 0x18], ax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x16], eax
mov byte [ebp - 0x12], 0x54
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x4f
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 4
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
cmp dword [ebp + 8], eax
je 0x40c85b
cmp dword [ebp + 0xc], eax
je 0x40c85b
cmp dword [ebp + 0x10], eax
je 0x40c85b
push 2
push 3
push 0x40000000
push dword [ebp + 8]
mov eax, ebx
call fcn.004018e1
test al, al
je 0x40c85b
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c6cb
sub eax, edx
mov esi, eax
mov eax, str.uniq
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c6de
sub eax, ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c6ef
add esi, ecx
sub eax, edi
lea eax, [esi + eax + 0x14]
movzx eax, ax
mov edx, eax
mov esi, eax
mov ecx, 0xff00
and edx, ecx
shl esi, 0x10
add edx, esi
mov esi, eax
shl edx, 8
sar esi, 8
and esi, ecx
sar eax, 0x18
add edx, esi
add edx, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
mov dword [ebp - 0x16], edx
call fcn.0040ab04
cmp eax, 0x10
jne 0x40c84b
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c741
and dword [ebp - 8], 0
sub eax, ecx
movzx edi, ax
mov eax, edi
shl eax, 8
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040ab04
cmp eax, 2
jne 0x40c84b
movzx esi, di
push esi
push dword [ebp + 0xc]
mov eax, ebx
call fcn.0040ab04
cmp eax, esi
jne 0x40c84b
push 3
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040ab04
cmp eax, 3
jne 0x40c84b
mov eax, str.uniq
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c7a6
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x103
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040ab04
cmp eax, 2
jne 0x40c84b
movzx esi, di
push esi
push str.uniq
mov eax, ebx
call fcn.0040ab04
cmp eax, esi
jne 0x40c84b
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c7ee
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x106
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040ab04
cmp eax, 2
jne 0x40c84b
movzx esi, di
push esi
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0040ab04
cmp eax, esi
jne 0x40c84b
push 1
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040ab04
cmp eax, 1
jne 0x40c84b
mov esi, ebx
call fcn.004019f9
mov al, 1
jmp 0x40c85d
mov esi, ebx
call fcn.004019f9
push dword [ebp + 8]
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
xor al, al
pop edi
pop esi
leave
ret 0xc
Function at 0x40c863
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x874], ax
xor esi, esi
lea eax, [ebp - 0x872]
push esi
push eax
call fcn.004243a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c9ba
cmp dword [ebp + 0x10], esi
je 0x40c9ba
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [0x430370]
test eax, eax
jl 0x40c9ba
lea ebx, [ebp - 0x874]
call fcn.0040cd87
mov eax, ebx
mov ebx, dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40c9ba
and dword [ebp - 0x25c], esi
push 0x24c
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.004243a0
add esp, 0xc
lea eax, [ebp - 0x874]
push eax
mov esi, 0x103
push 0x435d40
mov ecx, esi
lea edi, [ebp - 0x464]
mov byte [ebp - 5], 0
call fcn.0040ccfb
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.l_mt5clwtst__FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40c9ba
test byte [ebp - 0x25c], 2
jne 0x40c984
test byte [ebp - 0x25c], 0x10
je 0x40c984
cmp word [ebp - 0x230], 0x2e
je 0x40c984
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x874]
push eax
push str._s_s_s_s.sol
lea edi, [ebp - 0x464]
call fcn.0040ccfb
add esp, 0x14
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x40c99a
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__FindNextFileW]
test eax, eax
jne 0x40c935
jmp 0x40c9ac
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 8]
call fcn.0040c9c3
mov byte [ebp - 5], al
push dword [ebp - 0xc]
call dword [sym.imp.l_mt5clwtst__FindClose]
mov al, byte [ebp - 5]
jmp 0x40c9bc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40cc03
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
test ebx, ebx
jne 0x40cc14
xor al, al
jmp 0x40cc9c
push edi
mov edi, dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
je 0x40cc27
mov al, 1
jmp 0x40cc9b
push ebp
push esi
push 0x7ffffffe
mov eax, ebx
mov ecx, 0x103
lea edx, [esp + 0x10]
call fcn.0040cd48
cmp word [esp + 0xc], 0
mov ebp, dword [sym.imp.l_mt5clwtst__CreateDirectoryW]
lea esi, [esp + 0xc]
je 0x40cc82
cmp word [esi], 0x5c
jne 0x40cc7a
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40cc74
push 0
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40cc93
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40cc50
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40cc97
push 0
push ebx
call ebp
test eax, eax
jne 0x40cc97
xor al, al
jmp 0x40cc99
mov al, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
Function at 0x40cdcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40cdda
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
cmp dword [ebp + 8], ebx
je 0x40ce47
cmp dword [ebp + 0xc], ebx
je 0x40ce47
cmp dword [ebp + 0x10], ebx
je 0x40ce47
cmp dword [ebp + 0x14], ebx
je 0x40ce47
cmp esi, ebx
je 0x40ce47
lea eax, [ebp - 4]
push eax
push 0x20106
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [0x43002c]
test eax, eax
jne 0x40ce43
push esi
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [0x430028]
test eax, eax
jne 0x40ce3a
mov bl, 1
push dword [ebp - 4]
call dword [0x430038]
mov al, bl
jmp 0x40ce49
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40cea2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x40cf08
cmp dword [ebp + 0x10], ebx
je 0x40cf08
cmp esi, ebx
je 0x40cf08
cmp dword [ebp + 0x14], ebx
je 0x40cf08
lea eax, [ebp - 4]
push eax
push 0x20119
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [0x43002c]
test eax, eax
jne 0x40cf04
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [0x43001c]
test eax, eax
jne 0x40cefb
mov bl, 1
push dword [ebp - 4]
call dword [0x430038]
mov al, bl
jmp 0x40cf0a
xor al, al
pop ebx
leave
ret

Function at 0x40cf5f
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d74e
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp esi, ecx
je 0x40d77a
xor eax, eax
cmp dword [esp + 4], ecx
jbe 0x40d77a
push edi
mov edi, dword [esp + 0xc]
mov edx, eax
and edx, 0xf
mov dl, byte [edi + edx*4]
add dl, cl
xor byte [eax + esi], dl
movsx ecx, byte [eax + esi]
inc eax
cmp eax, dword [esp + 8]
jb 0x40d75d
pop edi
ret

Function at 0x40d77b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x40d7b3
cmp dword [ebp + 8], eax
jbe 0x40d7b3
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov cl, byte [eax + edi]
mov edx, eax
and edx, 0xf
mov dl, byte [ebx + edx*4]
add dl, byte [ebp - 4]
movsx esi, cl
xor dl, cl
mov byte [eax + edi], dl
inc eax
mov dword [ebp - 4], esi
cmp eax, dword [ebp + 8]
jb 0x40d78f
pop esi
pop ebx
leave
ret
Function at 0x40d7c2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40d7dd
xor eax, eax
jmp 0x40d86b
push esi
push edi
push ebx
mov eax, 0x410
lea edx, [ebp - 0x414]
call fcn.0040e17d
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.l_mt5clwtst__lstrlenW]
mov esi, dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
mov edi, dword [sym.imp.l_mt5clwtst__CreateDirectoryW]
lea eax, [ebp + eax*2 - 0x416]
jmp 0x40d81a
cmp word [eax], 0x5c
je 0x40d826
dec eax
dec eax
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x40d812
jmp 0x40d857
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40d857
push 0
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x40d857
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d7c2
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40d866
push 0
push ebx
call edi
jmp 0x40d869
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d893
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004243a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40d91d
mov eax, dword [ebp + 0xc]
call fcn.0040831a
cmp eax, 1
jb 0x40d91d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [0x430384]
test eax, eax
je 0x40d91d
mov esi, 0x208
push 0x435dfc
mov eax, esi
lea ebx, [ebp - 0x208]
call fcn.0040e11c
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040e11c
push 1
push 1
push 0x435de8
mov eax, ebx
push eax
mov ecx, 0x441598
call fcn.0040de6f
pop esi
pop ebx
leave
ret 8
Function at 0x40d96d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x428], ax
xor esi, esi
lea eax, [ebp - 0x426]
push esi
push eax
call fcn.004243a0
add esp, 0xc
xor bl, bl
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x40daa9
cmp dword [ebp + 0x10], esi
je 0x40daa9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
call dword [0x430390]
test eax, eax
jl 0x40daa9
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
call dword [0x43038c]
test eax, eax
je 0x40da7d
mov esi, 0x208
push 0x435dfc
mov eax, esi
lea ebx, [ebp - 0x428]
call fcn.0040e11c
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040e11c
mov eax, ebx
push eax
call dword [sym.imp.l_mt5clwtst__GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40da67
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov word [ebp - 0x210], ax
mov eax, ebx
push eax
lea esi, [ebp - 0x220]
mov dword [ebp - 0x220], 0x438858
mov dword [ebp - 0x214], 0x104
call fcn.0040afd8
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], 0x438858
call fcn.0040e061
pop ecx
mov bl, al
jmp 0x40da69
mov bl, 1
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x14]
add eax, eax
call fcn.0040e17d
lea eax, [ebp - 4]
push eax
call dword [0x430388]
test eax, eax
jl 0x40daa0
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test bl, bl
setne al
jmp 0x40daab
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40db16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.004243a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40dbbb
cmp dword [ebp + 0x10], esi
je 0x40dbbb
cmp dword [ebp + 0x18], esi
je 0x40dbbb
cmp edi, esi
je 0x40dbbb
cmp ebx, esi
je 0x40dbbb
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
call dword [0x430390]
test eax, eax
jl 0x40dbbb
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [0x43038c]
test eax, eax
je 0x40dbbb
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi - 1]
mov edi, dword [ebp + 0x18]
push str._s_s.lnk
call fcn.0040ccfb
add esp, 0xc
cmp word [ebx], si
jne 0x40dbab
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dbc4
jmp 0x40dbbd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40dbc4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004243a0
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x40dcf8
cmp dword [ebp + 0x10], edi
je 0x40dcf8
lea eax, [ebp - 4]
push eax
push 0x4305c8
push 1
push edi
push 0x4305f8
call dword [0x430528]
test eax, eax
jl 0x40dcf8
cmp dword [ebp + 0x18], edi
mov dword [ebp - 8], edi
jge 0x40dc3d
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call fcn.0040dcff
mov ecx, dword [ebp + 0x14]
cmp word [ebp - 0x20c], di
je 0x40dc4f
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push esi
push dword [ebp + 0x18]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push 0x100
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov esi, 0x435290
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x430608
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40dce5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
setge al
pop esi
jmp 0x40dcfa
xor eax, eax
pop edi
leave
ret 0x14
Function at 0x40dcff
Capabilities:
Get file system object information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push esi
xor esi, esi
push 0x2b0
lea eax, [ebp - 0x2b4]
push esi
push eax
mov dword [ebp - 0x2b8], esi
call fcn.004243a0
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40de6a
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40de69
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40de68
push 0x1000
xor eax, eax
mov word [ebx], ax
or dword [edi], 0xffffffff
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push esi
push dword [ebp + 8]
call dword [0x43036c]
mov esi, dword [sym.imp.l_mt5clwtst__lstrlenW]
lea eax, [ebp - 0x2ac]
push eax
call esi
test eax, eax
jle 0x40dd9c
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
dec eax
mov edx, ebx
call fcn.0040e17d
mov eax, dword [ebp - 0x2b4]
mov dword [edi], eax
jmp 0x40de68
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6b8]
push eax
push dword [ebp + 8]
mov ebx, 0x200
mov dword [ebp - 4], ebx
call dword [0x430398]
mov edi, dword [0x43004c]
push eax
push 0x80000000
call edi
mov eax, ebx
push str.DefaultIcon
lea ebx, [ebp - 0x6b8]
call fcn.0040e11c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4b8]
push eax
mov eax, ebx
push eax
push 0x80000000
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x4b8]
push 0x435de4
push eax
call fcn.00422696
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x40de68
push eax
call esi
xor edi, edi
inc edi
sub edi, eax
lea eax, [ebp - 0x4b8]
push eax
call esi
mov ebx, eax
add ebx, edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ecx, eax
shr ecx, 1
je 0x40de56
cmp ecx, 0x7fffffff
ja 0x40de56
shr ebx, 1
cmp ebx, 0x7ffffffe
jbe 0x40de48
xor eax, eax
mov word [edi], ax
jmp 0x40de56
push ebx
lea eax, [ebp - 0x4b8]
mov edx, edi
call fcn.0040cd48
mov eax, dword [ebp + 8]
add eax, 2
push eax
call fcn.004228d6
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
pop ebx
pop esi
leave
ret 0xc