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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
xor edi, edi
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00423fe0
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00423fe0
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.00423fe0
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0xcd8]
lea esi, [edi + 0xc]
add esp, 0x24
mov ecx, esi
call fcn.0040150d
test eax, eax
je 0x414089
push edi
mov edi, ebx
call fcn.00413f7b
mov edi, 0x103
push edi
push 0x35
lea eax, [ebp - 0x410]
call fcn.0040b37f
push esi
lea eax, [ebp - 0x410]
push eax
push edi
lea esi, [ebp - 0x208]
call fcn.00416900
add esp, 0xc
push edi
lea eax, [ebp - 0x618]
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
lea eax, [ebp - 0x618]
call fcn.0040150d
test eax, eax
je 0x4140e7
mov eax, esi
push eax
push dword [ebx + 0xe78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
imul eax, eax, 0x65
xor edx, edx
div dword [esi + 8]
push 0
push eax
push 0x402
push dword [ebx + 0xe9c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
shr eax, 0xa
push eax
push str._d_Kb
push edi
lea esi, [ebp - 0x208]
call fcn.00416900
add esp, 0xc
mov eax, esi
push eax
push dword [ebx + 0xec0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret 4

Function at 0x4145a1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x90
push ebx
push edi
push 0x88
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00423fe0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x18], 0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 1
mov ebx, 0x464
push ebx
push dword [esi + 4]
mov byte [ebp + 0x77], 1
mov dword [ebp - 0x14], 2
call edi
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414652
mov eax, dword [esi + 0x54]
add eax, 0x214
push eax
mov ecx, 0x43f570
call fcn.0040d611
test eax, eax
jne 0x414652
push eax
mov byte [ebp + 0x77], al
lea eax, [esi + 0xd6c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
test eax, eax
jne 0x41464b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x41464b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov eax, dword [esi + 0x54]
add eax, 0xc
push eax
call fcn.0040d5cb
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x18]
push eax
push 1
push ebx
push dword [esi + 4]
call edi
mov al, byte [ebp + 0x77]
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x41539c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], 0x438f04
mov dword [ebp - 0x10], 0x435584
call fcn.00423fe0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x446]
push ebx
push eax
call fcn.00423fe0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push 0x104
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x41543c
xor al, al
jmp 0x41558f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0041671d
test al, al
je 0x41558c
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [ebp - 1], bl
je 0x415573
inc dword [ebp - 0x14]
cmp dword [ebp - 0x1c], 5
jne 0x41554f
lea eax, [ebp - 0x240]
push eax
push ebx
push 0x437274
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x415570
push 2
push 3
push 0x40000000
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x10]
call fcn.00401897
test al, al
je 0x415570
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0040a8f7
cmp eax, dword [ebp - 8]
sete byte [ebp - 1]
cmp dword [ebp - 0xc], 0xffffffff
je 0x4154e4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push dword [ebp - 0xc]
call esi
or dword [ebp - 0xc], 0xffffffff
cmp byte [ebp - 1], bl
je 0x415542
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x54]
add eax, 0x214
push eax
lea eax, [ebp - 0x240]
push eax
push edi
call fcn.00415596
mov byte [ebp - 1], al
cmp al, bl
je 0x415542
lea eax, [edi + 0x890]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x41553d
cmp dword [ebp - 0x34], ebx
je 0x41553d
mov edi, dword [ebp - 0x30]
cmp edi, 1
jb 0x41553d
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x10]
je 0x415533
xor al, al
jmp 0x41553f
push dword [ebp - 0x34]
call fcn.0040ad78
jmp 0x41553f
mov al, 1
mov byte [ebp - 1], al
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.0041671d
test al, al
jne 0x41545f
jmp 0x415573
mov byte [ebp - 1], bl
cmp dword [ebp - 0xc], 0xffffffff
je 0x41557e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x34], ebx
je 0x41558c
push dword [ebp - 0x34]
call fcn.0042209e
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x415992
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.00406522
lea eax, [ebp - 0x648]
call fcn.00406522
lea eax, [ebp - 0x218]
call fcn.00406522
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 0x4159fb
cmp ecx, 7
je 0x4159fb
cmp ecx, 3
jne 0x415a39
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 0x415a39
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x210], ebx
cmp eax, ebx
je 0x415a39
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.0040d8f9
test eax, eax
je 0x415a86
lea esi, [ebp - 0x430]
call fcn.00406508
push dword [ebp - 0x42c]
add edi, 0x890
push edi
call fcn.0040b970
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x41602a
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.00423fe0
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.00406522
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 0x4160af
xor al, al
jmp 0x41618a
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 0x4160d2
push dword [ebp - 0xc]
call edi
mov eax, dword [esi + 0x54]
cmp dword [eax + 8], 3
jne 0x416188
push dword [ebp - 0x264]
push dword [ebp - 0x26c]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea esi, [ebp - 0x270]
call fcn.00406508
push 0x2e
call fcn.004064de
cmp eax, ebx
jle 0x416126
mov ecx, dword [ebp - 0x26c]
cmp ecx, ebx
je 0x416126
cmp eax, dword [ebp - 0x268]
jae 0x416126
xor edx, edx
mov dword [ebp - 0x268], eax
mov word [ecx + eax*2], dx
push 0x5c
lea esi, [ebp - 0x270]
call fcn.004064de
cmp eax, ebx
jle 0x416141
lea edx, [eax + 1]
mov eax, esi
call fcn.00413024
lea eax, [ebp - 0x270]
call fcn.0040adbe
test al, al
jne 0x416188
cmp dword [ebp - 0x26c], ebx
je 0x41616b
push dword [ebp - 0x264]
push dword [ebp - 0x26c]
call fcn.004233ce
pop ecx
pop ecx
push dword [ebp - 0x26c]
push 0x4375b0
push str.SoftwareMetaQuotes_SoftwareMetaTrader_5Settings
push SysReAllocStringLen
call fcn.0040cbd5
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4163a5
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp byte [edi + 0xd65], bl
jne 0x413e3c
cmp byte [edi + 0xd64], bl
je 0x413e3c
mov eax, dword [edi + 0x54]
test byte [eax], 2
je 0x413e7d
push 1
mov edi, eax
lea eax, [edi + 0x214]
push eax
push ebx
add edi, 0x41c
push edi
push 0x435944
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x413e7d
push esi
cmp byte [edi + 0xd66], bl
je 0x413e53
mov esi, dword [edi + 0x54]
add esi, 0x624
call fcn.0040d6bf
xor esi, esi
cmp dword [edi + 0x898], ebx
jbe 0x413e7c
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 0x413e5d
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 0x4163c2
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x4163c2
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.0x4163d2.211
jmp dword [ecx*4 + 0x4163f5]
mov ecx, edi
pop esi
jmp fcn.00413cdd
mov eax, edi
pop esi
jmp fcn.00413d45
mov eax, edi
pop esi
jmp 0x413dfd
mov dword [ebx], eax
pop esi
ret

Function at 0x41688f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [ebp - 4], 0
test eax, eax
je 0x4168c0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x4168b5
xor al, al
jmp 0x4168e5
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.00423159
add esp, 0x18
test eax, eax
mov dword [esi], eax
setne al
leave
ret 8

Function at 0x416f2e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push esi
lea eax, [ebp - 0x21c]
call fcn.00406522
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea esi, [ebp - 0x21c]
call fcn.00406508
push dword [ebp + 8]
mov eax, esi
push eax
push dword [edi + 0x58]
call fcn.0041b8ac
mov esi, eax
test esi, esi
jne 0x416f8e
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 0x58]
call fcn.0041b8ac
mov esi, eax
test esi, esi
jne 0x416f8e
xor al, al
jmp 0x416fa4
lea eax, [esi + 2]
push eax
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042209e
pop ecx
mov al, 1
pop esi
leave
ret 4
Function at 0x416fa9
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 0x4377c8
push eax
push dword [0x43e628]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x417074
push esi
push dword [0x43e624]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0x32
jbe 0x417074
push esi
push dword [0x43e624]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x417074
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
je 0x417074
push 0x43e6c8
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.00422533
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x417041
xor bl, bl
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, bl
jmp 0x417076
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
add ebx, 2
push ebx
push esi
call fcn.00425e00
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.0042209e
pop ecx
mov bl, 1
jmp 0x417034
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4173ae
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.00406522
lea eax, [ebp - 0x430]
call fcn.00406522
call fcn.004171ef
push 7
push dword [edi + 4]
call fcn.0040b32d
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.00406508
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 0x4176d9
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.00423fe0
xor eax, eax
push edi
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x436]
push ebx
push eax
call fcn.00423fe0
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 0x417733
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 0x417753
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x41772f
push 0x103
push 0x39
lea eax, [ebp - 0x438]
call fcn.0040b37f
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], 0x417aac
mov dword [ebp - 0x18], 0x8047
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
cmp edi, ebx
je 0x4177e8
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 0x417746
Function at 0x41791b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
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.00423fe0
xor eax, eax
push esi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
call fcn.00423fe0
xor eax, eax
push 0x81e
mov word [ebp - 0xc48], ax
lea eax, [ebp - 0xc46]
push ebx
push eax
call fcn.00423fe0
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push 0x103
push eax
call fcn.0040a95b
lea eax, [ebp - 0x220]
push eax
mov eax, 0x4377e0
call fcn.004014e1
add esp, 0x34
cmp eax, 1
jne 0x417a75
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 0x417a2a
push 0x104
push 0x23
lea eax, [ebp - 0x428]
call fcn.0040b37f
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.00416900
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 0x417a99
cmp dword [ebp - 4], ebx
ja 0x417a71
jb 0x417a3a
cmp dword [ebp - 8], 0x3200000
jae 0x417a71
push 0x104
push 0xe
lea eax, [ebp - 0x428]
call fcn.0040b37f
push 0x32
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x40f
lea esi, [ebp - 0xc48]
call fcn.00416900
add esp, 0x10
jmp 0x417a16
mov al, 1
jmp 0x417aa5
push 0x104
push 0x1e
lea eax, [ebp - 0x428]
call fcn.0040b37f
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 0x417b50
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x417b6d
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x417b6d
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.0x417b7d.211
jmp dword [ecx*4 + 0x417ba8]
mov eax, edi
pop esi
jmp fcn.00416f19
push edi
call fcn.00417671
pop esi
ret
mov eax, edi
pop esi
jmp fcn.0041748e
pop esi
jmp fcn.00416f26
mov dword [ebx], eax
pop esi
ret
Function at 0x417f7a
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.00423fe0
add esp, 0xc
call fcn.00417d36
push 6
push dword [esi + 4]
call fcn.0040b32d
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.004168e9
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.0040b37f
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0xc4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0xe4]
call fcn.004168e9
push 0
push dword [esi + 0xe8]
call ebx
push 0x104
push 0x12
lea eax, [ebp - 0x208]
call fcn.0040b37f
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x144]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x164]
call fcn.004168e9
push 0
push dword [esi + 0x168]
call ebx
push 0x104
push 0x11
lea eax, [ebp - 0x208]
call fcn.0040b37f
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 0x41844a
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.00406522
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call fcn.00423fe0
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 0x4377f8
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 0x4184c3
xor al, al
jmp 0x4184e8
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 0x4184e6
push dword [ebp - 0x10]
call esi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4184ef
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 0x54]
push esi
xor esi, esi
cmp dword [eax + 0x82c], esi
jbe 0x41851f
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 0x4184fd
mov eax, dword [edi + 0x54]
xor ecx, ecx
cmp ecx, dword [eax + 0x82c]
pop esi
sbb eax, eax
neg eax
ret
Function at 0x418530
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.00406522
cmp dword [ebp + 8], 0
je 0x4185e3
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4378ec
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 0x4185e3
test byte [ebp - 0x46c], 0x10
je 0x4185ca
cmp word [ebp - 0x440], 0x2e
je 0x4185ca
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.00418530
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 0x418581
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
leave
ret 4

Function at 0x4185e9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
lea eax, [ebp - 0x218]
call fcn.00406522
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 0x41866a
push str.RegDeleteKeyExW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x41866a
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 0x41867b
push dword [ebp - 0x214]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test edi, edi
je 0x418686
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
leave
ret