joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409781
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
push edi
push 0x41f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 2
mov edi, eax
lea ecx, [ebp - 0x10]
pop eax
test ecx, ecx
mov dword [ebp - 0x58], eax
je 0x4097b1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
jmp 0x4097b3
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp + 0x10]
push 0x100e
push edi
call esi
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1019
push edi
call esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x10], eax
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 8], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
push 0x102d
push edi
call esi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x15c]
push eax
push 0
push 0x14d
push edi
call esi
mov eax, dword [ebp - 8]
push 0x40
sub eax, dword [ebp - 0x10]
push 0x12c
push eax
mov eax, dword [ebp - 0xc]
dec eax
push eax
push dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 1
push 0x14f
push edi
call esi
pop edi
pop esi
leave
ret

Function at 0x409de7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
push 0x1e
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], esi
mov word [ebp - 0x10], 0x50
mov dword [ebp - 0xe], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 6], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x409e3d
push dword [ebp - 0xa]
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov eax, esi
pop esi
leave
ret

Function at 0x40d90a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40d947
cmp dword [ebp - 0x90], 5
jne 0x40d947
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x40d949
xor eax, eax
leave
ret

Function at 0x40db47
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x40db6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40db6c
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x40dccc
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x418dcc], ebx
je 0x40dd74
cmp dword [ebp + 8], ebx
jne 0x40dd19
mov dword [ebp + 8], 0x404bf8
push 1
call fcn.0040dc51
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40dd70
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x208]
push eax
push dword [esi]
call fcn.00412cab
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jmp 0x40ddc4
xor eax, eax
jmp 0x40ddc4
lea eax, [ebp - 0x104]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40ddaf
lea eax, [ebp - 0x104]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ddc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 4], 3
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x418dcc], ebx
je 0x40df20
cmp dword [ebp + 8], ebx
jne 0x40de21
mov dword [ebp + 8], 0x404bf8
push 1
call fcn.0040dc51
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40df1c
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa0b]
mov byte [ebp - 0xa0c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa0c]
push 0x7ff
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.004128e4
add esp, 0x24
test eax, eax
je 0x40df1c
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40df1c
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xa0c]
push eax
mov edi, dword [esi]
call sub.MSVCRT.dll_strlen
shr eax, 1
cmp edi, eax
pop ecx
jae 0x40decc
mov eax, edi
jmp 0x40dedb
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
shr eax, 1
push eax
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp + 0x10]
call fcn.00416d61
mov edi, dword [esi]
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
shr eax, 1
add esp, 0x10
cmp edi, eax
jae 0x40df06
mov eax, edi
jmp 0x40df15
lea eax, [ebp - 0xa0c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
shr eax, 1
push 1
mov dword [esi], eax
pop eax
jmp 0x40df7d
xor eax, eax
jmp 0x40df7d
lea eax, [ebp - 0x108]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40df5b
lea eax, [ebp - 0x108]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x108]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df82
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1208
call fcn.00417030
cmp dword [ebp + 0x14], 0xffe
push ebx
push esi
push edi
jle 0x40dfa2
xor eax, eax
jmp 0x40e0d4
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
cmp dword [0x418dcc], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40e079
cmp dword [ebp + 8], ebx
jne 0x40dfd2
mov dword [ebp + 8], 0x404bf8
push 1
call fcn.0040dc51
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40df9b
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1207]
mov byte [ebp - 0x1208], bl
rep stosd dword es:[edi], eax
push dword [ebp + 0x14]
stosw word es:[edi], ax
push dword [ebp + 0x10]
stosb byte es:[edi], al
lea eax, [ebp - 0x1208]
push eax
call fcn.00416e13
lea eax, [ebp - 0x1208]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x20
test eax, eax
je 0x40df9b
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.00412a48
add esp, 0x10
test eax, eax
je 0x40df9b
push 1
pop eax
jmp 0x40e0d4
lea eax, [ebp - 0x104]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40e0b4
lea eax, [ebp - 0x104]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e0d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
cmp dword [0x418dcc], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
push 1
stosw word es:[edi], ax
stosb byte es:[edi], al
pop eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
je 0x40e180
cmp dword [ebp + 8], ebx
jne 0x40e11d
mov dword [ebp + 8], 0x404bf8
push eax
call fcn.0040dc51
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40e17c
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x210]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.004128e4
add esp, 0x24
neg eax
sbb eax, eax
neg eax
jmp 0x40e1de
xor eax, eax
jmp 0x40e1de
lea eax, [ebp - 0x10c]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40e1bb
lea eax, [ebp - 0x10c]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e1e3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
cmp dword [0x418dcc], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40e27c
cmp dword [ebp + 8], ebx
jne 0x40e21b
mov dword [ebp + 8], 0x404bf8
push 1
call fcn.0040dc51
mov esi, eax
pop ecx
cmp dword [esi], ebx
je 0x40e278
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
push dword [esi]
call fcn.00412a48
add esp, 0x20
neg eax
sbb eax, eax
neg eax
jmp 0x40e2e6
xor eax, eax
jmp 0x40e2e6
lea eax, [ebp - 0x104]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x40e2b7
lea eax, [ebp - 0x104]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x40e2c8
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e2eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
xor esi, esi
cmp dword [0x418dcc], esi
stosb byte es:[edi], al
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
je 0x40e3d9
cmp dword [ebp + 8], esi
jne 0x40e331
mov dword [ebp + 8], 0x404bf8
push 1
call fcn.0040dc51
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x40e3d5
and byte [ebp - 0x210], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x314], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x314]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x314]
push dword [ebp + 0xc]
push eax
push dword [ebx]
call fcn.004128e4
add esp, 0x24
test eax, eax
je 0x40e3d5
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40e3d5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [ebp + 0x10]
push 1
mov dword [ecx], eax
pop eax
jmp 0x40e437
xor eax, eax
jmp 0x40e437
lea eax, [ebp - 0x10c]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x40e414
lea eax, [ebp - 0x10c]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e43c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
cmp dword [0x418dcc], esi
stosb byte es:[edi], al
je 0x40e512
cmp dword [ebp + 8], esi
jne 0x40e479
mov dword [ebp + 8], 0x404bf8
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov ebx, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bb0
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
push 1
call fcn.0040dc51
add esp, 0x14
cmp dword [eax], 0
mov dword [ebp + 0x14], eax
je 0x40e50e
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x30c]
push ebx
push eax
call esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.00412a48
add esp, 0x20
neg eax
sbb eax, eax
neg eax
jmp 0x40e56d
xor eax, eax
jmp 0x40e56d
lea eax, [ebp - 0x104]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x40e54d
lea eax, [ebp - 0x104]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e572
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
cmp dword [ebp + 0x28], esi
stosb byte es:[edi], al
je 0x40e5a9
xor eax, eax
cmp dword [0x418dcc], esi
sete al
jmp 0x40e5ae
mov eax, dword [0x418dcc]
cmp eax, esi
je 0x40e663
cmp dword [ebp + 0xc], esi
jne 0x40e5c2
mov dword [ebp + 0xc], 0x404bf8
push 1
call fcn.0040dc51
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x40e65e
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
cmp dword [ebp + 0x20], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, 0x103
stosb byte es:[edi], al
mov dword [ebp + 0x28], edx
jne 0x40e606
lea eax, [ebp - 0x30c]
lea esi, [ebp + 0x28]
mov dword [ebp + 0x20], eax
jmp 0x40e609
mov esi, dword [ebp + 0x24]
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x404bf0
lea eax, [ebp - 0x208]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [esi]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x20]
push dword [eax]
lea eax, [ebp - 0x208]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebx]
call fcn.0041280e
add esp, 0x2c
neg eax
sbb eax, eax
inc eax
jmp 0x40e6b9
push 1
pop eax
jmp 0x40e6b9
lea eax, [ebp - 0x104]
push 0x404bcc
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x40e69e
lea eax, [ebp - 0x104]
push 0x404ba4
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHEnumValueA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40eb86
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 4], 1
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push 0x404c10
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x108]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x108]
push 0
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ebfa
push 1
pop eax
jmp 0x40ebff
and byte [edi], 0
xor eax, eax
pop edi
leave
ret
Function at 0x40ec02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 0x10c], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x103
push 0x404c28
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
pop edi
jne 0x40eca1
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
call fcn.0040eb86
add esp, 0xc
leave
ret
mov eax, dword [ebp + 0xc]
and byte [eax], 0
xor eax, eax
leave
ret
Function at 0x40ed14
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4013c8
push 0x41707e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x260], 1
or dword [ebp - 0x264], 0xffffffff
push 0x404c44
push dword [ebp + 8]
mov ebx, 0x404b0c
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x25c]
push eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
call esi
add esp, 0x14
and byte [ebp - 0x159], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x40eda8
or dword [ebp - 4], eax
xor eax, eax
jmp 0x40eeda
push 0x404c40
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40ee55
push 0x404c3c
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40ee55
test byte [ebp - 0x158], 0x10
je 0x40ee23
test byte [ebp + 0xc], 3
je 0x40ee55
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push 0x404c34
push edi
lea eax, [ebp - 0x368]
push eax
call esi
and byte [ebp - 0x265], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x368]
push eax
call fcn.0040ed14
add esp, 0x1c
mov dword [ebp - 0x260], eax
jmp 0x40ee55
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push ebx
push edi
lea eax, [ebp - 0x46c]
push eax
call esi
add esp, 0x14
and byte [ebp - 0x369], 0
test byte [ebp + 0xc], 1
je 0x40ee55
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eda8
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x264], 0xffffffff
test byte [ebp + 0xc], 3
je 0x40eed0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x40eed0
test byte [ebp + 0xc], 8
je 0x40eed0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40eed0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fd67
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x40fd76
ret
mov eax, dword [esp + 4]
push ebp
push esi
push 0x404c7c
push dword [esp + 0x14]
xor ebp, ebp
mov dword [eax], ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
cmp esi, ebp
pop ecx
je 0x40fdf8
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push ebp
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
push edi
push ebp
push ebx
call sub.MSVCRT.dll_memset
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x3c
cmp eax, edi
jne 0x40fde6
push edi
push ebx
push dword [esp + 0x1c]
call fcn.0040fc99
add esp, 0xc
mov ebp, eax
push ebx
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x40fdfd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40fe55
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fe55
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fe4e
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push dword [ebp + 8]
call fcn.0040fc99
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret