joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411800
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x4a8ae4]
push edi
mov edi, dword [ebp + 8]
push edi
push str.CNTService::Handler__lu_
call fcn.0040acd0
lea eax, [edi - 1]
add esp, 8
cmp eax, 4
ja case.default.0x41182b
jmp dword [eax*4 + 0x411958]
push 3
mov ecx, esi
call fcn.00411550
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x411869
lea eax, [esi + 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x411884
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push edi
push 0x6c
push edi
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, 0x4a87a8
call fcn.00416110
jmp 0x41192b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
jmp 0x41192b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x41192b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
jmp 0x41192b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov dword [esi + 0x54], 1
jmp 0x41192b
cmp edi, 0x80
jb 0x4118f0
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
jne 0x41192b
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x411910
lea eax, [esi + 4]
push eax
jmp 0x411906
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jne 0x411910
lea edx, [esi + 4]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x41192b
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push edi
push 0x6a
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x4c]
push edx
push eax
push str.Updating_status___lu___lu_
call fcn.0040acd0
mov edx, dword [esi + 0x4c]
add esp, 0xc
lea ecx, [esi + 0x50]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4119f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.CNTService::cleanup__
mov esi, ecx
call fcn.0040acd0
add esp, 4
add esi, 0x74
mov ebx, 0x14
lea ecx, [ecx]
mov eax, dword [esi]
test eax, eax
je 0x411a4f
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411a40
cmp dword [ebp - 4], 0x103
jne 0x411a40
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 8
dec ebx
jne 0x411a10
mov ecx, 0x4a87a8
call fcn.00416110
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Access the windows event log
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push 6
push 0
mov ebx, ecx
push 0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x411b1f
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x124]
push ecx
push 1
push 2
push 0x110
push 0x10
add ebx, 4
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x411b27
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [ebp - 0x224]
mov eax, ebx
mov dword [ebp - 4], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b45
lea edi, [ebp - 0x224]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411b55
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x224]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x411ba2
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x124]
lea edx, [eax + 1]
jmp 0x411bb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411bb0
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x124]
push eax
push 2
xor edi, edi
push edi
push str.EventMessageFile
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push edi
push str.TypesSupported
push eax
mov dword [ebp - 0x10], 7
call esi
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp ebx, edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
je 0x411c11
mov esi, 1
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x411c27
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x411c46
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push esi
push 0
push 0x64
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411c70
Capabilities:
Access the windows event log
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 4
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x411c95
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea esi, [edi + 4]
push esi
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x411d52
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov eax, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
je 0x411d0f
cmp eax, ebx
je 0x411cd8
mov dword [ebp - 4], 1
cmp dword [edi + 0x6c], ebx
jne 0x411ce8
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov edi, dword [edi + 0x6c]
cmp edi, ebx
je 0x411d06
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ecx
push ebx
push 0x65
push ebx
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [ebp - 8], 1
jmp 0x411d48
cmp eax, ebx
je 0x411d1a
mov dword [ebp - 4], 1
cmp dword [edi + 0x6c], ebx
jne 0x411d2a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov edi, dword [edi + 0x6c]
cmp edi, ebx
je 0x411d48
mov eax, dword [ebp - 4]
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ebx
push 0x66
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x411da0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x411e89
push str.FAILURE:_HandlerEx:_Failed_to_create_thread.
call fcn.0040acd0
add esp, 4
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x412630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
test eax, eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], 0
jbe 0x4126ae
push ebx
push esi
mov esi, dword [ebp + 0xc]
add esi, 4
mov dword [ebp - 4], eax
mov ebx, 4
lea eax, [ebp + 0x14]
push eax
mov eax, dword [esi - 4]
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412695
cmp dword [ebp + 0x14], ebx
jne 0x412695
cmp dword [ebp + 0x10], 1
jne 0x4126a0
mov edx, dword [esi]
or dword [edi], edx
jmp 0x4126a0
mov eax, dword [esi + 4]
test eax, eax
je 0x4126a0
mov eax, dword [esi]
or dword [edi], eax
mov eax, dword [ebp - 4]
add esi, 0xc
dec eax
mov dword [ebp - 4], eax
jne 0x412657
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 4], 0
call fcn.00413070
mov esi, eax
test esi, esi
jne 0x413579
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x108]
push eax
push ecx
xor eax, eax
call fcn.00413340
add esp, 8
test eax, eax
pop edi
jne 0x413611
push eax
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebx + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push esi
call fcn.00413170
add esp, 0x24
test eax, eax
je 0x4135d1
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x413605
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.00413070
mov ebx, eax
test ebx, ebx
je 0x413799
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push esi
xor eax, eax
call fcn.00413340
add esp, 8
test eax, eax
pop edi
jne 0x4137e3
lea ecx, [ebp - 4]
push ecx
push 1
push eax
lea edx, [ebp - 0x108]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4137a4
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4137d7
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4137d7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4137f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 4], 0
call fcn.00413070
mov esi, eax
test esi, esi
jne 0x413819
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
call fcn.00413740
add esp, 8
test eax, eax
jne 0x4138f4
push edi
mov ecx, 0x41
lea edi, [ebp - 0x10c]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc]
lea edx, [ebp - 0x10c]
push edx
push eax
xor eax, eax
call fcn.00413340
add esp, 8
test eax, eax
jne 0x4138f3
mov edx, dword [ebx + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push eax
push eax
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00413170
add esp, 0x24
test eax, eax
je 0x413888
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
je 0x4138a9
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push esi
lea ecx, [ebx + 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4138db
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4138f1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x413a70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.00413070
mov ebx, eax
test ebx, ebx
jne 0x413a94
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.00413740
add esp, 8
test eax, eax
jne 0x413b1a
push edi
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
push esi
xor eax, eax
call fcn.00413340
add esp, 8
test eax, eax
pop edi
jne 0x413b1a
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
lea edx, [ebp - 0x108]
push edx
push ebx
call fcn.00413170
add esp, 0x24
test eax, eax
jne 0x413b03
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x413b0e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413ea0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x108]
lea ebx, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov eax, esi
sub ebx, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x413ec8
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.00413df0
add esp, 0x10
test eax, eax
jne 0x413fc0
lea edi, [ebp - 0x108]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413f10
mov dx, word [0x47511c]
lea eax, [ebp - 0x20c]
mov word [edi], dx
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413f30
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413f40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00413ea0
add esp, 4
test eax, eax
jne 0x414074
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
nop
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x413f80
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea edx, [ebp - 0x108]
push edx
call fcn.00413df0
add esp, 0x10
test eax, eax
je 0x413f06
mov esi, dword [ebp + 8]
call fcn.00413070
mov esi, eax
test esi, esi
jne 0x413fd7
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x310]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x310]
call fcn.00413340
add esp, 8
test eax, eax
jne 0x414074
push eax
push edi
call fcn.00413740
add esp, 8
test eax, eax
jne 0x414074
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
lea edx, [ebp - 0x20c]
push edx
push esi
call fcn.00413170
add esp, 0x24
test eax, eax
jne 0x41405c
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x310]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x414068
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ac00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov eax, 4
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [ebp - 0x11c]
push str.Selected_
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00416990
mov eax, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41ac50
lea edi, [ebp - 0x11c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41ac62
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
lea edx, [ebp - 0x11c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [ebp - 0xc]
jne 0x41ad06
test dword [esi + 0x28], 0x1000000
je 0x41accc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.UsedBySelectedProfile
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41accc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41ace7
mov edx, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x11c]
push ecx
push edi
push edx
mov ecx, esi
call fcn.0041ab10
mov ebx, eax
test ebx, ebx
jne 0x41acee
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 4], 0
je 0x41ad58
test dword [esi + 0x28], 0x1000000
je 0x41ad58
lea ecx, [ebp - 0x11c]
push 0x2d
push ecx
call fcn.004616e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41ad58
mov bl, byte [esi + 1]
mov ecx, dword [ebp + 8]
test bl, bl
setne dl
dec dl
push 1
lea eax, [ebp - 0x11c]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0xc]
and edx, 0x31
mov byte [esi + 1], dl
call fcn.0041ab10
pop edi
mov byte [esi + 1], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x422fd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
cmp byte [ebx], 0
jne 0x423119
call fcn.0044f640
cmp eax, 6
jge 0x423026
mov ax, word [0x480a40]
mov esi, dword [ebp + 0xc]
mov word [ebx], ax
mov cl, byte [0x480a42]
mov byte [ebx + 2], cl
push str..txt
push esi
push 0x480a40
jmp 0x423137
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x423061
mov eax, dword [ebp + 0x14]
test eax, eax
mov esi, dword [ebp + 0xc]
push str..txt
je 0x42301b
mov eax, dword [0x49b704]
push eax
push esi
push 0x480a40
lea ecx, [ebp - 0x104]
push str._s_s__d_s
push ecx
call fcn.00460f01
add esp, 0x18
jmp 0x42314b
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp + 0x18], esi
jne 0x423098
lea eax, [ebp + 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x423098
push str.OpenProcessToken_Failed
call fcn.004113d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x304], 0
mov ecx, 0x7f
lea edi, [ebp - 0x302]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x304]
stosw word es:[edi], ax
mov eax, dword [ebp + 0x18]
push edx
push eax
mov dword [ebp - 4], 0x100
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x4230ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.pFuncGetUserProfileDirectory_Failed
call fcn.004113d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x100
push ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x304]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
jne 0x423119
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
test eax, eax
mov esi, dword [ebp + 0xc]
push str..txt
je 0x423135
mov eax, dword [0x49b704]
push eax
push esi
push ebx
jmp 0x423048
push esi
push ebx
lea edx, [ebp - 0x104]
push str._s_s_s
push edx
call fcn.00460f01
add esp, 0x14
push 6
push str.Pollog
push esi
call fcn.00461fe2
add esp, 0xc
test eax, eax
jne 0x423173
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x423173
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x104]
push ecx
call fcn.00410cf0
push 6
call fcn.00410d20
push str.EXIT_SetLogFileInfo
call fcn.004113d0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret