joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b4d
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
lea eax, [ebp - 0x10]
push esi
push eax
xor esi, esi
push 0x20019
push esi
push 0x427acc
mov dword [ebp - 0x14], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414cf0
push ebx
push edi
mov dword [ebp - 0xc], esi
mov edi, 0x208
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0x104
push eax
push esi
push esi
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x414ce5
push edi
lea eax, [ebp - 0x228]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x228]
push 0x427acc
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x228]
push 0x4281ec
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x24
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x228]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414cdd
push 0x401
mov dword [ebp - 4], 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp - 4]
mov ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
push eax
push ebx
push esi
push esi
push 0x4292c0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414ccc
push ebx
call fcn.00418c62
test eax, eax
pop ecx
je 0x414ccc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400
push eax
push ebx
push esi
push esi
push 0x4292b0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414ccc
push edi
lea eax, [ebp - 0x534]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x534]
push edi
push eax
push ebx
call fcn.00415018
lea eax, [ebp - 0x534]
push 0x429ea8
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x414ccc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x534]
push eax
call fcn.00414707
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
jmp 0x414b88
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x414cf3
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x41e284
call fcn.0041baa0
sub esp, 0x638
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x2c]
call fcn.00417886
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x427a84
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414dec
push ebx
xor ebx, ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x338]
push eax
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x43c]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x414de2
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x644]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x644]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x414dba
inc eax
push eax
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x130]
push eax
call fcn.004152c1
test al, al
je 0x414ddc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x130]
push eax
call fcn.00414707
inc ebx
jmp 0x414d38
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004178b7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x414e04
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x44c]
push edi
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x44c]
push 0x4292cc
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414eeb
test byte [ebp - 0x140], 0x10
jne 0x414ece
cmp dword [ebp - 0x124], 0
jne 0x414ece
cmp dword [ebp - 0x120], 0xc350
jae 0x414ece
lea eax, [ebp - 0x114]
mov ecx, edi
push eax
call fcn.004152c1
test al, al
je 0x414ece
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x244]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x414ead
and byte [eax], 0
lea eax, [ebp - 0x244]
push 0x427e94
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x244]
pop ecx
push eax
mov ecx, edi
call fcn.00414707
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414e51
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
leave
ret
Function at 0x414eef
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x41e290
call fcn.0041baa0
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 1
mov esi, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
lea eax, [ebp - 0x38]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x38]
push str.SR_FileData
mov dword [ebp - 0x20], eax
push 0x800
push ebx
lea eax, [ebp - 0x24]
push 4
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x414fee
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x414fe5
push 9
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x414fdc
mov edi, eax
sub edi, dword [ebp - 0x14]
cmp edi, 0x3f
jl 0x414f86
push 0x3f
pop edi
push dword [esi + 0x118]
call sub.MFC42.DLL_operatordelete
pop ecx
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [esi + 0x118], eax
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi + 0x118]
add esp, 0xc
mov byte [eax + edi], bl
mov eax, dword [esi + 0x11c]
push dword [esi + 0x118]
cmp eax, ebx
je 0x415009
push eax
call fcn.004179fc
pop ecx
cmp eax, ebx
pop ecx
je 0x414ffd
mov byte [esi + 0x120], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push dword [esi + 0x118]
mov byte [esi + 0x120], bl
mov ecx, esi
call fcn.00414707
jmp 0x414fdc
Function at 0x415434
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4155c3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4155c3
movzx edi, word [ebx + 2]
movzx eax, word [esi + 2]
add edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x4155c3
push 2
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4155ba
or dword [ebp - 0xc], 0xffffffff
xor edi, edi
cmp word [ebx + 4], di
mov dword [ebp - 0x10], edi
mov dword [ebp + 0xc], edi
jbe 0x415583
jmp 0x4154a5
xor edi, edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x41557c
cmp dword [ebp - 0xc], edi
mov eax, dword [ebp - 0x10]
jge 0x4154d9
mov cl, byte [eax]
test cl, cl
je 0x4154d3
cmp cl, 4
je 0x4154d3
cmp cl, 5
jne 0x4154d9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], edi
jne 0x415555
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x415555
mov cl, byte [eax + 1]
test cl, 0x10
jne 0x415555
cmp cl, byte [esi + 1]
jne 0x415555
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x415555
test dl, dl
jne 0x415555
mov ebx, eax
lea edi, [esi + 8]
add eax, 8
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41554f
mov eax, dword [ebx + 4]
or eax, dword [esi + 4]
push eax
mov al, byte [esi + 1]
push eax
push edi
call fcn.004153d0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x415535
movzx ecx, word [eax + 2]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41557c
mov ebx, dword [ebp + 8]
jmp 0x41556c
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x41557c
movzx eax, word [ebx + 4]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], eax
jl 0x4154a3
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x4155a9
or eax, 0xffffffff
cmp dword [ebp - 0xc], edi
jl 0x41558e
mov eax, dword [ebp - 0xc]
movzx ecx, word [esi + 2]
push ecx
push esi
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x4155ba
cmp dword [ebp - 4], edi
je 0x4155b2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x4155b5
Function at 0x4156be
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4156f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x429368
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
xor eax, eax
jmp 0x41577c
lea eax, [ebp - 4]
mov byte [ebp - 0xc], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
lea eax, [ebp - 0xc]
push 2
push eax
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x415769
cmp dword [ebp - 4], ebx
je 0x415769
push esi
push dword [ebp + 0xc]
push 0x1f01ff
push 3
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00415665
add esp, 0x14
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x41575c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 2
dec eax
jmp 0x41577c
push 0x42934c
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
or eax, 0xffffffff
pop ecx
pop ebx
leave
ret
Function at 0x417b8d
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x41e73f
call fcn.0041baa0
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
call fcn.0040f576
mov eax, dword [ebp + 0xc]
push 1
pop edi
cmp eax, ebx
mov dword [ebp - 4], edi
mov byte [ebp - 4], 2
je 0x417cea
cmp byte [eax], bl
je 0x417cea
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x417bfc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0040f589
mov dword [ebp - 0x14], edi
jmp 0x417d18
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xc], ebx
je 0x417c67
lea eax, [esi + 1]
push eax
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x417c67
lea eax, [esi + 1]
push eax
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push ebx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x417c67
cmp esi, dword [ebp - 0x20]
jne 0x417c67
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x417cdf
mov esi, 0x42992c
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x417cdc
push esi
call sub.MSVCRT.dll_strlen
add edi, eax
push 0x3c
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0xc
cmp eax, ebx
je 0x417cdc
push edi
lea ecx, [ebp - 0x20]
mov byte [eax], bl
call fcn.0040afbc
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x417cc1
call fcn.00418328
jmp 0x417cc3
xor eax, eax
push eax
lea ecx, [ebp - 0x38]
call fcn.0040f73d
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x417cdc
call fcn.0040b0bb
push 1
pop edi
push dword [ebp + 0xc]
call sub.MFC42.DLL_operatordelete
pop ecx
jmp 0x417d06
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.0040f589
mov dword [ebp - 0x14], edi
jmp 0x417d18
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.0040f589
or dword [ebp - 0x14], edi
cmp dword [ebp - 0x28], ebx
mov byte [ebp - 4], bl
je 0x417d29
push dword [ebp - 0x28]
call sub.MFC42.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4181ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x418269
cmp byte [edi], bl
je 0x418269
cmp dword [ebp + 8], ebx
je 0x418269
mov dword [ebp - 4], ebx
call fcn.0041849a
test al, al
mov eax, dword [0x421500]
jne 0x41821a
mov eax, dword [0x4214f8]
lea ecx, [ebp - 4]
push esi
push ecx
lea ecx, [ebp + 0xc]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x418264
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x41826b
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x41826f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x4299b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x418298
push 3
pop eax
leave
ret
push esi
lea eax, [ebp - 0x108]
push 0x4281ec
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
xor esi, esi
push eax
lea eax, [ebp - 0x314]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x314]
push 0x429994
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x314]
push eax
call fcn.004183bb
add esp, 0x1c
test al, al
je 0x4182e6
push 1
pop esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x520]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x520]
push 0x429974
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x520]
push eax
call fcn.004183bb
add esp, 0x14
test al, al
je 0x41831e
inc esi
xor eax, eax
test esi, esi
setne al
pop esi
leave
ret

Function at 0x41849a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4184ea
cmp dword [ebp - 0x84], 2
jne 0x4184ea
cmp dword [ebp - 0x90], 6
jb 0x4184ea
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x4184ee
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x429ea8
push esi
call edi
mov ebp, 0x94
xor ebx, ebx
push ebp
lea eax, [esp + 0x14]
push ebx
push eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x70], bl
mov byte [esi + 0x71], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41864a
mov eax, dword [esp + 0x14]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x41856a
mov byte [esi + 0x70], 1
push 1
pop ebp
cmp eax, ebp
jne 0x418575
mov byte [esi + 0x70], 2
cmp eax, 2
jne 0x41857e
mov byte [esi + 0x70], 3
push 0x429220
push esi
call edi
cmp dword [esi + 0x64], 3
jne 0x41859e
cmp dword [esi + 0x68], 0x33
jne 0x41859e
push 0x429a34
push esi
call edi
mov byte [esi + 0x71], 5
cmp dword [esi + 0x64], 4
jne 0x4185f1
cmp dword [esi + 0x68], ebx
jne 0x4185cd
cmp byte [esi + 0x70], 2
jne 0x4185bb
push 0x429a28
push esi
call edi
mov byte [esi + 0x71], 2
cmp byte [esi + 0x70], 3
jne 0x4185cd
push 0x429a18
push esi
call edi
mov byte [esi + 0x71], 6
cmp dword [esi + 0x68], 0xa
jne 0x4185df
push 0x429a0c
push esi
call edi
mov byte [esi + 0x71], 3
cmp dword [esi + 0x68], 0x5a
jne 0x4185f1
push 0x429a00
push esi
call edi
mov byte [esi + 0x71], 4
cmp dword [esi + 0x64], 5
jne 0x41862b
cmp dword [esi + 0x68], ebx
jne 0x418608
push 0x4299f0
push esi
call edi
mov byte [esi + 0x71], 7
cmp dword [esi + 0x68], ebp
jne 0x418619
push 0x4299d8
push esi
call edi
mov byte [esi + 0x71], 8
cmp dword [esi + 0x68], 2
jne 0x41862b
push 0x4299c8
push esi
call edi
mov byte [esi + 0x71], 9
cmp dword [esi + 0x64], 6
jne 0x418648
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x41863c
cmp eax, ebp
jne 0x418648
push 0x4299b8
push esi
call edi
mov byte [esi + 0x71], 0xa
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x418655
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x4186e1
cmp byte [eax], bl
je 0x4186e1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4186dd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
mov dword [ebp - 8], eax
je 0x4186e1
cmp eax, 3
je 0x4186e1
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call esi
cmp eax, 2
je 0x4186e1
cmp dword [ebp - 4], 0xffffffff
je 0x4186ba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp + 0xc], bl
je 0x4186d8
push dword [ebp + 8]
call fcn.004186e8
movzx eax, al
cmp eax, ebx
pop ecx
jne 0x4186e4
or eax, 0xffffffff
jmp 0x4186e4
xor eax, eax
jmp 0x4186e4
push 2
pop eax
pop esi
pop ebx
leave
ret
Function at 0x41895a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x10]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4189b2
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4189a9
mov bl, 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ebp
ret
Function at 0x418cea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 8]
mov ebx, 0x400
lea eax, [ebp - 0x460]
mov esi, 0x429ea8
push ebx
push eax
push esi
push 0x4280e0
push 0x427624
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x418d38
mov al, 1
jmp 0x418ef0
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push ebx
push eax
push esi
push 0x429b1c
push 0x427624
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x418d31
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push ebx
push eax
push esi
push 0x429b14
push 0x42762c
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x418d31
lea eax, [ebp - 0x20]
push 0x42887c
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x20]
push 0x428738
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20]
push 0x428734
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20]
push 0x428730
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x60]
push 0x4292e4
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x60]
push 0x4292e0
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x60]
push 0x428734
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x60]
push 0x428730
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x40
lea eax, [ebp - 0x460]
push dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x20]
push esi
push eax
push 0x427624
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x418d31
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push ebx
push eax
push esi
lea eax, [ebp - 0x20]
push 0x429b1c
push eax
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x418d31
lea eax, [ebp - 0x40]
push 0x42887c
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x40]
push 0x429b10
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x40]
push 0x429b0c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x40]
push 0x429b08
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
lea eax, [ebp - 0x460]
push dword [ebp + 8]
push ebx
push eax
push esi
lea eax, [ebp - 0x40]
push 0x429b14
push eax
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x418d31
push dword [ebp + 8]
lea eax, [ebp - 0x460]
push ebx
push eax
lea eax, [ebp - 0x60]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x460]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
setne al
pop edi
pop esi
pop ebx
leave
ret