joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a8a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x413170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00402f80
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x401ac4
mov esi, dword [esi + 4]
jmp 0x401ac7
add esi, 4
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402e9a
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401afb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401afd
mov bl, 1
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402b2e
leave
ret

Function at 0x401b0d
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x413170]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x24
mov eax, 0x40e6ed
call fcn.00402b3d
mov esi, dword [ebp + 0x234]
xor ebx, ebx
push 0x208
lea eax, [ebp + 0x1c]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.00402f80
add esp, 0xc
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.0040114c
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 0x230]
lea eax, [ebp + 0x1c]
push eax
push ebx
call fcn.004019f6
add esp, 0x10
cmp eax, 1
jne 0x401bc2
lea eax, [ebp + 0x1c]
push eax
call fcn.0040321e
inc eax
pop ecx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040140c
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401fe3
pop ecx
pop ecx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.0040137a
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00401168
jmp 0x401c40
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x230]
call fcn.00401a45
test al, al
pop ecx
pop ecx
je 0x401c70
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x401c70
lea eax, [ebp + 0x1c]
push eax
call fcn.0040321e
inc eax
pop ecx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0040140c
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401fe3
pop ecx
pop ecx
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.0040137a
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00401168
lea eax, [ebp - 0x14]
push eax
call fcn.00401a61
pop ecx
cmp byte [ebp + 0x238], bl
mov byte [ebp - 0xd], 1
je 0x401c70
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x401c58
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c70
lea eax, [ebp]
push eax
call fcn.00401a8a
pop ecx
mov byte [ebp - 0xd], al
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00401168
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00402b2e
add ebp, 0x228
leave
ret
Function at 0x402b2e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413170]
jne 0x402b38
repz ret
jmp fcn.00405d4c

Function at 0x406742
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x413398]
je 0x40675d
inc edi
cmp edi, 0x17
jb 0x40674e
cmp edi, 0x17
jae 0x4068dd
push ebp
push 3
call fcn.0040b6d1
cmp eax, 1
pop ecx
je 0x4068a9
push 3
call fcn.0040b6d1
test eax, eax
pop ecx
jne 0x406791
cmp dword [0x413178], 1
je 0x4068a9
cmp ebx, 0xfc
je 0x4068dc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x414b08
push ebp
call fcn.00403c53
add esp, 0xc
test eax, eax
je 0x4067c7
push esi
push esi
push esi
push esi
push esi
call fcn.0040323e
add esp, 0x14
push 0x104
mov esi, 0x414b21
push esi
push 0
mov byte [0x414c25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40680b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00403c53
add esp, 0xc
test eax, eax
je 0x40680b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040323e
add esp, 0x14
push esi
call fcn.00402c50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406850
push esi
call fcn.00402c50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x414e1c
push 0x41034c
sub ecx, eax
push ecx
push eax
call fcn.0040ade4
add esp, 0x14
test eax, eax
je 0x406850
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040323e
add esp, 0x14
jmp 0x406852
xor esi, esi
push 0x410348
push ebx
push ebp
call fcn.0040ad73
add esp, 0xc
test eax, eax
je 0x406872
push esi
push esi
push esi
push esi
push esi
call fcn.0040323e
add esp, 0x14
push dword [edi*8 + 0x41339c]
push ebx
push ebp
call fcn.0040ad73
add esp, 0xc
test eax, eax
je 0x406894
push esi
push esi
push esi
push esi
push esi
call fcn.0040323e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b514
add esp, 0xc
jmp 0x4068dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4068dc
cmp ebp, 0xffffffff
je 0x4068dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41339c]
push dword [esi]
call fcn.00402c50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40b514
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040578a
xor ebx, ebx
cmp dword [0x415238], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40b5ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b6ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b6ca
push eax
call fcn.0040571c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415238], eax
call esi
push eax
call fcn.0040571c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41523c], eax
call esi
push eax
call fcn.0040571c
mov dword [0x415240], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004064cf
test eax, eax
pop ecx
pop ecx
je 0x40b5b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040323e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40b5ea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040571c
cmp eax, ebx
pop ecx
mov dword [0x415248], eax
je 0x40b5ea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040571c
pop ecx
mov dword [0x415244], eax
mov eax, dword [0x415244]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40b66f
cmp dword [0x415248], ecx
je 0x40b66f
push eax
call fcn.00405793
push dword [0x415248]
mov esi, eax
call fcn.00405793
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40b66f
cmp edi, ebx
je 0x40b66f
call esi
cmp eax, ebx
je 0x40b63c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b63c
test byte [ebp - 0x18], 1
jne 0x40b66f
lea eax, [ebp - 0x10]
push eax
call fcn.00406506
test eax, eax
pop ecx
je 0x40b657
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040323e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40b666
or dword [ebp + 0x10], 0x200000
jmp 0x40b6aa
or dword [ebp + 0x10], 0x40000
jmp 0x40b6aa
mov eax, dword [0x41523c]
cmp eax, dword [ebp - 8]
je 0x40b6aa
push eax
call fcn.00405793
cmp eax, ebx
pop ecx
je 0x40b6aa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b6aa
mov eax, dword [0x415240]
cmp eax, dword [ebp - 8]
je 0x40b6aa
push eax
call fcn.00405793
cmp eax, ebx
pop ecx
je 0x40b6aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415238]
call fcn.00405793
cmp eax, ebx
pop ecx
je 0x40b6ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a6a97
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4a6ad2
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a6ab9
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4a6aca
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4a6ad4
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4a6aaf
xor eax, eax
pop edi
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4018e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallSuperHidden
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x401921
mov al, 1
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b3721
add esp, 0x34
ret
test eax, eax
je 0x401937
xor al, al
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b3721
add esp, 0x34
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
xor edx, edx
push edx
push str.DisplayVersion
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallSuperHidden
push SysReAllocStringLen
mov word [esp + 0x24], dx
mov dword [esp + 0x1c], 0x28
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
je 0x40190f
test eax, eax
jne 0x401925
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40190f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push str.DisplayVersion
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallSuperHidden
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [esp + 0x34]
test eax, eax
sete al
pop esi
xor ecx, esp
call fcn.004b3721
add esp, 0x34
ret
Function at 0x403960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x403970
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x403980
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x403f60
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x403fda
xor eax, eax
cmp ecx, ebp
je 0x403fc2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x403fe8
cmp ecx, ebp
je 0x40407b
push ecx
jmp 0x404075
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40404a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00403f60
mov ebx, eax
cmp ebx, ebp
jne 0x404098
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x404010
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40405d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00404110
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40407b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3721
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4040a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40407d
Function at 0x404b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4df360
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x404c0f
call fcn.00403250
mov esi, eax
jmp 0x404cf1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x404c2b
call fcn.00403250
jmp 0x404ce8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x404c44
call fcn.00403250
jmp 0x404ce8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x404c78
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404c66
lea eax, [ebp]
call fcn.004031d0
lea esi, [ebp - 0x1c]
call fcn.004039b0
mov eax, 0x8007000e
jmp 0x404d03
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00403210
mov dword [ebp - 4], 1
jmp 0x404ca1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x404caf
mov esi, 0x8007000e
jmp 0x404cea
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x404ccd
call fcn.00403250
jmp 0x404ce8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404a40
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404d01
lea eax, [ebp]
call fcn.004031d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004b3721
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4050f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0x2001b
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x4051be
push esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Hidden
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
mov edx, 3
sub edx, dword [esp + 0x14]
push str.Hidden
push ecx
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 4
mov dword [esp + 0x1c], edx
call esi
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 4
mov edx, 2
sub edx, dword [esp + 0x10]
push 0
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
push str.ShowSuperHidden
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0
push 0xbb8
push 2
push str.ShellState
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
add esp, 0x10
ret

Function at 0x4051f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0x2001b
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x40528f
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.HideFileExt
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
mov edx, 1
sub edx, dword [esp + 0x10]
push str.HideFileExt
push ecx
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 4
mov dword [esp + 0x18], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0xbb8
push 2
push str.ShellState
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
add esp, 0x10
ret
Function at 0x4052d0
Capabilities:
Create process on windows
Find taskbar
Terminate process

Disassembly:
push ecx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
je 0x405325
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405325
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push str.explorer.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ecx
ret

Function at 0x405330
Capabilities:
Delete file

Disassembly:
sub esp, 0x824
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x820], eax
mov eax, dword [esp + 0x828]
push 0x400
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x4edb48
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea ecx, [esp]
lea edx, [esp + 0x20]
mov eax, 0x614
push ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 3
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.004b3721
add esp, 0x824
ret

Function at 0x4053d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x1004
call fcn.004b75d0
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x1000], eax
push 0
push 0x20
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405414
lea edx, [esp]
push edx
call fcn.00405330
add esp, 4
lea eax, [esp + 0x800]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40543b
lea ecx, [esp + 0x800]
push ecx
call fcn.00405330
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004b3721
add esp, 0x1004
ret
Function at 0x405450
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x18], eax
lea eax, [esp]
push eax
push 0x2001b
push 0
push str.Control_PanelDesktopWindowMetrics
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp], 0
je 0x405512
push ebx
push esi
push edi
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push 0xa
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi - 1]
push edx
call fcn.004b4148
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0xc
push 0x14
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.Shell_Icon_Size
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1a
push 0xffff
call ebx
push 0xa
lea edx, [esp + 0x14]
push edx
push esi
call fcn.004b4148
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0x14
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.Shell_Icon_Size
push ecx
call edi
push 0
push 0
push 0x1a
push 0xffff
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004b3721
add esp, 0x1c
ret

Function at 0x405530
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 1
call fcn.0040aec0
mov ecx, dword [0x50fd94]
sub ecx, dword [0x50fd90]
mov eax, 0x4d4873ed
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405621
test eax, eax
ja 0x405570
call fcn.004b3c6c
mov esi, dword [0x50fd90]
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4055ff
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4055ff
push edi
push esi
push ebx
call fcn.004b50e0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4055d8
push 0x40
push 0x4edbb8
push 0x4edbc0
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x12], 0
jmp 0x4055ff
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4055f1
push ebp
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov bl, 1
test eax, eax
jne 0x4055f5
mov bl, byte [esp + 0x13]
call dword [sym.imp.USER32.dll_CloseClipboard]
test bl, bl
jne 0x405621
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esp + 0x12], 0
je 0x405621
push 0x40
push 0x4edbb8
push 0x4edbdc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret