joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e9c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
lea eax, [ebp - 0x3c]
call fcn.0040bbbe
or dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x244], ax
xor ebx, ebx
lea eax, [ebp - 0x242]
push ebx
push eax
mov dword [ebp - 0x14], 0x4365b0
call fcn.00424920
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x44c], ax
lea eax, [ebp - 0x44a]
push ebx
push eax
call fcn.00424920
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
push 0x104
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 5], 1
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x414f30
cmp dword [ebp - 0x38], ebx
je 0x414f29
push dword [ebp - 0x38]
call fcn.00422a18
pop ecx
xor al, al
jmp 0x41505c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.004163b1
test al, al
je 0x41504b
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 5], bl
je 0x415040
inc dword [ebp - 0x18]
cmp dword [ebp - 0x20], 5
jne 0x41501c
lea eax, [ebp - 0x244]
push eax
push ebx
push 0x43824c
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x41503d
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x14]
call fcn.00401897
test al, al
je 0x41503d
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0040ab0b
cmp eax, dword [ebp - 0xc]
sete byte [ebp - 5]
cmp dword [ebp - 0x10], 0xffffffff
je 0x414fd8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push dword [ebp - 0x10]
call esi
or dword [ebp - 0x10], 0xffffffff
cmp byte [ebp - 5], bl
je 0x41500f
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
lea eax, [ebp - 0x244]
push eax
push edi
call fcn.00415062
mov byte [ebp - 5], al
cmp al, bl
je 0x41500f
lea eax, [edi + 0x890]
lea ecx, [ebp - 0x3c]
call fcn.00416107
mov byte [ebp - 5], al
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call fcn.004163b1
test al, al
jne 0x414f53
jmp 0x415040
mov byte [ebp - 5], bl
cmp dword [ebp - 0x10], 0xffffffff
je 0x41504b
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x38], ebx
je 0x415059
push dword [ebp - 0x38]
call fcn.00422a18
pop ecx
mov al, byte [ebp - 5]
pop esi
pop ebx
leave
ret 4
Function at 0x41545e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x430]
call fcn.0040653c
lea eax, [ebp - 0x648]
call fcn.0040653c
lea eax, [ebp - 0x218]
call fcn.0040653c
mov eax, dword [edi + 0x54]
lea ecx, [eax + 0x41c]
push ecx
add eax, 0x214
push eax
push str._s_s
lea eax, [ebp - 0x648]
xor ebx, ebx
call fcn.004017c3
mov eax, dword [edi + 0x54]
mov ecx, dword [eax + 8]
add esp, 0xc
cmp ecx, 6
je 0x4154c7
cmp ecx, 7
je 0x4154c7
cmp ecx, 3
jne 0x415505
add eax, 0x214
push eax
push str._s_terminal.ico
lea eax, [ebp - 0x218]
call fcn.004017c3
pop ecx
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415505
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], ebx
cmp eax, ebx
je 0x415505
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x214]
mov eax, dword [edi + 0x54]
push dword [ebp - 0x424]
lea ecx, [eax + 0xc]
push dword [ebp - 0x42c]
add eax, 0x214
push ecx
push dword [ebp - 0x644]
push eax
call fcn.0040dab5
test eax, eax
je 0x415552
lea esi, [ebp - 0x430]
call fcn.004064fd
push dword [ebp - 0x42c]
add edi, 0x890
push edi
call fcn.0040bb49
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x415af6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
mov esi, eax
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x58], ebx
call fcn.00424920
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x270]
call fcn.0040653c
mov eax, dword [esi + 0x54]
lea ecx, [eax + 0x41c]
push ecx
add eax, 0x214
push eax
push str.__s_s___install
lea eax, [ebp - 0x270]
call fcn.004017c3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 0x26c]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x415b7b
xor al, al
jmp 0x415c56
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
cmp dword [ebp - 0xc], ebx
je 0x415b9e
push dword [ebp - 0xc]
call edi
mov eax, dword [esi + 0x54]
cmp dword [eax + 8], 3
jne 0x415c54
push dword [ebp - 0x264]
push dword [ebp - 0x26c]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea esi, [ebp - 0x270]
call fcn.004064fd
push 0x2e
call fcn.004064d3
cmp eax, ebx
jle 0x415bf2
mov ecx, dword [ebp - 0x26c]
cmp ecx, ebx
je 0x415bf2
cmp eax, dword [ebp - 0x268]
jae 0x415bf2
xor edx, edx
mov dword [ebp - 0x268], eax
mov word [ecx + eax*2], dx
push 0x5c
lea esi, [ebp - 0x270]
call fcn.004064d3
cmp eax, ebx
jle 0x415c0d
lea edx, [eax + 1]
mov eax, esi
call fcn.00416133
lea eax, [ebp - 0x270]
call fcn.0040afd2
test al, al
jne 0x415c54
cmp dword [ebp - 0x26c], ebx
je 0x415c37
push dword [ebp - 0x264]
push dword [ebp - 0x26c]
call fcn.00423c1e
pop ecx
pop ecx
push dword [ebp - 0x26c]
push 0x438590
push str.SoftwareMetaQuotes_SoftwareMetaTrader_5Settings
push SysReAllocStringLen
call fcn.0040cd91
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415e7a
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp byte [edi + 0xd65], bl
jne 0x413939
cmp byte [edi + 0xd64], bl
je 0x413939
mov eax, dword [edi + 0x54]
test byte [eax], 2
je 0x41397a
push 1
mov edi, eax
lea eax, [edi + 0x214]
push eax
push ebx
add edi, 0x41c
push edi
push 0x43696c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41397a
push esi
cmp byte [edi + 0xd66], bl
je 0x413950
mov esi, dword [edi + 0x54]
add esi, 0x624
call fcn.0040d87b
xor esi, esi
cmp dword [edi + 0x898], ebx
jbe 0x413979
mov eax, dword [edi + 0x8a0]
imul eax, esi
add eax, dword [edi + 0x894]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x898]
jb 0x41395a
pop esi
pop edi
xor eax, eax
pop ebx
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x415e97
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x415e97
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x415ea7.211
jmp dword [ecx*4 + 0x415eca]
mov ecx, edi
pop esi
jmp fcn.004137da
mov eax, edi
pop esi
jmp fcn.00413842
mov eax, edi
pop esi
jmp 0x4138fa
mov dword [ebx], eax
pop esi
ret

Function at 0x416546
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [ebp - 4], 0
test eax, eax
je 0x416577
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x41656c
xor al, al
jmp 0x41659c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x40000
push 0
call fcn.00423805
add esp, 0x18
test eax, eax
mov dword [esi], eax
setne al
leave
ret 8
Function at 0x416c64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push 0x4387a8
push eax
push dword [0x43f668]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x416d2f
push esi
push dword [0x43f664]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0x32
jbe 0x416d2f
push esi
push dword [0x43f664]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x416d2f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
je 0x416d2f
push 0x43f708
shr edi, 1
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422ead
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416cfc
xor bl, bl
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, bl
jmp 0x416d31
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
add ebx, 2
push ebx
push esi
call fcn.00426740
xor eax, eax
add esp, 0xc
mov word [esi + edi*2 - 4], ax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00422a18
pop ecx
mov bl, 1
jmp 0x416cef
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4170dc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x218]
call fcn.0040653c
lea eax, [ebp - 0x430]
call fcn.0040653c
call fcn.00416f1d
push 7
push dword [edi + 4]
call fcn.0040b506
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
push dword [edi + 0x538]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x218]
call fcn.004064fd
mov eax, dword [edi + 0x54]
add eax, 0xc
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
call fcn.004017c3
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
pop ecx
pop ecx
push dword [ebp - 0x42c]
push dword [edi + 0x538]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
push dword [edi + 0x60]
call esi
mov eax, dword [edi + 0x54]
add eax, 0x624
push eax
push dword [edi + 0x2a8]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
and eax, 1
push eax
mov ebx, 0xf1
push ebx
push dword [edi + 0x514]
call esi
mov eax, dword [edi + 0x54]
mov eax, dword [eax]
push 0
shr eax, 1
and eax, 1
push eax
push ebx
push dword [edi + 0x4f0]
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41744b
Capabilities:
Get common file path
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x230], ax
xor ebx, ebx
lea eax, [ebp - 0x22e]
push ebx
push eax
call fcn.00424920
xor eax, eax
push edi
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x436]
push ebx
push eax
call fcn.00424920
add esp, 0x18
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4174a5
xor eax, eax
pop edi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
push 0x11
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4174c5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x4174a1
push 0x103
push 0x39
lea eax, [ebp - 0x438]
call fcn.0040b558
push 0x104
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 8
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 0x417a60
mov dword [ebp - 0x18], 0x8047
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
cmp edi, ebx
je 0x41755a
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x230]
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor ebx, ebx
inc ebx
jmp 0x4174b8
Function at 0x41768d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
mov esi, 0x206
lea edi, [ebp - 4]
push esi
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.00424920
xor eax, eax
push esi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
call fcn.00424920
xor eax, eax
push 0x81e
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc46]
push ebx
push eax
call fcn.00424920
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push 0x103
push eax
call fcn.0040ab6f
lea eax, [ebp - 0x220]
push eax
mov eax, 0x4387c0
call fcn.004014e1
add esp, 0x34
cmp eax, 1
jne 0x4177e7
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
jne 0x41779c
push 0x104
push 0x23
lea eax, [ebp - 0x428]
call fcn.0040b558
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.004165b7
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
add ecx, 0xc
push 0x30
push ecx
lea ecx, [ebp - 0xc48]
jmp 0x41780b
cmp dword [ebp - 4], ebx
ja 0x4177e3
jb 0x4177ac
cmp dword [ebp - 8], 0x3200000
jae 0x4177e3
push 0x104
push 0xe
lea eax, [ebp - 0x428]
call fcn.0040b558
push 0x32
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.004165b7
add esp, 0x10
jmp 0x417788
mov al, 1
jmp 0x417817
push 0x104
push 0x1e
lea eax, [ebp - 0x428]
call fcn.0040b558
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
add ecx, 0xc
push 0x30
push ecx
lea ecx, [ebp - 0x428]
push ecx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41781e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x900
push ebx
push esi
lea eax, [esp + 0x2c]
call fcn.0040bbbe
lea eax, [esp + 0x10]
call fcn.0040bbbe
lea eax, [esp + 0x48]
call fcn.0040653c
lea eax, [esp + 0x260]
call fcn.0040653c
push str.metatester.exe
push edi
mov esi, str._s_s
push esi
lea eax, [esp + 0x54]
mov byte [esp + 0x17], 1
call fcn.004017c3
add esp, 0xc
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.0040bb49
push str.metatester64.exe
push edi
push esi
lea eax, [esp + 0x54]
call fcn.004017c3
add esp, 0xc
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.0040bb49
push edi
push str._s.exe
lea eax, [esp + 0x268]
call fcn.004017c3
pop ecx
pop ecx
lea eax, [esp + 0x478]
push eax
push dword [esp + 0x268]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
xor ebx, ebx
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x417959
mov ecx, 0x436e08
lea eax, [esp + 0x4a4]
call fcn.0040150d
test eax, eax
je 0x417933
mov ecx, 0x436e0c
lea eax, [esp + 0x4a4]
call fcn.0040150d
test eax, eax
je 0x417933
test byte [esp + 0x478], 0x10
jne 0x417933
lea eax, [esp + 0x4a4]
push eax
push edi
push esi
lea eax, [esp + 0x54]
call fcn.004017c3
add esp, 0xc
push dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
call fcn.0040bb49
test al, al
je 0x41794b
lea eax, [esp + 0x478]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4178d7
jmp 0x41794f
mov byte [esp + 0xb], bl
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [esp + 0x34], ebx
je 0x4179f5
lea eax, [esp + 0x2c]
push eax
push ebx
lea edx, [esp + 0x18]
lea eax, [esp + 0x6d0]
call fcn.0041e231
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x6cc]
call fcn.0041e2f5
cmp eax, 1
je 0x4179e9
push dword [esp + 0x26c]
mov eax, dword [esp + 0x268]
push 0x4b
call fcn.0040b558
lea esi, [esp + 0x260]
call fcn.004064fd
lea eax, [esp + 0x6f8]
push eax
push dword [esp + 0x268]
lea eax, [esp + 0x50]
call fcn.004017c3
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [eax + 0x54]
push 0x40
add ecx, 0xc
push ecx
push dword [esp + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0xb], bl
lea eax, [esp + 0x6c8]
call fcn.0041e28a
mov eax, 0x439518
mov esi, 0x438954
mov dword [esp + 0x260], eax
mov dword [esp + 0x264], ebx
mov dword [esp + 0x268], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x14], ebx
je 0x417a38
push dword [esp + 0x14]
call fcn.00422a18
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x30], ebx
je 0x417a54
push dword [esp + 0x30]
call fcn.00422a18
pop ecx
mov al, byte [esp + 0xb]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417b04
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push 3
add eax, 4
call fcn.00416529
xor eax, eax
ret
push 4
pop eax
ret
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x417b21
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x417b21
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x417b31.211
jmp dword [ecx*4 + 0x417b5c]
mov eax, edi
pop esi
jmp 0x4171bc
push edi
call fcn.004173e3
pop esi
ret
mov eax, edi
pop esi
jmp fcn.004171c9
pop esi
jmp 0x4173df
mov dword [ebx], eax
pop esi
ret

Function at 0x417f00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00424920
add esp, 0xc
call fcn.00417cbc
push 6
push dword [esi + 4]
call fcn.0040b506
push 0x102
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esi + 0x60]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x64]
call fcn.004165a0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x68]
call ebx
push 0x104
push 0x10
lea eax, [ebp - 0x208]
call fcn.0040b558
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0xc4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0xe4]
call fcn.004165a0
push 0
push dword [esi + 0xe8]
call ebx
push 0x104
push 0x12
lea eax, [ebp - 0x208]
call fcn.0040b558
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x144]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x164]
call fcn.004165a0
push 0
push dword [esi + 0x168]
call ebx
push 0x104
push 0x11
lea eax, [ebp - 0x208]
call fcn.0040b558
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x1c4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x4183d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
lea eax, [ebp - 0x274]
call fcn.0040653c
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00424920
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
add eax, 0x20c
push eax
push 0x4387ec
lea eax, [ebp - 0x274]
call fcn.004017c3
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 0x270]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x418449
xor al, al
jmp 0x41846e
push 0x2710
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp dword [ebp - 0x10], ebx
je 0x41846c
push dword [ebp - 0x10]
call esi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418475
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 0x54]
push esi
xor esi, esi
cmp dword [eax + 0x82c], esi
jbe 0x4184a5
mov ecx, dword [eax + 0x834]
imul ecx, esi
add ecx, dword [eax + 0x828]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [edi + 0x54]
inc esi
cmp esi, dword [eax + 0x82c]
jb 0x418483
mov eax, dword [edi + 0x54]
xor ecx, ecx
cmp ecx, dword [eax + 0x82c]
pop esi
sbb eax, eax
neg eax
ret

Function at 0x4184b6
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push esi
push edi
lea eax, [ebp - 0x21c]
mov edi, ecx
call fcn.0040653c
cmp dword [ebp + 8], 0
je 0x418569
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4388e0
call fcn.004017c3
pop ecx
pop ecx
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418569
test byte [ebp - 0x46c], 0x10
je 0x418550
cmp word [ebp - 0x440], 0x2e
je 0x418550
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push str._s_s
call fcn.004017c3
add esp, 0xc
push dword [ebp - 0x218]
mov ecx, edi
call fcn.004184b6
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x418507
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
leave
ret 4

Function at 0x41856f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
lea eax, [ebp - 0x218]
call fcn.0040653c
mov eax, dword [esi + 0x54]
add eax, 0x414
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x218]
call fcn.004017c3
pop ecx
pop ecx
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4185f0
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4185f0
mov ecx, dword [esi + 0x54]
xor edx, edx
cmp dword [ecx + 0x844], 2
push 0
setne dl
dec edx
and edx, 0xffffff00
add edx, 0x20206
mov ecx, edx
push ecx
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x418601
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test edi, edi
je 0x41860c
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
leave
ret