joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4acf70
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
push edi
lea eax, [esp + 0x210]
push eax
push 0
push 0
push 0x23
push 0
mov word [esp + 0x224], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x6bc0cc
push str.NCH_Software
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x21c]
call fcn.004ad3a0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [esp + 8]
push edx
call edi
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x4acfde
push 0
lea eax, [esp + 0xc]
push eax
call ebx
lea ecx, [esp + 8]
push ecx
call fcn.004ace20
push 0x6bc0cc
push 0x6bc140
push esi
lea eax, [esp + 0x14]
call fcn.004ad3a0
push esi
call edi
cmp eax, 0xffffffff
jne 0x4ad005
push 0
push esi
call ebx
push esi
call fcn.004ace20
pop edi
pop ebx
add esp, 0x410
ret

Function at 0x4ad640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push 0x104
mov esi, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], eax
call fcn.00552ef0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.005573f0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
je 0x4ad697
mov edx, dword [esp + 0x10]
mov byte [edx + eax], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x4ad69c
mov eax, 0x6bc0ce
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push ecx
call fcn.0069c8fa
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4ad6d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov eax, esi
lea edi, [esp + 8]
call fcn.004ad090
cmp word [esp + 8], 0
je 0x4ad70f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ad70f
mov ecx, edi
call fcn.004ad6d0
test al, al
jne 0x4ad70f
pop edi
pop esi
add esp, 0x208
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x208
ret
Function at 0x4ad730
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x45c
push edi
mov edi, ecx
cmp word [edi], 0
jne 0x4ad749
xor al, al
pop edi
add esp, 0x45c
ret
push esi
mov eax, edi
lea esi, [esp + 8]
call fcn.00401f70
cmp dword [esp + 8], 0xffffffff
je 0x4ad7fa
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
cmp word [esp + 0x3c], 0x2e
jne 0x4ad790
mov ax, word [esp + 0x3e]
test ax, ax
je 0x4ad7cd
cmp ax, 0x2e
jne 0x4ad790
cmp word [esp + 0x40], 0
je 0x4ad7cd
push 0x6bc0cc
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x268]
push ecx
mov eax, edi
call fcn.004ad3a0
mov edx, dword [esp + 0x10]
shr edx, 4
test dl, 1
je 0x4ad7c3
lea ecx, [esp + 0x260]
call fcn.004ad730
jmp 0x4ad7cd
lea eax, [esp + 0x260]
push eax
call ebx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call esi
test eax, eax
je 0x4ad7e6
cmp dword [esp + 0xc], 0xffffffff
jne 0x4ad770
jmp 0x4ad7f9
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0xc], 0xffffffff
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
pop esi
neg eax
pop edi
add esp, 0x45c
ret

Function at 0x4ad910
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
sub esp, 0x45c
push edi
mov edi, ecx
cmp word [edi], 0
jne 0x4ad929
xor al, al
pop edi
add esp, 0x45c
ret
push esi
mov eax, edi
lea esi, [esp + 8]
call fcn.00401f70
cmp dword [esp + 8], 0xffffffff
je 0x4ad9f2
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x40], 0x2e
jne 0x4ad974
mov ax, word [esp + 0x42]
test ax, ax
je 0x4ad9c0
cmp ax, 0x2e
jne 0x4ad974
cmp word [esp + 0x44], 0
je 0x4ad9c0
push 0x6bc0cc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x26c]
push ecx
mov eax, edi
call fcn.004ad3a0
mov edx, dword [esp + 0x14]
shr edx, 4
test dl, 1
je 0x4ad9a7
lea ecx, [esp + 0x264]
call fcn.004ad910
jmp 0x4ad9c0
push 0x80
lea eax, [esp + 0x268]
push eax
call esi
lea ecx, [esp + 0x264]
push ecx
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call ebp
test eax, eax
je 0x4ad9dd
cmp dword [esp + 0x10], 0xffffffff
jne 0x4ad954
jmp 0x4ad9f0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], 0xffffffff
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
pop esi
neg eax
pop edi
add esp, 0x45c
ret

Function at 0x4ada10
Capabilities:
Delete directory

Disassembly:
push ecx
push eax
push esi
lea ecx, [esp + 8]
call fcn.004ada50
mov eax, dword [esp]
test eax, eax
je 0x4ada29
mov dword [edi], eax
mov eax, edi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea eax, [esp]
mov dword [esp], 0
jne 0x4ada45
mov dword [esp], 2
mov ecx, dword [eax]
mov dword [edi], ecx
mov eax, edi
pop ecx
ret
Function at 0x4add10
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x45c
cmp word [esi], 0
mov dword [esp], 0xffffffff
je 0x4addcb
push 0x6bc0cc
push 0x6bc14c
lea eax, [esp + 0x25c]
push eax
mov eax, esi
call fcn.004ad3a0
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4addcb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esp, [esp]
mov ecx, dword [esp + 0xc]
shr ecx, 4
test cl, 1
jne 0x4adda3
push 0x6bc0cc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
mov eax, esi
call fcn.004ad3a0
lea ecx, [esp + 0x25c]
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call ebx
test eax, eax
mov eax, dword [esp + 8]
je 0x4addba
cmp eax, 0xffffffff
jne 0x4add70
jmp 0x4addc9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 8], 0xffffffff
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add esp, 0x45c
ret

Function at 0x4ade60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
mov esi, eax
push 0x104
call fcn.00552ef0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x16]
mov dword [esi + 4], 0
mov edx, dword [edi]
push ecx
push edx
call ebx
cmp dword [esp + 0xc], 1
jne 0x4adefb
mov al, byte [esp + 0xa]
cmp al, 0xd
je 0x4adf13
cmp al, 0xa
je 0x4adf13
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov byte [ecx + edx], al
add dword [esi + 4], 1
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
cmp ecx, eax
jb 0x4adee1
cmp eax, 0x20000000
jbe 0x4adecf
add ecx, 0xffffffff
mov dword [esi + 4], ecx
jmp 0x4adee1
add eax, eax
add eax, eax
push eax
call fcn.00552ef0
test al, al
jne 0x4adee1
add dword [esi + 4], 0xffffffff
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x16]
push edx
push eax
call ebx
cmp dword [esp + 0xc], 1
je 0x4ade9e
mov ecx, dword [esi + 4]
mov esi, dword [esi]
test ecx, ecx
seta al
test esi, esi
je 0x4adf62
mov byte [esi + ecx], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x17]
push edx
push eax
call ebx
cmp dword [esp + 0xc], 1
jne 0x4adf53
mov al, byte [esp + 0xb]
cmp al, 0xd
je 0x4adf39
cmp al, 0xa
jne 0x4adf3f
cmp al, byte [esp + 0xa]
jne 0x4adf53
push 1
or eax, 0xffffffff
push 0
or ecx, eax
push ecx
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esi]
test eax, eax
je 0x4adf60
mov edx, dword [esi + 4]
mov byte [eax + edx], 0
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4adf70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
push edi
jbe 0x4ae00f
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
test al, al
jne 0x4ae020
mov edi, ebx
sub edi, esi
cmp edi, 0x2800
jbe 0x4adfa8
mov edi, 0x2800
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push edi
lea edx, [esi + ecx]
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], edi
jne 0x4ae031
mov edx, dword [ebp]
add esi, edi
mov eax, esi
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x4adfe4
fadd qword [0x7235b8]
mov ecx, ebx
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x4adff8
fadd qword [0x7235b8]
fdivp st(1)
mov edx, dword [edx + 0x24]
sub esp, 8
mov ecx, ebp
fstp qword [esp]
call edx
cmp esi, ebx
jb 0x4adf86
mov eax, dword [esp + 0x14]
mov dword [eax], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esp + 0x14]
mov dword [eax], 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], 2
pop ebx
ret 0x14

Function at 0x4ae050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20c
push esi
push eax
lea esi, [esp + 0xc]
call fcn.004a5640
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4ae068
push 0
sub eax, esi
lea edx, [esp + 8]
push edx
mov esi, eax
mov eax, dword [esp + 0x21c]
push esi
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x20c]
push edx
call fcn.0069c8fa
add esp, 4
cmp dword [esp + 4], esi
pop esi
sete al
add esp, 0x20c
ret 4
Function at 0x4ae0b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov dword [esp + 0x14], 0
jmp 0x4ae0d0
mov edi, dword [esi + 0x2008]
sub edi, dword [esi + 0x2004]
jne 0x4ae11a
cmp ebp, 0x100
push edi
ja 0x4ae19c
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x2000
lea ecx, [esi + 4]
push ecx
push edx
mov dword [esi + 0x2004], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x10]
test edi, edi
mov dword [esi + 0x2008], edi
je 0x4ae1ba
cmp edi, ebp
jbe 0x4ae120
mov edi, ebp
lea eax, [edi - 1]
cmp eax, 7
ja case.0x4ae128.3
jmp dword [eax*4 + 0x4ae1c4]
mov eax, dword [esi + 0x2004]
mov cl, byte [eax + esi + 4]
mov byte [ebx], cl
jmp 0x4ae185
mov edx, dword [esi + 0x2004]
mov ax, word [edx + esi + 4]
mov word [ebx], ax
jmp 0x4ae185
mov ecx, dword [esi + 0x2004]
mov edx, dword [ecx + esi + 4]
mov dword [ebx], edx
jmp 0x4ae185
mov eax, dword [esi + 0x2004]
mov ecx, dword [eax + esi + 4]
mov dword [ebx], ecx
mov edx, dword [eax + esi + 8]
mov dword [ebx + 4], edx
jmp 0x4ae185
mov eax, dword [esi + 0x2004]
push edi
lea ecx, [eax + esi + 4]
push ecx
push ebx
call fcn.006a4bd0
add esp, 0xc
add dword [esi + 0x2004], edi
add dword [esp + 0x14], edi
cmp edi, ebp
je 0x4ae1ba
add ebx, edi
sub ebp, edi
jmp 0x4ae0d0
mov eax, dword [esi]
lea edx, [esp + 0x14]
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
ret 8

Function at 0x4ae1f0
Capabilities:
Read file on windows

Disassembly:
sub dword [esp + 8], 1
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
xor edi, edi
jmp 0x4ae210
mov eax, dword [esi + 0x2004]
cmp eax, dword [esi + 0x2008]
jne 0x4ae24b
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x2000
lea edx, [esi + 4]
push edx
push eax
mov dword [esi + 0x2004], 0
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esi + 0x2008], eax
je 0x4ae276
mov eax, dword [esi + 0x2004]
mov cl, byte [eax + esi + 4]
add eax, 1
cmp cl, 0xd
mov dword [esi + 0x2004], eax
je 0x4ae287
cmp cl, 0xa
je 0x4ae2d2
cmp edi, dword [esp + 0x14]
jae 0x4ae210
mov byte [edi + ebx], cl
add edi, 1
jmp 0x4ae210
xor ecx, ecx
cmp ecx, edi
mov byte [edi + ebx], cl
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
ret 8
cmp eax, dword [esi + 0x2008]
jne 0x4ae2bc
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi + 0x2004], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esi + 0x2008], eax
je 0x4ae2d2
mov eax, dword [esi + 0x2004]
cmp byte [eax + esi + 4], 0xa
jne 0x4ae2d2
add eax, 1
mov dword [esi + 0x2004], eax
mov byte [edi + ebx], 0
pop edi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x4aeb50
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x410
push esi
push edi
lea eax, [esp + 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Debut_ForceLSTRLength
lea ecx, [esp + 0x214]
push ecx
push 0x6cc08c
mov esi, 0x104
lea edi, [esp + 0x14]
call fcn.004af0d0
add esp, 0xc
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4aeba3
mov esi, edi
call fcn.004add10
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4aebb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x618
push esi
push edi
lea edi, [esp + 0x418]
call fcn.004ad090
lea eax, [esp + 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Debut_ForceLSTRLength
lea ecx, [esp + 0x214]
push ecx
push 0x6cc08c
mov esi, 0x104
lea edi, [esp + 0x14]
call fcn.004af0d0
add esp, 0xc
mov ecx, edi
pop edi
lea eax, [esp + 0x414]
pop esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4aec39
test dx, dx
je 0x4aec27
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4aec39
add eax, 4
add ecx, 4
test dx, dx
jne 0x4aec05
xor eax, eax
xor edx, edx
test eax, eax
sete dl
mov al, dl
add esp, 0x618
ret
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
test eax, eax
sete dl
mov al, dl
add esp, 0x618
ret

Function at 0x4aec50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Debut_ForceLSTRLength
lea ecx, [esp + 8]
push ecx
push 0x6cc08c
mov esi, 0x104
call fcn.004af0d0
add esp, 0xc
pop esi
add esp, 0x208
ret

Function at 0x4aed10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esp + 0x214]
push 0x278d00
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.004ada50
add esp, 0x210
ret 4
Function at 0x4aeda0
Capabilities:
Empty the recycle bin

Disassembly:
sub esp, 0x20c
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push edi
call edx
cmp eax, 0x12c
jg 0x4aee29
je 0x4aedd8
cmp eax, 0xffffffff
jne case.default.0x4aee33
push str.NoFreeSpace
push str.LowDiskSpc
call fcn.004b04b0
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov esi, dword [esi + 4]
push 5
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
test eax, eax
jne 0x4aee0c
push eax
push str.LowDiskSpc
mov eax, str.UsageStats
call fcn.004811b0
push str.LowDiskSpc
add eax, 1
push str.UsageStats
call fcn.00480f20
push str.EmptyRecycleBin
push str.LowDiskSpc
call fcn.004b04b0
mov eax, 1
pop edi
pop esi
add esp, 0x20c
ret
sub eax, 0x12d
cmp eax, 3
ja case.default.0x4aee33
jmp dword [eax*4 + 0x4aeeac]
mov eax, dword [esi + 4]
push eax
mov eax, str.Deleting_Temporary_Files
lea ecx, [esp + 0xc]
call fcn.004155b0
lea ecx, [esp + 0xf7]
push ecx
call fcn.004aed10
mov esi, str.LowDiskSpc
call fcn.004b0490
lea eax, [esp + 8]
call fcn.004156d0
mov eax, 2
pop edi
pop esi
add esp, 0x20c
ret
mov eax, 3
pop edi
pop esi
add esp, 0x20c
ret
lea edx, [esi + 8]
lea edi, [esp + 8]
call fcn.004ad0f0
mov edx, edi
push edx
call fcn.004af0f0
mov ecx, esi
call fcn.004aeda0
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x4af0f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x26c]
push esi
push edi
push 1
push 0
push 0
push ebx
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x4af1a4
call fcn.004af5a0
test al, al
je 0x4af1a4
push ebx
push str.explorer.exe___s_
mov esi, 0x104
lea edi, [esp + 0x70]
call fcn.004af0d0
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.006a1300
add esp, 0x14
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push eax
push 0x10
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, edi
push eax
push 0
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebx
add esp, 0x264
ret 4
Function at 0x4af1b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
push esi
push edi
push eax
push str.explorer.exe__select___s_
mov esi, 0x104
lea edi, [esp + 0x68]
call fcn.004af0d0
push 0x44
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.006a1300
add esp, 0x14
mov eax, 1
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
xor eax, eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
mov ecx, edi
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop edi
pop esi
add esp, 0x264
ret

Function at 0x4af250
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
push ebx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
xor bl, bl
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 4]
push edx
push 1
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x14], 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
mov eax, dword [esp + 4]
jne 0x4af2a3
cmp dword [eax + 0xc], 2
jne 0x4af2a3
mov bl, 1
test eax, eax
je 0x4af2ad
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov al, bl
pop ebx
add esp, 0x210
ret

Function at 0x4af710
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4af77a
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af740
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 8]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret 8
xor al, al
pop ecx
ret 8

Function at 0x4af780
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push esi
push 0
push 0
push ecx
push edx
mov dword [esp + 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4af7b9
mov eax, dword [esp]
shr eax, 1
cmp eax, 0x104
jb 0x4af7af
mov eax, 0x103
mov word [esi + eax*2], 0
mov al, 1
pop ecx
ret
mov edx, esi
mov eax, edi
sub edx, edi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4af7c0
xor al, al
pop ecx
ret
Function at 0x4af850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4af91b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edi, eax
jmp 0x4af8a4
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4af90a
mov edi, ecx
shr edi, 1
lea ecx, [edi + 1]
push ecx
call fcn.00480af0
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 1
cmp eax, edi
ja 0x4af8a0
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov edx, dword [esi]
mov eax, edx
lea edi, [eax + 2]
jmp 0x4af8f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af8f0
sub eax, edi
mov edi, dword [esp + 0x14]
sar eax, 1
mov dword [esi + 4], eax
mov word [edx + eax*2], cx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop ebx
je 0x4af92f
push 0x6bc0cc
call fcn.00480630
pop esi
xor al, al
pop ebp
add esp, 8
ret 4
pop esi
mov al, 1
pop ebp
add esp, 8
ret 4

Function at 0x4af940
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esi]
push ebx
mov ebx, dword [esp + 8]
push edi
lea eax, [esp + 0xc]
push eax
push ebx
push 0
push 0
push str.HardwareInformation.MemorySize
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esi]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4af97c
pop edi
mov al, 1
pop ebx
ret 4
pop edi
mov dword [ebx], 0
xor al, al
pop ebx
ret 4

Function at 0x4af990
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
mov esi, eax
mov eax, dword [ebx]
push esi
push eax
call ebp
cmp eax, 2
jne 0x4af9d4
push edi
push esi
push 0x6f1720
mov esi, 0x104
lea edi, [esp + 0x18]
call fcn.004af0d0
mov edx, dword [ebx]
add esp, 8
mov ecx, edi
push ecx
push edx
call ebp
pop edi
mov eax, dword [ebx]
pop esi
pop ebp
pop ebx
add esp, 0x208
mov dword [esp + 4], eax
jmp dword [sym.imp.ADVAPI32.dll_RegCloseKey]
Function at 0x4af9f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea edi, [esi + 4]
push esi
mov dword [esi], 0
mov dword [edi], 0
call ebx
test eax, eax
jne 0x4afa2b
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call ebx
test eax, eax
je 0x4afa8b
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8003
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4afa8b
mov edx, dword [esp + 8]
push 0
push 0xa
push str.nchkqxllib
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4afa8b
mov eax, dword [esp + 8]
mov ecx, dword [esi]
push edi
push 1
push eax
push 0x6801
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4afa8b
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop ebx
pop ecx
ret