joyce8/EMBER2024-capa huggingface dataset:
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 [0x47208c]
test eax, eax
je 0x414068
mov edx, dword [ebp - 4]
push edx
call dword [0x47207c]
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [0x47207c]
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 [0x472074]
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 [0x472078]
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 [0x47207c]
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:
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 [0x472218]
push eax
call dword [0x472094]
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 [0x4723f0]
test eax, eax
jne 0x4230ee
call dword [0x4722b8]
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 [0x47221c]
test esi, esi
jne 0x423119
mov edx, dword [ebp + 0x18]
push edx
call dword [0x4722c0]
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 [0x472220]
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
Function at 0x4231a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49b638]
push ebx
xor ebx, ebx
cmp eax, 4
mov dword [ebp - 0x10], ebx
jae 0x4231bd
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [section..rdata]
mov dword [ebp - 0x28], 0x220
mov dword [ebp - 0x24], 0x222
mov dword [ebp - 0x20], 0x221
mov dword [ebp - 0x1c], 0x223
mov dword [ebp - 0xc], ebx
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x28]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x20
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call edi
test eax, eax
je 0x42325a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ecx
push edx
mov dword [ebp - 8], ebx
call fcn.004606e6
test eax, eax
jne 0x423234
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push eax
call dword [0x47200c]
cmp dword [ebp - 8], ebx
je 0x423267
mov eax, dword [ebp + esi*4 - 0x28]
add eax, 0xfffffde0
cmp eax, 3
pop edi
pop esi
ja case.default.0x423253
jmp dword [eax*4 + 0x4232a8]
push str.GetUserType._Failed_to_AllocateAndInitializeSid
call fcn.004113d0
add esp, 4
inc esi
cmp esi, 4
jb 0x4231e6
mov eax, dword [ebp - 0xc]
jmp 0x423247
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4233f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x42348a
cmp byte [eax], 0
je 0x42348a
lea ecx, [ebp - 8]
push ecx
push 0x2001f
push 0
push eax
push 0x80000002
call dword [0x472074]
test eax, eax
jne 0x42348a
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 8]
mov dword [esi], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.SGCountDown
push edx
mov dword [ebp - 0xc], 4
mov dword [ebp + 8], 4
call dword [0x472078]
test eax, eax
jne 0x423476
cmp dword [ebp + 8], 4
jne 0x423476
mov eax, dword [ebp - 4]
push eax
push str.GetSGCountDown__SGCountDown___d_n
mov dword [esi], eax
call fcn.0040acd0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [0x47207c]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x423990
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423890
Function at 0x424050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
je 0x4241e5
test ecx, ecx
je 0x4241e5
push ebx
push edi
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 edi, dword [0x472074]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareATIACE
push 0x80000002
call edi
test eax, eax
mov ebx, dword [0x472078]
jne 0x4240dd
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4240dd
push str.GetACEPrbPath___ACE_PATH_is_OK
jmp 0x42418e
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push str.SoftwareATI
push 0x80000002
call edi
test eax, eax
jne 0x424119
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.PATH
push ecx
call ebx
test eax, eax
jne 0x424119
push str.GetACEPrbPath___ACE_PATH_NEW_is_OK
jmp 0x42418e
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATIACE
push 0x80000002
call edi
test eax, eax
jne 0x424155
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.PATH
push edx
call ebx
test eax, eax
jne 0x424155
push str.GetACEPrbPath___ACE_REMAP_PATH_is_OK
jmp 0x42418e
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATI
push 0x80000002
call edi
test eax, eax
jne 0x4241d6
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4241d6
push str.GetACEPrbPath___ACE_REMAP_PATH_NEW_is_OK
call fcn.0040acd0
add esp, 4
push 0x5c
push esi
call fcn.004616e0
add esp, 8
test eax, eax
je 0x4241b7
mov ecx, dword [ebp + 0xc]
lea edx, [esi + ecx - 1]
cmp eax, edx
jae 0x4241b7
mov cl, byte [eax + 1]
test cl, cl
je 0x4241c2
mov ecx, dword [ebp + 0xc]
lea edx, [esi + ecx - 1]
cmp eax, edx
jne 0x4241c5
mov byte [eax], 0
mov eax, dword [ebp - 4]
push eax
call dword [0x47207c]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push str.GetACEPrbPath___Get_ACE_registry_key_failed_n
call fcn.0040acd0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
push esi
je 0x424298
mov dword [ebx], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x424358
cmp byte [esi], 0
je 0x424358
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4242c1
sub eax, edx
cmp eax, 0x104
jbe 0x4242d6
mov eax, 0x103
push eax
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.00460860
lea ecx, [ebp - 0x158]
push ecx
call fcn.0040acd0
xor edx, edx
xor eax, eax
mov dword [ebp - 0x10], edx
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
add esp, 0x10
test eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x54], 0x44
pop edi
je 0x42435e
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0
push eax
call dword [0x472028]
test eax, eax
jne 0x424385
call dword [0x4722b8]
push esi
push str.FAILURE:_Failed_to_CreateProcess_for__s
call fcn.0040acd0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0
call dword [0x47220c]
test eax, eax
je 0x42434a
mov edx, dword [ebp - 0xc]
mov esi, dword [0x4722c0]
push edx
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4243a7
test ebx, ebx
je 0x4243a7
mov eax, dword [ebp - 0x10]
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424910
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.00461300
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [0x472230]
push eax
call fcn.0044f910
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edx, dword [ebp + 0x14]
xor eax, eax
mov byte [ebp - 0x11c], bl
lea edi, [ebp - 0x11b]
mov dword [edx], ebx
mov dword [ebp - 0x10], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea ecx, [ebp - 0x211c]
push ecx
call fcn.0044d548
test eax, eax
jne 0x424986
push str.g_pfnEnumProcesses:_Failed
call fcn.0040acd0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
shr edi, 2
cmp edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
jbe 0x424ae7
push esi
jmp 0x4249a0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x424ae6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4249c8
mov edx, dword [ebp + ebx*4 - 0x211c]
push edx
call fcn.0044f910
cmp eax, dword [ebp + 0x1c]
jne 0x424aac
mov eax, dword [ebp + ebx*4 - 0x211c]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push 0x410
call dword [0x47215c]
mov esi, eax
test esi, esi
je 0x424aac
xor edx, edx
mov dword [ebp - 0x111c], edx
mov dword [ebp - 8], edx
xor eax, eax
lea edx, [ebp - 8]
push edx
mov ecx, 0x3ff
lea edi, [ebp - 0x1118]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x111c]
push eax
push esi
call fcn.0044d542
test eax, eax
je 0x424aa2
mov eax, dword [ebp - 8]
xor ebx, ebx
test eax, 0xfffffffc
jbe 0x424a9f
lea ecx, [ecx]
mov edx, dword [ebp + ebx*4 - 0x111c]
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push edx
push esi
call fcn.0044d53c
test eax, eax
je 0x424a78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00461fe2
add esp, 0xc
test eax, eax
je 0x424a85
mov eax, dword [ebp - 8]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x424a30
jmp 0x424a9f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push esi
mov dword [ebp - 4], 1
call dword [0x472094]
test eax, eax
je 0x424ac2
mov ebx, dword [ebp - 0xc]
push esi
call dword [0x4722c0]
mov edi, dword [ebp - 0x18]
inc ebx
cmp ebx, edi
mov dword [ebp - 0xc], ebx
jb 0x4249a0
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.OpenProcessToken:_Failed
call fcn.0040acd0
mov eax, dword [ebp + 0x14]
add esp, 4
push esi
mov dword [eax], 0
mov dword [ebp - 4], 0
call dword [0x4722c0]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424af0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [ebp + 8]
test eax, eax
je 0x424c38
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x424c38
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x424c38
push ebx
push esi
mov esi, dword [0x472048]
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x204]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov edi, 0x100
push eax
mov dword [ebp - 4], edi
call esi
test eax, eax
mov ebx, dword [0x4720a4]
je 0x424b97
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x204]
push edx
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x424b80
push str.IsSameUserByTokens:_GetUserName_failed
call fcn.0040acd0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x47204c]
test eax, eax
jne 0x424b97
push str.Failed_to_revert_1st.1
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call esi
test eax, eax
je 0x424bce
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x424b6a
call dword [0x47204c]
test eax, eax
jne 0x424bce
push str.Failed_to_revert_1st.2
call fcn.0040acd0
add esp, 4
lea eax, [ebp - 0x204]
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424be0
sub eax, edx
push eax
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00461fe2
add esp, 0xc
test eax, eax
jne 0x424c09
mov esi, 1
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424c12
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.00460860
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.IsSameUserByTokens:_bad_inout
call fcn.0040acd0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x426170
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
push ebx
push esi
push edi
mov eax, 0x400
call fcn.00461300
mov esi, esp
xor ebx, ebx
cmp esi, ebx
jne 0x4261a0
push str.FAILURE:_Failed_at__alloca_for_paclKey
call fcn.0040acd0
add esp, 4
jmp 0x42632e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.004260a0
add esp, 8
test eax, eax
je 0x42632e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push edx
push eax
lea ecx, [ebp - 0x44]
push esi
push ecx
call fcn.00425fb0
add esp, 0x10
test eax, eax
je 0x42632e
lea edx, [ebp - 0x54c]
push ebx
push edx
call fcn.0040ace0
push eax
call fcn.0044db20
add esp, 0xc
cmp eax, 1
jne 0x42632e
lea eax, [ebp - 8]
push eax
push 0x2001f
push ebx
lea ecx, [ebp - 0x548]
push ecx
push 0x80000002
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], ebx
call dword [0x472074]
test eax, eax
jne 0x42632e
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push str.DefaultMode
push ecx
call dword [0x472078]
test eax, eax
mov edi, dword [0x47207c]
jne 0x426328
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push str.REG_SZ
push ebx
lea ecx, [ebp - 0x548]
push ecx
push 0x80000005
call dword [0x472068]
test eax, eax
jne 0x426328
mov eax, dword [ebp - 4]
mov esi, dword [0x472040]
push 4
lea edx, [ebp - 0x20]
push edx
push 4
push ebx
push str.DefaultSettings.BitsPerPel
push eax
mov dword [ebp - 0x2c], ebx
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push ebx
push str.DefaultSettings.Flags
push edx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push ebx
push str.DefaultSettings.VRefresh
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push ebx
push str.DefaultSettings.XPanning
push eax
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push ebx
push str.DefaultSettings.XResolution
push edx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push str.DefaultSettings.YPanning
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x24]
push edx
push 4
push ebx
push str.DefaultSettings.YResolution
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call edi
mov edx, dword [ebp - 8]
push str.DefaultMode
push edx
call dword [0x472060]
mov eax, dword [ebp - 8]
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [0x47200c]
je 0x42633e
push eax
call esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x426348
push eax
call esi
lea esp, [ebp - 0x558]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426530
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [0x472048]
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
jne 0x42656f
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040acd0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], 0x104
call dword [0x4720a4]
call dword [0x47204c]
test eax, eax
jne 0x42659e
push str.ImpersonateCurrentLogontUser:_RevertToSelf_failed_after_get_username
call fcn.0040acd0
add esp, 4
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
push esi
mov dword [eax + 0x1c], edx
lea ecx, [ebp - 0x108]
push edi
mov dword [esi], 0x20
mov dword [esi + 8], ecx
call dword [0x4723ec]
test eax, eax
jne 0x4265f5
call dword [0x4722b8]
push eax
push str.Fail_to_LoadUserProfile___d
call fcn.0040acd0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call ebx
test eax, eax
jne 0x42661d
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040acd0
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push edi
call dword [0x4723f4]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret