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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40463a
cmp byte [ebp + 0xc], bl
jne 0x404583
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40462c
call fcn.0047d7d0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004054cf
push dword [ebp + 0xc]
jmp 0x404617
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404629
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x4045cb
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x4045d4
xor esi, esi
jmp 0x404605
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0047dbe0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.0047d7d0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.004054cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40463c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
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 0x4052c9
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 0x405338
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 0x40531b
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x40531b
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x40531b
mov byte [ebp - 1], 1
jmp 0x405338
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x405338
cmp byte [ebp - 1], bl
jne 0x405338
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x405322
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 0x40981f
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.00432870
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 0x409860
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004098b5
test eax, eax
jne 0x4098ac
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x40987c
push esi
push edi
mov ecx, ebx
call fcn.004098b5
test eax, eax
jne 0x4098ac
push 0x4c6e14
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00448ee8
add esp, 0xc
test eax, eax
jge 0x4098ac
push edi
push esi
push 4
call fcn.00448ee8
add esp, 0xc
test eax, eax
jge 0x4098ac
xor eax, eax
jmp 0x4098af
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40bf4f
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]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x40bf78
push ebx
push ebx
call fcn.0047ecc7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40bf90
push ebx
push ebx
call fcn.0047ecc7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40bfa8
push ebx
push ebx
call fcn.0047ecc7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40bfbe
push ebx
push ebx
call fcn.0047ecc7
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.0047dd00
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40c5c5
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x4982d9
call fcn.0047d43c
sub esp, 0x47c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040c812
test al, al
je 0x40c5f8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40c79a
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.0040c83a
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00401884
lea eax, [ebp - 0x60]
lea ecx, [esi + 0xd4]
push eax
mov dword [ebp - 4], ebx
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401093
lea eax, [ebp + 0xf]
push edi
push eax
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
call fcn.00401884
lea eax, [ebp - 0x88]
lea ecx, [esi + 0xfc]
push eax
mov dword [ebp - 4], edi
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401093
push 0x2c
call fcn.0047d58e
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x40c6c1
lea ecx, [esi + 0xd4]
call fcn.0040ae65
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push esi
push eax
call fcn.0040c7aa
jmp 0x40c6c3
xor eax, eax
mov dword [esi + 0x124], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push esi
push 0x40c56f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
mov dword [ebp + 8], eax
call fcn.0047d58e
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 0x40c74c
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 0x40c73f
cmp dword [ebp - 0x34], 0x8032
jne 0x40c733
mov ecx, dword [esi + 0x124]
call fcn.0040ccaf
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40c70d
push 0xff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
jmp 0x40c6ff
push dword [ebp - 0x14]
call fcn.0044c894
mov esi, dword [esi + 0x124]
pop ecx
cmp esi, ebx
pop edi
je 0x40c76f
lea ecx, [esi + 8]
call fcn.0040c9c2
push esi
call fcn.0044c894
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40c779
xor eax, eax
jmp 0x40c79a
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 0x40cc41
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 0x40cc5a
xor esi, esi
jmp 0x40cc87
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.0047dbe0
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 0x40cca5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40cc4c
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d926
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4984b3
call fcn.0047d43c
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.0040dae5
mov edi, eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040e50e
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.0040c9c2
lea eax, [ebp - 0x288]
push ebx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0x4a3728
mov dword [ebp - 0x1c], 0x4a3720
call fcn.0040dff6
mov edi, 0x4a371c
mov dword [ebp - 0x30], edi
cmp byte [esi + 0x28], bl
mov dword [ebp - 4], 2
je 0x40da43
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040dae5
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040e50e
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.0040c9c2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040dc14
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
call fcn.0040e50e
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.0040c9c2
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040da87
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push ebx
push eax
mov ecx, esi
mov dword [esi + 0xc], 0x4a3728
mov dword [esi + 0x14], 0x4a3720
call fcn.0040e0c5
mov dword [esi], edi
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040c9c2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40f3ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40f412
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e7f
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x412a67
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x412b9a
cmp byte [ebp + 0xc], bl
jne 0x412ae3
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x412b9a
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x412b8c
call fcn.0047d7d0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00404325
push dword [ebp + 0xc]
jmp 0x412b77
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x412b9a
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412b89
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x412b2b
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x412b34
xor esi, esi
jmp 0x412b65
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0047dbe0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.0047d7d0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00404325
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x412b9c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
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 0x4131df
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 0x41324e
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 0x413231
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x413231
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x413231
mov byte [ebp - 1], 1
jmp 0x41324e
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x41324e
cmp byte [ebp - 1], bl
jne 0x41324e
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x413238
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 0x4157e3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x48]
cmp ecx, dword [ebp + 8]
jne 0x415801
mov ax, word [eax + 0x4e]
cmp ax, 0xffff
jne 0x415842
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x41583c
lea eax, [ebp - 0x14]
push eax
call fcn.0047eeb5
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x41583c
mov eax, dword [esi]
mov cx, word [ebp - 0x34]
mov word [eax + 0x4e], cx
mov eax, dword [esi]
mov ax, word [eax + 0x4e]
pop esi
leave
ret 4
Function at 0x418aa3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4995c3
call fcn.0047d43c
mov eax, 0x10a0
call fcn.0047dbe0
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x4a3670
mov edi, 0x4a3668
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.00401907
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.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x418bd3
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0045f83e
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 0x418b60
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0045f866
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x418b24
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0045f904
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.00419226
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.00401d87
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x418c03
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418c03
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x419e02
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x499803
call fcn.0047d43c
sub esp, 0x80
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
call fcn.004335de
mov eax, dword [esi + 0xc]
push 0x10
lea ecx, [eax + 4]
mov eax, dword [eax + 4]
call dword [eax + 0x28]
test al, al
je 0x419f4b
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersion
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.00419f99
test eax, eax
jne 0x419f3c
push ebx
push edi
push eax
lea eax, [ebp - 0xd]
mov ebx, 0x4a36b8
mov edi, 0x4a36b0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x44], edi
call fcn.00403cd9
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], edi
call fcn.00403cd9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 2
push eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x16c]
call fcn.0040f2ac
mov eax, dword [eax + 8]
pop edi
test eax, eax
mov byte [ebp - 4], 3
pop ebx
jne 0x419ebc
mov eax, 0x4a36e0
push eax
lea eax, [ebp - 0x3c]
push 0x4bc540
push eax
call fcn.0040f4b6
add esp, 0xc
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00402438
lea eax, [ebp - 0x64]
push 0x104
push eax
lea ecx, [ebp - 0x3c]
call fcn.004042dd
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044a647
add esp, 0x10
test eax, eax
jne 0x419f24
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x64]
push 0
push edx
lea ecx, [eax + 4]
push 0x12
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [ebp - 0x3c]
call fcn.004042dd
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00402438
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00402438
cmp dword [ebp - 0x14], 0
je 0x419f4b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x14], 0
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], 4
lea ecx, [eax + 4]
lea eax, [ebp - 0x14]
push eax
push 0x10
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
mov eax, dword [esi + 0xc]
push dword [ebp + 8]
mov ecx, dword [eax + 8]
push 2
call fcn.0043a9af
cmp dword [ebp - 0x14], 0
mov esi, eax
je 0x419f88
push dword [ebp - 0x14]
call fcn.0044c617
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41b375
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b3cc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4c6f94
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b3c3
mov byte [0x4c7fc4], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41cdba
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4c8008]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41cdea
push 0
push dword [0x4c8008]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4c8010]
push 0
mov ecx, dword [eax + 0x170]
call fcn.00446a8f
ret

Function at 0x41cdeb
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 [0x4c8008]
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.004324eb
cmp dword [eax], 1
je 0x41ce55
cmp dword [eax + 4], ebx
je 0x41ceaa
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 0x41ceaa
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 [0x4c8008]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret