joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x485f95
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x486013
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x485fb7
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x486013
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x48601f
mov byte [ebp - 1], 1
jmp 0x486023
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.004867c0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x486560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jbe 0x48657b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x4865a9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x4865be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4865be
xor eax, eax
jmp 0x4865d8
cmp dword [ebp - 0xc], 0
je 0x4865ca
mov byte [ebp - 1], 1
jmp 0x4865ce
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.004867c0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d160
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a559c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [edx + 0x28], 0xffffffff
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov dword [ecx + 0x30], 0xffffffff
mov dword [ecx + 0x34], edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00474320
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00474320
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00474320
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00401670
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00410860
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.00403a80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x49d7c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x49d7e7
mov dword [ebp - 0x168], 1
jmp 0x49d7f1
mov dword [ebp - 0x168], pe_nt_image_headers32
mov ecx, dword [ebp - 0x168]
or ecx, 0x4010
push ecx
push 0x160
lea edx, [ebp - 0x164]
push edx
push 0x90
push 0x4b108c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004456ce
mov esp, ebp
pop ebp
ret 4
Function at 0x49d830
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x4a566d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp + 0x414], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x4c5e81]
test eax, eax
jne 0x49d8e5
mov ecx, dword [ebp + 0x420]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00472c00
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x4010
push 0x160
lea ecx, [ebp + 0x2b4]
push ecx
mov edx, dword [ebp + 0x424]
or edx, 0x80
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401380
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004012a0
mov eax, dword [ebp + 0x428]
mov ecx, dword [ebp + 0x2b8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
jmp 0x49d91c
push 0x4010
push 0x2b4
lea edx, [ebp]
push edx
mov eax, dword [ebp + 0x424]
or eax, 0x80
push eax
mov ecx, dword [ebp + 0x420]
push ecx
call fcn.0049d790
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x428]
mov eax, dword [ebp + 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004456ce
add ebp, 0x418
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49db60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a56dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c3008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0xd66
mov ecx, dword [ebp - 0x10]
call fcn.00410220
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x30], al
lea ecx, [ebp - 0x1c]
call fcn.00474320
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0047b650
lea ecx, [ebp - 0x1c]
call fcn.00401440
lea eax, [ebp - 0x1c]
push eax
call fcn.0047a0d0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00474460
mov ecx, dword [ebp - 0x10]
call fcn.0040edc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004012a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x49e3d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49e402
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x49e402
xor al, al
jmp 0x49e41f
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.004634b0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0xce266fc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x9941243
nop
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0xc]
push esi
shr byte [eax + ecx*4], 1
push 0x78
push eax
push esi
call 0xea86e0
mov ecx, dword [ebp + 8]
mov dh, 0x7f
enter 0x402a, 0x29
Function at 0x40145c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4014b9
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4014b1
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004013bf
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4014bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0041c6a8
mov esi, eax
pop ecx
test esi, esi
je 0x40150d
xor edx, edx
test ebx, ebx
jbe 0x40150d
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014f7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40340c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403418
mov eax, 0x429470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40342c
test al, 0x10
jne 0x40342c
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x403ac8
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403ad4
mov eax, 0x429470
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
ja 0x403b0d
cmp esi, 0xffffffff
je 0x403b09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b21
mov ecx, dword [esp + 8]
cmp esi, 0xffffffff
mov dword [ecx], eax
je 0x403b1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 4

Function at 0x404adc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.00413bab
push 1
mov ecx, esi
mov ebx, eax
call fcn.00413b90
mov ecx, esi
call fcn.00413b89
push eax
mov ecx, esi
call fcn.00413a62
mov ecx, ebx
call fcn.00415b77
push eax
mov ecx, esi
call fcn.00413b4b
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, edi
call fcn.00404c60
test eax, eax
jne 0x404b5b
mov edi, 0x47f
mov ecx, esi
mov dword [0x435d54], edi
call fcn.00413b58
shr eax, 0xa
push eax
push edi
call fcn.004163d4
pop ecx
pop ecx
jmp 0x404c54
lea eax, [ebp - 0x400]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x800]
push 0x42e1dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.00416f2e
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.0041db00
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00416ed7
test eax, eax
jne 0x404bb1
lea eax, [ebp - 0x400]
push eax
call fcn.00416e2d
lea eax, [ebp - 0x400]
push eax
push 0x432dac
call fcn.0041ca60
pop ecx
pop ecx
push dword [0x42f2e8]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.00414747
test eax, eax
jne 0x404be7
push 2
mov ecx, esi
call fcn.00413b90
jmp 0x404bf2
mov ecx, esi
call fcn.0041475b
test eax, eax
je 0x404c54
push dword [0x42f2fc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.00414747
test eax, eax
je 0x404c24
push 1
push ebx
push ebx
push 1
push dword [0x42f2fc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.00414a6c
mov ecx, edi
call fcn.00404d21
test eax, eax
jne 0x404c40
mov eax, 0x481
push ebx
mov dword [0x435d54], eax
push eax
jmp 0x404b4f
cmp dword [esi + 0x14bc], 5
jne 0x404c58
mov ecx, esi
call fcn.004149c6
test eax, eax
jne 0x404c58
xor eax, eax
jmp 0x404c5b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c60
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.00413b58
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 0x404ca1
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00404cf6
test eax, eax
jne 0x404ced
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x404cbd
push esi
push edi
mov ecx, ebx
call fcn.00404cf6
test eax, eax
jne 0x404ced
push 0x432d90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00416a6a
add esp, 0xc
test eax, eax
jge 0x404ced
push edi
push esi
push 4
call fcn.00416a6a
add esp, 0xc
test eax, eax
jge 0x404ced
xor eax, eax
jmp 0x404cf0
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4059ff
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x4280de
call fcn.0041d0a0
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00405c0d
test al, al
je 0x405a32
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x405bb6
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00405c35
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.0041c6a8
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x405ac8
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.00405bc6
jmp 0x405aca
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x4059b3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.0041c6a8
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x405b52
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405b49
cmp dword [ebp - 0x30], 0x8032
jne 0x405b3d
mov ecx, dword [ebx + 0x98]
call fcn.00406047
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x405b16
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x405b06
push dword [ebp + 8]
call fcn.0041c109
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x405b8b
lea ecx, [ebx + 8]
call fcn.00405d91
push ebx
call fcn.0041c109
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x405b95
xor eax, eax
jmp 0x405bb6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x405fd9
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 0x405ff2
xor esi, esi
jmp 0x40601f
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.0041d070
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 0x40603d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x405fe4
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409cbf
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 0x409d16
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x433a54
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409d0d
mov byte [0x434a54], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x409e59
Capabilities:
Hide graphical window

Disassembly:
push dword [0x434a70]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409e85
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x434a70]
call esi
push 0
push dword [0x434a64]
call esi
pop esi
ret

Function at 0x409e86
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 [0x434a70]
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.004139ae
cmp dword [eax], 1
je 0x409ef0
cmp dword [eax + 4], ebx
je 0x409f45
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 0x409f45
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 [0x434a70]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a55b
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040b000
test eax, eax
pop ecx
jne 0x40a6b8
mov esi, 0x4354a8
push esi
call fcn.0040b0e5
test eax, eax
pop ecx
jne 0x40a6b8
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x4354a8]
push 0x43549c
mov dword [eax], ecx
call fcn.0040b050
test eax, eax
pop ecx
jne 0x40a6b8
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x43549c]
mov dword [ebx], eax
cmp dword [0x4354a8], 1
jne 0x40a5be
xor eax, eax
jmp 0x40a6b8
lea eax, [ebp + 8]
push eax
push 0x4354a0
call fcn.0040a547
test eax, eax
jne 0x40a6b8
mov eax, dword [0x4354a8]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x4354ac], eax
jne 0x40a5fd
push 0xfffffffffffffffc
pop eax
jmp 0x40a6b8
push esi
call fcn.0040b16e
mov edi, eax
pop ecx
test edi, edi
je 0x40a633
push dword [0x4354ac]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4354ac]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a6b6
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x435498], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x43528c], eax
movzx eax, word [ebp + 0x14]
push 0x40a8e7
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x43528c]
test eax, eax
je 0x40a676
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x40a67f
xor edi, edi
jmp 0x40a687
cmp edi, 2
jne 0x40a687
or edi, 0xffffffff
mov eax, dword [0x4354ac]
test eax, eax
je 0x40a6af
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4354ac]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x43549c], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret