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

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [0x49368c]
push edi
mov edi, dword [esp + 0x18]
push edi
push str.CNTService::Handler__lu_
call fcn.0040aab0
lea eax, [edi - 1]
add esp, 8
cmp eax, 4
ja case.default.0x4114a9
jmp dword [eax*4 + 0x4115e0]
push 3
mov ecx, esi
call fcn.004111d0
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 [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x4114ea
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 0x411506
push edi
lea ecx, [esp + 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, 0x491400
call fcn.00415a10
jmp 0x4115b4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
jmp 0x4115b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x4115b4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
jmp 0x4115b4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov dword [esi + 0x54], 1
jmp 0x4115b4
cmp edi, 0x80
jb 0x411575
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
jne 0x4115b4
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x411598
lea eax, [esi + 4]
push eax
jmp 0x41158e
mov eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jne 0x411598
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 0x4115b4
push edi
lea ecx, [esp + 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.0040aab0
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
add esp, 0xc
ret 4
Function at 0x411740
Capabilities:
Access the windows event log
Create service
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x224
push ebp
push esi
push 6
push 0
mov ebp, ecx
push 0
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4117ab
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push 1
push 2
push 0x110
push 0x10
add ebp, 4
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4117b6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x224
ret
push edi
mov ecx, 0xe
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea edi, [esp + 0x130]
mov eax, ebp
mov dword [esp + 0xc], 0
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4117d6
lea edi, [esp + 0x130]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4117e7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x134]
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 0x41183b
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x224
ret
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411842
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x30]
push eax
push 2
push 0
push str.EventMessageFile
push ecx
call esi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x30], 7
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
xor esi, esi
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
je 0x4118b3
mov esi, 1
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x4118ca
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4118ea
push 0
lea edx, [esp + 0x24]
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 [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x224
ret
Function at 0x411910
Capabilities:
Access the windows event log
Delete service

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
push 4
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
jne 0x411937
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
push esi
push 0x10000
lea esi, [edi + 4]
push esi
push ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4119f6
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor ebp, ebp
test eax, eax
mov eax, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
je 0x4119b2
cmp eax, ebx
je 0x41197c
mov ebp, 1
cmp dword [edi + 0x6c], ebx
jne 0x41198c
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 0x4119a8
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push ebx
push 0x65
push ebx
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [esp + 0x10], 1
jmp 0x4119e7
cmp eax, ebx
je 0x4119bb
mov ebp, 1
cmp dword [edi + 0x6c], ebx
jne 0x4119cb
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 0x4119e7
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push ebx
push 0x66
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x411af0
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0
push ecx
push 0x411a40
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x411b26
push str.FAILURE:_HandlerEx:_Failed_to_create_thread.
call fcn.0040aab0
add esp, 4
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4122b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
push edi
mov edi, dword [esp + 0x1c]
mov dword [edi], 0
jbe 0x412345
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
add esi, 4
mov dword [esp + 0x10], eax
mov ebx, 4
lea ecx, [ecx]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi - 4]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412325
cmp dword [esp + 0x28], ebx
jne 0x412325
cmp dword [esp + 0x24], 1
jne 0x412334
mov ecx, dword [esi]
mov eax, dword [edi]
or eax, ecx
jmp 0x412332
mov eax, dword [esi + 4]
test eax, eax
je 0x412334
mov edx, dword [esi]
mov eax, dword [edi]
or eax, edx
mov dword [edi], eax
mov eax, dword [esp + 0x10]
add esi, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x4122e0
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x413210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
mov esi, dword [ebx + 0xc]
push edi
mov dword [esp + 0xc], 0
call fcn.00412d50
mov esi, eax
test esi, esi
jne 0x41323f
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x10]
push eax
xor eax, eax
call fcn.00413010
add esp, 4
test eax, eax
jne 0x4132d1
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00412e40
add esp, 0x24
test eax, eax
je 0x41328d
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4132c4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00412d50
mov ebx, eax
test ebx, ebx
je 0x413467
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, esi
call fcn.00413010
add esp, 4
test eax, eax
jne 0x4134b6
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413473
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4134a9
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4134a9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
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 0x4134c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
mov esi, dword [ebx + 0xc]
push edi
mov dword [esp + 8], 0
call fcn.00412d50
mov esi, eax
test esi, esi
jne 0x4134ef
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
call fcn.00413410
add esp, 8
test eax, eax
jne 0x4135ca
mov ecx, 0x41
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
push edx
call fcn.00413010
add esp, 4
test eax, eax
jne 0x4135ca
mov ecx, dword [ebx + 8]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00412e40
add esp, 0x24
test eax, eax
je 0x413559
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
je 0x41357b
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, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
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 0x4135b0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4135c8
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413750
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00412d50
mov ebx, eax
test ebx, ebx
jne 0x413779
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call fcn.00413410
add esp, 8
test eax, eax
jne 0x4137fd
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, esi
call fcn.00413010
add esp, 4
test eax, eax
jne 0x4137fd
push eax
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
push eax
push eax
push eax
lea edx, [esp + 0x2c]
push edx
push ebx
call fcn.00412e40
add esp, 0x24
test eax, eax
jne 0x4137e4
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4137f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
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 0x4167c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
mov eax, 4
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [esp + 0x28]
push str.Selected_
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
call fcn.00416280
mov eax, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x416812
lea edi, [esp + 0x28]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416822
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, [esp + 0x10]
push ecx
push 0x2001f
push 0
lea edx, [esp + 0x34]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [esp + 0x18]
jne 0x4168cd
test dword [esi + 0x28], 0x1000000
je 0x416891
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.UsedBySelectedProfile
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416891
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4168aa
mov edx, dword [ebp + 8]
push 1
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov ecx, esi
call fcn.004166b0
mov ebx, eax
test ebx, ebx
jne 0x4168b2
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], 0
je 0x41691c
test dword [esi + 0x28], 0x1000000
je 0x41691c
lea ecx, [esp + 0x28]
push 0x2d
push ecx
call fcn.0045f340
mov esi, eax
add esp, 8
test esi, esi
je 0x41691c
mov bl, byte [esi + 1]
mov ecx, dword [ebp + 8]
test bl, bl
setne dl
dec dl
push 1
lea eax, [esp + 0x2c]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x28]
and edx, 0x31
mov byte [esi + 1], dl
call fcn.004166b0
mov byte [esi + 1], bl
pop edi
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 0x422870
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
cmp byte [ebx], 0
jne 0x4229c2
call fcn.0044e780
cmp eax, 6
jge 0x4228c7
mov ax, word [0x478488]
mov esi, dword [ebp + 0xc]
mov word [ebx], ax
mov cl, byte [0x47848a]
mov byte [ebx + 2], cl
push str..txt
push esi
push 0x478488
jmp 0x4229e0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x422900
mov eax, dword [ebp + 0x14]
test eax, eax
mov esi, dword [ebp + 0xc]
push str..txt
je 0x4228bc
mov eax, dword [0x491164]
push eax
push esi
push 0x478488
lea ecx, [esp + 0x28]
push str._s_s__d_s
push ecx
call fcn.0045ebd9
add esp, 0x18
jmp 0x4229f2
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x10], esi
jne 0x422939
lea eax, [esp + 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x422939
push str.OpenProcessToken_Failed
call fcn.00411050
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esp + 0x118], 0
mov ecx, 0x7f
lea edi, [esp + 0x11a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
stosw word es:[edi], ax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x20], 0x100
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x422995
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.pFuncGetUserProfileDirectory_Failed
call fcn.00411050
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x100
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x12c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
jne 0x4229c2
mov edx, dword [esp + 0x10]
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 0x4229de
mov eax, dword [0x491164]
push eax
push esi
push ebx
jmp 0x4228e9
push esi
push ebx
lea edx, [esp + 0x24]
push str._s_s_s
push edx
call fcn.0045ebd9
add esp, 0x14
push 6
push str.Pollog
push esi
call fcn.0045fc11
add esp, 0xc
test eax, eax
jne 0x422a18
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x422a18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
call fcn.00410970
push 6
call fcn.004109a0
push str.EXIT_SetLogFileInfo
call fcn.00411050
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422a50
Capabilities:
Get token membership

Disassembly:
sub esp, 0x28
mov eax, dword [0x491098]
push ebx
xor ebx, ebx
cmp eax, 4
mov dword [esp + 0x10], ebx
jae 0x422a6b
xor eax, eax
pop ebx
add esp, 0x28
ret
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0x28], 0x220
mov dword [esp + 0x2c], 0x222
mov dword [esp + 0x30], 0x221
mov dword [esp + 0x34], 0x223
mov dword [esp + 0x18], ebx
xor esi, esi
mov edi, edi
mov ecx, dword [esp + esi*4 + 0x28]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x20
push 2
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 5
call edi
test eax, eax
je 0x422b21
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
mov dword [esp + 0x20], ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x422af8
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0x14], ebx
je 0x422b2e
mov eax, dword [esp + esi*4 + 0x28]
pop edi
add eax, 0xfffffde0
cmp eax, 3
pop esi
pop ebp
ja case.default.0x422b1a
jmp dword [eax*4 + 0x422b70]
push str.GetUserType._Failed_to_AllocateAndInitializeSid
call fcn.00411050
add esp, 4
inc esi
cmp esi, 4
jb 0x422aa0
mov eax, dword [esp + 0x18]
jmp 0x422b0d
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, 2
pop ebx
add esp, 0x28
ret
mov eax, 3
pop ebx
add esp, 0x28
ret
mov eax, 4
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x10]
pop ebx
add esp, 0x28
ret

Function at 0x422d00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x422da4
cmp byte [eax], 0
je 0x422da4
lea ecx, [esp + 4]
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422da4
push esi
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.SGCountDown
push edx
mov dword [esp + 0x24], 4
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x422d8f
cmp dword [esp + 0x14], 4
jne 0x422d8f
mov eax, dword [esp + 4]
push eax
push str.GetSGCountDown__SGCountDown___d_n
mov dword [esi], eax
call fcn.0040aab0
add esp, 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret