joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40307b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403251
push dword [0x41f11c]
call fcn.0040328e
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030ee
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.0040325c
test eax, eax
je 0x40321c
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424768], ebp
je 0x40317f
cmp dword [0x424800], ebp
jne 0x40317f
cmp dword [esp + 0x10], ebp
je 0x40314c
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405ea3
jmp 0x40317f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40317f
mov eax, dword [0x424764]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x424760]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call fcn.00405f64
test eax, eax
jl 0x403225
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031e6
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403221
cmp esi, dword [esp + 0x14]
jne 0x403221
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x403114
jmp 0x4031f2
cmp dword [0x40b05c], ebp
jne 0x403225
cmp ebx, ebp
je 0x403225
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030d8
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40322a
or eax, 0xffffffff
jmp 0x403253
push 0xfffffffffffffffe
jmp 0x403227
push 0xfffffffffffffffd
pop eax
jmp 0x403253
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403251
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053ee
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422d68], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405412
test al, 0x10
jne 0x405415
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422d68
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405440
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405753
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054dc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247e8], eax
jmp 0x40566d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054fa
test eax, eax
je 0x405612
test byte [ebp + 0xc], 2
je 0x405612
mov esi, 0x421d68
push edi
push esi
call fcn.00405b66
test ebx, ebx
je 0x405517
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40551d
push edi
call fcn.004056ba
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405608
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040569e
cmp byte [eax], 0
je 0x40556e
cmp byte [ebp - 0x18], 0
je 0x40556e
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405584
mov al, byte [esi + 1]
test al, al
je 0x4055e7
cmp al, 0x2e
jne 0x405584
cmp byte [esi + 2], 0
je 0x4055e7
push esi
push ebx
call fcn.00405b66
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055aa
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055e7
push dword [ebp + 0xc]
push edi
call fcn.004054a8
jmp 0x4055e7
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055df
test byte [ebp + 0xc], 4
je 0x4055d7
push edi
push 0xfffffffffffffff1
call fcn.00404f09
push 0
push edi
call fcn.004058ae
jmp 0x4055e7
inc dword [0x4247e8]
jmp 0x4055e7
push edi
push 0xfffffffffffffff2
call fcn.00404f09
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40554c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405612
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40566d
cmp dword [ebp - 8], esi
jne 0x405627
inc dword [0x4247e8]
jmp 0x40566d
push edi
call fcn.00405e3b
test eax, eax
je 0x40566d
push edi
call fcn.00405673
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405665
test byte [ebp + 0xc], 4
je 0x40561f
push edi
push 0xfffffffffffffff1
call fcn.00404f09
push esi
push edi
call fcn.004058ae
jmp 0x40566d
push edi
push 0xffffffffffffffe5
call fcn.00404f09
pop edi
pop esi
leave
ret 8
Function at 0x405753
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422168
push esi
call fcn.00405b66
push esi
call fcn.00405706
mov edi, eax
test edi, edi
jne 0x405774
xor eax, eax
jmp 0x4057c6
push edi
call fcn.00405da2
test byte [0x424770], 0x80
je 0x40578d
mov al, byte [edi]
test al, al
je 0x405770
cmp al, 0x5c
je 0x405770
sub edi, esi
jmp 0x4057a5
call fcn.00405e3b
test eax, eax
je 0x40579f
test byte [eax], 0x10
je 0x405770
push esi
call fcn.004056ba
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405791
call fcn.00405673
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405837
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405866
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058aa
test edi, edi
jne 0x405871
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058a4
Function at 0x4058ae
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e79
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058da
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a20
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ef0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ef0
je 0x40591e
push 1
push 0
push esi
call fcn.00405837
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a26
cmp eax, edi
jg 0x405a26
mov esi, 0x422968
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a26
cmp eax, edi
jg 0x405a26
push esi
push ebp
push str._s_s_r_n
push 0x422568
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a20
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a19
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a19
cmp edi, dword [esp + 0x18]
jne 0x405a19
push str._Rename__r_n
push esi
call fcn.004057cb
test eax, eax
jne 0x405a2d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b66
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422568
push eax
call fcn.00405817
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4247f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409324
push eax
call fcn.004057cb
test eax, eax
je 0x4059e4
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405a56
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405a49
sub eax, esi
jmp 0x4059e6
Function at 0x405b88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405ba9
mov ecx, dword [0x423f3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424798]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423700
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d7c
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d7c
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d89
inc ebx
cmp cl, 0xfc
jbe 0x405d6f
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d1a
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c3d
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405cb5
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c5c
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5a
jmp 0x405cb0
cmp eax, 0x26
jne 0x405c8c
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a5a
cmp byte [edi], 0
jne 0x405d12
push str.C:Program_Files
push edi
call fcn.00405b66
jmp 0x405cb0
cmp eax, 0x25
jne 0x405c9f
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cb0
cmp eax, 0x24
jne 0x405cb5
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d12
cmp dword [0x4247e4], 0
jne 0x405cc1
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424764]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405cf7
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053c3
cmp dword [ebp - 8], 0
jne 0x405cfe
jmp 0x405cfa
and byte [edi], 0
test esi, esi
jne 0x405cc1
cmp byte [edi], 0
je 0x405d12
cmp dword [ebp + 0xc], 0
je 0x405d12
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405da2
jmp 0x405d60
cmp byte [ebp + 0xf], 0xfd
jne 0x405d4e
cmp esi, 0x1b
jne 0x405d33
push dword [0x424764]
push edi
call fcn.00405ac4
jmp 0x405d44
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b66
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d60
jmp 0x405d12
cmp byte [ebp + 0xf], 0xff
jne 0x405d60
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b88
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x423700
jmp 0x405d7c
jne 0x405d79
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d7c
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bd4
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d9e
push eax
push dword [ebp + 8]
call fcn.00405b66
leave
ret 8
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232f4], 0
push esi
jne 0x405f0d
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 0x405ee7
mov dword [ecx*4 + 0x4232f0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
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 + 0x4232f0]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4108ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410724
Function at 0x1005e7f
Capabilities:
Persist via run registry key
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push edi
test ax, ax
je 0x1005f38
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
cmp ax, 0x2d
je 0x1005eb6
cmp ax, 0x2f
je 0x1005eb6
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1005ea0
cmp word [esi], 0
je 0x1005f38
inc esi
push 0x10014b0
inc esi
push esi
call edi
test eax, eax
je 0x1005f41
push 0x1001494
push esi
call edi
test eax, eax
je 0x1005f6f
push 0x1001484
push esi
call edi
test eax, eax
je 0x1005f82
push 0x1001458
push esi
call edi
test eax, eax
je 0x1005fa0
push 0x1001444
push esi
call edi
test eax, eax
je 0x1005fee
movzx eax, word [esi]
sub eax, 0x62
je 0x1005f26
sub eax, 0x10
je 0x1005f20
dec eax
jne 0x1005f2a
or dword [ebp - 4], 4
jmp 0x1005f2a
or dword [ebp - 4], 1
jmp 0x1005f2a
or dword [ebp - 4], 2
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1005ea0
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f67
push 0
push fcn.01009581
push 0
push 3
push 0x10013e0
push 0x80000002
call fcn.01008c55
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f67
call fcn.01005e4b
jmp 0x1005f67
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1005f67
push 0
push fcn.01009581
push 0
push 8
push 0x1001380
jmp 0x1005f5d
call fcn.01008b6d
test eax, eax
jne 0x1005fb3
call fcn.01008a60
call fcn.010075db
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x43
call esi
test eax, eax
jne 0x1005fc6
call fcn.010075c1
call fcn.01008b6d
test eax, eax
jne 0x1005fe4
push 0x43
call esi
test eax, eax
jne 0x1005fe4
push eax
call fcn.01007e16
push 0
call fcn.0100769d
call fcn.010076ba
jmp 0x1005f67
call fcn.01008a60
call fcn.010075db
jmp 0x1005f67

Function at 0x10061cf
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006208
push 0x1001500
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100620f
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, word [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push eax
mov ebx, 0x186
push ebx
push dword [ebp + 8]
call esi
movzx eax, word [ebp + 0xc]
push edi
push eax
push 0x199
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10062cb
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 5
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov word [ebp - 0x32], cx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push edi
push edi
push 0x200
push edi
push edi
push edi
add eax, 0x108
push eax
push edi
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10062cb
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10062d3
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x10066cb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x100c124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 0x634], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.01007f9c
push 0x1001520
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.01006655
lea eax, [ebp - 0x620]
push eax
push 1
xor edi, edi
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006836
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
push edi
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x624], edi
push edi
jmp 0x1006809
cmp dword [ebp - 0x630], 1
jne 0x10067d8
push 0x314
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10067d8
lea eax, [ebp - 0x20c]
push eax
push 0x80
push edi
call fcn.01007f9c
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [edi + 0x108]
push eax
call fcn.01007f9c
push edi
push 0
push 0x180
push dword [ebp - 0x634]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x10067d1
cmp eax, 0xfffffffe
jne 0x10067d8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x624]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x624]
push dword [ebp - 0x620]
mov dword [ebp - 0x62c], esi
mov dword [ebp - 0x628], 0x208
call ebx
test eax, eax
je 0x1006771
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006f7d
leave
ret 4