joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052c9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0040554e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test cl, 8
je 0x405300
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2be8], eax
jmp 0x405466
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
je 0x40531a
test eax, eax
je 0x405466
test cl, 2
je 0x405418
mov esi, 0x7a0170
push ebx
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40533c
push str..
push esi
call edi
jmp 0x405342
push ebx
call fcn.004054b5
push 0x40900c
push ebx
call edi
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40540e
cmp byte [ebp - 0x118], 0x2e
jne 0x405388
cmp byte [ebp - 0x117], 0x2e
je 0x4053f1
cmp byte [ebp - 0x117], 0
je 0x4053f1
lea eax, [ebp - 0x118]
push eax
push edi
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4053b4
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053f1
push dword [ebp + 0xc]
push ebx
call fcn.004052c9
jmp 0x4053f1
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053e9
test byte [ebp + 0xc], 4
je 0x4053e1
push ebx
push 0xfffffffffffffff1
call fcn.00404d1f
push 0
push ebx
call fcn.004056a4
jmp 0x4053f1
inc dword [0x7a2be8]
jmp 0x4053f1
push ebx
push 0xfffffffffffffff2
call fcn.00404d1f
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40536d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405418
and byte [edi - 1], 0
xor esi, esi
cmp dword [ebp - 4], esi
je 0x405466
cmp dword [ebp + 8], esi
je 0x405466
push ebx
call fcn.00405c49
test eax, eax
je 0x405466
push ebx
call fcn.0040546d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40545e
test byte [ebp + 0xc], 4
je 0x405456
push ebx
push 0xfffffffffffffff1
call fcn.00404d1f
push esi
push ebx
call fcn.004056a4
jmp 0x405466
inc dword [0x7a2be8]
jmp 0x405466
push ebx
push 0xffffffffffffffe5
call fcn.00404d1f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40554e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0570
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00405501
test eax, eax
jne 0x40556d
xor eax, eax
jmp 0x4055bc
test byte [0x7a2b70], 0x80
je 0x405581
mov cl, byte [eax]
test cl, cl
je 0x405569
cmp cl, 0x5c
je 0x405569
mov edi, eax
sub edi, esi
jmp 0x40559b
call fcn.00405c49
test eax, eax
je 0x405595
test byte [eax], 0x10
je 0x405569
push esi
call fcn.004054b5
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405587
call fcn.0040546d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40562d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40565c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056a0
test edi, edi
jne 0x405667
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40569a
Function at 0x4056a4
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056dc
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4056dc
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405821
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a12f8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a12f8
je 0x405720
push 1
push 0
push esi
call fcn.0040562d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405827
cmp eax, edi
jg 0x405827
mov esi, 0x7a0ef8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405827
cmp eax, edi
jg 0x405827
push esi
push ebp
push str._s_s_r_n
push 0x7a0af8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405821
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405809
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4057fd
push str._Rename__r_n
push edi
call fcn.004055c1
test eax, eax
jne 0x40582e
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x7a0af8
push eax
call fcn.0040560d
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4092f8
push eax
call fcn.004055c1
test eax, eax
je 0x4057e4
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405857
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x40584a
sub eax, edi
jmp 0x4057e6
Function at 0x40585b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058bf
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058ae
cmp dword [ebp + 0x14], 1
je 0x4058b0
cmp dword [ebp + 0x14], 2
je 0x4058b0
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405c87
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a16fc], 0
push esi
jne 0x405cbe
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c98
mov dword [ecx*4 + 0x7a16f8], eax
inc ecx
cmp ecx, 0x100
jl 0x405c93
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a16f8]
xor eax, esi
inc ecx
dec edx
jne 0x405cd1
pop edi
not eax
pop esi
ret 0xc
Function at 0x402c46
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov esi, 0x208
xor ebx, ebx
push esi
mov edi, eax
lea eax, [ebp - 0x41a]
push ebx
push eax
mov word [ebp - 0x41c], bx
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
mov eax, edi
call fcn.00402bf6
mov ecx, dword [edi + 0x25c]
mov eax, 0x423628
call fcn.00408419
push eax
mov dword [ebp - 4], eax
call sub.msvcrt.dll_wcslen
push dword [ebp + 8]
mov esi, eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
mov esi, 0x104
cmp eax, esi
pop ecx
pop ecx
jae 0x402cdd
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push dword [ebp - 4]
call fcn.004072f2
pop ecx
pop ecx
jmp 0x402ce4
mov word [ebp - 0x210], bx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x402d04
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x402d14
push dword [ebp + 8]
add edi, 0x38
mov eax, esi
call fcn.00406ff0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x404bf7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2270
call fcn.0041a760
push ebx
push esi
push edi
xor esi, esi
push 0x1ffe
lea eax, [ebp - 0x226e]
push esi
push eax
mov word [ebp - 0x2270], si
call sub.msvcrt.dll_memset
push 0x25
push dword [ebp + 8]
call sub.msvcrt.dll_wcschr
add esp, 0x14
test eax, eax
je 0x404c4a
push 0xfff
lea eax, [ebp - 0x2270]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x404c5e
push dword [ebp + 8]
mov eax, 0xfff
lea edi, [ebp - 0x2270]
call fcn.00406ff0
pop ecx
push 0x208
lea eax, [ebp - 0x26e]
push esi
push eax
mov dword [ebp - 4], esi
mov word [ebp - 0x270], si
call sub.msvcrt.dll_memset
push 0x41c624
lea eax, [ebp - 0x2270]
push eax
mov ebx, 0x104
lea eax, [ebp - 0x270]
push ebx
push eax
lea edi, [ebp - 4]
call fcn.00407bda
add esp, 0x1c
test eax, eax
je 0x404d26
jmp 0x404caa
xor esi, esi
cmp word [ebp - 0x270], si
je 0x404d03
push 0x17
pop ecx
mov esi, str._GLOBALROOTDeviceHarddiskVolumeShadowCopy
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_wcslen
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x270]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0x10
test eax, eax
je 0x404d03
lea eax, [ebp - 0x270]
push eax
call fcn.00407177
test eax, eax
pop ecx
jne 0x404d03
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp + 0xc]
call fcn.004083af
push 0x41c624
lea eax, [ebp - 0x2270]
push eax
lea eax, [ebp - 0x270]
push ebx
push eax
lea edi, [ebp - 4]
call fcn.00407bda
add esp, 0x10
test eax, eax
jne 0x404ca8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406900
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0041a760
push ebx
push 0x2001f
lea eax, [ebp - 4]
push eax
xor ebx, ebx
call fcn.004068a1
test eax, eax
jne 0x406a9e
push esi
push edi
mov esi, 0x7fe
push esi
lea eax, [ebp - 0x181a]
push ebx
push eax
mov word [ebp - 0x181c], bx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
lea eax, [edi + 0x20a]
push eax
push edi
push str._s_shell_scommand
lea eax, [ebp - 0x181c]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x181c]
push eax
push dword [ebp - 4]
call fcn.0041210e
add esp, 0x2c
test eax, eax
jne 0x406a93
add edi, 0x414
push edi
push 0x41b5e0
push dword [ebp - 8]
call fcn.004121bc
add esp, 0xc
push dword [ebp - 8]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [ebp - 0x81c], 0
push esi
lea eax, [ebp - 0x81a]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x81c]
push eax
call fcn.004071a6
add esp, 0x10
cmp word [ebp - 0x81a], 0x3a
jne 0x406a93
mov eax, dword [0x41c6b0]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41c6b4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp - 0x81c]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x406a93
xor edi, edi
push esi
lea eax, [ebp - 0x101a]
push edi
push eax
mov word [ebp - 0x101c], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x201a]
push edi
push eax
mov word [ebp - 0x201c], di
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add eax, 0x20a
push eax
push dword [ebp + 8]
mov esi, 0x3ff
push str._s_shell_s
lea eax, [ebp - 0x201c]
push esi
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0x81c]
push eax
push str.__s__0
lea eax, [ebp - 0x101c]
push esi
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 4]
call fcn.004121e2
add esp, 0x48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x406aa5
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041a760
push esi
push 0x2001f
lea eax, [ebp - 4]
push eax
xor esi, esi
call fcn.004068a1
test eax, eax
jne 0x406b60
push edi
mov edi, 0x7fe
push edi
lea eax, [ebp - 0x802]
push esi
push eax
mov word [ebp - 0x804], si
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x1002]
push esi
push eax
mov word [ebp - 0x1004], si
call sub.msvcrt.dll_memset
lea edi, [ebx + 0x20a]
push edi
push ebx
push str._s_shell_scommand
mov esi, 0x3ff
lea eax, [ebp - 0x804]
push esi
push eax
call sub.msvcrt.dll__snwprintf
push edi
push ebx
push str._s_shell_s
lea eax, [ebp - 0x1004]
push esi
push eax
call sub.msvcrt.dll__snwprintf
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0x40
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x406cee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x406ea4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x406f01
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406eff
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x406f0c
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00406cbc
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406f9e
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406f87
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x406f87
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406f90
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x406fa7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x407316
Capabilities:
Get common file path

Disassembly:
cmp word [0x4245b8], 0
push esi
mov esi, 0x4245b8
jne 0x407337
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x4247c4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4247c4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4077bb
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x41b5e0
push eax
push eax
push dword [esp + 0x14]
push 0x41c7e0
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x4079b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x41cc44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret
Function at 0x407dd4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407e55
lea eax, [ebp - 0x224]
push 0x41c7dc
push eax
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
je 0x407e27
lea eax, [ebp - 0x224]
push 0x41b5e8
push eax
call sub.msvcrt.dll_wcscmp
test eax, eax
pop ecx
pop ecx
jne 0x407e3b
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x407df9
jmp 0x407e4e
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40905a
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x423f48
push dword [esp + 0xc]
push esi
push 0x41b5e0
push dword [esp + 0x14]
push 0x424158
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40907f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041a760
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x423f48
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41b5e0
push dword [ebp + 8]
push 0x424158
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4090ee
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4090f2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041a760
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x423f48
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41b5e0
push dword [ebp + 8]
mov esi, 0x424158
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x409159
cmp dword [ebp + 0x10], 0
jne 0x409159
xor eax, eax
jmp 0x409167
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x4094b5
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00407177
test eax, eax
pop ecx
je 0x40953c
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x423f48
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x424158
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x41c944
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x4241e8
mov dword [0x4241e0], eax
call fcn.0040905a
push 0x3f
push str.TranslatorName
mov esi, 0x424268
call fcn.0040905a
push 0xff
push str.TranslatorURL
mov esi, 0x4242e8
call fcn.0040905a
add esp, 0x18
pop edi
pop esi
ret
Function at 0x40a33c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
je 0x40a394
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 8

Function at 0x40a756
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041a760
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret