joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54133e
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x541417
push ebx
push dword [esi + 0x60]
lea ecx, [ebp - 0x94]
call fcn.00412005
mov eax, dword [eax]
push 0x59b668
lea ecx, [esi + 0x4c]
push ecx
push eax
push dword [esi + 8]
call fcn.005411c9
mov ebx, dword [sym.imp.MSVCR80.dll_free]
mov dword [esi + 4], eax
lea eax, [ebp - 0x90]
add esp, 0x10
cmp dword [ebp - 0x94], eax
je 0x541392
push dword [ebp - 0x94]
call ebx
pop ecx
mov eax, dword [esi + 0x64]
cmp dword [eax - 0xc], 0
je 0x541413
push edi
push str.data_skin_skincfg.ini
lea eax, [ebp + 0x74]
push 0x400000
push eax
call fcn.00411735
pop ecx
pop ecx
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00407c58
mov edi, dword [eax]
add esp, 0xc
push dword [esi + 0x64]
lea ecx, [ebp - 0x94]
call fcn.00412005
mov eax, dword [eax]
push edi
push 0xff
push eax
push str.alpha
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
pop edi
je 0x5413fd
push dword [ebp - 0x94]
call ebx
pop ecx
mov ecx, dword [ebp + 0x70]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.00401405
xor eax, eax
inc eax
pop ebx
pop esi
add ebp, 0x78
leave
ret
Function at 0x5437ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b8]
push ebx
mov ebx, dword [ebp + 0x1bc]
push esi
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c0]
mov dword [ebp - 0x68], ecx
mov esi, 0x5e7310
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x78], eax
call fcn.00401c3d
xor edi, edi
push 0x206
lea eax, [ebp - 0x5e]
push edi
push eax
mov word [ebp - 0x60], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x60]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x64]
call fcn.004020d9
push dword [ebp - 0x64]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x64]
call fcn.004020d9
push 0x2e
lea ecx, [ebp - 0x64]
call fcn.00407762
cmp eax, 0xffffffff
je 0x5438ad
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00403a9d
push eax
lea ecx, [ebp - 0x64]
call fcn.00403cc2
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00401405
push esi
lea ecx, [ebp - 0x70]
call fcn.00401c3d
fld1
mov ecx, dword [ebp - 0x68]
fstp qword [ebp - 0x80]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 0x1b4]
lea eax, [ebp - 0x64]
push eax
call fcn.0054353f
test eax, eax
jne 0x54390c
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.00401405
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
add ebp, 0x1ac
leave
ret 0x10
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x543946
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, edi
jmp 0x5438f2
push edi
push ebx
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x5439aa
mov ecx, dword [ebp - 0x74]
lea eax, [esi + 0xa]
push eax
mov dword [ebp - 0x68], edi
call fcn.00401e51
push edi
lea ecx, [ebp - 0x68]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x5439a1
cmp dword [ebp - 0x68], esi
jne 0x5439a1
mov eax, dword [ebp - 0x78]
cmp eax, edi
je 0x54398c
fld qword [ebp - 0x80]
fstp qword [eax]
mov ecx, dword [ebp - 0x74]
push esi
call fcn.004273ea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x54392c
mov ecx, dword [ebp - 0x74]
push edi
call fcn.0040144c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x6c]
jmp 0x54392c
Function at 0x544ce2
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esp + 0xc], edi
jne 0x544d17
mov eax, dword [0x5e58bc]
cmp eax, edi
je 0x544d05
mov ebx, dword [eax + 4]
jmp 0x544d07
xor ebx, ebx
cmp ebx, edi
jne 0x544d17
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x544d3c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x544d3c
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x544d3c
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0xc], 1
push dword [esp + 0x1c]
mov ecx, esi
push edi
push ebx
mov dword [esi + 0x370], edi
call fcn.00544b4d
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x544d67
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x544e73
push eax
call fcn.004a337e
cmp dword [esp + 0x20], edi
pop ecx
mov dword [esp + 0x10], eax
jne 0x544d80
push ebx
mov ecx, esi
call fcn.00539b49
cmp dword [esi + 0x360], edi
je 0x544e15
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x20]
je 0x544dd9
push 1
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x20]
je 0x544df5
push edi
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
pop ebp
je 0x544e15
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
push 0x97
push edi
push edi
push edi
push edi
push edi
push dword [esi + 4]
mov dword [esi + 0x370], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0xc], edi
je 0x544e5a
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x544e5a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x544e5a
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esp + 0x10]
call fcn.004a337e
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x374]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x545682
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
call fcn.004014f3
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x545709
cmp word [eax], di
je 0x545709
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x545709
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x545702
cmp esi, 0x100000
jae 0x545702
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0xa]
push eax
mov dword [ebp - 4], edi
call fcn.00401e51
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x545712
cmp dword [ebp - 4], esi
je 0x545712
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0040144c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004273ea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x54570b

Function at 0x546a51
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
je 0x546a83
push dword [esp + 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x14]
push 2
push edi
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x546a83
inc edi
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x54c6fa
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GlobalCEECC180_4028_4817_A9B7_E89AE362A2C4
push 0
push 0x1f0001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
mov dword [esi + 4], eax
pop esi
jne 0x54c718
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x54c727
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.Global9634A618_4253_4ffa_A3F4_4B1692E6CA53
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x54c742
pop esi
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0xc], eax
pop esi
mov eax, ecx
ret

Function at 0x54c882
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.E2B55AC2_4CA6_4123_9BD8_CA1571B8F2A1
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 4], eax
je 0x54c8b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x54c8b2
mov eax, dword [esp + 8]
mov dword [eax], 1
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
ret 4
Function at 0x54d4b8
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esp + 0xc], edi
jne 0x54d4ed
mov eax, dword [0x5e58bc]
cmp eax, edi
je 0x54d4db
mov ebx, dword [eax + 4]
jmp 0x54d4dd
xor ebx, ebx
cmp ebx, edi
jne 0x54d4ed
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x54d512
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x54d512
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x54d512
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0xc], 1
push dword [esp + 0x1c]
mov ecx, esi
push edi
push ebx
mov dword [esi + 0x370], edi
call fcn.0054d323
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x54d53d
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x54d649
push eax
call fcn.004a337e
cmp dword [esp + 0x20], edi
pop ecx
mov dword [esp + 0x10], eax
jne 0x54d556
push ebx
mov ecx, esi
call fcn.0054c8de
cmp dword [esi + 0x360], edi
je 0x54d5eb
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x20]
je 0x54d5af
push 1
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x20]
je 0x54d5cb
push edi
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
pop ebp
je 0x54d5eb
push edi
push edi
push 0xf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
push 0x97
push edi
push edi
push edi
push edi
push edi
push dword [esi + 4]
mov dword [esi + 0x370], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0xc], edi
je 0x54d630
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x54d630
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x54d630
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esp + 0x10]
call fcn.004a337e
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x374]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x54e140
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push dword [edi]
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x54e189
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x54e16e
mov edi, dword [edi]
push esi
push edi
mov ecx, eax
call fcn.00477e4d
mov esi, eax
jmp 0x54e170
xor esi, esi
test esi, esi
je 0x54e189
mov eax, dword [esi + 8]
and dword [esi + 8], 0
test eax, eax
je 0x54e189
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x54efe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x54eff7
test al, 0x10
je 0x54eff7
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x54f011
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x19c]
mov esi, 0x103
push esi
lea eax, [ebp + 0x8d]
push 0
push eax
mov byte [ebp + 0x8c], 0
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x77]
push 0
push eax
mov byte [ebp - 0x78], 0
call sub.MSVCR80.dll_memset
push edi
inc esi
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea eax, [ebp - 0x78]
push 0x5c
push eax
call ebx
add esp, 0x2c
test eax, eax
mov dword [ebp - 0x7c], eax
lea edi, [ebp - 0x78]
je 0x54f105
lea eax, [ebp + 0x8c]
dec eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x7c]
sub eax, edi
cmp byte [ebp + 0x8c], 0
push eax
push edi
lea eax, [ebp + 0x8c]
push esi
push eax
jne 0x54f0b2
call dword [sym.imp.MSVCR80.dll_strncpy_s]
jmp 0x54f0b8
call dword [sym.imp.MSVCR80.dll_strncat_s]
mov edi, dword [ebp - 0x7c]
add esp, 0x10
lea eax, [ebp + 0x8c]
push eax
inc edi
call sub.MSVCR80.dll_strlen
pop ecx
mov ecx, dword [ebp - 0x80]
cmp byte [ecx + eax], 0x3a
je 0x54f0e3
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
push 0x5b3808
lea eax, [ebp + 0x8c]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
push 0x5c
push edi
call ebx
add esp, 0x14
test eax, eax
mov dword [ebp - 0x7c], eax
jne 0x54f092
cmp byte [ebp + 0x8c], 0
push edi
lea eax, [ebp + 0x8c]
push esi
push eax
jne 0x54f11f
call dword [sym.imp.MSVCR80.dll_strcpy_s]
jmp 0x54f125
call dword [sym.imp.MSVCR80.dll_strcat_s]
lea eax, [ebp + 0x8c]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f17c
add ebp, 0x194
leave
ret

Function at 0x5506bf
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x30
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.005504c7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401405
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x550725
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push 0x30
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
xor esi, esi
call fcn.005504c7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x550780
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x550765
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.00477e4d
mov esi, eax
jmp 0x550767
xor esi, esi
test esi, esi
je 0x550780
mov eax, dword [esi + 8]
and dword [esi + 8], 0
test eax, eax
je 0x550780
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x550792
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
xor esi, esi
call fcn.00550408
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5507eb
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x5507d0
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.00477e4d
mov esi, eax
jmp 0x5507d2
xor esi, esi
test esi, esi
je 0x5507eb
mov eax, dword [esi + 8]
and dword [esi + 8], 0
test eax, eax
je 0x5507eb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x5509c1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, esi
je 0x550a32
cmp dword [ebp - 8], esi
jle 0x550a2b
push dword [edi + esi*4]
lea ecx, [ebp - 4]
call fcn.0040460b
lea ecx, [ebp - 4]
call fcn.00406090
push 0
push str.autorun
lea ecx, [ebp - 4]
call fcn.0040788c
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
cmp eax, 0xffffffff
jne 0x550a23
call fcn.00401405
inc esi
cmp esi, dword [ebp - 8]
jl 0x5509e9
jmp 0x550a2b
xor ebx, ebx
inc ebx
call fcn.00401405
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x552287
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 1
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x5522d5
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x110]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x5522d5
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1f8]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2fc], 0
je 0x55234f
push ebx
lea ebx, [esi + 0x30c]
cmp dword [ebx], 0
je 0x5522f3
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2fc], edi
pop ebx
jne 0x552348
push edi
call fcn.004753f6
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.00473c99
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2fc], 0
pop edi
pop esi
leave
ret 0xc
Function at 0x5536a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x30c]
cmp dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x5536d7
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov edi, dword [ebp + 0x10]
push 1
push edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x55371b
push 1
push edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x55371b
push 1
push edi
push dword [ebp + 0xc]
lea ecx, [esi + 0x1f8]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2f8]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x553849
push eax
call fcn.004753f6
mov ebx, eax
test ebx, ebx
pop ecx
je 0x5537c8
mov eax, dword [ebx + 0x10]
push 2
push 0
push ebx
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0055292e
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00473c99
mov eax, dword [ebp - 4]
cmp dword [esi + 0x2f8], eax
jne 0x5537a5
mov ecx, dword [ebx + 0x40]
xor eax, eax
cmp ecx, eax
je 0x553797
cmp word [ecx], ax
je 0x553797
push 1
push eax
push eax
push ecx
push 0x58b168
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x5537c8
cmp dword [ebx + 0x10], eax
je 0x5537c8
mov dword [ebp - 0xc], 1
jmp 0x5537c8
push 1
push 0
push ebx
mov ecx, esi
call fcn.0055292e
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00473c99
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x2f8], eax
je 0x55380a
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x553849
cmp dword [ebp - 0x10], eax
je 0x553849
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x553849
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x2f4
cmp eax, dword [esi]
jne 0x553849
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc