joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045b2
Capabilities:
Get graphical window text

Disassembly:
push 0x444
mov eax, 0x477d60
call fcn.0045d82a
push 0x1000
call fcn.0045854a
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
mov eax, dword [esi + 0x8ac]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [esp], 0x800
push ebx
push eax
call edi
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x3c]
mov ecx, eax
call fcn.004240d0
mov eax, dword [esi + 0x8c0]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
push 0x800
push ebx
push eax
call edi
push ebx
lea eax, [ebp - 0x3c]
call fcn.004025d0
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x8b4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, eax
call fcn.0042f180
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402601
push ebx
call fcn.004592db
pop ecx
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
call fcn.00423ff0
mov edx, eax
lea eax, [ebp - 0x450]
call fcn.0040410f
mov ecx, ebx
call fcn.0042da80
test al, al
jne 0x40467f
xor al, al
jmp 0x404703
mov ecx, dword [ebx + 0x8c30]
mov eax, dword [ecx]
push 8
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x450]
push edx
call dword [eax]
mov ecx, 0x48388c
lea eax, [ebp - 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4046c4
cmp dx, di
je 0x4046c0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4046c4
add eax, 4
add ecx, 4
cmp dx, di
jne 0x40469e
xor eax, eax
jmp 0x4046c9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x404701
mov eax, dword [esi + 0x8b4]
call fcn.00403e6c
mov ebx, dword [eax + 0x10]
push 0x10
push edi
push 0x483890
push 0x4838bc
call fcn.004087e0
pop ecx
pop ecx
call fcn.00415cd0
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404678
mov al, 1
call fcn.0045d874
ret

Function at 0x404f03
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x476045
call fcn.0045d82a
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x404fc3
lea edi, [esi + 8]
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 0xb7
jne 0x404f84
push str.cant_create_mutex
lea eax, [ebp - 0x2c]
call fcn.004025d0
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040260f
lea eax, [ebp - 0x2c]
call fcn.0040263b
mov ecx, dword [esi + 0x208]
push eax
push str.ERROR
call fcn.00416a80
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], ebx
call fcn.00402601
xor eax, eax
inc eax
jmp 0x404fc5
push str.Mutex_is_created
lea eax, [ebp - 0x48]
call fcn.004025d0
push edi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.0040260f
lea eax, [ebp - 0x48]
call fcn.0040263b
mov ecx, dword [esi + 0x208]
push eax
push str.INFO
call fcn.00416a80
lea ecx, [ebp - 0x48]
call fcn.00402601
xor eax, eax
call fcn.0045d874
ret
Function at 0x4062c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.0046eb00
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x140c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x1408]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40635c
mov eax, dword [ebp - 0x1408]
cmp eax, 1
je 0x406324
cmp eax, 2
je 0x406329
cmp eax, 7
je 0x406324
cmp eax, 3
jne 0x40635c
cmp eax, 2
jne 0x40634b
push 0x1000
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1404]
push ecx
jmp 0x406352
lea edx, [ebp - 0x404]
push edx
push ebx
push edi
call fcn.004593e1
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x406380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x410]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4063f8
cmp dword [ebp - 0x410], 4
jne 0x4063f8
mov eax, dword [ebp - 0x40c]
push 4
lea edx, [ebp - 0x404]
push edx
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00459f74
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop esi
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x406420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or esi, 0xffffffff
test edi, edi
je 0x406483
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406483
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406450
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406490
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x49b3d4]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x40656e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x406550
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406550
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x406550
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.004593e1
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x406550
cmp word [esi + 2], 0
je 0x40656e
add esi, 2
cmp word [esi + 2], 0
jne 0x4064e0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x406590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x406614
test ebx, ebx
je 0x4065eb
push esi
push 0x800
call fcn.0045854a
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push str.xecute_process_NO_WAIT__cmd:___s___param:___s_
push 0x484088
call fcn.004087e0
add esp, 8
push eax
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push esi
push str.INFO
mov ecx, ebx
call fcn.00416a80
push esi
call fcn.004592db
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push 0x48408c
push 0x484094
call fcn.004087e0
add esp, 8
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x406620
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x49b3d4]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
neg edi
sbb edi, edi
mov dword [esp + 8], 0xfffffffb
xor eax, eax
and edi, 0xfffffff6
push 0x484098
add edi, 0xa
push 0x484088
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
call fcn.004087e0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.00416a80
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40675e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.nd_waiting_process_:
push 0x484088
call fcn.004087e0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
push edi
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40674b
cmp dword [esp + 8], 0x103
jne 0x406753
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x406753
mov dword [esp + 8], 0xfffffffe
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x4067a3
push eax
push ecx
push str.xit_code_is__d
push 0x484088
call fcn.004087e0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push 0x100
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x4067c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4067ff
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0046eb00
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1004]
push ecx
mov eax, esi
call fcn.004025d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x406b50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bcf
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x406bc8
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0045854a
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.00465a00
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x406cca
mov byte [ebp - 0x129], 1
jmp 0x406d99
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406d99
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x406d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406d98
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x406d97
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x406d90
xor edi, edi
cmp dword [esi], ebx
jbe 0x406d90
lea ebx, [esi + 4]
jmp 0x406d70
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x406d88
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x406d70
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x406dc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0046eb00
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x484204
push eax
mov edi, ecx
call fcn.00459b8b
mov esi, eax
add esp, 8
test esi, esi
je 0x406e0f
push 0x48420c
push edi
call fcn.00459b8b
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x406e21
call fcn.0045a390
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00459f57
add esp, 0x10
test eax, eax
je 0x406e6b
jmp 0x406e40
push edi
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0045a140
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.00459f57
add esp, 0x20
test eax, eax
jne 0x406e40
push esi
call fcn.0045a390
push edi
call fcn.0045a390
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00458db6
mov esp, ebp
pop ebp
ret
Function at 0x407410
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x484354
push 0x4842c8
mov ebx, eax
call fcn.004087e0
add esp, 8
push eax
push str.INFO
mov ecx, edi
call fcn.00416a80
mov eax, ebx
call fcn.0040263b
push eax
push str.INFO
mov ecx, edi
call fcn.00416a80
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40750a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 2
push 0
push 0
mov dword [ebp - 8], eax
push 0x40000000
mov eax, ebx
mov dword [ebp + 8], 0
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4074dc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
test eax, eax
jne 0x4074cd
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ant_create_file
push 0x48411c
call fcn.004087e0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00416a80
push edi
call fcn.004169e0
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.esource_file_not_found
push 0x4843d4
call fcn.004087e0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00416a80
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407540
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4843d8
push 0x484118
call fcn.004087e0
mov ecx, dword [ebp + 8]
add esp, 8
push eax
push str.INFO
call fcn.00416a80
push str.OFTWAREClassesInstallerProducts4EA42A62D9304AC4784BF238120613FF
push 0x4841d0
call fcn.004087e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.OFTWAREJavaSoftJava_Runtime_Environment
push 0x4841d0
call fcn.004087e0
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.OFTWAREWow6432NodeJavaSoftJava_Runtime_Environment
push 0x4841d0
call fcn.004087e0
add esp, 8
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
pop esi
pop ebp
ret
Function at 0x4078f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 0
call fcn.004025a9
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], 0
push 0x104
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x484568
push 0x484018
call fcn.004087e0
add esp, 8
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call fcn.0040262a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret

Function at 0x407aa0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407adc
test al, 0x10
jne 0x407aed
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x407b7b
lea edi, [ebp - 0x234]
call fcn.00407cd0
mov eax, edi
mov dword [ebp - 4], 0
call fcn.0040263b
push eax
push esi
push str.sTest__s
push 0x484350
call fcn.004087e0
add esp, 8
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x407b70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00402601
mov al, 1
jmp 0x407b7d
lea ecx, [ebp - 0x234]
call fcn.00402601
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret
Function at 0x407f60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov esi, eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.00465a00
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408010
mov ecx, ebx
lea eax, [ebp - 0x20c]
jmp 0x407fc0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fe6
test dx, dx
je 0x407fe2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fe6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407fc0
xor eax, eax
jmp 0x407feb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407ffa
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
jne 0x40800e
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407fb3
jmp 0x408010
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00458db6
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ad3
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x49b3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x49], 1
call fcn.00406920
push str.Zona
mov eax, esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040260f
mov ecx, esi
push ecx
lea edx, [ebp - 0x48]
push str.Try_delete_file_Zona_from
push edx
call fcn.0040ceb0
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.0040263b
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402601
mov eax, esi
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4094f3
test al, 0x10
jne 0x4094f3
push str.File_found
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov eax, esi
call fcn.0040263b
push edi
push 1
push 3
push edi
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40940b
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], edi
jne 0x4094de
cmp dword [ebp - 0x54], edi
jne 0x4094de
push str.File_is_empty
push str.INFO
mov ecx, ebx
call fcn.00416a80
push edi
lea eax, [ebp - 0x2c]
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2c]
call fcn.0040263b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4094cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x100]
push ecx
mov esi, eax
call fcn.00409760
push esi
push ecx
lea edx, [ebp - 0xf0]
push str.Cant_delete__last_error_is
push edx
mov byte [ebp - 4], 2
call fcn.00403bd5
add esp, 0xc
push eax
call fcn.00409590
push eax
call fcn.00402188
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x100]
call fcn.00409820
mov byte [ebp - 4], 3
call fcn.0040263b
push eax
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov ecx, edi
call fcn.00402601
lea ecx, [ebp - 0x100]
mov byte [ebp - 0x49], 0
mov byte [ebp - 4], 0
call fcn.00408060
jmp 0x4094f3
push str.File_is_deleted
push str.INFO
mov ecx, ebx
call fcn.00416a80
jmp 0x4094f3
push str.File_is_NOT_empty
push str.INFO
mov ecx, ebx
call fcn.00416a80
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x2c]
call fcn.00402601
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458db6
mov esp, ebp
pop ebp
ret