joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8a6
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.00424920
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c9fe
cmp dword [ebp + 0x10], esi
je 0x40c9fe
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c9fe
lea ebx, [ebp - 0x874]
call fcn.0040cd4c
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov eax, ebx
push eax
call esi
cmp eax, 0xffffffff
je 0x40c9fe
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x258]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
call fcn.00424920
add esp, 0xc
lea eax, [ebp - 0x874]
mov byte [ebp - 5], bl
push eax
mov ebx, 0x103
push 0x436d58
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040ccff
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40c9fe
test byte [ebp - 0x25c], 2
jne 0x40c9c8
test byte [ebp - 0x25c], 0x10
je 0x40c9c8
cmp word [ebp - 0x230], 0x2e
je 0x40c9c8
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp - 0x874]
push eax
push str._s_s_s_s.sol
lea edi, [ebp - 0x464]
call fcn.0040ccff
add esp, 0x14
mov eax, edi
push eax
call esi
cmp eax, 0xffffffff
jne 0x40c9de
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c979
jmp 0x40c9f0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
call fcn.0040ca07
mov byte [ebp - 5], al
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [ebp - 5]
jmp 0x40ca00
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
sub esp, 0x208
test ebx, ebx
jne 0x40cc70
xor al, al
jmp 0x40ccf8
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
je 0x40cc83
mov al, 1
jmp 0x40ccf7
push ebp
push esi
push SysReAllocString
mov eax, ebx
mov ecx, 0x103
lea edx, [esp + 0x10]
call fcn.0040e179
cmp word [esp + 0xc], 0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea esi, [esp + 0xc]
je 0x40ccde
cmp word [esi], 0x5c
jne 0x40ccd6
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40ccd0
push 0
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40ccef
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40ccac
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40ccf3
push 0
push ebx
call ebp
test eax, eax
jne 0x40ccf3
xor al, al
jmp 0x40ccf5
mov al, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
Function at 0x40cd91
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 0x40cd9f
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
cmp dword [ebp + 8], ebx
je 0x40ce0c
cmp dword [ebp + 0xc], ebx
je 0x40ce0c
cmp dword [ebp + 0x10], ebx
je 0x40ce0c
cmp dword [ebp + 0x14], ebx
je 0x40ce0c
cmp esi, ebx
je 0x40ce0c
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 [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ce08
push esi
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40cdff
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40ce0e
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x40ce67
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 0x40cecd
cmp dword [ebp + 0x10], ebx
je 0x40cecd
cmp esi, ebx
je 0x40cecd
cmp dword [ebp + 0x14], ebx
je 0x40cecd
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 [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cec9
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 [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cec0
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40cecf
xor al, al
pop ebx
leave
ret

Function at 0x40cf24
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 0x40d713
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp esi, ecx
je 0x40d73f
xor eax, eax
cmp dword [esp + 4], ecx
jbe 0x40d73f
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 0x40d722
pop edi
ret

Function at 0x40d740
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 0x40d778
cmp dword [ebp + 8], eax
jbe 0x40d778
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 0x40d754
pop esi
pop ebx
leave
ret
Function at 0x40d7cd
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 0x40d7e8
xor eax, eax
jmp 0x40d876
push esi
push edi
push ebx
mov eax, 0x410
lea edx, [ebp - 0x414]
call fcn.0040e1b8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea eax, [ebp + eax*2 - 0x416]
jmp 0x40d825
cmp word [eax], 0x5c
je 0x40d831
dec eax
dec eax
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x40d81d
jmp 0x40d862
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40d862
push 0
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x40d862
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d7cd
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40d871
push 0
push ebx
call edi
jmp 0x40d874
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d89c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
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.00424920
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40d927
mov eax, dword [ebp + 0xc]
call fcn.004083ac
cmp eax, 1
jb 0x40d927
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d927
push ebx
mov esi, 0x208
push 0x436e14
mov eax, esi
lea ebx, [ebp - 0x208]
call fcn.0040e118
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040e118
push 1
push 1
push 0x436e00
mov eax, ebx
push eax
mov ecx, 0x4405b0
call fcn.0040de73
pop ebx
pop esi
leave
ret 8
Function at 0x40d976
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.00424920
add esp, 0xc
xor bl, bl
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x40daad
cmp dword [ebp + 0x10], esi
je 0x40daad
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40daad
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40da81
mov esi, 0x208
push 0x436e14
mov eax, esi
lea ebx, [ebp - 0x428]
call fcn.0040e118
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040e118
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40da6b
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], 0x439518
mov dword [ebp - 0x214], 0x104
call fcn.0040afec
mov eax, esi
mov dword [ebp - 0x220], 0x439518
call fcn.0040e065
mov bl, al
jmp 0x40da6d
mov bl, 1
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x14]
add eax, eax
call fcn.0040e1b8
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40daa4
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 0x40daaf
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40db1a
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.00424920
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40dbbf
cmp dword [ebp + 0x10], esi
je 0x40dbbf
cmp dword [ebp + 0x18], esi
je 0x40dbbf
cmp edi, esi
je 0x40dbbf
cmp ebx, esi
je 0x40dbbf
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40dbbf
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40dbbf
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.0040ccff
add esp, 0xc
cmp word [ebx], si
jne 0x40dbaf
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dbc8
jmp 0x40dbc1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40dbc8
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.00424920
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x40dcfc
cmp dword [ebp + 0x10], edi
je 0x40dcfc
lea eax, [ebp - 4]
push eax
push 0x4315e8
push 1
push edi
push 0x431618
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40dcfc
cmp dword [ebp + 0x18], edi
mov dword [ebp - 8], edi
jge 0x40dc41
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call fcn.0040dd03
mov ecx, dword [ebp + 0x14]
cmp word [ebp - 0x20c], di
je 0x40dc53
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, 0x436288
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 0x431628
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40dce9
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 0x40dcfe
xor eax, eax
pop edi
leave
ret 0x14
Function at 0x40dd03
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.00424920
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40de6e
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x40de6d
push edi
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x40de6c
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 [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x2ac]
push eax
call esi
test eax, eax
jle 0x40dda0
lea eax, [ebp - 0x2ac]
push eax
push ebx
call esi
dec eax
mov edx, ebx
call fcn.0040e1b8
mov eax, dword [ebp - 0x2b4]
mov dword [edi], eax
jmp 0x40de6c
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 [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push eax
push SysReAllocStringLen
call edi
mov eax, ebx
push str.DefaultIcon
lea ebx, [ebp - 0x6b8]
call fcn.0040e118
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4b8]
push eax
mov eax, ebx
push eax
push SysReAllocStringLen
mov dword [ebp - 4], 0x104
call edi
lea eax, [ebp - 0x4b8]
push 0x436dfc
push eax
call fcn.0042293c
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x40de6c
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 0x40de5a
cmp ecx, 0x7fffffff
ja 0x40de5a
shr ebx, 1
cmp ebx, 0x7ffffffe
jbe 0x40de4c
xor eax, eax
mov word [edi], ax
jmp 0x40de5a
push ebx
lea eax, [ebp - 0x4b8]
mov edx, edi
call fcn.0040e179
mov eax, dword [ebp + 8]
add eax, 2
push eax
call fcn.00422b7c
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40de73
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push esi
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
call fcn.00424920
add esp, 0xc
cmp dword [ebp + 8], esi
je 0x40e05a
cmp dword [ebp + 0xc], esi
je 0x40e05a
push dword [ebp + 0xc]
mov ebx, str._s_s
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040ccff
add esp, 0xc
lea eax, [esp + 0x220]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40dffe
test byte [esp + 0x220], 0x10
je 0x40df6f
cmp byte [ebp + 0x10], 0
je 0x40df6f
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push 0x436e08
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40dfda
push 0x436e0c
lea eax, [esp + 0x250]
push eax
call esi
test eax, eax
je 0x40dfda
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040ccff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0040de73
add dword [esp + 0xc], eax
jmp 0x40dfda
lea eax, [esp + 0x24c]
push eax
push dword [ebp + 8]
mov ecx, 0x104
push ebx
lea edi, [esp + 0x24]
call fcn.0040ccff
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x40dfd6
mov eax, edi
call fcn.004083ac
cmp eax, dword [0x440358]
jae 0x40dfd6
mov esi, dword [0x440354]
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40dfd6
push 4
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
inc dword [esp + 0xc]
lea eax, [esp + 0x220]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40def3
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x40e054
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40e017
inc dword [esp + 0xc]
jmp 0x40e054
mov eax, dword [ebp + 8]
call fcn.004083ac
cmp eax, dword [0x440358]
jae 0x40e054
mov edi, dword [ebp + 8]
mov esi, dword [0x440354]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, eax
add ecx, ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40e054
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
mov eax, dword [esp + 0xc]
jmp 0x40e05c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e065
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
push dword [esi + 4]
call edi
cmp eax, 0xffffffff
je 0x40e08c
shr al, 4
and al, 1
jmp 0x40e114
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040ab6f
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
add esp, 0xc
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x40e0f0
cmp word [esi], 0x5c
jne 0x40e0e8
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40e0e2
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x40e10d
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40e0ba
lea eax, [ebp - 0x208]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40e111
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x40e111
xor al, al
jmp 0x40e113
mov al, 1
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40ebd3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
xor eax, eax
push edi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40ebf5
xor eax, eax
xor edx, edx
jmp 0x40ec18
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x40ec12
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40ebef
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x413b0d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
xor edi, edi
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00424920
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00424920
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.00424920
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xcd8]
lea esi, [edi + 0xc]
add esp, 0x24
mov ecx, esi
call fcn.0040150d
test eax, eax
je 0x413b86
push edi
mov edi, ebx
call fcn.00413a78
mov edi, 0x103
push edi
push 0x35
lea eax, [ebp - 0x410]
call fcn.0040b558
push esi
lea eax, [ebp - 0x410]
push eax
push edi
lea esi, [ebp - 0x208]
call fcn.004165b7
add esp, 0xc
push edi
lea eax, [ebp - 0x618]
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
lea eax, [ebp - 0x618]
call fcn.0040150d
test eax, eax
je 0x413be4
mov eax, esi
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
imul eax, eax, 0x65
xor edx, edx
div dword [esi + 8]
push 0
push eax
push 0x402
push dword [ebx + 0xe9c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
shr eax, 0xa
push eax
push str._d_Kb
push edi
lea esi, [ebp - 0x208]
call fcn.004165b7
add esp, 0xc
mov eax, esi
push eax
push dword [ebx + 0xec0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret 4

Function at 0x41409e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x90
push ebx
push edi
push 0x88
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00424920
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x18], 0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 1
mov ebx, 0x464
push ebx
push dword [esi + 4]
mov byte [ebp + 0x77], 1
mov dword [ebp - 0x14], 2
call edi
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41414f
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov ecx, 0x4405b0
call fcn.0040d7cd
test eax, eax
jne 0x41414f
push eax
mov byte [ebp + 0x77], al
lea eax, [esi + 0xd6c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
test eax, eax
jne 0x414148
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x414148
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [esi + 0x54]
add eax, 0xc
push eax
call fcn.0040d787
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push dword [esi + 4]
call edi
mov al, byte [ebp + 0x77]
pop edi
pop ebx
add ebp, 0x78
leave
ret