joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b50c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54053f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e180
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040e180
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040e180
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040e180
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040e180
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040e180
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b62c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54081f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040e160
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040e160
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040e160
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040e160
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040e160
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040e160
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
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 0x4b6430
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x586f40
push 0x4fa390
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5938b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x420]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404df0
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b64a1
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040e9b0
add esp, 8
mov edx, esi
mov edi, dword [ebp + 0x41c]
mov ecx, edi
call fcn.004b65a0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b64e9
test bl, bl
jne 0x4b656c
cmp edi, 0x1a
jne 0x4b656c
mov ecx, esi
call fcn.00404df0
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4b650f
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0040e9b0
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.004fb1f0
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.0040e740
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040e470
mov ecx, esi
call fcn.0040e030
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004f8545
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4b7280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4b7302
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4b7302
test ecx, ecx
je 0x4b72fe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4b72c0
xor eax, eax
jmp 0x4b7307
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4b7311
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0xc
ret 0xc
Function at 0x4bfaa0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4bfb05
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bfae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bfb05
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004f8545
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f8545
add esp, 8
ret 4
Function at 0x4bfc80
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541a88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5938b4]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4bfcc9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4bfe1b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4bfde6
test eax, eax
je 0x4bfde6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4bfde9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4bfd6b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bfd5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bfd6b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4bfd79
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040e180
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4bfde6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4bfd24
jmp 0x4bfde9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4bfe12
test edx, edx
je 0x4bfe0e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4bfce0
mov al, 1
jmp 0x4bfe1d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bfe1b
mov dword [ecx], eax
xor al, al
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.004f8545
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c0a10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x4c0a69
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x4c0a30
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret

Function at 0x4c0ad0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov eax, ecx
mov dword [esp], eax
je 0x4c0b57
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4c0b56
push ebx
push esi
push edi
mov edi, dword [eax]
xor dl, dl
xor cl, cl
xor eax, eax
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x4c0af1
mov word [edi + 0x100], 0
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x4c0b10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ecx
ret 8
Function at 0x4c10b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52db88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5938b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x598d21], 0
jne 0x4c127f
push 0x565b40
lea ecx, [ebp - 0x24]
call fcn.0040e120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040ac80
test edi, edi
je 0x4c132f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x566748
push edi
call esi
push 0x566738
push edi
mov dword [0x598d50], eax
call esi
push 0x565c38
push edi
mov dword [0x598d64], eax
call esi
push str.GetSecurityInfo
push edi
mov dword [0x598d54], eax
call esi
push str.InitializeAcl
push edi
mov dword [0x598d34], eax
call esi
push 0x56c53c
push edi
mov dword [0x598d3c], eax
call esi
push 0x56c51c
push edi
mov dword [0x598d5c], eax
call esi
push str.AddAce
push edi
mov dword [0x598d30], eax
call esi
push str.DeleteAce
push edi
mov dword [0x598d44], eax
call esi
push str.SetSecurityInfo
push edi
mov dword [0x598d58], eax
call esi
push str.OpenProcessToken
push edi
mov dword [0x598d40], eax
call esi
push str.GetTokenInformation
push edi
mov dword [0x598d38], eax
call esi
push str.CopySid
push edi
mov dword [0x598d4c], eax
call esi
push str.GetLengthSid
push edi
mov dword [0x598d2c], eax
call esi
push 0x566290
push edi
mov dword [0x598d48], eax
call esi
cmp dword [0x598d50], 0
mov dword [0x598d60], eax
je 0x4c1292
cmp dword [0x598d64], 0
je 0x4c1292
cmp dword [0x598d54], 0
je 0x4c1292
cmp dword [0x598d34], 0
je 0x4c1292
cmp dword [0x598d3c], 0
je 0x4c1292
cmp dword [0x598d5c], 0
je 0x4c1292
cmp dword [0x598d30], 0
je 0x4c1292
cmp dword [0x598d44], 0
je 0x4c1292
cmp dword [0x598d58], 0
je 0x4c1292
cmp dword [0x598d40], 0
je 0x4c1292
cmp dword [0x598d38], 0
je 0x4c1292
cmp dword [0x598d4c], 0
je 0x4c1292
cmp dword [0x598d2c], 0
je 0x4c1292
cmp dword [0x598d48], 0
je 0x4c1292
test eax, eax
je 0x4c1292
mov byte [0x598d21], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [0x598d21], 0
mov dword [0x598d50], 0
mov dword [0x598d64], 0
mov dword [0x598d54], 0
mov dword [0x598d34], 0
mov dword [0x598d3c], 0
mov dword [0x598d5c], 0
mov dword [0x598d30], 0
mov dword [0x598d44], 0
mov dword [0x598d58], 0
mov dword [0x598d40], 0
mov dword [0x598d38], 0
mov dword [0x598d4c], 0
mov dword [0x598d2c], 0
mov dword [0x598d48], 0
mov dword [0x598d60], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c5bd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5c37
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4c5c20
jne 0x4c5c37
cmp dword [esp + 8], 0
jbe 0x4c5c37
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret

Function at 0x4c5c50
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c5ca5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret

Function at 0x4c5cd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4c5d25
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret

Function at 0x4c5d50
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5dc6
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x4c5daf
jne 0x4c5dc6
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x4c5daf
jne 0x4c5dc6
cmp word [esp + 0x114], 1
jb 0x4c5dc6
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004f8545
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.004f8545
add esp, 0x120
ret

Function at 0x4c5de0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c5e47
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x4c5e3e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret
jb 0x4c5e47
cmp dword [esp + 8], 2
jae 0x4c5e27
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret
Function at 0x4c72b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5427c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 8]
call fcn.0040e030
movzx eax, al
test eax, eax
jne 0x4c72fd
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415610
add esp, 4
movzx edx, al
test edx, edx
jne 0x4c7302
jmp 0x4c73a6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e180
mov dword [ebp - 4], 0
push 0x10
lea ecx, [ebp - 0x28]
push ecx
call fcn.004184b0
add esp, 8
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004c99b0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004168e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040ac80
push 0x10
lea edx, [ebp - 0x28]
push edx
call fcn.004184b0
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.00415610
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x4c7397
lea edx, [ebp - 0x28]
push edx
call fcn.004156b0
add esp, 4
movzx eax, al
test eax, eax
je 0x4c7397
lea ecx, [ebp - 0x28]
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x4c9c30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.0040e030
movzx eax, al
test eax, eax
jne 0x4c9c92
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415610
add esp, 4
movzx edx, al
test edx, edx
je 0x4c9c92
mov eax, dword [ebp + 8]
push eax
call fcn.0042b470
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415610
add esp, 4
movzx edx, al
test edx, edx
je 0x4c9c92
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
call fcn.0040e040
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4cadf0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x42c]
push edi
mov edi, ecx
test ebx, ebx
jne 0x4cae1f
xor al, al
jmp 0x4cae57
mov eax, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
or eax, 0x20019
mov dword [esp + 0x10], 0
push eax
push esi
push ebx
mov ecx, edi
call fcn.004cb390
test al, al
je 0x4cae55
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x4cae71
mov byte [edi + 1], 1
mov al, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0x41c
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4cae7b
mov eax, dword [esi]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x4cae55
cmp dword [esi + 0x14], 8
jb 0x4cae8f
mov esi, dword [esi]
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004fb1f0
lea ecx, [esp + 0x1c]
add esp, 0xc
mov eax, ecx
mov edx, 0x208
sub esi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x4caece
movzx eax, word [esi + ecx]
test ax, ax
je 0x4caece
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4caeb0
push dword [edi + 4]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004cb6a0
add esp, 0xc
test eax, eax
setne al
jmp 0x4cae57
Function at 0x4cb1d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543150
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5938b4]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x4cb211
xor al, al
jmp 0x4cb2cc
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4cb240
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x44], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb270
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e470
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push ebx
call fcn.004cb490
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040ac80
test bl, bl
je 0x4cb2b9
cmp byte [edi], 0
je 0x4cb2ea
mov byte [edi + 1], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040ac80
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.004f8545
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x4cb2f2
mov esi, dword [esi]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4cb2b9
xor bl, bl
jmp 0x4cb2bb
Function at 0x4cb6a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5938b4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x228]
push 0x208
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4cb70d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x234]
or eax, 0x20019
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cb729
cmp eax, 2
jne 0x4cb82f
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004f8545
add esp, 0x21c
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x4cb74c
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4cb80e
push esi
lea esi, [esp + 0x20]
sub esi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4cb7be
movzx ecx, word [esi + eax]
test cx, cx
je 0x4cb7be
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4cb7a0
push dword [esp + 0x238]
lea ecx, [eax - 2]
test edx, edx
push ebx
cmovne ecx, eax
xor eax, eax
push ebp
mov word [ecx], ax
call fcn.004cb6a0
add esp, 0xc
test eax, eax
je 0x4cb80d
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cb790
pop esi
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4cb70d
mov ecx, dword [esp + 0x220]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0x21c
ret