joyce8/EMBER2024-capa huggingface dataset:
Function at 0x72a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73e808
push 0x72e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x72a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x72a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0072d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x72a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x72a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x72a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0072a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x72b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x72b131
push esi
call fcn.0072e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0071d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x72b131
push 0
push ebp
call fcn.0071d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0071d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x72b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0071d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x72b121
push 0x743918
push edi
call fcn.0072c3f0
push eax
push ebx
push esi
call fcn.0072af60
push 0x7438f8
push edi
call fcn.0072c3f0
push eax
push ebx
push esi
call fcn.0072af60
push 0x7438d8
push edi
call fcn.0072c3f0
push eax
push ebx
push esi
call fcn.0072af60
push 0x7438c0
push edi
call fcn.0072c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0072af60
push 0x7438a0
push edi
call fcn.0072c3f0
push eax
push ebx
push esi
call fcn.0072af60
push 0x743888
push edi
call fcn.0072c3f0
push eax
push ebx
push esi
call fcn.0072af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x72c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0072c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0072c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0072c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0072c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x72cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x72cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x73e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x72cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x72cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401445
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x228]
lea ecx, [esp]
push ebp
mov ebp, dword [esp + 0x228]
and eax, 0x300
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push ecx
mov dword [esp + 0x18], eax
or eax, 9
push eax
push ebp
push edi
call fcn.004067b5
test eax, eax
jne 0x401554
xor ecx, ecx
test byte [esp + 0x234], 2
je 0x4014cd
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401531
xor ecx, ecx
push 0x105
lea eax, [esp + 0x1c]
push eax
push ecx
jmp 0x401502
test esi, esi
jne 0x401531
push dword [esp + 0x234]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call fcn.00401445
test eax, eax
jne 0x401510
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4014da
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406dff
mov esi, eax
test esi, esi
jne 0x401542
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401554
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401554
push 0
push dword [esp + 0x18]
mov ecx, esi
push ebp
push edi
call dword [0x4092c8]
call esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00408581
add esp, 0x21c
ret 0xc
Function at 0x403400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x40342a
mov eax, dword [0x477d98]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x41f174], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403262
test eax, eax
js 0x403500
push ebx
push esi
push 4
lea eax, [ebp - 4]
push eax
push dword [0x40b014]
call fcn.00406e61
test eax, eax
je 0x4034fb
push dword [ebp - 4]
add dword [0x41f174], 4
call fcn.00403262
mov esi, eax
test esi, esi
js 0x4034f7
cmp dword [ebp + 0x10], edi
jne 0x4034cb
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x4034f7
mov ebx, 0x4000
mov edi, 0x430d50
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40b014]
mov dword [ebp - 8], eax
call fcn.00406e61
test eax, eax
je 0x4034fb
push dword [ebp - 8]
push edi
push dword [ebp + 0xc]
call fcn.00406f25
test eax, eax
je 0x4034c7
mov eax, dword [ebp - 8]
add esi, eax
mov ecx, dword [ebp - 4]
add dword [0x41f174], eax
sub ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x403483
jmp 0x4034f7
push 0xfffffffffffffffe
jmp 0x4034fd
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
cmovl eax, dword [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4034fb
mov esi, dword [ebp - 8]
add dword [0x41f174], esi
mov eax, esi
jmp 0x4034fe
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403523
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x40b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x403558
mov eax, dword [0x41f188]
test eax, eax
je 0x40354c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x41f188], 0
jmp 0x4035da
cmp dword [0x41f188], 0
je 0x40356a
push 0
call fcn.004066d4
jmp 0x4035da
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x477d40]
jbe 0x4035da
cmp dword [0x46fd38], 0
je 0x4035b5
test byte [0x477e34], 1
je 0x4035da
call fcn.00403505
push eax
lea eax, [ebp - 0x84]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 0
call fcn.004061ae
jmp 0x4035da
push 0
push 0x4038e0
push 0
push 0x6f
push dword [0x46fd34]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x41f188], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408581
leave
ret
Function at 0x4062a6
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4062c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x40664c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x40b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
ja 0x406693
test eax, eax
je 0x406693
add eax, eax
cmp word [ebp + eax - 0x242], 0x5c
je 0x406695
mov ecx, 0x409318
jmp 0x40669a
xor eax, eax
mov ecx, 0x40931a
push esi
push ecx
lea ecx, [ebp - 0x240]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x240]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408581
leave
ret 4

Function at 0x406702
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406725
push dword [esp + 8]
push dword [esp + 8]
call fcn.004067e3
pop ecx
pop ecx
inc dword [0x477e10]
ret 8

Function at 0x4067e3
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, 0x4659d8
mov dword [0x4659d8], 0x55004e
mov dword [0x4659dc], 0x4c
push edi
mov edi, 0x400
test esi, esi
je 0x406836
push 1
push 0
push esi
call fcn.00406e34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40691c
cmp eax, edi
jg 0x40691c
push edi
mov esi, 0x4651d8
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40691c
cmp eax, edi
jg 0x40691c
push ebp
push esi
push ebx
push str._ls_ls_r_n
push 0x464dd8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x477d50]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00406321
push 4
push 0xc0000000
push esi
call fcn.00406e34
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40691b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406914
push esi
push edi
push ebx
call fcn.00406e61
test eax, eax
je 0x406914
push str._Rename__r_n
push edi
call fcn.00407068
test eax, eax
jne 0x406920
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x464dd8
lea eax, [ecx + edi]
push eax
call fcn.00406ba5
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406f25
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
ret
push 0x409a0c
add eax, 0xa
push eax
call fcn.00407068
mov ecx, eax
test ecx, ecx
je 0x4068e5
lea edx, [edi + esi]
jmp 0x40693f
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406939
sub ecx, edi
inc ecx
jmp 0x4068e7
Function at 0x406a76
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004070b6
mov edi, eax
cmp edi, 0xffffffff
je 0x406ab9
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406a9a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406aa0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406aa9
xor eax, eax
inc eax
jmp 0x406abb
test byte [ebp + 0xc], 4
jne 0x406ab9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406b29
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x460dd8
push edi
call fcn.0040704c
push edi
call fcn.004070de
mov esi, eax
test esi, esi
je 0x406b9e
push esi
call fcn.00407260
test byte [0x477d4c], 0x80
je 0x406b62
movzx eax, word [esi]
test ax, ax
je 0x406b9e
cmp eax, 0x5c
je 0x406b9e
sub esi, edi
sar esi, 1
jmp 0x406b7c
call fcn.00406ac0
test eax, eax
je 0x406b76
test byte [eax], 0x10
je 0x406b9e
push edi
call fcn.0040722f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
cmp eax, esi
jg 0x406b68
call fcn.00406a47
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406b9e
xor eax, eax
inc eax
jmp 0x406ba0
xor eax, eax
pop edi
pop esi
ret 4

Function at 0x406bc7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x45cd90], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x45cd90
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406c06
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406c0a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x264
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
mov ebx, dword [esp + 0x270]
push esi
mov esi, dword [esp + 0x270]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406b29
mov dword [esp + 0x18], eax
test bl, 8
je 0x406c5a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x477e08], eax
jmp 0x406de5
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x406c77
test eax, eax
je 0x406dd4
test bl, 2
je 0x406d9d
push esi
push 0x45cdd8
call fcn.0040704c
test ebp, ebp
je 0x406c98
push str..
push 0x45cdd8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406c9e
push esi
call fcn.0040722f
xor eax, eax
cmp word [esi], ax
jne 0x406caf
cmp word [0x45cdd8], 0x5c
jne 0x406cbb
push 0x409318
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push 0x45cdd8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x406d89
mov ebp, dword [esp + 0x10]
push 0x2e
pop eax
cmp word [esp + 0x4c], ax
jne 0x406d0b
cmp word [esp + 0x4e], 0
je 0x406d64
cmp word [esp + 0x4e], ax
jne 0x406d0b
cmp word [esp + 0x50], 0
je 0x406d64
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call fcn.0040704c
test byte [esp + 0x20], 0x10
je 0x406d32
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d64
push ebx
push esi
call fcn.00406c0a
jmp 0x406d64
push edi
push esi
call fcn.00406a76
test eax, eax
jne 0x406d5c
test edi, edi
je 0x406d54
push esi
push 0xfffffffffffffff1
call fcn.004061ae
xor eax, eax
push eax
push esi
call fcn.00406702
jmp 0x406d64
inc dword [0x477e08]
jmp 0x406d64
push esi
push 0xfffffffffffffff2
call fcn.004061ae
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ced
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x406de4
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x1c], ecx
je 0x406dd4
push esi
call fcn.00406ac0
test eax, eax
je 0x406de4
push esi
call fcn.00406a47
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406a76
test eax, eax
jne 0x406ddc
test edi, edi
je 0x406dd4
push esi
push 0xfffffffffffffff1
call fcn.004061ae
xor eax, eax
push eax
push esi
call fcn.00406702
jmp 0x406de4
inc dword [0x477e08]
jmp 0x406de4
push esi
push 0xffffffffffffffe5
call fcn.004061ae
pop ebp
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408581
add esp, 0x264
ret 8

Function at 0x406e34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004067b5
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406f03
push esi
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x406f03
cmp dword [ebp - 8], 1
je 0x406f08
cmp dword [ebp - 8], 2
je 0x406f08
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406f0d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 0xc], 0x73006e
mov dword [ebp - 8], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 8], dx
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406fc7
test edi, edi
jne 0x406f8c
mov word [esi], ax
jmp 0x406fc9
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408581
leave
ret 8

Function at 0x4070b6
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070d8
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x46642c], 0
push esi
jne 0x40739f
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407376
mov dword [ecx*4 + 0x466428], edx
inc ecx
cmp ecx, 0x100
jl 0x407371
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x4073c9
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x466428]
inc esi
sub edx, 1
jne 0x4073b1
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x40e5e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40e5fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e5f0
mov eax, 1
add ebx, ebx
jne 0x40e613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e608
jne 0x40e624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e608
xor ecx, ecx
sub eax, 3
jb 0x40e638
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e6aa
mov ebp, eax
add ebx, ebx
jne 0x40e643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e674
inc ecx
add ebx, ebx
jne 0x40e660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e655
jne 0x40e671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e655
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e685
jmp 0x40e5f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e694
add edi, ecx
jmp 0x40e5f6
pop esi
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e6f3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1299c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e6b1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a2c]
or eax, eax
je 0x40e6ed
mov dword [ebx], eax
add ebx, 4
jmp 0x40e6ce
call dword [esi + 0x12a28]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40e724
cmp al, 0xef
ja 0x40e717
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40e6f9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40e706
mov ebp, dword [esi + 0x12a30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40e758
sub esp, 0xffffff80
jmp 0x403222