joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x421540]
push edi
jae 0x415ce8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x421560]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x415ce8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x415bbe
test dl, 2
jne 0x415bbe
test dl, 0x48
je 0x415b88
cmp byte [eax + 5], 0xa
je 0x415b88
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x415bb9
mov dword [0x421088], ecx
jmp 0x415cef
cmp eax, 0x6d
jne 0x415bc5
xor eax, eax
jmp 0x415cfc
push eax
call fcn.0041406f
pop ecx
jmp 0x415cf9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x415ce3
test eax, eax
je 0x415bf8
cmp byte [ebx], 0xa
jne 0x415bf8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415c01
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x415cdd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x415ccd
cmp al, 0xd
je 0x415c33
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x415cbf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x415c4d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x415c48
add dword [ebp - 8], 2
jmp 0x415ca1
mov dword [ebp - 8], eax
jmp 0x415cbb
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415cbb
cmp dword [ebp - 0x10], 0
je 0x415cbb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x415c96
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415ca1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x415cbe
cmp ebx, dword [ebp + 0xc]
jne 0x415ca6
cmp byte [ebp - 1], 0xa
jne 0x415ca6
mov byte [ebx], 0xa
jmp 0x415cbe
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004142ef
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415cbf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x415c17
jmp 0x415cdd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x415cdd
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x415cfc
and dword [0x421088], 0
mov dword [0x421084], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416209
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040ee00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162a4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x421090]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4162a4
cmp eax, 1
je 0x4162c5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4162a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416271
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4162a0
xor eax, eax
inc eax
jmp 0x4162e4
cmp edi, eax
jae 0x4162a8
xor eax, eax
jmp 0x4162e4
cmp eax, esi
jae 0x4162af
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421090]
jmp 0x4162c8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40142e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa00
push ebx
push esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x200], ax
xor ebx, ebx
lea eax, [ebp - 0x1fe]
push ebx
push eax
call fcn.00408a3a
push 5
pop ecx
push 0x7ec
lea eax, [ebp - 0x9ec]
push ebx
mov esi, str._c_copy__
lea edi, [ebp - 0xa00]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00408a3a
add esp, 0x18
lea eax, [ebp - 0x200]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xa00]
push 0x4e0000
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x40948c
lea eax, [ebp - 0xa00]
push eax
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0xa00]
push eax
call sub.KERNEL32.dll_lstrcatW
push 0x409494
lea eax, [ebp - 0xa00]
push eax
call sub.KERNEL32.dll_lstrcatW
push ebx
push ebx
lea eax, [ebp - 0xa00]
push eax
push 0x409390
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0xa00]
push eax
push 0x40949c
call fcn.00407327
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401505
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
push eax
and esi, 0x300
mov eax, esi
or eax, 9
push eax
push dword [esp + 0x230]
and edi, 1
push dword [esp + 0x230]
call fcn.00406d76
test eax, eax
jne 0x40160e
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x40157a
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x4015ea
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4015b5
test edi, edi
jne 0x4015ea
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401505
test eax, eax
jne 0x4015bf
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x40158d
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004076cd
test eax, eax
jne 0x4015fb
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40160e
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40160e
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x40383f
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x4c8000
mov edi, eax
call sub.KERNEL32.dll_lstrlenW
lea ebx, [eax + 1]
test ebx, ebx
jle 0x403a0b
test edi, edi
je 0x403a12
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x403a0b
push str._n_______________________
call fcn.00407327
pop ecx
push esi
push dword [ebp - 0x424]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x200], ax
lea eax, [ebp - 0x1fe]
push eax
call fcn.00408a3a
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.00408a3a
add esp, 0x18
lea eax, [ebp - 0x200]
push 0x100
push eax
push 0
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
push ebx
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.004037e8
add esp, 0xc
lea eax, [ebp - 0x82c]
push 0x4c8000
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4039c9
push 0x4e0000
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40395b
lea eax, [ebp - 0x200]
push eax
push 0x409348
call fcn.00407327
pop ecx
pop ecx
jmp 0x4039c9
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push eax
call fcn.00408a3a
push dword [ebp - 0x424]
lea eax, [ebp - 0x62c]
push str._c_taskkill__F__T__PID__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x62c]
push 0
push 0
push eax
push 0x409390
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x200]
push eax
push 0x4093a4
call fcn.00407327
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x424]
push str.pid_d_name_s__npath_s__n
call fcn.00407327
add esp, 0x10
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40389d
push str._______________________
call fcn.00407327
pop ecx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
Function at 0x403bd3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x403bfc
mov eax, dword [0x4735b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x42014c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403a54
test eax, eax
js 0x403cdb
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call fcn.0040772f
test eax, eax
jne 0x403c28
push 0xfffffffffffffffd
pop eax
jmp 0x403cdb
add dword [0x42014c], 4
push esi
push dword [ebp + 8]
call fcn.00403a54
mov esi, eax
test esi, esi
jns 0x403c43
jmp 0x403cda
push ebx
cmp dword [ebp + 0x10], edi
jne 0x403ca6
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x403cd7
mov ebx, 0x4000
mov edi, 0x4281f0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40c014]
mov dword [ebp - 4], eax
call fcn.0040772f
test eax, eax
je 0x403cc9
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004077f2
test eax, eax
je 0x403ca2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add dword [0x42014c], eax
sub ecx, eax
add esi, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403c5e
jmp 0x403cd7
push 0xfffffffffffffffe
jmp 0x403ccb
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403cce
push 0xfffffffffffffffd
pop eax
jmp 0x403cd9
mov esi, dword [ebp - 4]
add dword [0x42014c], esi
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret 0x10

Function at 0x403cfe
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x403d26
mov eax, dword [0x420160]
test eax, eax
je 0x403d1d
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420160], 0
leave
ret
cmp dword [0x420160], 0
je 0x403d38
push 0
call fcn.00406cad
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x473564]
jbe 0x403da2
cmp dword [0x46b558], 0
je 0x403d7d
test byte [0x473654], 1
je 0x403da2
call fcn.00403ce0
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.004067a2
leave
ret
push 0
push 0x404066
push 0
push 0x6f
push dword [0x46b554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420160], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x4061b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
push esi
push edi
xor eax, eax
mov esi, 0x1fe
push esi
mov word [ebp - 0x600], ax
xor edi, edi
lea eax, [ebp - 0x5fe]
push edi
push eax
call fcn.00408a3a
xor eax, eax
push esi
mov word [ebp - 0x200], ax
lea eax, [ebp - 0x1fe]
push edi
push eax
call fcn.00408a3a
xor eax, eax
push esi
mov word [ebp - 0x400], ax
lea eax, [ebp - 0x3fe]
push edi
push eax
call fcn.00408a3a
lea eax, [ebp - 0x600]
push eax
call fcn.00405e09
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4c8000
lea eax, [ebp - 0x200]
push str._sInstallLogs_
push eax
call esi
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push str._c_md___s_
push eax
call esi
add esp, 0x40
lea eax, [ebp - 0x400]
push edi
push edi
push eax
push 0x409390
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x200]
push eax
push str._sinstall__s.log
push 0x461ce0
call esi
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x406886
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 0x4068a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x4068a6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x40a5ac
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x40a59c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406914
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40691e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x406918
xor eax, eax
jmp 0x40691e
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x406c3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
xor eax, eax
cmp ecx, esi
cmova ecx, eax
pop esi
test ecx, ecx
je 0x406c72
cmp word [ebp + ecx*2 - 0x23e], 0x5c
jne 0x406c75
xor eax, eax
inc eax
push dword [ebp + 8]
lea eax, [eax*2 + 0x409c64]
push eax
lea eax, [ebp - 0x23c]
push str._s_S.dll
lea eax, [eax + ecx*2]
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 0x406cdb
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 0x406cfe
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406da4
pop ecx
pop ecx
inc dword [0x473630]
ret 8

Function at 0x406da4
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [0x460e78], 0x55004e
mov dword [0x460e7c], 0x4c
mov ebx, 0x400
mov ebp, 0x460e78
test esi, esi
je 0x406dfa
push 1
push 0
push esi
call fcn.00407702
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406ede
cmp eax, ebx
jg 0x406ede
push ebx
mov esi, 0x460678
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406ede
cmp eax, ebx
jg 0x406ede
push esi
push ebp
push str._ls_ls_r_n
push 0x460278
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x473574]
add esp, 0x10
push dword [ecx + 0x128]
mov ebp, eax
push esi
mov dword [esp + 0x20], ebp
call fcn.00406922
push 4
push 0xc0000000
push esi
call fcn.00407702
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ede
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 0x406ed7
push esi
push edi
push ebx
call fcn.0040772f
test eax, eax
je 0x406ed7
push str._Rename__r_n
push edi
call fcn.0040791f
test eax, eax
jne 0x406ee3
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 0x460278
lea eax, [ecx + edi]
push eax
call fcn.00407436
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.004077f2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a970
add eax, 0xa
push eax
call fcn.0040791f
mov ecx, eax
test ecx, ecx
je 0x406ea8
lea edx, [edi + esi]
add ebp, edx
cmp edx, ecx
jbe 0x406f0c
sub ebp, edx
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406f02
mov ebp, dword [esp + 0x18]
sub ecx, edi
inc ecx
jmp 0x406eaa
Function at 0x4071ce
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00407972
mov edi, eax
cmp edi, 0xffffffff
je 0x407211
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4071f9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x407201
xor eax, eax
inc eax
jmp 0x407213
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4071f0
test byte [ebp + 0xc], 4
jne 0x407211
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x45c278
push ebx
call fcn.00407903
push ebx
call fcn.0040799a
mov esi, eax
test esi, esi
jne 0x4072ca
xor eax, eax
jmp 0x407322
push esi
call fcn.00407acb
test byte [0x473570], 0x80
je 0x4072e6
movzx eax, word [esi]
test ax, ax
je 0x4072c6
cmp eax, 0x5c
je 0x4072c6
sub esi, ebx
sar esi, 1
jmp 0x407300
call fcn.00407218
test eax, eax
je 0x4072fa
test byte [eax], 0x10
je 0x4072c6
push ebx
call fcn.00407a9e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x4072ec
call fcn.0040719f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x407456
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x458230
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x458230], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407495
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x407702
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
xor ecx, ecx
cmp eax, 0xffffffff
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 0x40775e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x4000
push dword [ebp + 8]
call fcn.00406d76
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4077d0
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
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 0x4077d0
cmp dword [ebp + 0x18], 1
je 0x4077d5
cmp dword [ebp + 0x18], 2
je 0x4077d5
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4077da
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 0x40783d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a950]
mov dword [ebp - 8], eax
mov eax, dword [0x40a954]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407889
test edi, edi
jne 0x40784a
mov word [esi], ax
jmp 0x40788b
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x407972
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 0x407994
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 0x407bc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4618cc], 0
push esi
jne 0x407bf8
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xedb88320
shr edx, 1
xor edx, eax
dec esi
jne 0x407bd1
mov dword [ecx*4 + 0x4618c8], edx
inc ecx
cmp ecx, 0x100
jl 0x407bcc
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
not ecx
test edx, edx
je 0x407c22
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4618c8]
inc esi
dec edx
jne 0x407c0a
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219