joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426d66
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, 0x811c9dc5
jecxz 0x426d7f
mov eax, ecx
xor dl, byte [esi]
inc esi
imul edx, edx, 0x1000193
loop 0x426d6f
mov ecx, eax
sub esi, ecx
ret
inc ecx
lodsb al, byte [esi]
xor dl, al
imul edx, edx, 0x1000193
test al, al
jne 0x426d7f
sub esi, ecx
ret

Function at 0x426eab
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [0x42a400]
shl ecx, 1
add ecx, 0x12
call fcn.004196bc
mov dword [0x42a404], eax
mov dword [0x42a408], ecx
add eax, ecx
sub eax, dword [0x42a3fc]
sub eax, dword [0x42a400]
mov dword [0x42a40c], eax
mov esi, dword [0x42a3fc]
mov edi, dword [0x42a404]
mov byte [0x42a4b2], 0xa
mov eax, dword [0x42a40c]
add eax, esi
sub eax, edi
cmp eax, 0x12
jae 0x426f44
mov ecx, esi
sub ecx, dword [0x42a3fc]
mov eax, dword [0x42a400]
mul dword [0x42a408]
div ecx
mov ecx, eax
add ecx, 0x12
mov eax, dword [0x42a404]
call fcn.004196f0
sub edi, dword [0x42a404]
add edi, eax
mov dword [0x42a404], eax
mov dword [0x42a408], ecx
add eax, ecx
sub eax, dword [0x42a3fc]
sub eax, dword [0x42a400]
mov dword [0x42a40c], eax
movzx eax, byte [esi]
inc esi
mov ah, byte [eax + section..bss]
cmp ah, 0x20
je 0x427007
test ah, ah
jne 0x426fa7
stosb byte es:[edi], al
mov byte [0x42a4b2], al
jmp 0x426eec
mov dl, al
mov byte [edi], 0x22
mov byte [0x42a4b2], 0x22
add edi, 5
xor ecx, ecx
mov al, byte [esi]
cmp al, 0xd
je 0x426f96
cmp al, 0xa
je 0x426f96
cmp al, 0x1a
je 0x426f96
test al, al
je 0x426f96
inc esi
cmp al, dl
jne 0x426f90
cmp byte [esi], al
jne 0x426f9a
inc esi
mov byte [edi + ecx], al
inc ecx
jmp 0x426f74
mov byte [edi - 5], 0x27
mov al, byte [edi - 5]
mov dword [edi - 4], ecx
add edi, ecx
jmp 0x426eec
cmp al, 0x22
je 0x426f63
cmp al, 0x27
je 0x426f63
mov byte [edi], 0x1a
mov byte [0x42a4b2], 0x1a
add edi, 5
xor ebx, ebx
mov ecx, 0x811c9dc5
mov edx, ecx
mov byte [edi + ebx], al
inc ebx
xor cl, al
xor dl, ah
imul ecx, ecx, 0x1000193
imul edx, edx, 0x1000193
movzx eax, byte [esi]
inc esi
mov ah, byte [eax + section..bss]
cmp ah, 0x20
je 0x426fec
test ah, ah
jne 0x426fc5
mov dword [edi - 4], ebx
add edi, ebx
mov dword [edi], ecx
mov dword [edi + 4], edx
xor ecx, ecx
mov dword [edi + 8], ecx
add edi, 0xc
cmp ah, 0x20
jne 0x426f5b
cmp al, 0x20
je 0x427067
cmp al, 9
je 0x427067
cmp byte [0x42a4b2], 0x20
je 0x427019
inc edi
mov byte [edi - 1], 0xa
mov byte [0x42a4b2], 0xa
cmp al, 0xd
je 0x427049
cmp al, 0xa
je 0x427058
xor al, al
stosb byte es:[edi], al
mov ecx, edi
mov eax, dword [0x42a404]
sub ecx, eax
call fcn.004196f0
mov dword [0x42a404], eax
mov dword [0x42a408], ecx
ret
cmp byte [esi], 0xa
jne 0x426eec
inc esi
jmp 0x426eec
cmp byte [esi], 0xd
jne 0x426eec
inc esi
jmp 0x426eec
cmp byte [0x42a4b2], 0xa
je 0x426eec
cmp byte [0x42a4b2], 0x20
je 0x426eec
mov al, 0x20
stosb byte es:[edi], al
mov byte [0x42a4b2], al
jmp 0x426eec
Function at 0x408290
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret

Function at 0x4087b0
Capabilities:
Check os version

Disassembly:
vpconflictd zmm0, zmmword [0x47d580]
vplzcntd zmm1, zmm0
vpaddd zmm0, zmm0, zmm1
vmovdqa32 zmm1, zmmword [str._______________Y]
vpcmpeqd k1, zmm0, zmm1
kmovw eax, k1
vzeroupper
cmp eax, 0xffff
sete al
ret

Function at 0x4087f0
Capabilities:
Check os version

Disassembly:
vmovdqa32 zmm0, zmmword [0x47d500]
vmovdqa32 zmm1, zmmword [0x47d540]
vpermb zmm2, zmm0, zmm1
vpermi2b zmm2, zmm0, zmm1
vmovdqa32 zmm3, zmmword [0x47d6c0]
vpcmpeqd k1, zmm2, zmm3
kmovw eax, k1
vzeroupper
cmp eax, 0xfffb
sete al
ret

Function at 0x4095d7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x474f76
call fcn.0045053c
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], esi
push 0x489624
mov dword [ebp - 0x38], ebx
call fcn.0040a2aa
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409642
lea eax, [ebp - 0x2c]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x2c], 0
je 0x4096ba
push ecx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x34], ebx
call fcn.00409fda
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x4096af
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0040a2aa
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.0040a288
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040b111
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.0040a2cf
mov eax, esi
call fcn.004504e6
ret
Function at 0x40a8e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475249
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x49d034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a956
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a956
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40a948
cmp esi, ecx
jae 0x40a956
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40a936
cmp esi, ecx
jae 0x40a956
cmp word [esi], 0
je 0x40a956
mov eax, esi
jmp 0x40a958
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410943
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov dl, byte [esi + 0x34]
test edi, edi
jle 0x410978
mov ecx, dword [esi + 0x260]
push ebx
movzx ebx, dl
mov eax, ecx
shl ecx, 8
shr eax, 0x18
xor eax, ebx
xor ecx, dword [eax*4 + 0x48a870]
sub edi, 1
jne 0x41095b
mov dword [esi + 0x260], ecx
pop ebx
mov eax, dword [esi + 0x34]
mov byte [esi + eax + 0x58], 1
mov ecx, dword [esi + 0x38]
mov eax, ecx
sub eax, 1
je 0x4109f2
sub eax, 1
je 0x4109e6
sub eax, 1
je 0x4109da
mov byte [ecx + esi + 0x54], 1
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov cl, byte [esi + 0x38]
mov eax, dword [esi + 0x24]
sub cl, 4
mov byte [edx + eax], cl
jmp 0x4109fb
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x44]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
pop edi
pop esi
ret
Function at 0x41cc87
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x4774b7
call fcn.00450508
mov esi, edx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyFileOrBufferToResource
lea ecx, [ebp - 0x3c]
call fcn.0041dfa0
xor edx, edx
mov dword [ebp - 4], edx
mov eax, edx
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
test ebx, ebx
je 0x41ce52
test esi, esi
je 0x41ce52
cmp dword [ebp + 0xc], eax
je 0x41ce52
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41ccf7
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [esi], dx
je 0x41ce52
cmp dword [0x4a02b0], edx
jle 0x41cd0b
mov dword [ebp - 0x10], 0x2e3
jmp 0x41ce59
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41cd6a
mov dword [ebp - 0x14], 9
push edx
push 0x80
push 3
push edx
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
call esi
cmp edi, 0xffffffff
jne 0x41cd71
cmp eax, 0x20
je 0x41cd49
cmp eax, 5
jne 0x41cd60
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
push 0
pop edx
jns 0x41cd1c
call esi
mov dword [ebp - 0x10], eax
jmp 0x41ce59
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov dword [ebx], edx
push dword [0x4a036c]
call fcn.00454c58
mov edi, eax
pop ecx
test edi, edi
jne 0x41cd8f
mov dword [ebp - 0x10], 8
jmp 0x41ce41
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 0
je 0x41cdc0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x4a036c]
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ce31
mov esi, dword [ebp - 0x14]
jmp 0x41cdf0
mov esi, dword [0x4a036c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
lea eax, [esi + ecx]
cmp eax, edx
jbe 0x41cddd
mov esi, edx
sub esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
push esi
add eax, ecx
push eax
push edi
call fcn.00451610
add esp, 0xc
add dword [ebp - 0x1c], esi
test esi, esi
je 0x41ce3a
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x30]
call dword [ebp + 0xc]
test eax, eax
je 0x41ce31
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x41ce0d
add dword [ebx], eax
cmp dword [ebp - 0x14], eax
jne 0x41ce28
cmp dword [0x4a02b0], 0
jle 0x41cd93
mov dword [ebp - 0x10], 0x2e3
jmp 0x41ce3a
mov dword [ebp - 0x10], 0x3f5
jmp 0x41ce3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push edi
call fcn.00454c63
pop ecx
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ce59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ce59
mov dword [ebp - 0x10], 0x57
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e015
mov eax, esi
call fcn.004504d1
ret
Function at 0x41d57e
Capabilities:
Delete file

Disassembly:
push 0xf4
mov eax, 0x477677
call fcn.0045053c
mov edi, ecx
lea eax, [ebp - 0xdc]
xor ebx, ebx
push eax
push str.PrepareRemoteUpdateDescriptor
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xdc], ebx
call fcn.0041dfa0
mov dword [ebp - 4], ebx
call fcn.00409480
push eax
lea ecx, [ebp - 0xe8]
call fcn.00408c39
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.0044a4e0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
test edi, edi
je 0x41d742
xor eax, eax
cmp word [edi], ax
je 0x41d742
mov edx, str..xml
lea ecx, [ebp - 0xe0]
call fcn.0041e774
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe8]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xe0]
add ecx, 0xfffffff0
call fcn.00409575
mov esi, dword [ebp - 0xe8]
cmp dword [esi - 0xc], 0
jne 0x41d638
mov dword [ebp - 0xdc], 0x52
jmp 0x41d752
xor eax, eax
mov edx, esi
push eax
push ecx
mov ecx, edi
call fcn.0041c6ed
mov dword [ebp - 0xdc], eax
pop ecx
pop ecx
test eax, eax
jne 0x41d752
xor edi, edi
mov dword [ebp - 0xe4], ebx
push esi
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe0], edi
call fcn.0040c4a0
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x41d6aa
mov byte [ebp - 4], 3
cmp dword [ebp - 0xe4], ebx
je 0x41d752
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe4], ebx
jmp 0x41d752
push edi
mov ecx, esi
call fcn.004215c0
mov dword [ebp - 0xdc], eax
pop ecx
test eax, eax
jne 0x41d683
push edi
push 0x74
push esi
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0044b420
lea ecx, [ebp - 0xf4]
call fcn.0044a600
test al, al
jne 0x41d716
push dword [ebp - 0xf0]
lea ecx, [ebp - 0xf4]
push dword [ebp - 0xf4]
call fcn.0044af30
push eax
push str.XML_is_not_valid:___hs__error:_u__file_offset:_u
call fcn.0041dafb
add esp, 0x10
mov dword [ebp - 0xdc], 0xd
jmp 0x41d683
inc dword [0x4a02a8]
lea ecx, [ebp - 0xd8]
call fcn.00428cec
dec dword [0x4a02a8]
xor ecx, ecx
cmp eax, 0x490
cmove eax, ecx
mov dword [ebp - 0xdc], eax
jmp 0x41d683
mov esi, dword [ebp - 0xe8]
mov dword [ebp - 0xdc], 0x57
cmp dword [esi - 0xc], 0
je 0x41d78b
push 9
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x41d788
cmp eax, 0x20
je 0x41d778
cmp eax, 5
jne 0x41d788
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x41d75b
or ebx, 0xffffffff
mov edi, dword [ebp - 0xdc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call fcn.0044a5c0
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [esi - 0x10]
call fcn.00409575
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x100]
call fcn.0041e015
mov eax, edi
call fcn.004504e6
ret

Function at 0x41dafb
Capabilities:
Get file size
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
pop ebp
jmp fcn.0041db0a
Function at 0x41f4fc
Capabilities:
Create directory

Disassembly:
push 0x14
mov eax, 0x477da7
call fcn.00450508
mov esi, ecx
xor eax, eax
mov edi, eax
call fcn.00409480
push eax
lea ecx, [ebp - 0x14]
call fcn.00408c39
mov dword [ebp - 4], 1
call fcn.00409480
push eax
lea ecx, [ebp - 0x10]
call fcn.00408c39
mov byte [ebp - 4], 3
or ebx, 0xffffffff
test esi, esi
je 0x41f6df
xor eax, eax
cmp word [esi], ax
je 0x41f6df
push esi
lea eax, [ebp - 0x14]
push str.__s
push eax
call fcn.00408e2a
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x5c
push 0x2f
call fcn.0040a11e
push ecx
lea ecx, [ebp - 0x14]
call fcn.004089a0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a1c3
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0040a264
push 0x3a
pop ecx
cmp ax, cx
je 0x41f6e5
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x18], eax
cmp edi, 0xb7
je 0x41f637
cmp eax, 3
jne 0x41f62f
push 0x5c
push esi
call fcn.00450d4e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41f6e5
sub ebx, esi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x41f6e5
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c287
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0040a264
push 0x3a
pop ecx
cmp ax, cx
jne 0x41f59a
jmp 0x41f6e5
test edi, edi
jne 0x41f6e5
cmp ebx, 0xffffffff
je 0x41f6e5
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0041c66a
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
cmp eax, 0xffffffff
je 0x41f681
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00416d49
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040c3a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
jmp 0x41f6a4
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00416d0f
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040c3a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov esi, dword [ebp - 0x10]
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f6c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f6c7
mov eax, ebx
mov ebx, dword [ebp - 0x20]
xor edi, edi
cmp eax, 0xb7
cmovne edi, eax
cmp ebx, 0xffffffff
jne 0x41f640
jmp 0x41f6e5
mov esi, dword [ebp - 0x10]
push 0x57
pop edi
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.00409575
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov eax, edi
call fcn.004504d1
ret
Function at 0x41f708
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x28
mov eax, 0x477dd1
call fcn.00450508
mov esi, ecx
push ecx
lea ecx, [ebp - 0x34]
call fcn.00434cd9
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00434cfb
mov al, bl
call fcn.004504d1
ret

Function at 0x41f825
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49d034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41f87a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41f894
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x41f870
cmp dword [ebp - 0x14], ebx
setne al
mov byte [esi], al
cmp dword [ebp - 0x10], 0
je 0x41f8a3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f515
leave
ret

Function at 0x41f8b4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49d034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push 8
mov edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41f95a
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
inc esi
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41f959
push 0x4c
pop eax
push esi
push eax
mov dword [ebp - 0x18], eax
call fcn.0046534a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41f959
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41f952
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
push 1
pop eax
cmovne edi, eax
push esi
call fcn.00454c63
pop ecx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x41f96b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x41f979
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0044f515
leave
ret
Function at 0x41ff02
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
push edi
mov edi, edx
test esi, esi
je 0x420088
cmp dword [ebp + 8], edx
je 0x420088
test ebx, ebx
jne 0x41ff77
mov eax, dword [0x4a03e0]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4a03dc]
push dword [0x4a03d8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x41ff71
push esi
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041dafb
pop ecx
pop ecx
jmp 0x42008b
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x41ff7d
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
xor ecx, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420029
cmp dword [ebp - 0xc], 7
jne 0x420029
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00454c58
mov edi, eax
pop ecx
test edi, edi
jne 0x41ffcf
push 8
jmp 0x42008a
mov eax, dword [ebp - 4]
add eax, 4
push eax
xor eax, eax
push eax
push edi
call fcn.00451b90
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42008b
mov eax, dword [ebp - 4]
test al, 1
je 0x42000b
inc eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42002e
xor ecx, ecx
cmp word [edi + eax], cx
jne 0x420020
dec eax
sub eax, 1
mov dword [ebp - 4], eax
jne 0x420011
test eax, eax
je 0x42002e
add eax, 4
jmp 0x42002b
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
add eax, ecx
push eax
push edi
call fcn.00465a3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41ffc8
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edi, esi
push dword [ebp + 8]
add eax, esi
push eax
call fcn.00451610
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax], cx
mov eax, dword [ebp - 4]
add eax, 2
push eax
push esi
push 7
mov dword [ebp - 4], eax
xor eax, eax
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x42008b
push 0x57
pop esi
cmp dword [ebp - 8], 0
je 0x42009a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4200a5
push edi
call fcn.00454c63
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret