joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406895
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x406950
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40694f
cmp dword [esi + 0x78], ebx
jne 0x4068ea
mov byte [ebp - 1], 1
jmp 0x40694f
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x40694f
add eax, 2
push eax
call fcn.00425b95
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40694f
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x406948
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x406932
mov eax, dword [ecx + 0x68]
jmp 0x406935
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.00406729
mov byte [ebp - 1], al
push esi
call fcn.00426909
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x406959
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov esi, ecx
call fcn.00427370
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4069f0
cmp dword [esi + 0x28], 8
jb 0x4069ab
mov eax, dword [esi + 0x14]
jmp 0x4069ae
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43dabc
push eax
call edi
test eax, eax
jne 0x4069c9
cmp dword [ebp - 0x7c], 5
sete al
jmp 0x4069f2
cmp dword [esi + 0x28], 8
jb 0x4069d4
mov esi, dword [esi + 0x14]
jmp 0x4069d7
add esi, 0x14
push 0x43dab4
push esi
call edi
test eax, eax
jne 0x4069ec
cmp dword [ebp - 0x7c], 5
setne al
jmp 0x4069f2
mov al, 1
jmp 0x4069f2
xor al, al
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.004267f0
add ebp, 0x98
leave
ret
Function at 0x406a09
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x406aa7
cmp dword [esi + 0x44], 8
jb 0x406a22
mov eax, dword [esi + 0x30]
jmp 0x406a25
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43dad4
push eax
call edi
test eax, eax
jne 0x406a70
cmp dword [esi + 0x60], 8
jb 0x406a42
mov eax, dword [esi + 0x4c]
jmp 0x406a45
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a6c
cmp dword [esi + 0x60], 8
jb 0x406a5b
mov esi, dword [esi + 0x4c]
jmp 0x406a5e
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406a6c
inc eax
jmp 0x406aa9
xor eax, eax
jmp 0x406aa9
cmp dword [esi + 0x44], 8
jb 0x406a7b
mov eax, dword [esi + 0x30]
jmp 0x406a7e
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x406aa7
cmp dword [esi + 0x60], 8
jb 0x406a95
mov esi, dword [esi + 0x4c]
jmp 0x406a98
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x406aa9
xor al, al
pop edi
pop esi
ret

Function at 0x4072bb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x1c
mov eax, 0x4397aa
call fcn.004267ff
mov ebx, ecx
push 0x43db0c
lea ecx, [ebp + 0x1c]
call fcn.00405965
and dword [ebp - 4], 0
push 0x43db08
lea ecx, [ebp]
call fcn.00405965
push 0
lea eax, [ebp + 0x1c]
lea edi, [ebx + 0x18]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004070e3
mov esi, eax
lea eax, [ebp + 0x650]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp esi, 0xffffffff
je 0x4073a3
test eax, eax
je 0x4073cf
lea eax, [ebp + 0x650]
add ebx, 0x54
push eax
mov ecx, ebx
call fcn.00405941
push esi
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004070e3
cmp eax, 0xffffffff
je 0x407372
mov ecx, dword [ebp + 0x30]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00407299
mov byte [ebp - 4], 2
jmp 0x407389
mov eax, dword [ebp + 0x30]
push 0xffffffffffffffff
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00407299
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00405eb9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405621
jmp 0x4073cf
test eax, eax
je 0x4073cf
lea eax, [ebp + 0x38]
push eax
push 0
push 0x43db00
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4073cf
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebx + 0x54]
call fcn.00405941
push 0
push 1
lea ecx, [ebp]
call fcn.00405621
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.00405621
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.004267f0
add ebp, 0xc6c
leave
ret
Function at 0x4078b1
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x398], ebx
push edi
mov edi, edx
jle 0x4078ee
push 8
call fcn.004261ec
pop ecx
cmp eax, ebx
je 0x4078d5
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x4078d7
xor eax, eax
push ebx
push ebx
push eax
push 0x407878
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4079de
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4079dd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x407964
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x40796c
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4079dd
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x407991
inc eax
push eax
call fcn.00425b95
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4079dd
push ebx
lea ecx, [ebp - 0x620]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4079cf
mov eax, dword [ebp - 0x620]
cmp eax, dword [esi + 4]
jne 0x4079cf
push dword [esi + 0x10]
call fcn.00426909
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x4079dd
cmp byte [esi + 0xc], bl
je 0x4079dd
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004267f0
leave
ret

Function at 0x407a85
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44a4b4], 0
je 0x407ae3
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00427370
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov byte [0x44a4b4], 0
sbb al, al
inc al
mov byte [0x44c078], al
jmp 0x407ae8
mov al, byte [0x44c078]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004267f0
add ebp, 0x98
leave
ret
Function at 0x407f78
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
mov dword [ebp - 0xc], edx
je 0x408019
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408017
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00425b95
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40800f
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408006
cmp edi, dword [ebp - 8]
jne 0x408006
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.00407d5c
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.00426909
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4081a1
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2020]
mov eax, 0x2020
call fcn.00427b30
push 0xffffffffffffffff
push 0x43985f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp + 0x201c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
call fcn.00405e5e
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040801b
xor eax, eax
push 0x1ffe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.00427370
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40831b
push str.123374DE290_123F_4565_9164_39C4925E467B
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x2000
call fcn.00405965
push 0x43d9d0
push 3
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00408175
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x408269
lea eax, [ebp + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408310
mov edi, str._USERPROFILE_
push edi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x408305
lea ecx, [ebp + 0x1c]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.00405941
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00405676
push ebx
push 0x28
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
mov ecx, esi
call fcn.0040814d
cmp dword [esi + 0x18], 8
jb 0x4082e9
mov eax, dword [esi + 4]
jmp 0x4082ec
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4082fc
test al, 0x10
jne 0x408310
mov ecx, esi
call fcn.0040801b
jmp 0x408310
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00405941
push ebx
push 1
lea ecx, [ebp]
call fcn.00405621
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x201c]
xor ecx, ebp
call fcn.004267f0
add ebp, 0x2020
leave
ret

Function at 0x4083f0
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408421
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x40842d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8
Function at 0x40850d
Capabilities:
Create process on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push dword [esi]
mov byte [ebp - 0x21], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 0x105]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425b95
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4086ab
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425b95
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4086a1
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x2c]
call edi
push dword [esi]
push dword [ebp - 0x28]
call edi
mov edi, dword [ebp - 0x2c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, edi
call fcn.0040847e
push dword [ebp - 0x28]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi + 0x14]
lea ecx, [ebp - 0x21]
push edi
call fcn.004083f0
test al, al
je 0x408696
push str.runas
lea ecx, [ebp - 0x20]
call fcn.00405965
push 0x38
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00427370
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], eax
cmp byte [esi + 0x10], al
je 0x4085f9
mov dword [ebp - 0x5c], eax
jmp 0x408608
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x408605
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
cmp byte [esi + 8], al
push 6
sete cl
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40868a
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x408679
cmp dword [ebp - 0x30], 0
je 0x408679
cmp byte [esi + 9], 0
mov byte [ebp - 0x21], 1
je 0x408660
cmp byte [esi + 8], 0
jne 0x408660
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
call fcn.00408500
mov esi, dword [esi + 0xc]
test esi, esi
je 0x40866e
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
jmp 0x408684
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408684
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00405621
push dword [ebp - 0x28]
call fcn.00426909
pop ecx
jmp 0x4086a4
mov edi, dword [ebp - 0x2c]
push edi
call fcn.00426909
pop ecx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004267f0
leave
ret 4
Function at 0x4086bf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00427370
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x100
test esi, esi
je 0x4086f6
mov dword [ebp - 0x44], 0x140
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x38], ebx
test esi, esi
je 0x408711
and dword [esi], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x408731
test esi, esi
je 0x4087d6
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x4087d6
cmp dword [ebp - 0x28], 0x1b
je 0x408741
cmp dword [ebp - 0x28], 0x1f
jne 0x4087d6
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.shell32.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
jne 0x4087ce
push 0x38
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00427370
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x100
cmp esi, edi
je 0x40879b
mov dword [ebp - 0x80], 0x140
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x78], str.openas
mov dword [ebp - 0x74], ebx
cmp esi, edi
je 0x4087b2
mov dword [esi], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4087d5
cmp esi, edi
je 0x4087d5
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
jmp 0x4087d5
lea ecx, [ebp - 0xc]
push ecx
push edi
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x408866
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4088c6
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x408890
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4088b9
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4088c8
xor al, al
pop ebx
leave
ret 8
Function at 0x40937b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x439a1f
call fcn.00426868
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
mov dword [ebp - 0x34], esi
push edx
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409447
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
call edi
test eax, eax
jne 0x409447
cmp dword [ebp - 0x38], 1
jne 0x409447
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.0040557d
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x40942e
push esi
shr eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408cf3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x409410
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push dword [ebp - 0x34]
call edi
mov eax, dword [ebp - 0x18]
push esi
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408cf3
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407249
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405621
jmp 0x409452
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
call fcn.00405965
mov eax, dword [ebp - 0x30]
call fcn.004268eb
ret 0xc
Function at 0x40d004
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.00427370
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 7
mov dword [ebp - 0xbb0], 0x401
call fcn.00427370
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004267f0
leave
ret

Function at 0x40d0db
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3b8
lea eax, [ebp - 0xbbc]
push 0
push eax
mov esi, ecx
call fcn.00427370
mov edi, dword [esi + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0xbc0], 0x3bc
mov dword [ebp - 0xbbc], edi
mov dword [ebp - 0xbb8], 1
mov dword [ebp - 0xbb4], 6
call fcn.00427370
add esp, 0x18
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xba8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0xbac], eax
lea eax, [ebp - 0xbc0]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004267f0
leave
ret

Function at 0x40d92a
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test bl, 1
je 0x40d93f
mov edi, 0x80000000
and ebx, 2
je 0x40d963
cmp dword [esi + 0x40], 8
jb 0x40d94f
mov eax, dword [esi + 0x2c]
jmp 0x40d952
lea eax, [esi + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or edi, 0x40000000
cmp dword [esi + 0x5c], 8
jb 0x40d96e
mov eax, dword [esi + 0x48]
jmp 0x40d971
lea eax, [esi + 0x48]
push 0
push 0x80
push ebx
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
mov dword [esi + 0x24], eax
setne cl
pop esi
mov al, cl
pop ebx
ret 4