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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x409408
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4093f8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40601a
xor eax, eax
jmp 0x406041
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x406041
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x406016
call esi
pop esi
leave
ret 4

Function at 0x40607b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x432400], 0x44
push eax
xor eax, eax
push 0x432400
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 0x4060ba
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4060be
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 0x40615c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004065bc
mov edi, eax
cmp edi, 0xffffffff
je 0x40619d
test byte [esp + 0x10], 1
push esi
je 0x40617f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406185
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40618e
xor eax, eax
inc eax
jmp 0x40619f
test byte [esp + 0x10], 4
jne 0x40619d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4061a4
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004064c8
test bl, 8
mov dword [ebp - 8], eax
je 0x4061e3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x438948], eax
jmp 0x4063b9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4061fd
test eax, eax
je 0x40633b
test bl, 2
je 0x40633b
mov edi, 0x431400
push esi
push edi
call fcn.00406af1
cmp dword [ebp + 8], 0
je 0x40621c
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x406222
push esi
call fcn.0040640c
cmp word [esi], 0
jne 0x406232
cmp word [0x431400], 0x5c
jne 0x40623d
push 0x40b524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406330
cmp word [ebp - 0x22c], 0x2e
jne 0x40628f
cmp word [ebp - 0x22a], 0
je 0x406313
cmp word [ebp - 0x22a], 0x2e
jne 0x40628f
cmp word [ebp - 0x228], 0
je 0x406313
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406af1
test byte [ebp - 0x258], 0x10
je 0x4062ba
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406313
push dword [ebp + 0xc]
push esi
call fcn.004061a4
jmp 0x406313
push esi
push str.Delete:_DeleteFile___s__
call fcn.00407044
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.0040615c
test eax, eax
push esi
jne 0x40630c
cmp dword [ebp - 4], eax
je 0x4062f8
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00407044
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405ac5
push 0
push esi
call fcn.004068b1
jmp 0x406313
push str.Delete:_DeleteFile_failed___s__
call fcn.00407044
inc dword [0x438948]
pop ecx
pop ecx
jmp 0x406313
push 0xfffffffffffffff2
call fcn.00405ac5
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40625f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40633b
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4063b9
cmp dword [ebp - 8], edi
push esi
jne 0x40635c
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00407044
inc dword [0x438948]
pop ecx
pop ecx
jmp 0x4063b9
call fcn.00407075
test eax, eax
je 0x4063b9
push esi
call fcn.004063c0
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00407044
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.0040615c
test eax, eax
push esi
jne 0x4063b2
cmp dword [ebp - 4], edi
je 0x4063ab
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00407044
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405ac5
push edi
push esi
call fcn.004068b1
jmp 0x4063b9
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x40634d
push 0xffffffffffffffe5
call fcn.00405ac5
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4064c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x431c00
push esi
call fcn.00406af1
push esi
call fcn.0040646b
mov edi, eax
test edi, edi
jne 0x4064e9
xor eax, eax
jmp 0x406541
push edi
call fcn.00406d78
test byte [0x4388d8], 0x80
je 0x406506
mov ax, word [edi]
test ax, ax
je 0x4064e5
cmp ax, 0x5c
je 0x4064e5
sub edi, esi
sar edi, 1
jmp 0x406520
call fcn.00407075
test eax, eax
je 0x40651a
test byte [eax], 0x10
je 0x4064e5
push esi
call fcn.0040640c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40650c
call fcn.004063c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4065bc
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 0x4065db
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4065e1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x406610
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 [0x40c508]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40c50c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406660
test edi, edi
jne 0x40661d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40665a
Function at 0x406737
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x432a98], 0x55004e
mov dword [0x432a9c], 0x4c
mov edi, 0x400
mov ebp, 0x432a98
je 0x40678d
push 1
push 0
push esi
call fcn.004065e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4068ac
cmp eax, edi
jg 0x4068ac
mov esi, 0x433298
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4068ac
cmp eax, edi
jg 0x4068ac
push esi
push ebp
push str._ls_ls_r_n
push 0x432698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4388d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406b2e
push 4
push 0xc0000000
push esi
call fcn.004065e1
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4068ac
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 0x4068a5
push edi
push esi
push ebp
call fcn.00406664
test eax, eax
je 0x4068a5
push str._Rename__r_n
push esi
call fcn.00406546
test eax, eax
jne 0x406843
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406878
add eax, 0xa
push 0x40c510
push eax
call fcn.00406546
mov ebp, eax
test ebp, ebp
je 0x406874
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406865
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40685f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40687a
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x432698
push eax
call fcn.0040659c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406693
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4068b1
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 0x4068d4
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406737
pop ecx
pop ecx
inc dword [0x438950]
ret 8
Function at 0x4069bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040695e
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406a2f
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406a2f
cmp dword [ebp + 0xc], 1
je 0x406a33
cmp dword [ebp + 0xc], 2
je 0x406a33
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x40709c
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 0x4070c0
xor eax, eax
test eax, eax
je 0x4070d3
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4070d3
xor ecx, ecx
jmp 0x4070d6
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40b524]
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 0x4071f9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x433a9c], 0
push esi
jne 0x407230
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 0x40720a
mov dword [ecx*4 + 0x433a98], eax
inc ecx
cmp ecx, 0x100
jl 0x407205
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x407261
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 + 0x433a98]
xor eax, esi
inc ecx
dec edx
jne 0x407243
pop edi
not eax
pop esi
ret 0xc
Function at 0x404880
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x4048da
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4048a4
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40489c
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, 0x80004005
call fcn.00405c4a
int3
Function at 0x404db8
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x411074]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x220]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404ec5
cmp dword [ebp - 0x218], esi
je 0x404e25
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test esi, esi
jne 0x404ec5
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push esi
push eax
jmp 0x404e8c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00404db8
mov esi, eax
test esi, esi
jne 0x404ec5
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404e55
cmp dword [ebp - 0x218], 0
je 0x404ebb
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
push ebx
mov ecx, edi
call fcn.00404f24
mov esi, eax
cmp dword [ebp - 0x218], 0
je 0x404eda
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff30
leave
ret 4
Function at 0x405855
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x411074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
mov dword [ebp - 0x410], ecx
pop ecx
push ecx
push edx
push eax
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x408], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4058ae
call fcn.00404553
mov esi, eax
jmp 0x40597d
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x4058c9
call fcn.00404553
jmp 0x405974
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4058bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4058f2
mov esi, 0x8007000e
jmp 0x40597d
push 2
pop ecx
mul ecx
test edx, edx
ja 0x4059b4
jb 0x40590a
cmp eax, 0xffffffff
ja 0x4059b4
cmp eax, 0x400
jbe 0x405925
push eax
lea ecx, [ebp - 0x408]
call fcn.0040452b
mov eax, dword [ebp - 0x408]
jmp 0x405931
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
test eax, eax
jne 0x40593c
mov esi, 0x8007000e
jmp 0x405976
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4058bf
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x414]
push dword [ebp - 0x408]
call fcn.004056fe
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x405996
lea ecx, [ebp - 0x408]
call fcn.00404521
lea ecx, [ebp - 0x40c]
call fcn.004048e5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ff30
leave
ret 0x10
mov ecx, 0x80070057
call fcn.00405c4a
int3
Function at 0x4096f5
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x40975c
mov edx, edi
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 4]
jne 0x409711
sub edx, ebx
sar edx, 1
pop ebx
je 0x40975c
push edi
call fcn.004098a3
mov esi, eax
test esi, esi
js 0x40975c
push 1
push edi
xor eax, eax
push eax
call dword [sym.imp.mscms.dll_UninstallColorProfileW]
test eax, eax
jne 0x40975c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40975c
test eax, eax
jg 0x409753
mov esi, eax
jmp 0x40975c
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x40a2d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push 0x38
pop ebx
push ebx
mov dword [edi + 0x58], eax
lea esi, [edi + 0x20]
xor eax, eax
push eax
push esi
mov dword [edi + 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call sub.msvcrt.dll_memset
mov dword [esi], ebx
lea ecx, [edi + 0x6c]
mov dword [edi + 0x24], 0x80
add esp, 0xc
mov eax, dword [0x411038]
xor ebx, ebx
or dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x28], eax
movzx eax, word [edi + 0x58]
push dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x38], 0x40a8c0
mov dword [edi + 0x40], 0x40a880
mov dword [edi + 0x3c], edi
mov dword [edi], 0x401514
mov dword [edi + 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x64], eax
mov dword [ecx], 0x67727473
mov dword [ecx + 4], 0x4118b8
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
mov byte [edi + 0x98], 1
mov byte [edi + 0xa4], bl
push dword [0x411038]
call fcn.0040f6d6
test eax, eax
js 0x40a38e
mov eax, dword [edi + 0x70]
or dword [edi + 0x24], 0x1000
mov dword [edi + 0x48], eax
push 0xaaaaaa
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 0x74], eax
mov eax, edi
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], 0x14a
mov dword [edi + 0x94], 0x91
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40e0fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
push SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
test esi, esi
jne 0x40e17d
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40e17d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x40e17a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x40e17a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
jmp 0x40e17d
push 0xd
pop esi
cmp dword [ebp - 4], edi
je 0x40e18b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x40e198
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x40e1a0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40e1e4
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x40e1f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x40e200
movzx esi, si
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x40e9ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMDCCWSimulator
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x40ea18
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.UseSimulator
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x40ea18
cmp dword [ebp - 8], edi
jne 0x40ea15
cmp dword [ebp - 0xc], edi
je 0x40ea18
push 0xd
pop ebx
cmp dword [ebp - 4], esi
je 0x40ea26
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 1
pop edi
sete al
neg ebx
pop esi
sbb bl, bl
not bl
and al, bl
pop ebx
leave
ret
Function at 0x40ee5d
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x60]
push dword [ebx + 4]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4123e0]
mov ecx, edi
call esi
mov edi, dword [ebx + 4]
test eax, eax
js 0x40eecb
push edi
call dword [sym.imp.USER32.dll_GetParent]
push 3
push 0
push 0x470
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
lea ecx, [ebx + 4]
call fcn.0040ed7d
push 3
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebx + 0x64]
push 0x69
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4123e0]
mov ecx, edi
call esi
jmp 0x40eedc
push eax
mov ecx, eax
call fcn.0040a937
mov edx, eax
mov ecx, edi
call fcn.0040e302
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40efc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x4118b4]
push esi
push edi
test eax, eax
jne 0x40efd9
call fcn.0040f095
test eax, eax
je 0x40f025
mov eax, dword [0x4118b4]
cmp eax, 1
jne 0x40eff5
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40f025
jmp 0x40f06b
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x40f00e
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x40f06b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40f029
xor eax, eax
jmp 0x40f06b
mov eax, dword [esi]
push dword [0x4118b4]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x40f04f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40f06b
lea edi, [esi + 0xff0]
push esi
push dword [0x4118b4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40f055
mov eax, esi
pop edi
pop esi
ret