joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x404505
cmp byte [ebp + 0xc], bl
jne 0x404470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 1]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404505
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4044fb
call fcn.004450c0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004052e6
push dword [ebp + 0xc]
jmp 0x4044ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 3]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404505
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x4044fb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.00445480
mov edi, esp
push ebx
push ebx
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.004450c0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.004052e6
push dword [ebp + 0xc]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x404507
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4050e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x40514f
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x405132
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x405132
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x405132
mov byte [ebp - 1], 1
jmp 0x40514f
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x40514f
cmp byte [ebp - 1], bl
jne 0x40514f
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x405139
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x407451
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040104a
mov ecx, eax
call fcn.0042e021
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x407492
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004074e7
test eax, eax
jne 0x4074de
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4074ae
push esi
push edi
mov ecx, ebx
call fcn.004074e7
test eax, eax
jne 0x4074de
push 0x498d98
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00440832
add esp, 0xc
test eax, eax
jge 0x4074de
push edi
push esi
push 4
call fcn.00440832
add esp, 0xc
test eax, eax
jge 0x4074de
xor eax, eax
jmp 0x4074e1
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x409d9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409dc0
push ebx
push ebx
call fcn.00446365
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x409dd8
push ebx
push ebx
call fcn.00446365
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x409def
push ebx
push ebx
call fcn.00446365
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x409e05
push ebx
push ebx
call fcn.00446365
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004456b0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40a314
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x473509
call fcn.00444d58
sub esp, 0x47c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040a540
test al, al
je 0x40a347
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40a4e9
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x487]
mov byte [ebp - 0x488], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x488]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040a568
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.0040175f
lea eax, [ebp - 0x60]
lea ecx, [esi + 0x90]
push eax
mov dword [ebp - 4], ebx
call fcn.0040950c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401bc2
lea eax, [ebp + 0xf]
push edi
push eax
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
call fcn.0040175f
lea eax, [ebp - 0x88]
lea ecx, [esi + 0xb8]
push eax
mov dword [ebp - 4], edi
call fcn.0040950c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401bc2
push 0x2c
call fcn.00444d77
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x40a410
lea ecx, [esi + 0x90]
call fcn.00408ddc
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push esi
push eax
call fcn.0040a4f9
jmp 0x40a412
xor eax, eax
mov dword [esi + 0xe0], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push esi
push 0x40a2be
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
mov dword [ebp + 8], eax
call fcn.00444d77
pop ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push 0xff
push 0xffffffffffffffff
push ebx
mov dword [eax], ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40a49b
push edi
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40a48e
cmp dword [ebp - 0x34], 0x8032
jne 0x40a482
mov ecx, dword [esi + 0xe0]
call fcn.0040a97a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40a45c
push 0xff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
jmp 0x40a44e
push dword [ebp - 0x14]
call fcn.00444394
mov esi, dword [esi + 0xe0]
pop ecx
cmp esi, ebx
pop edi
je 0x40a4be
lea ecx, [esi + 8]
call fcn.0040a6c4
push esi
call fcn.00444394
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40a4c8
xor eax, eax
jmp 0x40a4e9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x18], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40a90c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x40a925
xor esi, esi
jmp 0x40a952
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00445480
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a970
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40a917
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b59a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4736a3
call fcn.00444d58
sub esp, 0x27c
push ebx
push esi
lea eax, [ebp - 0x184]
push edi
xor ebx, ebx
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x80]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x10], ecx
call fcn.0040bc63
mov edi, eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040ba85
mov edi, dword [edi + 4]
lea eax, [ebp - 0x288]
push eax
push ebx
lea eax, [ebp - 0x184]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.0040a6c4
lea eax, [ebp - 0x288]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x47b624
mov dword [ebp - 0x1c], 0x47b61c
call fcn.0040b7b3
mov edi, 0x47b618
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 2
je 0x40b6b7
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040bc63
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040ba85
push dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040a6c4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040beb1
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
call fcn.0040ba85
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x184]
push eax
call esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040a6c4
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040bc1e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x47b624
mov dword [esi + 0x14], 0x47b61c
call fcn.0040b882
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040a6c4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40f841
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f956
cmp byte [ebp + 0xc], bl
jne 0x40f8c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 1]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40f956
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40f94c
call fcn.004450c0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00403ccb
push dword [ebp + 0xc]
jmp 0x40f93e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 3]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40f956
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40f94c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.00445480
mov edi, esp
push ebx
push ebx
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.004450c0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.00403ccb
push dword [ebp + 0xc]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40f958
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41002e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x41009d
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x410080
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x410080
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x410080
mov byte [ebp - 1], 1
jmp 0x41009d
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x41009d
cmp byte [ebp - 1], bl
jne 0x41009d
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x410087
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x4134ac
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
cmp dword [0x498df4], ebx
push esi
push edi
mov esi, ecx
jne 0x4134d0
cmp byte [0x498df9], bl
je 0x4135f6
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, esi
call fcn.00413681
xor al, al
cmp dword [ebp - 0x90], 5
ja 0x413503
jne 0x41350e
cmp dword [ebp - 0x8c], ebx
jbe 0x41350e
cmp dword [ebp - 0x84], 2
jne 0x41350e
mov al, 1
cmp byte [0x498df9], bl
je 0x413559
cmp al, bl
je 0x413559
mov ecx, esi
call fcn.0041484d
mov edi, eax
cmp edi, ebx
je 0x4135f6
mov al, byte [ebp + 8]
push ebx
neg al
sbb eax, eax
add eax, 4
push eax
push 0x111
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 2
jne 0x4135f6
push edi
mov ecx, esi
call fcn.0041498d
jmp 0x4135f6
cmp byte [ebp + 8], bl
je 0x4135b0
cmp al, bl
je 0x413592
push 0xfffffffffffffff0
push dword [0x498df4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esi + 0x9c], eax
or al, 8
push eax
push 0xfffffffffffffff0
push dword [0x498df4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x64
push 1
push 0x40a
jmp 0x4135ea
lea eax, [esi + 0x98]
push eax
push ebx
push esi
push 0x4135fd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
jmp 0x4135f6
cmp al, bl
je 0x4135e3
add esi, 0x9c
cmp dword [esi], ebx
je 0x4135e3
push ebx
push ebx
push 0x40a
push dword [0x498df4]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi]
push 0xfffffffffffffff0
push dword [0x498df4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x4135f6
push ebx
push ebx
push 0x402
push dword [0x498df4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4145f1
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4742ef
call fcn.00444d58
mov eax, 0x10a0
call fcn.00445480
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x47b560
mov edi, 0x47b558
push esi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
call fcn.004017e1
or dword [ebp - 0x20], 0xffffffff
push 1
pop eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocStringLen
mov byte [ebp - 4], 2
call fcn.0040198d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x414721
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xac]
push eax
call fcn.00460ef9
pop ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4146ae
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00460f21
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x414672
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00460fbf
movzx eax, byte [ebp - 0xd]
pop ecx
pop ecx
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.00414de0
add esp, 0x48
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040e922
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x414751
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x414751
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00401bc2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x415e3b
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x474533
call fcn.00444d58
sub esp, 0x84
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc]
call fcn.0042ed56
mov ecx, dword [esi + 0xc]
push 0x13
call fcn.00408397
test al, al
je 0x415f95
xor edi, edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push eax
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysFreeString
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x415f85
lea ecx, [ebp - 0x10]
call fcn.0040d722
mov ecx, dword [ebp - 0x18]
cmp eax, edi
mov dword [ebp - 0x10], ecx
jne 0x415f85
push ebx
lea eax, [ebp - 0x12]
mov ebx, 0x47b5a0
mov edi, 0x47b598
push 0
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x48], edi
call fcn.00402b2c
lea eax, [ebp - 0x11]
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], edi
call fcn.00402b2c
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 2
call fcn.004328fd
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
test eax, eax
pop ebx
jne 0x415f07
mov eax, 0x47b5bc
push eax
lea eax, [ebp - 0x40]
push 0x48fc60
push eax
call fcn.00414f6e
add esp, 0xc
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
call fcn.00401f95
lea eax, [ebp - 0x68]
push 0x104
push eax
lea ecx, [ebp - 0x40]
call fcn.0040305e
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004423f2
add esp, 0x10
test eax, eax
jne 0x415f6b
mov ecx, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x15
call fcn.0040833f
lea ecx, [ebp - 0x40]
call fcn.0040305e
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401f95
and byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401f95
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x415f97
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415f97
xor edi, edi
mov dword [ebp - 0x10], edi
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0x13
mov dword [ebp - 4], 4
call fcn.00408397
mov ecx, dword [esi + 0xc]
push eax
push dword [ebp + 8]
push 2
call fcn.0042fa23
cmp dword [ebp - 0x10], edi
mov esi, eax
je 0x415fcc
push dword [ebp - 0x10]
call fcn.0044413c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x416ca2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416cf9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x498e70
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416cf0
mov byte [0x499e74], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x418257
Capabilities:
Hide graphical window

Disassembly:
push dword [0x499e84]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418283
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x499e84]
call esi
push 0
push dword [0x499e7c]
call esi
pop esi
ret

Function at 0x418284
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x499e84]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042dced
cmp dword [eax], 1
je 0x4182ee
cmp dword [eax + 4], ebx
je 0x418343
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418343
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x499e84]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret