joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005a8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
lea eax, [ebp - 8]
push eax
push 0xb
xor edi, edi
push edi
call esi
test eax, eax
je 0x1005ad5
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
test eax, eax
mov esi, dword [sym.imp.SHELL32.dll_ILFree]
je 0x1005ad0
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_ILIsParent]
test eax, eax
je 0x1005acb
inc edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10062a9
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push dword [0x1009238]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10062d9
xor eax, eax
jmp 0x10063c1
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10063b5
push dword [ebp - 4]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x10063b5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call esi
mov edi, eax
cmp edi, ebx
je 0x10063aa
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10063a1
cmp dword [edi], 0x43434d50
jne 0x1006368
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.01006006
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp + 0xc], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x10063aa
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10063a1
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8
Function at 0x10063c6
Capabilities:
Delete file
Get common file path
Query environment variable
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push edi
push 0x1009238
xor edi, edi
push 0x20019
push edi
push dword [ebp + 0x18]
mov dword [ebp - 8], edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10063fd
xor eax, eax
jmp 0x1006586
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [0x1009238]
mov dword [ebp + 0x18], 0x1f
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov word [ebp - 0x18], di
je 0x1006562
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x104
cmp eax, edi
jne 0x1006529
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0x66c]
push eax
push 0x1001bc0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x1001bbc
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x1001bb0
lea eax, [ebp - 0x25c]
push eax
call esi
cmp dword [ebp + 0x10], edi
je 0x10064b8
lea eax, [ebp - 0x25c]
push eax
call fcn.010053bb
cmp eax, dword [ebp - 0x14]
je 0x1006529
lea eax, [ebp - 0x464]
push eax
push edi
push 0x1001ba8
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1006529
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.010062a9
test eax, eax
je 0x1006529
cmp dword [ebp + 0xc], edi
je 0x1006500
cmp dword [ebp - 4], edi
jne 0x1006500
call fcn.01006604
mov dword [ebp - 4], 1
lea eax, [ebp - 0x464]
push eax
call dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
lea eax, [ebp - 0x25c]
push eax
call fcn.0100539b
inc dword [ebp - 0xc]
inc dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x18], 0x1f
push dword [0x1009238]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov word [ebp - 0x18], di
jne 0x100643c
pop esi
pop ebx
push dword [0x1009238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], edi
mov dword [0x1009238], edi
je 0x1006583
cmp dword [ebp - 4], edi
je 0x1006583
call fcn.0100660f
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 0x14
Function at 0x1006d04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x43
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1006d52
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1006d52
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006d49
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x1006d59
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x1006d9e
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1006dbb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1006d93
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006dbb
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1006dbb
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x1006ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0xc]
push eax
push 0x1002230
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1007058
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1002198
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100704e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1001ed8
push edi
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push edi
mov edi, 0x1001ea8
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001eec
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001eec
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001ef8
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001ef8
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001f08
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001f08
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001f28
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
push dword [ebp - 4]
push 0x1001f28
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001f40
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x1007033
cmp dword [ebp - 4], ebx
sete al
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0x1001f64
push edi
push dword [ebp - 0xc]
call fcn.01006dc2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
leave
ret 4

Function at 0x10070f1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp word [eax], 0x2a
jne 0x100710e
push eax
inc esi
call dword [sym.imp.USER32.dll_CharNextW]
push 0x104
lea ecx, [ebp - 0x410]
push ecx
push 1
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_58]
test eax, eax
je 0x1007156
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.SHELL32.dll_Ordinal_37
test esi, esi
lea eax, [ebp - 0x208]
push eax
je 0x1007150
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1007156
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
leave
ret 8
Function at 0x100715b
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
cmp dword [ebp + 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_Ordinal_58]
push edi
mov edi, 0x104
je 0x100720b
push edi
lea eax, [ebp - 0x410]
push eax
push 1
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x100720b
push dword [ebp + 0xc]
lea eax, [ebp - 0x618]
push dword [ebp + 8]
push eax
call sub.SHELL32.dll_Ordinal_37
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call sub.SHELL32.dll_Ordinal_37
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push eax
call ebx
test eax, eax
jne 0x100721d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100721d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100721d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push eax
call ebx
test eax, eax
jne 0x100721d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100721d
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call sub.SHELL32.dll_Ordinal_37
push edi
lea eax, [ebp - 0x410]
push eax
push 2
push dword [ebp + 0x10]
call esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_365]
test eax, eax
pop edi
pop esi
pop ebx
je 0x100724e
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
leave
ret 0x10

Function at 0x1007252
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
lea eax, [ebp - 8]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10072ed
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10072d8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x105
jmp 0x10072c0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 8]
call fcn.01007252
dec dword [ebp - 4]
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
je 0x10072b1
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
leave
ret 8
Function at 0x10072f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x490
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x78]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1007466
and dword [ebp + 0x58], eax
push 0x20
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1007450
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push 0xd
mov edi, 0x208
pop ebx
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1007430
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x50], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1007427
cmp word [ebp - 0x218], ax
je 0x1007427
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp + 0x54]
push ecx
mov dword [ebp + 0x4c], eax
xor eax, eax
push eax
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp + 0x30]
push ecx
mov dword [ebp + 0x64], eax
push eax
jmp 0x1007418
cmp word [ebp + 0x30], 0
je 0x10073f9
cmp dword [ebp + 0x54], 1
jne 0x10073f9
cmp dword [ebp + 0x7c], 0
lea eax, [ebp - 0x420]
je 0x10073e5
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.010070f1
jmp 0x10073f9
push dword [ebp + 0x4c]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100715b
inc dword [ebp + 0x64]
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 0x54]
push eax
push 0
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x68], ebx
call esi
test eax, eax
je 0x10073bd
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 0x58]
push 0x20
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1007344
pop edi
pop esi
pop ebx
push dword [ebp + 0x78]
push 0x80000002
call fcn.01007252
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebp, 0x70
leave
ret 8
Function at 0x100746d
Capabilities:
Delete registry key
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x100760d
push ebx
push esi
push edi
push 1
lea edi, [eax + 0x208]
push 2
lea esi, [edi + 0x208]
push esi
lea ebx, [esi + 0x208]
push 0
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_Ordinal_175]
push esi
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push 0x10020e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1007601
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0x208]
push eax
xor ecx, ecx
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
push ebx
push ecx
push dword [ebp - 0x18]
mov esi, 0x104
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10075e8
mov ebx, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov eax, dword [ebp - 8]
cmp word [eax], 0
je 0x10075b1
cmp dword [ebp - 0x1c], 1
jne 0x10075b1
lea eax, [edi + 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 8]
push esi
push dword [ebp - 4]
add eax, 0x208
push 1
push eax
call ebx
push dword [ebp - 4]
push edi
call sub.SHELL32.dll_Ordinal_36
cmp dword [ebp - 0x20], 0
je 0x1007584
push dword [ebp - 8]
push edi
call sub.SHELL32.dll_Ordinal_36
push 0x1001658
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 8]
push esi
push dword [ebp - 4]
add eax, 0x208
push 2
push eax
call ebx
jmp 0x10075a4
mov eax, dword [ebp - 8]
push esi
push dword [ebp - 4]
add eax, 0x208
push 2
push eax
call ebx
push dword [ebp - 4]
call sub.SHELL32.dll_Ordinal_34
push eax
push edi
call sub.SHELL32.dll_Ordinal_36
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 8]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [eax + 0x208]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1007517
push 0x10020e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40176f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401779
repz ret
jmp fcn.00401a16

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x403000
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x406752
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4068ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068c6
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x7c8a022e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x503d62be
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219