joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5015fc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50175b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x570500], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x45e1f4]
call fcn.0045f340
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x501731
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045f428
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a360
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x501774
call fcn.0040a510
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0045f6b4
test al, al
je 0x50171b
lea ecx, [ebp - 4]
mov edx, 0x5017e8
mov eax, dword [ebp - 0xc]
call fcn.0045ff3c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042a598
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50171b
xor edx, edx
push ebp
push 0x501714
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x501800
mov eax, dword [ebp - 8]
push eax
call fcn.004109c4
test eax, eax
je 0x5016fd
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5016fd
call fcn.00501588
test eax, eax
je 0x5016ed
mov eax, dword [ebx + 0x50]
jmp 0x5016f0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x570500]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50171b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501738
mov eax, dword [ebp - 0xc]
call fcn.004078ac
ret

Function at 0x501864
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5018ab
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x50188e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x50189f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5018ab
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x50ef88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x577388], 0
je 0x50f0c9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x571998]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x50f0c9
mov eax, dword [0x57738c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x577388]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50f098
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x577388]
call fcn.004482a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50f090
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x50f090
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x50f090
mov eax, dword [ebp - 0x14]
call fcn.0051ab08
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50f090
push ebp
call fcn.0050ef44
pop ecx
test al, al
jne 0x50f090
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00407c08
test al, al
je 0x50f090
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00407c08
cmp byte [ebp - 1], 0
je 0x50f090
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040f0e0
test al, al
je 0x50f090
mov edx, dword [ebp - 0x14]
mov eax, dword [0x57738c]
call fcn.0050e6a4
inc edi
dec ebx
jne 0x50efed
mov eax, dword [0x57738c]
cmp dword [eax + 8], 0
jle 0x50f0b0
mov eax, dword [0x57738c]
call fcn.0050e75c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50f0c9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050edac
pop ecx
test al, al
jne 0x50f0c9
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x517584
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040f0c8
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00511534
test ebx, ebx
jne 0x5175d7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00517400
mov ebx, eax
test ebx, ebx
je 0x5176cd
cmp esi, ebx
je 0x517600
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x517615
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x51764d
add eax, 0xffffff5f
sub eax, 2
jb 0x517665
dec eax
sub eax, 2
jb 0x517679
dec eax
sub eax, 2
jb 0x51766f
jmp 0x517683
add eax, 0xfffffdff
sub eax, 2
jb 0x517665
dec eax
sub eax, 2
jb 0x517679
dec eax
sub eax, 2
jb 0x51766f
jmp 0x517683
mov byte [esp + 0x120], 0
jmp 0x51768b
mov byte [esp + 0x120], 2
jmp 0x51768b
mov byte [esp + 0x120], 1
jmp 0x51768b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004df590
mov esi, eax
call fcn.0050e034
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00512f48
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5176cf
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x404f2a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
push edi
xor edi, edi
cmp eax, edi
je 0x40505a
mov ecx, dword [esi + 0x8c]
cmp eax, ecx
je 0x40505a
cmp dword [esi + 0xb4], edi
jne 0x404f64
xor edx, edx
cmp eax, ecx
setle dl
inc edx
mov dword [esi + 0xb4], edx
cmp dword [0x48b690], edi
je 0x404f74
cmp dword [0x48b694], edi
jne 0x404f93
cmp dword [0x48b6a0], edi
je 0x40505a
mov edx, dword [0x48dadc]
test byte [edx + 0x129], 1
jne 0x40505a
mov ebp, dword [esi + 0xd8]
cmp ebp, edi
mov edx, dword [esi + 0xb4]
je 0x404fc6
mov ecx, dword [esi + 0xb0]
xor edi, edi
inc edi
cmp edx, edi
jne 0x404fb8
add dword [esi + 0xdc], ecx
jmp 0x404fbe
sub dword [esi + 0xdc], ecx
mov ecx, dword [esi + 0xdc]
jmp 0x404fe3
xor edi, edi
inc edi
cmp edx, edi
jne 0x404fdd
mov ebx, dword [esi + 0xb0]
add ebx, ecx
mov dword [esi + 0x8c], ebx
jmp 0x404fe9
sub ecx, dword [esi + 0xb0]
mov dword [esi + 0x8c], ecx
cmp edx, edi
jne 0x404ff7
cmp dword [esi + 0x8c], eax
jl 0x405011
jmp 0x404fff
cmp dword [esi + 0x8c], eax
jg 0x405011
mov dword [esi + 0x8c], eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xb4], edi
test ebp, ebp
je 0x40505a
mov edx, dword [esi + 0x8c]
cmp edx, eax
je 0x40505a
mov ecx, 0x100000
xor ebx, ebx
sub ecx, edx
mov edx, dword [esi + 0x84]
mov edi, ecx
mov ecx, ebx
call fcn.00402ff5
mov ecx, eax
sub ecx, dword [esi + 0x8c]
inc ebx
mov eax, ecx
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp ebp, eax
jl 0x405028
add dword [esi + 0x8c], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40d205
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40d299
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d299
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40d299
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov edi, esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
test ecx, ecx
je 0x40d295
mov ebx, dword [ebp - 8]
mov ecx, dword [edi + ebx]
lea edx, [ebx + 4]
mov dword [ebp - 8], ecx
add edx, edi
push ecx
mov ecx, eax
call fcn.0040d333
pop ecx
test eax, eax
jne 0x40d292
mov eax, dword [ebp - 8]
add eax, 4
add edi, eax
mov eax, dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
jb 0x40d268
jmp 0x40d295
xor esi, esi
inc esi
mov eax, esi
jmp 0x40d29c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d4bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x4c808c]
push esi
push edi
mov esi, str._INSTALLPATH_
lea edi, [ebp - 0x14]
push eax
push 0x457a80
lea eax, [ebp - 0x118]
movsd dword es:[edi], dword [esi]
push 0x104
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040d3d0
add esp, 0x10
test eax, eax
js 0x40d5d3
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push 0x4c86e0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d5d3
jmp 0x40d5c3
push 0xd
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00436d50
add esp, 0xc
test eax, eax
jne 0x40d5ab
lea edi, [ebp - 0x118]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40d553
xor eax, eax
mov dword [ebp - 0x120], eax
sub edi, ecx
je 0x40d5a6
lea eax, [ebp + eax - 0x118]
cmp byte [eax], 0x5c
push 0
jne 0x40d584
lea eax, [ebp - 0x11c]
push eax
push 2
push 0x457a84
jmp 0x40d58e
lea ecx, [ebp - 0x11c]
push ecx
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, edi
jb 0x40d566
push 0xd
pop eax
jmp 0x40d5c1
push 0
lea eax, [ebp - 0x11c]
push eax
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x40d537
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a75e
leave
ret

Function at 0x40d70f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 8]
mov ebx, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x40d75a
push dword [ebp - 0x18]
push 0x457aa4
push 0x104
push ebx
call fcn.0040d3a1
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a75e
leave
ret
Function at 0x40d772
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c80a0]
push esi
mov esi, edx
push edi
test eax, eax
je 0x40d789
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, 0x457aa4
mov edi, 0x104
push esi
push edi
push 0x4c80a8
call fcn.0040d3a1
add esp, 0x10
test eax, eax
js 0x40d7f2
push dword [ebp + 8]
push esi
push edi
push 0x4c82b0
call fcn.0040d3a1
add esp, 0x10
test eax, eax
js 0x40d7f2
push 0x4c86e0
push esi
push edi
push 0x4c84b8
call fcn.0040d3a1
add esp, 0x10
test eax, eax
js 0x40d7f2
xor eax, eax
push eax
push eax
push 0x4c80a0
push 0x40d91f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c80a0], eax
jmp 0x40d806
push 0x10
push 0x457a98
push str.Install:_swprintf_nInvalid_path.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
ret

Function at 0x40d849
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
push 0x457ac4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 0x4000080
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
cmp eax, 0xffffffff
jne 0x40d899
xor al, al
jmp 0x40d8a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a75e
leave
ret

Function at 0x40d8ae
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x10]
push edi
push edi
push eax
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40d90e
mov eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
je 0x40d90e
push edi
push edi
mov edx, esi
mov ecx, 0x482f94
call fcn.0042a10c
pop ecx
pop ecx
mov ecx, eax
or ecx, edx
jne 0x40d8f7
push 3
jmp 0x40d910
cmp dword [ebp - 0xc], edx
ja 0x40d90a
jb 0x40d903
cmp dword [ebp - 0x10], eax
jae 0x40d90a
mov eax, 0x3cf4
jmp 0x40d911
xor eax, eax
jmp 0x40d911
push 2
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a75e
leave
ret
Function at 0x40e2e2
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ebx, ebx
and dword [0x4c86c0], ebx
push edi
push ebx
push ebx
push ebx
mov dword [0x4c80a0], ebx
mov dword [0x4c80a4], 0x40f699
call esi
mov dword [0x4c86c4], eax
mov dword [0x4c7fe0], ebx
mov dword [0x4c7fe4], 0x40f770
call fcn.0040e4ab
push dword [0x4c7f98]
lea eax, [ebp - 0x20c]
push dword [0x4c8074]
push str._ls_ls
push 0x104
push eax
call fcn.0040d3a1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
call esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e499
push ebx
push ebx
push ebx
call esi
sub esp, 0x10
mov dword [0x4c802c], eax
mov esi, 0x44c3d0
lea ecx, [ebp - 0x414]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040d70f
add esp, 0x10
lea eax, [ebp - 0x414]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchStripToRoot]
push dword [0x4c7f98]
lea eax, [ebp - 0x414]
push eax
push str._lsGames_ls
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040d3a1
add esp, 0x14
test eax, eax
jns 0x40e3ed
push 0x10
push 0x457a98
push str.Init:_swprintf_nInvalid_path.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e4a3
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0xc
push dword [0x4c806c]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040dab2
mov eax, dword [0x4c88f0]
test eax, eax
je 0x40e415
push 1
call eax
lea eax, [ebp - 0x424]
push eax
push 0xba2
call dword [0x4c8998]
mov eax, dword [ebp - 0x41c]
mov dword [0x4c7fe8], eax
mov eax, dword [ebp - 0x418]
mov dword [0x4c8018], eax
call fcn.0040e76b
call fcn.0040e886
call fcn.0040e9a1
call fcn.0040eaa8
call fcn.0040ecd8
sub esp, 0x10
and dword [esp + 0xc], ebx
and dword [esp + 8], ebx
and dword [esp + 4], ebx
and dword [esp], ebx
call dword [0x4c8950]
push 0x4c7fa0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x4c7ff0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 4]
and dword [0x4c7fd8], ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042a75e
leave
ret
mov ecx, str.Init:_WaitForSingleObject_n
call fcn.0040d667
push 1
call fcn.004370bd
int3
Function at 0x40f51b
Capabilities:
Get common file path
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xffffffffffffffff
push dword [0x4c802c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x61c]
push eax
push 0x104
push 0xd
push dword [0x4c804c]
call edi
mov ecx, str.Install
lea eax, [ebp - 0x61c]
mov dx, word [eax]
xor ebx, ebx
cmp dx, word [ecx]
jne 0x40f58d
test dx, dx
je 0x40f589
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f58d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f565
mov eax, ebx
jmp 0x40f592
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f673
push esi
push str.Installing...
push ebx
push 0xc
push dword [0x4c804c]
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push dword [0x4c804c]
call esi
push ebx
push dword [0x4c807c]
call esi
lea eax, [ebp - 0x414]
push eax
push 0x208
push 0xd
push dword [0x4c806c]
call edi
push dword [0x4c802c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x4c8074]
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls.bin
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.0040d3a1
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4c86e0
push ebx
push 0x457ac4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d4bc
lea eax, [ebp - 0x414]
push eax
lea edx, [ebp - 0x824]
call fcn.0040d772
pop ecx
pop ecx
pop esi
jmp 0x40f68b
push ebx
push ebx
push 0x10
push dword [0x4c86cc]
call edi
push dword [0x4c802c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a75e
leave
ret

Function at 0x40f70e
Capabilities:
Create thread

Disassembly:
push edi
push 0xffffffffffffffff
push dword [0x4c802c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
push edi
push dword [0x4c804c]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push dword [0x4c807c]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x4c802c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4c7fe0]
test eax, eax
je 0x40f755
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 0x4c7fe0
push 0x40fced
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c7fe0], eax
pop edi
ret
Function at 0x410f35
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push edx
push edi
push edi
call fcn.0042ed07
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x410f6e
call fcn.00427a8b
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a75e
leave
ret 8

Function at 0x412734
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push ebx
mov ebx, ecx
push ebx
call fcn.00436cf5
pop ecx
test eax, eax
jne 0x41274e
cmp dword [0x48fd28], eax
je 0x41275e
jmp 0x412752
pop ebx
pop edi
pop esi
ret
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push ebx
push str.ERROR:_cant_alloc__lu_memory_bytes
push edi
mov esi, eax
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x14
push 2
call fcn.004370bd
int3

Function at 0x4127a0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push ebx
mov ebx, ecx
push dword [ebx + 8]
call fcn.0043bd28
pop ecx
test eax, eax
je 0x4127bd
cmp dword [0x48fd28], 0
je 0x4127d1
jmp 0x4127c5
or dword [ebx + 8], 0xffffffff
pop ebx
pop edi
pop esi
ret
push 1
push 0x48fce8
call fcn.0042c115
mov esi, 0x40000
mov ecx, esi
call fcn.00412734
mov ecx, esi
mov edi, eax
call fcn.00412734
push dword [ebx + 0x10]
mov esi, eax
push str.ERROR:_cant_close_file__s
push edi
call fcn.0040d1ac
mov edx, esi
mov ecx, edi
call fcn.004130ba
push esi
push 0x484838
call fcn.00412708
add esp, 0x14
push 2
call fcn.004370bd
int3

Function at 0x4131ed
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
jg 0x413219
jl 0x41320f
cmp dword [ebp + 8], edi
jae 0x413219
mov dword [ebp + 8], 0x7fffffff
mov dword [ebp + 0xc], edi
lea eax, [ebp + 8]
push eax
call fcn.00438028
mov edx, eax
pop ecx
mov ecx, 0x76c
add cx, word [edx + 0x14]
mov word [ebp - 0x14], cx
mov cx, word [edx + 0x10]
inc cx
mov word [ebp - 0x12], cx
mov cx, word [edx + 0xc]
mov word [ebp - 0xe], cx
mov cx, word [edx + 8]
mov word [ebp - 0xc], cx
mov ax, word [edx + 4]
mov word [ebp - 0xa], ax
mov ax, word [edx]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push edi
push 0x2000000
push 3
push edi
push 3
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a75e
leave
ret