joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424520
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push 8
push ebx
mov dword [ebp - 0x114], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x110], eax
cmp esi, 0x4c7
jne 0x424575
push 2
push ebx
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4245b9
cmp esi, 0x1000b
jne 0x4245d4
push 0x52e110
push 0
push edi
call fcn.00423e60
add esp, 0xc
push str.You_need_to_reboot_the_PC_to_complete_the_ransomware_removal_process.
push 0x2000000
push edi
call fcn.00423e60
add esp, 0xc
push str.After_reboot__run_the_decryptor_again.
push 0x2000000
push edi
call fcn.00423e60
lea eax, [esi + 7]
jmp 0x4245cb
push str.Decryption_complete
push 0
push edi
call fcn.00423e60
mov eax, 0x10011
mov dword [ebp - 0x110], eax
add esp, 0xc
mov dword [edi + 0x2a0], 7
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [edi + 0x270]
mov ecx, 1
cmovb esi, ecx
mov ecx, eax
sub ecx, dword [edi + 0x270]
mov dword [edi + 0x270], eax
sbb esi, dword [edi + 0x274]
add dword [edi + 0x280], ecx
mov ecx, edi
mov dword [edi + 0x274], 0
adc dword [edi + 0x284], esi
push dword [edi + 0x284]
push dword [edi + 0x280]
call fcn.00423aa0
push dword [edi + 0x338]
lea eax, [ebp - 0x10c]
push dword [edi + 0x33c]
push str._u____u
push 0x80
push eax
call fcn.00407130
add esp, 0x1c
lea eax, [ebp - 0x10c]
push eax
push dword [edi + 0x124]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0xcc
push 0x428
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 0x211
mov ecx, eax
call fcn.0042a6a0
add esp, 4
push 0
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x13c]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4246be
push 0
push 0xfa0
push eax
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push dword [ebp - 0x114]
push ebx
push 0
push 8
call fcn.0041e910
mov ecx, dword [ebp - 8]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret
Function at 0x426200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x320]
mov dword [ebp - 0x320], 0
mov edi, ecx
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
call fcn.00426050
mov esi, eax
test esi, esi
jne 0x42634a
push ebx
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x320]
call fcn.004258f0
mov ebx, eax
test ebx, ebx
je 0x42632e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
lea eax, [ebp - 0x35c]
push esi
push eax
call fcn.004ca440
add esp, 0xc
mov dword [ebp - 0x35c], 0x3c
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x358], 0x440
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x354], esi
push eax
mov dword [ebp - 0x350], str.runas
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x340], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x426317
push 0xffffffffffffffff
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x314]
push eax
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x324]
call ebx
jmp 0x42631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x310]
test eax, eax
je 0x426336
push eax
call ebx
jmp 0x426336
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x318]
pop ebx
test eax, eax
je 0x42634a
push eax
call fcn.004c716b
add esp, 4
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x33c], eax
xor ecx, ebp
pop edi
mov eax, esi
pop esi
call fcn.004c715a
mov esp, ebp
pop ebp
ret
Function at 0x426bf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push esi
mov esi, ecx
mov dword [ebp - 4], esi
test eax, eax
jne 0x426c1d
mov eax, 0xe8
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push 0
push 3
push 0
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x426c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x426cd6
mov esi, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x426cc4
cmp eax, 0x100000
jae 0x426cc4
add eax, 2
push eax
call fcn.004c71b1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x426c7e
lea esi, [eax + 8]
jmp 0x426cc9
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
je 0x426cae
push ebx
mov esi, 0x1e
call fcn.004c716b
add esp, 4
jmp 0x426cc9
push eax
push ebx
mov ecx, esi
call fcn.00426a00
push ebx
mov esi, eax
call fcn.004c716b
add esp, 4
jmp 0x426cc9
mov esi, 0xb
pop ebx
cmp edi, 0xffffffff
je 0x426cd6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x427540
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427575
sub ecx, edx
lea edi, [ebp - 0x20c]
sar ecx, 1
lea edi, [edi + ecx*2]
test ebx, ebx
jne 0x4275b3
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
lea esi, [ebp - 4]
push ebx
sub esi, edi
push 0x548824
sar esi, 1
push esi
push edi
call fcn.00407130
push 0x2e
push edi
call fcn.004c8989
add esp, 0x18
test eax, eax
je 0x4275eb
lea edx, [ebp - 4]
mov ecx, eax
sub edx, eax
push str..ini
sar edx, 1
call fcn.00407030
jmp 0x427619
push ecx
lea eax, [ebp - 0x418]
mov edx, esi
push eax
mov ecx, edi
call fcn.004071b0
test eax, eax
js 0x427619
mov eax, dword [ebp - 0x418]
sub esi, eax
push ecx
push str..ini
push ecx
lea ecx, [edi + eax*2]
mov edx, esi
call fcn.004106b0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427622
sub ecx, edx
mov edx, 2
sar ecx, 1
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c71b1
mov esi, eax
add esp, 4
test esi, esi
je 0x427669
lea ecx, [edi + edi]
push ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004c9ec0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret 4
Function at 0x428a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x54a990
push 0x4cab40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x551764]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x34], 0
je 0x428a64
mov edi, 0xb7
jmp 0x428ae8
push 0
push 0
push 1
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
call edi
mov dword [esi + 0x38], eax
test eax, eax
jne 0x428a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x428ae6
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 0x3c], eax
test eax, eax
je 0x428a7b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x428abb
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x428abb
push 0x428880
push ecx
push 0x1400
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x30], eax
test eax, eax
je 0x428a7b
cmp dword [esi], 0
je 0x428add
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x4288b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
je 0x428a7b
push 1
mov ecx, esi
call fcn.004289d0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00428b11
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x1f4], ecx
push edi
xor edi, edi
cmp dword [esi], 4
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x1f0], ebx
jne 0x428e6e
push 0xf0
lea eax, [ebp - 0x1e8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xfffffffffffffff0
push ebx
mov dword [ebp - 0x1ec], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
lea eax, [ebp - 0x1fc]
push eax
push dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
and ebx, 0x300
cmp ebx, 0x100
je 0x428dde
cmp ebx, 0x200
je 0x428dd3
cmp ebx, 0x300
jne 0x428de1
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 0x1fc]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x428de1
mov edi, dword [esi + 0x24]
sub edi, dword [ebp - 0x1fc]
jmp 0x428de1
mov edi, dword [esi + 0x1c]
push dword [ebp - 0x1f0]
mov eax, dword [esi + 0x28]
sub eax, dword [ebp - 0x1f8]
push dword [esi + 0x18]
cdq
sub eax, edx
push 0x138
push dword [ebp - 0x1f4]
mov ebx, eax
sar ebx, 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x428e17
push 1
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
test byte [esi + 0x10], 1
mov ecx, 0xff
mov eax, 0xff0000
cmovne eax, ecx
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
push eax
push ebx
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret
Function at 0x429070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
xor cl, cl
mov byte [ebp - 0x20d], cl
cmp dword [edi + 0x4c], edx
jne 0x429127
push eax
push dword [edi + 0x18]
call fcn.004ce01a
add esp, 8
test eax, eax
jne 0x429110
test ebx, ebx
je 0x4290fd
test esi, esi
je 0x4290c1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4290cc
lea esi, [ebp - 0x20c]
mov eax, 0x104
push ebx
push dword [edi + 8]
push 0x52e308
push eax
push esi
call fcn.00407130
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x20d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret

Function at 0x429140
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, str._s_s
xor ebx, ebx
lea eax, [esi + 2]
mov dword [ebp - 4], eax
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x429160
sub esi, dword [ebp - 4]
sar esi, 1
je 0x429182
cmp word [ecx + esi*2 - 2], 0x5c
mov eax, 0x52e308
cmove eax, edi
mov edi, eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x429190
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4291ac
push 0x10000
call fcn.004c71b1
mov edx, dword [ebp - 8]
mov esi, eax
mov ecx, dword [ebp - 0xc]
add esp, 4
mov ebx, esi
mov eax, 0x8000
test edx, edx
je 0x4291b6
cmp word [edx], 0
jne 0x4291bb
mov edi, 0x5482b0
push edx
push ecx
push edi
push eax
push esi
call fcn.00407130
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test ebx, ebx
je 0x4291de
push ebx
call fcn.004c716b
add esp, 4
cmp esi, 0xffffffff
jne 0x4291ec
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x4291f6
test esi, esi
je 0x4291e3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429200
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push edx
push 1
xor esi, esi
mov dword [ebp - 0x14], 0
push esi
push eax
push ecx
xor ebx, ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4293cb
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x14]
xor edi, edi
push eax
push edi
push edi
push 1
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
push esi
call dword [sym.imp.Ntdll.dll_NtEnumerateValueKey]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4292b0
add eax, 4
push eax
push 8
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4292b0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp - 8]
push esi
call dword [sym.imp.Ntdll.dll_NtEnumerateValueKey]
mov esi, dword [edi + 0x10]
mov eax, dword [edi + 8]
add esi, 0x14
add esi, edi
add eax, edi
cmp eax, esi
jne 0x4292b0
push dword [edi + 0xc]
push eax
add eax, 2
push eax
call fcn.004c97a0
add dword [edi + 8], 2
add esp, 0xc
xor eax, eax
mov word [esi], ax
inc dword [ebp - 8]
test edi, edi
je 0x4293c1
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x10]
add edx, edi
mov esi, dword [edi + 0xc]
mov eax, dword [edi + 4]
shr ecx, 1
shr esi, 1
mov dword [ebp - 0x18], edx
cmp eax, 1
je 0x4292da
cmp eax, 2
jne 0x4292f2
test esi, esi
je 0x4292f2
lea eax, [esi - 1]
lea eax, [edx + eax*2]
cmp word [eax], 0
jne 0x4292f2
sub eax, 2
sub esi, 1
jne 0x4292e4
cmp dword [ebp + 8], 0
mov al, 1
mov byte [ebp - 1], 1
mov byte [ebp - 2], al
je 0x42931d
push ecx
mov ecx, dword [ebp + 8]
lea edx, [edi + 0x14]
call fcn.00428ed0
mov edx, dword [ebp - 0x18]
add esp, 4
neg al
sbb al, al
and byte [ebp - 1], al
mov al, byte [ebp - 2]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x429334
push esi
call fcn.00428ed0
add esp, 4
neg al
sbb al, al
and al, byte [ebp - 2]
cmp byte [ebp - 1], 0
je 0x4293aa
test al, al
je 0x4293aa
mov eax, dword [ebp + 0x10]
or ebx, 1
test al, 2
je 0x42938f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 2
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42938c
lea eax, [edi + 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42938c
mov eax, dword [ebp - 0x24]
or ebx, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
test al, 4
je 0x4293aa
mov ecx, dword [ebp - 0x18]
call fcn.0042ab10
test eax, eax
jne 0x4293aa
mov eax, dword [ebp + 0x10]
and eax, 8
or eax, 4
or ebx, eax
push edi
push 0
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 8]
jmp 0x429236
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4293e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x800
push eax
push 1
push 0
push str.exefileShellOpenCommand
push SysReAllocString
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x42944d
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429440
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x42943e
cmp eax, 2
jne 0x429440
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x429452
xor eax, eax
mov word [esi], ax
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429460
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x804]
push eax
push ecx
call fcn.004293e0
add esp, 0xc
test al, al
je 0x4294ae
lea eax, [ebp - 0x804]
push str.__1___
push eax
call fcn.004ce01a
add esp, 8
test eax, eax
jne 0x4294ae
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x808]
push eax
push 2
push 0
push str.exefileShellOpenCommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4294f5
push 0x10
push str.__1___
push 1
push eax
push eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
mov eax, 0x10000
cmove esi, eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.004c715a
mov esp, ebp
pop ebp
ret

Function at 0x429510
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x576b4c], 0
push esi
mov esi, ecx
mov dword [ebp - 0x108], 0x80
je 0x4295aa
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x104]
push eax
push str._Users__s
push 0x104
push esi
call fcn.00407130
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x429599
lea eax, [ebp - 0x104]
push eax
push str._home__s
push 0x104
push esi
call fcn.00407130
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4295bd
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c715a
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x429599
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004c715a
mov esp, ebp
pop ebp
ret
Function at 0x4296a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebx + 8]
push esi
push edi
lea edi, [ebx + 8]
mov dword [ebp - 0x260], edx
mov edx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x278], ecx
test eax, eax
je 0x42970c
mov eax, dword [edi]
mov ecx, dword [ebx + 4]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x208
jl 0x4296f5
mov ecx, dword [ebx]
push 1
push edx
push ecx
call dword [ebp - 0x264]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4298b5
mov eax, dword [edi]
cmp eax, dword [ebx + 4]
jbe 0x429725
cmp word [eax - 2], 0x5c
je 0x429725
mov ecx, 0x5c
mov word [eax], cx
add dword [edi], 2
mov eax, dword [edi]
mov ecx, 0x2a
mov dword [ebp - 0x270], eax
mov word [eax], cx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + 2], cx
lea eax, [ebp - 0x25c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x42987b
mov ecx, dword [ebp + 0x10]
nop
cmp word [ebp - 0x230], 0x2e
jne 0x42978f
mov ax, word [ebp - 0x22e]
cmp ax, 0x2e
jne 0x429781
cmp word [ebp - 0x22c], 0
jmp 0x429784
test ax, ax
sete al
test al, al
jne 0x429851
mov edx, dword [ebx + 0xc]
sub edx, dword [edi]
sar edx, 1
je 0x4297eb
cmp edx, 0x7fffffff
ja 0x4297eb
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x230]
push SysReAllocString
push eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
call fcn.0042b580
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x270]
lea ecx, [edx + ecx*2]
test eax, eax
jns 0x4297e2
cmp eax, 0x8007007a
jne 0x4297e8
test edi, edi
je 0x4297e8
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x25c]
test al, 0x10
je 0x42981c
test eax, 0x400
jne 0x429849
test cl, 1
jne 0x429849
mov edx, dword [ebp - 0x260]
push ecx
push dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
push ebx
call fcn.004296a0
jmp 0x429840
cmp dword [ebp - 0x260], 0
je 0x429849
push dword [ebp - 0x268]
lea eax, [ebp - 0x25c]
mov ecx, ebx
push eax
call fcn.00429680
push eax
call dword [ebp - 0x260]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x42986f
cmp esi, 0x4c7
je 0x42986f
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp + 0x10]
test eax, eax
jne 0x429760
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x278]
xor ecx, ecx
mov edx, dword [ebp - 0x264]
mov dword [edi], eax
mov word [eax], cx
test edx, edx
je 0x4298b5
mov eax, dword [edi]
mov ecx, dword [ebx + 4]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x208
jl 0x4298a5
mov ecx, dword [ebx]
push 0
push dword [ebp - 0x268]
push ecx
call edx
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret