joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fdc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp + 0x10], ebx
cmp eax, ebx
je 0x4070ee
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push 0x4015f0
push eax
call dword [ecx]
test eax, eax
jl 0x4070e1
lea eax, [ebp - 0x214]
test eax, eax
jne 0x40704b
xor ecx, ecx
jmp 0x407085
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.00407580
mov edi, esp
push ebx
push ebx
lea eax, [ebp - 0x214]
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, edi
mov edi, dword [ebp - 4]
mov eax, dword [edi]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
cmp dword [ebp + 0xc], ebx
jne 0x407097
xor ecx, ecx
jmp 0x4070c9
push dword [ebp + 0xc]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.00407580
mov edi, esp
push ebx
push ebx
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, edi
mov edi, dword [ebp - 4]
mov eax, dword [edi]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 0x10]
lea edx, [edi + 4]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4070ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add edi, 0x20c
dec dword [ebp - 8]
mov dword [ebp - 4], edi
jne 0x40701a
push dword [ebp - 0xc]
lea eax, [ebp - 0x41c]
push 0x401568
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [eax + eax + 2]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
lea eax, [ebp - 0x214]
push eax
push 1
lea eax, [ebp - 0x41c]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
push edi
call ebx
push dword [ebp + 0xc]
call esi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x41c]
push dword [ebp + 0xc]
push 1
push 0x40155c
push eax
push edi
call ebx
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40716d
Capabilities:
Check if file exists

Disassembly:
push esi
push 0
mov esi, 0x410380
push 0x104
push esi
call fcn.0040a75c
test eax, eax
jl 0x4071a7
push 0x40134c
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x410178
push dword [esp + 0xc]
call fcn.0040a1f0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x4071a9
xor eax, eax
pop esi
ret 4
Function at 0x4071ad
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
and dword [esp + 8], 0
mov esi, 0x104
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push esi
push dword [esp + 0x18]
push ebp
call edi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x407276
push ebx
mov ebx, 0x401eec
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40720c
push 0x401f44
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x407212
and word [eax], 0
jmp 0x407219
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
push ebp
push dword [esp + 0x24]
call edi
push esi
push ebx
push dword [esp + 0x24]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
call ebx
push esi
push ebp
push dword [esp + 0x28]
call edi
push esi
push 0x401f44
push dword [esp + 0x28]
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [esp + 0x1c]
call esi
test eax, eax
pop ebx
je 0x407259
push 1
pop edi
jmp 0x40725d
mov edi, dword [esp + 0xc]
push dword [esp + 0x1c]
call esi
test eax, eax
je 0x407268
inc edi
push ebp
call esi
test eax, eax
je 0x407270
inc edi
cmp edi, 2
sbb eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ecx
ret 0x10

Function at 0x40762e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x4105a0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x4105b8], eax
push esi
call fcn.0040af68
cmp eax, ebx
mov dword [0x4105c4], eax
je 0x407685
push 4
call fcn.0040af68
test eax, eax
mov dword [0x4105c8], esi
je 0x40768b
mov dword [0x4105c8], ebx
cmp dword [0x4105c4], ebx
mov dword [ebp - 0x11c], 0x11c
je 0x4076cd
cmp dword [0x4105c8], ebx
jne 0x4076cd
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4076cd
cmp dword [ebp - 0x114], esi
jae 0x4076c7
cmp dword [ebp - 0x118], 6
jb 0x4076cd
mov dword [0x4105c0], esi
push 4
call fcn.0040af68
test eax, eax
je 0x4076ed
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov dword [0x4105cc], esi
jne 0x4076f3
mov dword [0x4105cc], ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4105d0], eax
call fcn.004075fc
push dword [ebp + 0xc]
call fcn.0040cf8c
push dword [ebp + 0xc]
call fcn.0040c31e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4080d5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
push esi
push 1
pop edi
mov dword [ebp - 4], esi
push edi
push 0x30316f76
call fcn.0040ac4a
mov eax, dword [ebp + 8]
mov ecx, dword [0x4105e8]
add esp, 0xc
mov eax, dword [ecx + eax*4]
push esi
push 2
push 3
push esi
push edi
push 0x80010000
push eax
call fcn.00408f0e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4081b8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x40
mov dword [0x4108c8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [0x4108cc], eax
je 0x4081b1
lea ecx, [ebp + 8]
push esi
push ecx
push dword [0x4108c8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40817c
mov eax, dword [0x4108c8]
cmp dword [ebp + 8], eax
jne 0x40817c
cmp eax, 0x68
jb 0x40817c
push 0x4108c8
push dword [0x4108cc]
call fcn.00408855
test al, al
je 0x40817c
mov dword [ebp - 4], edi
jmp 0x4081b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x30316f77
mov dword [ebp - 0x10], 3
call fcn.0040ac4a
add esp, 0x10
push dword [0x4108cc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x4108cc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4081c2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
xor esi, esi
push edi
push esi
push 1
push 0x30317038
xor edi, edi
mov dword [ebp - 0xc], esi
call fcn.0040ac4a
add esp, 0xc
cmp dword [0x41009c], esi
je 0x4083b3
cmp dword [0x4108d4], esi
je 0x4083b3
cmp dword [0x410858], esi
je 0x4083b3
cmp byte [0x4108e0], 0
jne 0x4083b3
push 0x410838
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x410858]
mov ecx, 0x21f
test byte [eax], 1
je 0x408230
inc edi
add eax, 0xe
dec ecx
jne 0x40822a
mov eax, 0x4105fc
add edi, dword [eax]
add eax, 0xc
cmp eax, 0x410614
jb 0x40823b
push ebx
mov ebx, edi
imul ebx, ebx, 0xe
mov dword [ebp - 0x14], edi
lea eax, [ebx + 0x68]
push eax
mov dword [ebp - 0x18], eax
call fcn.004075af
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
je 0x40837a
lea ecx, [eax + 0x68]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov edx, dword [0x410858]
test byte [ecx + edx], 1
lea esi, [ecx + edx]
je 0x40828e
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x14]
add ecx, 0xe
cmp ecx, 0x1db2
jb 0x408270
mov ecx, 0x4105f8
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4082c4
and dword [ebp - 8], 0
mov esi, dword [ecx]
mov edi, dword [ebp - 4]
add esi, dword [ebp - 8]
add dword [ebp - 4], 0xe
add dword [ebp - 8], 0xe
dec edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x4082a9
mov edi, dword [ebp - 0x14]
add ecx, 0xc
cmp ecx, 0x410610
jb 0x40829e
push 0x1a
mov dword [0x4108ac], edi
pop ecx
mov esi, 0x410860
mov edi, eax
mov dword [0x4108a8], ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x68]
push ecx
push eax
call fcn.00408b46
mov edi, dword [ebp - 0x10]
push 1
xor esi, esi
pop ebx
mov dword [edi + 0x50], eax
cmp dword [0x4108d0], esi
lea eax, [ebp - 0x22c]
mov word [ebp - 0x22c], si
push eax
je 0x40831b
call fcn.004086a0
mov ebx, eax
jmp 0x408320
call fcn.00408635
cmp ebx, esi
je 0x408371
push esi
push 2
push 2
push esi
push 1
lea eax, [ebp - 0x22c]
push 0xc0000000
push eax
call fcn.00408f0e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408371
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408367
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x10], eax
je 0x40836a
mov dword [ebp - 0xc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004075bc
pop ecx
xor esi, esi
push 0x410838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], esi
pop ebx
jne 0x4083b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x4000000
push 0x30316f79
mov dword [ebp - 0x24], 3
call fcn.0040ac4a
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x4083b7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
push 0x410838
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x210]
push eax
call fcn.004086a0
test eax, eax
je 0x40850d
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push 2
push 3
push edi
push 1
push SysReAllocString
push eax
call fcn.00408f0e
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
je 0x40850d
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x68
jb 0x408503
push edi
push edi
push edi
push 2
push edi
push ebx
call fcn.0040d5ff
cmp eax, edi
mov dword [ebp - 8], eax
je 0x408503
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x4084fa
mov ecx, dword [ebx]
mov eax, 0x5352414d
cmp ecx, eax
jne 0x4084f3
cmp dword [ebx + 8], 4
jne 0x40848e
mov eax, dword [ebx + 0x48]
add esi, 0xffffff98
cmp eax, esi
jne 0x4084f3
mov ecx, dword [ebx + 0x4c]
imul ecx, ecx, 0xe
cmp ecx, eax
jne 0x4084f3
lea esi, [ebx + 0x68]
push esi
push ebx
call fcn.00408b46
cmp dword [ebx + 0x50], eax
jne 0x4084f3
mov eax, dword [ebx + 0x4c]
mov ecx, esi
jmp 0x4084b0
cmp ecx, eax
jne 0x4084f3
cmp dword [ebx + 8], 3
jne 0x4084f3
lea ecx, [esi - 0x38]
push 0xe
mov eax, ecx
xor edx, edx
pop esi
div esi
mov edx, eax
imul edx, edx, 0xe
cmp edx, ecx
jne 0x4084f3
lea ecx, [ebx + 0x38]
cmp dword [0x4108d0], edi
je 0x4084d6
mov edx, dword [ebx + 0xc]
lea esi, [ebx + 0x28]
mov edi, 0x410888
mov dword [0x41086c], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or dword [0x41086c], 4
xor edi, edi
cmp eax, edi
jbe 0x4084f3
mov esi, ecx
mov edi, eax
cmp dword [0x4108d0], 0
je 0x4084ed
push esi
call fcn.0040851c
add esi, 0xe
dec edi
jne 0x4084de
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push 0x410838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret

Function at 0x408635
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
xor ebp, ebp
mov ebx, 0x104
push dword [0x4016e4]
test ebp, ebp
jne 0x408668
push dword [0x4016e0]
push 0x401c3c
push ebx
push esi
call edi
add esp, 0x14
jmp 0x40867b
push ebp
push dword [0x4016e0]
push 0x401c28
push ebx
push esi
call edi
add esp, 0x18
push esi
push 0x41062c
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408699
inc ebp
cmp ebp, 0xa
jb 0x40864a
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x408e5e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x408e7e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x408eac
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 8

Function at 0x40903d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x40905a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409085
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 4

Function at 0x4091f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x40920d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x409238
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 4

Function at 0x4092f1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x409311
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40933f
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 8

Function at 0x40939e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
cmp dword [0x4105c4], 0
je 0x4093c4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x409426
push esi
lea ecx, [ebp - 0x52c]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x318]
call fcn.00408c4a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x104]
call fcn.00408d3f
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x314]
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x318]
mov esi, eax
call fcn.00408c21
lea ecx, [ebp - 0x52c]
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x409483
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [0x4105c4], ebx
push esi
je 0x4094a6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x409518
mov esi, dword [ebp + 0x14]
cmp esi, ebx
jg 0x4094b1
xor eax, eax
jmp 0x409518
mov eax, dword [ebp + 0xc]
push 6
shr eax, 4
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40950e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40950e
and dword [ebp + 0xc], 0xf
je 0x4094e9
mov ecx, dword [ebp + 0xc]
movzx edx, word [eax]
dec ecx
lea eax, [eax + edx*2 + 2]
jne 0x4094df
movzx ebx, word [eax]
lea ecx, [esi - 1]
cmp ebx, ecx
jl 0x4094f5
mov ebx, ecx
lea ecx, [ebx + ebx]
lea esi, [eax + 2]
mov eax, ecx
push edi
mov edi, dword [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp + 0x10]
and word [eax + ebx*2], 0
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40951e
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x4105c4], 0
je 0x40953e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x409588
push esi
lea ecx, [ebp - 0x428]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
call fcn.00408c4a
push dword [ebp - 0x210]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
lea ecx, [ebp - 0x428]
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 8
Function at 0x40961a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0x4105c4], 0
je 0x409649
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x409737
push ebx
push esi
push edi
lea ecx, [ebp - 0x430]
push dword [ebp + 0xc]
call fcn.00408c4a
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
neg esi
sbb esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and esi, eax
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x409727
cmp dword [ebp - 4], eax
jbe 0x40970e
cmp dword [ebp - 4], 2
ja 0x40970e
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4096a3
mov eax, dword [eax]
shr eax, 1
jmp 0x4096a5
xor eax, eax
push eax
lea ecx, [ebp - 0x21c]
push dword [ebp + 0x18]
call fcn.00408d57
push esi
mov eax, dword [ebp - 8]
push dword [ebp - 0x218]
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
je 0x4096e7
lea ecx, [ebp - 0x21c]
call fcn.00408e10
jmp 0x409727
cmp dword [ebp - 0x218], 0
je 0x4096fe
lea ecx, [ebp - 0x21c]
call fcn.00408dd6
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4096da
mov ecx, dword [ebp + 0xc]
add ecx, ecx
mov dword [eax], ecx
jmp 0x4096da
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x42c]
push dword [ebp + 8]
call edi
mov ebx, eax
lea ecx, [ebp - 0x430]
call fcn.00408c21
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x18

Function at 0x40973b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x409758
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x409783
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 4

Function at 0x4097f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jle 0x409874
cmp esi, 0x104
lea edi, [ebp - 0x104]
jb 0x409824
lea eax, [esi + 1]
push eax
call fcn.004075af
pop ecx
mov edi, eax
test edi, edi
je 0x409874
inc esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x14]
mov ecx, eax
dec eax
test ecx, ecx
je 0x409863
mov esi, dword [ebp + 0x10]
push ebx
lea ebx, [eax + 1]
push dword [esi]
cmp dword [ebp + 0xc], 0
push edi
je 0x409855
call fcn.004097ba
jmp 0x40985a
call fcn.00409787
mov dword [esi], eax
add esi, 4
dec ebx
jne 0x409845
pop ebx
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x409874
push edi
call fcn.004075bc
pop ecx
pop edi
pop esi
leave
ret 0x10
Function at 0x409db9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x958
cmp dword [0x4105c4], 0
je 0x409de8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x409e96
push esi
lea ecx, [ebp - 0x744]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x530]
call fcn.00408c4a
push dword [ebp + 0x10]
lea ecx, [ebp - 0x958]
call fcn.00408c4a
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.00408d3f
push dword [ebp + 0x18]
lea ecx, [ebp - 0x218]
push dword [ebp + 0x14]
call fcn.00408d57
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x214]
push dword [ebp - 0x954]
push dword [ebp - 0x52c]
push dword [ebp - 0x740]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.00408dd6
lea ecx, [ebp - 0x218]
call fcn.00408e10
lea ecx, [ebp - 0x958]
call fcn.00408c21
lea ecx, [ebp - 0x530]
call fcn.00408c21
lea ecx, [ebp - 0x744]
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 0x18