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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3e8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
mov dword [ebp - 0x138], eax
cmp dword [ebp + 0x10], edi
jle 0x4bc066
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x138]
push 0
push edi
push 0x101d
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0xc]
push edi
push ecx
lea edx, [ebp - 0x18]
push str.Column_d_d
push edx
mov esi, eax
call ebx
push esi
lea eax, [ebp - 0x28]
push 0x4e8d64
push eax
call ebx
mov eax, dword [0x4f8b7c]
add esp, 0x1c
lea ecx, [ebp - 0x130]
push ecx
mov esi, eax
or eax, 0xf003f
push eax
push 0
push str.SoftwareBillP_StudiosWinPatrolOptions
push 0x80000001
mov dword [0x4f8b7c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4bbfce
mov ecx, dword [0x4f8b7c]
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x134]
push eax
push 0
push ecx
push 0
push 0
push 0
push str.SoftwareBillP_StudiosWinPatrolOptions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4bc015
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4f8b7c]
lea edx, [ebp - 0x130]
push edx
push eax
push 0
push str.SoftwareBillP_StudiosWinPatrolOptions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x130]
inc eax
push eax
lea edx, [ebp - 0x28]
push edx
push 1
push 0
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x130]
push edx
test eax, eax
je 0x4bc050
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x18]
push eax
push str.SoftwareBillP_StudiosWinPatrolOptions
push str.RegSetValueEx___FAIL__key_s_s_gwsflag_x_
jmp 0x4bc024
push esi
lea eax, [ebp - 0x18]
push eax
push str.SoftwareBillP_StudiosWinPatrolOptions
push str.RegOpenKeyEx___FAIL__key_s_s_gwsflag_x_
lea ecx, [ebp - 0x12c]
push 0x100
push ecx
mov dword [0x4f8b7c], esi
call fcn.00402ee0
push str.SetRegValue
lea esi, [ebp - 0x12c]
call fcn.0047da70
add esp, 0x1c
jmp 0x4bc05c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x4f8b7c], esi
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x4bbf0c
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4bd6c0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a4
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0x3a0], eax
cmp dword [0x506e0c], 0
push ebx
push esi
push edi
push 0x104
lea ecx, [esp + 0x14]
mov edx, CreateStatusWindowA
push str.Common_Programs
je 0x4bd700
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionexplorerShell_Folders
jmp 0x4bd705
push str.SOFTWAREMicrosoftWindowsCurrentVersionexplorerShell_Folders
call fcn.004bff10
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
push 0x4ec25c
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.WinPatrol.lnk
lea eax, [esp + 0x11c]
push eax
call esi
lea ecx, [esp + 0x118]
push ecx
lea edi, [esp + 0x224]
lea ebx, [esp + 0x2a4]
call fcn.004c6360
add esp, 4
push 1
push 0
push 0
lea edx, [esp + 0x1c]
push 0x486eb0
push edx
mov dword [0x5060a8], 9
call fcn.00486cb0
add esp, 0x14
lea ebx, [esp + 0x10]
call fcn.0047b990
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4bff10
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x80c]
push eax
push 0x20019
push 0
mov esi, edx
mov edx, dword [0x4f8b78]
push edi
push esi
mov dword [ebp - 0x808], ecx
mov dword [ebp - 0x814], edx
mov byte [ebp - 0x404], 0
mov byte [ebp - 0x804], 0
mov dword [0x4f8b78], 0x20019
call ebx
test eax, eax
je 0x4bffcb
mov eax, dword [0x4f8b78]
lea ecx, [ebp - 0x80c]
push ecx
or eax, 0x100
push eax
push 0
push edi
push esi
mov dword [0x4f8b78], eax
call ebx
test eax, eax
je 0x4bffcb
mov edx, dword [ebp - 0x808]
push 0x4e27f8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x814]
pop edi
pop esi
mov dword [0x4f8b78], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x814]
lea edx, [ebp - 0x81c]
push edx
mov edx, dword [ebp - 0x818]
lea eax, [ebp - 0x404]
push eax
mov eax, dword [ebp - 0x80c]
mov dword [0x4f8b78], ecx
lea ecx, [ebp - 0x810]
push ecx
push 0
push edx
push eax
mov dword [ebp - 0x81c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4c0042
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x808]
push 0x4e27f8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x810], 2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x4c007a
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x804]
push ecx
call edi
push 0x3ff
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp dword [ebp - 0x810], 4
jne 0x4c008a
mov byte [ebp - 0x404], 0
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jle 0x4c00cc
mov eax, dword [ebp - 0x808]
push 0x4e27f8
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x808]
lea ecx, [ebp - 0x404]
push ecx
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4c00f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jge 0x4c011f
mov esi, str.NULL
push str.RegDeleteValue_FALSE
call fcn.0047da70
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x506e0c], 0
je 0x4c01d6
lea eax, [esp + 4]
push eax
push 0xf023f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c0181
mov ecx, dword [esp + 4]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4c0176
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegDeleteValue_KEY_WOW64_32KEY_TRUE
call fcn.0047da70
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
push ecx
push 0xf013f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c022f
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4c01cf
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegDeleteValue_KEY_WOW64_64KEY_TRUE
call fcn.0047da70
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 4]
push ecx
jmp 0x4c0229
mov eax, dword [0x4f8b7c]
lea edx, [esp + 4]
push edx
or eax, 2
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c022f
mov ecx, dword [esp + 4]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4c0224
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegDeleteValue_KEY_SET_VALUE_TRUE
call fcn.0047da70
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegDeleteValue_FALSE
call fcn.0047da70
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c0250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x110], eax
mov eax, dword [0x4f8b7c]
mov edi, edx
lea edx, [ebp - 0x10c]
push edx
mov ebx, eax
or eax, 0xf003f
push eax
push 0
push esi
push edi
mov dword [ebp - 0x118], ecx
mov dword [0x4f8b7c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c02ef
mov edx, dword [0x4f8b7c]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
push edx
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c033e
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4f8b7c]
lea eax, [ebp - 0x10c]
push eax
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [ebp - 0x118]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x10c]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x110]
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4c0389
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
push esi
push str.RegSetValueEx___FAIL__key_s_s_gwsflag_x_
push 0x100
lea ecx, [ebp - 0x108]
push ecx
jmp 0x4c0358
mov ecx, dword [ebp - 0x110]
push ebx
push ecx
push esi
push str.RegOpenKeyEx___FAIL__key_s_s_gwsflag_x_
push 0x100
lea edx, [ebp - 0x108]
push edx
mov dword [0x4f8b7c], ebx
call fcn.00402ee0
push str.SetRegValue
lea esi, [ebp - 0x108]
call fcn.0047da70
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x4f8b7c], ebx
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4c0450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4f8b7c]
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ecx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c04c0
mov edi, str.MyError:__SetRegDWORDValue_RegOpenKeyEx
call fcn.004cad00
mov ecx, dword [0x4f8b7c]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0
push ecx
push 0
push 0
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c04e8
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov ecx, dword [0x4f8b7c]
lea eax, [ebp - 4]
push eax
push ecx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4c04c6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4c04ef
mov edx, dword [ebp - 4]
push edx
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call edi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4c0550
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe14
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x200
lea eax, [ebp - 0xa0c]
push eax
mov esi, ecx
push 0x4e27f8
push esi
push str.windows
mov dword [ebp - 0xe14], esi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
lea ecx, [ebp - 0xa0c]
push 0x4e2ca4
xor ebx, ebx
push ecx
mov byte [ebp - 0xe0c], bl
call fcn.004d10d2
mov edx, eax
add esp, 8
mov dword [ebp - 0xe10], edx
cmp edx, ebx
je 0x4c0742
push edi
jmp 0x4c05c6
mov edx, dword [ebp - 0xe10]
lea eax, [ebp - 0x308]
mov ecx, eax
xor edi, edi
mov esi, 0x304
sub edx, ecx
jmp 0x4c05e0
lea ecx, [esi + 0x7ffffcfa]
test ecx, ecx
je 0x4c05f9
mov cl, byte [edx + eax]
cmp cl, bl
je 0x4c05f9
mov byte [eax], cl
inc eax
dec esi
jne 0x4c05e0
jmp 0x4c05fd
cmp esi, ebx
jne 0x4c0603
dec eax
mov edi, 0x8007007a
mov byte [eax], bl
cmp edi, ebx
jl 0x4c06fb
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60c]
mov ecx, eax
xor edi, edi
mov esi, 0x304
sub edx, ecx
lea ecx, [esi + 0x7ffffcfa]
test ecx, ecx
je 0x4c063a
mov cl, byte [edx + eax]
cmp cl, bl
je 0x4c063a
mov byte [eax], cl
inc eax
dec esi
jne 0x4c0621
jmp 0x4c063e
cmp esi, ebx
jne 0x4c0644
dec eax
mov edi, 0x8007007a
mov byte [eax], bl
cmp edi, ebx
jl 0x4c06fb
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x308]
push edx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4c0673
mov word [ebp - 0x308], 0x20
mov esi, 1
jmp 0x4c0681
push esi
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
lea ecx, [ebp - 0x60c]
push ecx
call edi
mov edi, eax
cmp edi, ebx
jne 0x4c06a0
mov word [ebp - 0x60c], 0x20
mov edi, 1
jmp 0x4c06ae
push edi
lea edx, [ebp - 0x60c]
push edx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
xor ecx, ecx
cmp edi, esi
jle 0x4c06c0
or ecx, 0xffffffff
mov byte [ebp + esi - 0x60c], bl
jmp 0x4c06d6
jge 0x4c06d2
mov ecx, 1
mov esi, edi
mov byte [ebp + edi - 0x308], bl
jmp 0x4c06d6
cmp esi, edi
jne 0x4c06fb
xor eax, eax
cmp esi, ebx
jle 0x4c06f5
lea esp, [esp]
mov dl, byte [ebp + eax - 0x308]
cmp dl, byte [ebp + eax - 0x60c]
jne 0x4c06fb
inc eax
cmp eax, esi
jl 0x4c06e0
cmp ecx, ebx
jg 0x4c06fb
jge 0x4c071f
mov eax, dword [ebp - 0xe10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
lea ecx, [ebp - 0xe0c]
push ecx
call esi
push 0x4e2ca4
lea edx, [ebp - 0xe0c]
push edx
call esi
push 0x4e2ca4
push ebx
call fcn.004d10d2
add esp, 8
mov dword [ebp - 0xe10], eax
cmp eax, ebx
jne 0x4c05c0
mov esi, dword [ebp - 0xe14]
pop edi
push 0x80
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.win.ini
lea ecx, [ebp - 0xa0c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0xa0c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xe0c]
push ecx
push esi
push str.windows
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4c07b0
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x4e27f8
push esi
push str.windows
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
push 0x4e2ca4
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
lea edx, [ebp - 0x404]
push edx
mov dword [ebp - 0x808], eax
call ebx
mov ecx, dword [ebp - 0x808]
add ecx, eax
pop ebx
cmp ecx, 0x400
jge 0x4c082a
push edi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x200
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.win.ini
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x404]
push edx
push esi
push str.windows
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4c1270
Capabilities:
Get session user name
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 9
mov esi, str.Windows_Registry_Editor_Version_5.00
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 8
mov esi, str.SoftwareBillP_StudiosWinPatrol
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 5
mov esi, str.SOFTWAREBillP_Studios
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x170]
mov dword [ebp - 0x914], 0xe4
call fcn.0047c070
lea eax, [ebp - 0x914]
push eax
lea ecx, [ebp - 0x478]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4e28bc
mov edx, edi
push edx
call esi
lea eax, [ebp - 0x478]
push eax
mov ecx, edi
push ecx
call esi
push str._WinPatrol.reg
mov edx, edi
push edx
call esi
push 0x1041
lea eax, [ebp - 0x910]
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c1336
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x370]
push str._s_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x918]
push ecx
lea edx, [ebp - 0x370]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x370]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebp - 0x40]
mov ebx, 0x80000001
call fcn.004c1420
lea esi, [ebp - 0x1c]
mov ebx, CreateStatusWindowA
call fcn.004c1420
push 0x200
lea edx, [ebp - 0x370]
mov ecx, 0x356
call fcn.004ca1e0
lea ecx, [ebp - 0x580]
add esp, 4
push ecx
lea ebx, [ebp - 0x170]
call fcn.0047dcc0
add esp, 4
lea edx, [ebp - 0x580]
push edx
lea eax, [ebp - 0x370]
push eax
lea ecx, [ebp - 0x888]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
movzx edx, word [0x5062f0]
add esp, 0xc
push edx
push 0x40040
push 0x5016f0
lea eax, [ebp - 0x888]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x4c16d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x213]
push ebx
push ecx
mov dword [ebp - 0x62c], eax
mov edi, edx
mov dword [ebp - 0x618], 0xffffffff
mov byte [ebp - 0x214], 0
call fcn.004d29c0
add esp, 0xc
lea edx, [ebp - 0x61c]
push edx
push 0x20019
push ebx
push edi
push esi
mov dword [ebp - 0x630], 0x104
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x620], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c18c3
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x63c]
push edx
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 0x640]
push edx
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x634]
push ecx
mov ecx, dword [ebp - 0x61c]
push ebx
lea edx, [ebp - 0x630]
push edx
lea eax, [ebp - 0x214]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x624], ebx
je 0x4c18b6
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, 0xff
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x628], eax
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x614]
push eax
mov eax, dword [ebp - 0x61c]
push 0
push 0
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x10c]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [ebp - 0x620]
mov edx, ecx
inc ecx
inc ebx
mov dword [ebp - 0x620], ecx
cmp edx, dword [ebp - 0x624]
ja 0x4c18b6
cmp eax, 0x103
je 0x4c18b6
test eax, eax
jne 0x4c17b4
lea eax, [ebp - 0x10c]
push eax
call esi
test eax, eax
jne 0x4c183d
push 0x4f1b28
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x414]
push edx
lea edi, [ebp - 0x10c]
call fcn.004c18e0
lea eax, [ebp - 0x514]
push eax
lea edi, [ebp - 0x614]
call fcn.004c18e0
lea ecx, [ebp - 0x514]
push ecx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x314]
push str.__s___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x314]
push edx
call esi
mov ecx, dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x314]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x618]
jmp 0x4c17b4
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x618]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret