joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032d0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
push 0x416184
push dword [ebp + 8]
call fcn.0040d86e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x403509
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, 0x80000000
push 0x4178cc
push 0
call fcn.0040d86e
push 0x416214
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0040d86e
push 0x416214
push 0
mov dword [ebp - 4], eax
call fcn.0040d86e
push 0x416214
push 0
mov dword [ebp + 8], eax
call fcn.0040d86e
mov dword [ebp - 8], eax
xor eax, eax
add esp, 0x20
cmp dword [ebp - 4], eax
je 0x403511
cmp dword [ebp + 8], eax
je 0x403511
cmp dword [ebp - 8], eax
je 0x403511
push 0x4178cc
push eax
call fcn.0040d86e
pop ecx
test eax, eax
pop ecx
jne 0x403511
mov eax, dword [ebp - 4]
push eax
cmp byte [eax], 0x2e
jne 0x4033a6
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d320
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x14
jmp 0x4033c8
lea eax, [ebp - 0x21c]
push 0x416208
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x18
movsx eax, byte [ebp - 0x118]
push eax
call fcn.0040d912
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x118]
push eax
call fcn.0040d410
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push dword [ebp - 8]
call fcn.0040d410
pop ecx
push eax
lea eax, [ebp - 0x118]
push dword [ebp - 8]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp + 8]
cmp byte [eax], 0x22
jne 0x40344c
push eax
call fcn.0040d410
pop ecx
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x22
lea eax, [eax + ecx - 1]
mov dword [ebp - 4], eax
je 0x40343f
dec eax
cmp byte [eax], 0x22
jne 0x403436
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 8]
jbe 0x40344c
and byte [eax], 0
inc dword [ebp + 8]
jmp 0x403450
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._sDefaultIcon
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s_0
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d410
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4034a6
dec dword [ebp + 8]
mov byte [eax], 0x22
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s_shellopencommand
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s____1_
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d410
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push 0x416184
push dword [ebp - 0xc]
call fcn.0040d86e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x403307
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40350c
Function at 0x4036fb
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x24]
push edi
push eax
push dword [esi + 8]
push 0x148
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x4178e4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x18]
call ebx
test byte [esi + 0x10], 1
mov dword [esp + 0x20], eax
je 0x403754
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 0xe
jmp 0x403769
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 8
call edi
lea edi, [esi + 0x1c]
push ebp
push edi
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [edi]
push dword [esi + 0x18]
neg edi
sbb edi, edi
and edi, 2
add edi, 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov ebp, eax
push dword [esi + 8]
push 0x150
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
mov dword [esp + 0x20], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
shr eax, 0x10
push eax
push ebp
call ebx
push 0x8800c6
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
movzx eax, word [esp + 0x18]
push eax
push ebp
call ebx
mov eax, dword [esi + 0x20]
push 0xee0086
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x10]
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x14]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [esi + 0x18]
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d410
pop ecx
add edi, 0x16
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x20]
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x1c]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x24]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x10]
push dword [esi + 0x18]
call ebp
push dword [esp + 0x20]
push dword [esi + 0x18]
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x403c81
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
xor edi, edi
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x184
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d320
lea eax, [ebp - 0x118]
push 0x416250
push eax
call fcn.0040d330
add esp, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowWord]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403d77
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowWord]
cmp ax, 4
ja 0x403df8
push dword [ebp + 0xc]
call fcn.00404d4a
test eax, eax
pop ecx
jne 0x403d6d
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d320
lea eax, [ebp - 0x118]
push 0x416250
push eax
call fcn.0040d330
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403d0d
cmp dword [ebp - 4], 0xffffffff
je 0x403e72
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [0x4318c0]
mov edi, dword [eax + 0x675c]
imul edi, edi, 0xe
test byte [ebp - 0x258], 0x10
je 0x403e45
lea eax, [ebp - 0x22b]
push eax
call fcn.00413136
dec eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d320
add esp, 0xc
cmp byte [ebp - 0x118], 0x2e
jne 0x403e0a
cmp byte [ebp - 0x117], 0x2e
jne 0x403e01
cmp byte [ebp - 0x116], 0
jne 0x403e0a
push dword [ebp + 0xc]
call fcn.0040d410
cmp eax, 4
pop ecx
jb 0x403e45
lea eax, [ebp - 0x118]
push 0x41624c
push eax
call fcn.0040d320
pop ecx
pop ecx
jmp 0x403e0a
mov eax, dword [ebp + 0xc]
and byte [eax + 3], 0
jmp 0x403e80
cmp byte [ebp - 0x117], 0
je 0x403e45
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d410
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp dword [ebp - 0x10], edi
jle 0x403e32
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x180
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403d90
push eax
push edi
push 0x195
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x186
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.SfxCfg
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
xor byte [ebp + eax - 0xc], 0xc9
inc eax
cmp eax, 6
jl 0x4048eb
lea eax, [ebp - 4]
push eax
push 0x28000
push 0x6000
lea eax, [ebp - 0xc]
push 6
push eax
lea eax, [ebp + 8]
push eax
call fcn.00409788
add esp, 0x18
cmp eax, 0xffffffff
je 0x40492f
add eax, 6
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__llseek]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x404f2c
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 8]
push 2
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x40500f
cmp dword [ebp - 4], 2
jne 0x40500f
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0x14]
mov eax, edx
mov cx, word [esi]
shl eax, 0xb
shr dx, 5
or eax, edx
xor eax, ecx
cmp ax, word [ebp + 0x10]
mov dword [ebp - 8], eax
ja 0x40500f
mov dx, cx
add ecx, ecx
movzx eax, ax
shr dx, 0xf
or edx, ecx
inc eax
mov word [esi], dx
lea ecx, [ebp - 4]
cdq
sub eax, edx
push ebx
sar eax, 1
shl eax, 1
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x40500f
movzx eax, word [ebp - 8]
inc eax
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
cmp dword [ebp - 4], ecx
jne 0x40500f
mov edi, dword [ebp + 0xc]
test eax, eax
jle 0x404fff
mov dx, word [edi]
mov cx, dx
shr cx, 7
shl edx, 9
or ecx, edx
mov word [edi], cx
xor cx, word [esi]
mov word [edi], cx
mov cx, word [esi]
mov dx, cx
shr dx, 0xe
shl ecx, 2
or edx, ecx
inc ebx
movzx ecx, bx
inc edi
mov word [esi], dx
inc edi
cmp ecx, eax
jl 0x404fcb
movzx eax, word [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 1
and byte [eax + ecx], 0
pop eax
jmp 0x405011
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405016
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push 0
push eax
lea eax, [ebp + 8]
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405066
cmp dword [ebp - 4], 2
jne 0x405066
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, edx
shl eax, 0xb
mov cx, word [esi]
shr dx, 5
or eax, edx
mov dx, cx
xor eax, ecx
shr dx, 0xd
shl ecx, 3
or edx, ecx
mov word [esi], dx
pop esi
leave
ret
xor ax, ax
leave
ret
Function at 0x40506b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040d320
lea eax, [ebp - 0x208]
push eax
call fcn.00404e5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push 0x4163b4
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405170
test byte [ebp - 0x348], 0x10
je 0x40511f
cmp byte [ebp - 0x31c], 0x2e
jne 0x4050f2
cmp byte [ebp - 0x31b], 0
je 0x40514b
cmp byte [ebp - 0x31b], 0x2e
je 0x40514b
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._s_s_
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.0040506b
add esp, 0x14
jmp 0x40514b
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4050c5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
jmp 0x4050c5
lea eax, [ebp - 0x208]
push eax
call fcn.00404e31
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040d320
lea eax, [ebp - 0x104]
push eax
call fcn.00404d4a
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
leave
ret

Function at 0x40520e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str._ProgramFiles_
mov dword [ebp - 4], edi
call fcn.0040e026
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
pop ecx
mov byte [esi], bl
je 0x40523e
push edi
push eax
push esi
call fcn.0040d770
add esp, 0xc
jmp 0x405287
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405287
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], bl
jne 0x4052a0
push esi
call fcn.004051d5
mov dword [esp], str.Program_Files
push esi
call fcn.0040d330
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052a5
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
lea eax, [ebp - 0x284]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405339
push ebx
push edi
push 1
lea eax, [ebp - 0x144]
pop ebx
push eax
push dword [ebp + 0xc]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, eax
cmp edi, 0xffffffff
je 0x405305
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
xor ebx, ebx
push edi
test eax, eax
setge bl
call esi
push dword [ebp - 4]
call esi
pop edi
test ebx, ebx
pop ebx
je 0x405334
mov eax, dword [ebp - 0x144]
test al, 1
je 0x405326
and al, 0xfe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 1
pop eax
jmp 0x40533b
xor eax, eax
pop esi
leave
ret

Function at 0x40536d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x414330
je 0x4053d1
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4053d1
mov eax, edi
test eax, eax
je 0x4053d1
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [edi], 0
je 0x4053d1
push dword [edi + 4]
call esi
push eax
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push dword [edi + 4]
call fcn.0040e150
add esp, 0xc
test eax, eax
je 0x4053d8
push dword [edi]
call esi
push eax
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push dword [edi]
call fcn.0040e150
add esp, 0xc
test eax, eax
je 0x4053d8
add edi, 0xc
jne 0x405393
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [edi + 8]
test edi, edi
je 0x4053d1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add eax, ecx
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4053f3
cmp cl, 0x2f
jne 0x4053f4
inc eax
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4053d1
cmp dword [ebp - 4], eax
je 0x4053d1
cmp byte [ebx], 0x22
je 0x405423
push 4
pop esi
push ebx
mov dword [ebp + 8], esi
call fcn.0040e0c4
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
jmp 0x405448
push ebx
call esi
and byte [eax + ebx - 1], 0
lea edi, [ebx + 1]
push edi
mov dword [ebp + 8], 1
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x405448
inc esi
push esi
push edi
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
pop eax
jmp 0x4053d3
Function at 0x405463
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
lea eax, [ebp - 0x168]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4055cc
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x4054a0
push dword [ebp + 8]
call esi
mov dword [ebp - 8], eax
jmp 0x4054a3
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
je 0x4054b2
push dword [ebp + 0xc]
call esi
mov dword [ebp - 0xc], eax
jmp 0x4054b5
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x168]
test eax, eax
je 0x4054cc
lea eax, [ebp - 0x168]
push eax
call esi
mov ebx, eax
jmp 0x4054ce
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add eax, ebx
lea eax, [eax + ecx + 0xa]
push eax
call fcn.0040d55c
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 4], esi
je 0x4055cc
mov edi, 0x416438
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x168]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push edi
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], 0
mov edi, 0x41624c
jle 0x40552a
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
push 4
pop ecx
cmp eax, ecx
jl 0x405538
cmp ebx, ecx
jge 0x405544
cmp eax, ebx
mov ecx, eax
jl 0x405540
mov ecx, ebx
test ecx, ecx
je 0x40555e
sub ebx, ecx
sub eax, ecx
add eax, dword [ebp + 8]
lea edx, [ebp + ebx - 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40556c
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 8]
push dword [ebp - 4]
call esi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x60]
push edi
push esi
push eax
call fcn.0040db50
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
call fcn.0040db50
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4055c3
push dword [ebp - 0x1c]
call fcn.004056b0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp - 4]
call fcn.0040d5e8
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x405a1c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4318c0]
push esi
push edi
mov esi, 0xc00000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x3b
add eax, 0x50
lea ecx, [ebp - 0x14]
movzx eax, ax
push esi
push ecx
push 0x70
push eax
mov dword [ebp - 4], eax
call fcn.004038a9
mov eax, dword [0x417918]
mov edx, dword [ebp - 0xc]
add esp, 0x14
test eax, eax
je 0x405a6b
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x41791c]
mov ecx, dword [ebp - 8]
test eax, eax
je 0x405a82
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
add ecx, eax
mov dword [ebp - 8], ecx
push dword [ebp - 4]
mov eax, dword [0x4318c0]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
push dword [0x4316b0]
push 0
push dword [eax]
add eax, 0x14cc
push ecx
push edx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
push eax
push dword [0x416440]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, eax
mov eax, dword [0x4318c0]
push 0
push dword [eax]
call esi
push dword [ebp + 8]
push 0
push 0x400
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push edi
call fcn.0040590c
pop ecx
mov dword [ebp + 8], eax
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
push 1
mov dword [0x417918], eax
mov eax, dword [ebp - 0x10]
mov dword [0x41791c], eax
mov eax, dword [0x4318c0]
push dword [eax]
call esi
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x4318c0]
push dword [eax]
call dword [sym.imp.USER32.dll_SetActiveWindow]
cmp dword [ebp + 8], 0
pop edi
pop esi
jne 0x405b3e
xor eax, eax
leave
ret
cmp dword [ebp + 8], 0xffffffff
jne 0x405b4b
mov eax, 0x424
leave
ret
xor eax, eax
cmp dword [ebp + 8], 0xfffffffc
setne al
dec eax
and eax, 0x37a
add eax, 0xbe
leave
ret

Function at 0x405b61
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4318c0]
push esi
push edi
mov esi, 0xc80000
mov ax, word [eax + 0x675c]
push 1
imul ax, ax, 0x56
movzx edi, ax
lea eax, [ebp - 0x10]
push esi
push eax
push 0x78
push edi
call fcn.004038a9
add esp, 0x14
push edi
push dword [0x4316b0]
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x4318c0]
push dword [ebp - 0xc]
add eax, 0x14cc
push dword [ebp - 0x10]
push esi
push eax
push dword [0x416444]
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x4318c0]
push 5
mov dword [ecx], eax
mov eax, dword [0x4318c0]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4318c0]
push dword [eax]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
leave
ret