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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec518
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
push 0xf003f
push 0
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40b287
test bl, bl
je 0x40b2ec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b2ec
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, 2
mov eax, dword [eax - 0xc]
lea esi, [eax*2 + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d175
push esi
mov edi, eax
push 0
push edi
call fcn.005c7190
push esi
push dword [ebp + 0x10]
push edi
call fcn.005c6c10
add esp, 0x1c
push esi
push edi
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
test eax, eax
je 0x40b2f0
call fcn.0047d17e
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x40b303
call fcn.0047d17e
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b324
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b342
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40b361
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
Function at 0x40e950
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [ebp - 4], esi
push 0x400
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CCrypto.0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0048a364
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push 0x63d12c
push edi
call ebx
test eax, eax
jne 0x40e9bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40e9bd
push 8
push 1
push 0
push 0x63d12c
push edi
call ebx
test eax, eax
je 0x40e9d2
lea eax, [esi + 0xc]
push eax
push 0
push 0
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40eb00
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x40eb86
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
test eax, eax
je 0x40eb86
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push 0
push 0
push 0x8003
push dword [esi + 4]
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40eb86
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
test eax, eax
je 0x40eb53
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
push 0
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40eb86
push ebx
push 1
push dword [edi]
push 0x6602
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x40eb86
mov bl, 1
jmp 0x40eb88
xor bl, bl
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40eba3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x40ef10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x674ff8]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0xc], eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov esi, dword [esi]
mov edi, ebx
shld edx, edi, 1
push edx
add edi, edi
lea ecx, [ecx + 0x10]
push edi
call dword [esi + 0x30]
mov esi, dword [esp + 0x10]
lea ecx, [esi + 0x10]
call fcn.0048a4e3
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x18]
push ebx
push 0
push 1
push 0
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x40efa9
push ebx
call fcn.0047d17e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
push 0xffffffffffffffff
push 0
call fcn.0048b664
push 0xffffffffffffffff
push dword [esp + 0x1c]
mov ecx, esi
call fcn.0048b664
push dword [esp + 0x18]
push ebx
push dword [esi + 4]
call fcn.005c6c10
push ebx
call fcn.0047d17e
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret 4

Function at 0x40f000
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x674ff8]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x30]
push dword [esi + 8]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push dword [esi + 4]
call dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x4c]
lea ecx, [edi + 0x10]
call fcn.0048a4e3
mov ecx, dword [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [edi + 8]
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40f090
push esi
call fcn.0047d17e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push 0
push dword [esp + 0x14]
call dword [eax + 0x30]
push dword [esp + 0x10]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push esi
call dword [eax + 0x3c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
call dword [eax + 0x4c]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push 0
push 0
push 0
call dword [eax + 0x2c]
push esi
call fcn.0047d17e
mov ecx, dword [esp + 0x18]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb00
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0047eef5
mov ecx, esi
call fcn.0040fc40
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [esi + 0x208], 0
push 0
mov dword [esi + 0x1e8], 0
movups xmmword [esi + 0x1f0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x40f6c0
push 0
push 0
mov dword [0x7308d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1e8], eax
mov eax, 1
pop esi
ret
Function at 0x412820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecac8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x674ff8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 4]
mov byte [esi + 0x18], 0
call fcn.00412c70
push 0
push 0
push esi
push 0x412430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00412600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x34

Function at 0x412990
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec2f0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x674ff8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x63ca44
lea ecx, [esi + 4]
mov dword [esi], 0
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0xc]
mov dword [esi + 8], 1
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x10]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x14]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x18]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x1c]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x20]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x24]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x28]
call fcn.00404b00
push 0x63ca44
lea ecx, [esi + 0x2c]
call fcn.00404b00
mov byte [esi + 0x30], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412a60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecb83
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x674ff8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 4]
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0xc]
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0x10]
mov eax, dword [edi + 0x10]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
lea esi, [ebx + 0x14]
mov eax, dword [edi + 0x14]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
lea esi, [ebx + 0x18]
mov eax, dword [edi + 0x18]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
lea esi, [ebx + 0x1c]
mov eax, dword [edi + 0x1c]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
lea esi, [ebx + 0x20]
mov eax, dword [edi + 0x20]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
lea esi, [ebx + 0x24]
mov eax, dword [edi + 0x24]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 7
lea esi, [ebx + 0x28]
mov eax, dword [edi + 0x28]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
lea esi, [ebx + 0x2c]
mov eax, dword [edi + 0x2c]
sub eax, 0x10
mov dword [ebp + 8], esi
push eax
call fcn.00404bc0
add esp, 0x28
add eax, 0x10
mov dword [esi], eax
mov al, byte [edi + 0x30]
mov byte [ebx + 0x30], al
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4175b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x11c
lea eax, [ebp - 0x128]
mov dword [ebp - 0x130], edx
push 0
push eax
mov edi, ecx
call fcn.005c7190
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x417612
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne case.default.0x41773c
mov eax, dword [ebp - 0x12c]
push eax
mov ebx, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
push esi
push ebx
push str._d._d
push dword [ebp - 0x130]
call fcn.00404790
add esp, 0x10
add ebx, 0xfffffffc
cmp byte [ebp - 0xe], 1
jne 0x4176fc
cmp ebx, 6
ja case.0x417701.3
jmp dword [ebx*4 + 0x417790]
test esi, esi
jne case.default.0x41773c
push 0x63df50
jmp 0x417773
sub esi, 0
je 0x4176ab
sub esi, 1
je 0x4176a1
sub esi, 1
jne case.default.0x41773c
push 0x63dfb4
jmp 0x417773
push 0x63df9c
jmp 0x417773
push 0x63df80
jmp 0x417773
cmp esi, 3
ja case.default.0x41773c
jmp dword [esi*4 + 0x4177ac]
push 0x63dfd8
jmp 0x417773
push 0x63dff4
jmp 0x417773
push 0x63e008
jmp 0x417773
push 0x63e01c
jmp 0x417773
test esi, esi
jne case.default.0x41773c
push 0x63e034
jmp 0x417773
cmp ebx, 6
ja case.0x417701.3
jmp dword [ebx*4 + 0x4177bc]
test esi, esi
jne case.default.0x41773c
push 0x63e05c
jmp 0x417773
sub esi, 0
je 0x41772c
sub esi, 2
jne case.default.0x41773c
push 0x63e0a8
jmp 0x417773
push 0x63e080
jmp 0x417773
cmp esi, 3
ja case.default.0x41773c
jmp dword [esi*4 + 0x4177d8]
push 0x63e0d0
jmp 0x417773
push str.windows_server_2008_r2
jmp 0x417773
push 0x63e128
jmp 0x417773
push str.windows_server_2012_r2
jmp 0x417773
test esi, esi
jne case.default.0x41773c
push 0x63e180
jmp 0x417773
push str.windows
mov ecx, edi
call fcn.00404ab0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
Function at 0x4177f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x417836
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417826
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x417826
cmp dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret

Function at 0x417b00
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
push str.SeCreateGlobalPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeBackupPrivilege
push edi
mov esi, eax
call fcn.00417a70
push ecx
push str.SeCreatePagefilePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeCreateSymbolicLinkPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeDebugPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeImpersonatePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeIncreaseBasePriorityPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeIncreaseQuotaPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeLoadDriverPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeManageVolumePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeProfileSingleProcessPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeRemoteShutdownPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeRestorePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeSecurityPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeSystemEnvironmentPrivilege
push edi
call fcn.00417a70
push ecx
push str.SeSystemProfilePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeSystemtimePrivilege
push edi
call fcn.00417a70
push ecx
push str.SeTakeOwnershipPrivilege
push edi
call fcn.00417a70
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4196b0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed038
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
mov byte [ebp - 0x672], bl
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419876
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005c7190
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x420]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41975e
test bl, bl
jmp 0x41985a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c7190
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c7190
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x644]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x218]
push 0x63ea14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x670]
add esp, 0x1c
test al, 1
je 0x4197dd
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x670]
test al, 0x10
je 0x41982d
push 0x63e9a8
lea eax, [ebp - 0x644]
push eax
call esi
test eax, eax
je 0x419836
push 0x63ea20
lea eax, [ebp - 0x644]
push eax
call esi
test eax, eax
je 0x419836
sub esp, 0x18
mov byte [ebp - 0x671], 1
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00409df0
mov cl, byte [ebp - 0x671]
call fcn.004196b0
add esp, 0x18
jmp 0x419836
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x670]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419780
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x672], 0
je 0x419876
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x419876
xor bl, bl
jmp 0x419878
mov bl, 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41988d
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040b0f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
Function at 0x4198b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4198fe
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
test eax, eax
je 0x419948
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp + 8]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41991e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x419937
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x419900

Function at 0x4199f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov esi, edx
mov dword [ebp - 0xc], 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x419a4e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419a6f
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
je 0x419a81
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
Function at 0x419aa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x63ca48
push SysReAllocStringLen
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x419b03
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x63ca48
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x419b26
push dword [ebp + 0x10]
push esi
push 4
push 0
push str.accesstoken
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
test eax, eax
je 0x419b37
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret

Function at 0x419b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x63ca48
push SysReAllocStringLen
mov dword [esi], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419bbb
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push esi
push 0
push 0
push str.autosave
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
test eax, eax
je 0x419bcc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret