joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c40
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x70
push ebx
mov ebx, ecx
push 0
push str.history.dat
mov ecx, 0x56bcc8
call fcn.0040c2a0
test eax, eax
je 0x459c6a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459e0a
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004497d0
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x459dfb
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x459df5
mov edx, dword [esp + 8]
test edx, edx
je 0x459df5
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0x54], 0x28
mov eax, dword [edx]
push edx
call dword [eax + 0x14]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x14], 0
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x459dea
mov esi, dword [sym.imp.MSVCRT.dll_mktime]
or edi, 0xffffffff
cmp dword [esp + 0x10], 1
jne 0x459de6
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x459dc8
mov eax, dword [esp + 0x58]
test eax, eax
je 0x459dc8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x459db0
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x459db0
mov eax, dword [esp + 0x20]
cmp ax, 0x76c
jae 0x459d4d
xor eax, eax
jmp 0x459db0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2a]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x26]
and ecx, 0xffff
and edx, 0xffff
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x22]
mov dword [esp + 0x3c], edx
and ecx, 0xffff
and eax, 0xffff
lea edx, [esp + 0x30]
dec ecx
sub eax, 0x76c
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edi
call esi
add esp, 4
mov ecx, dword [esp + 0x5c]
push 1
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
push ecx
push 0
mov ecx, ebx
call fcn.00457290
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x58]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x459cf0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebx + 0x68]
call fcn.00456220
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebx
add esp, 0x70
ret
Function at 0x460910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.IECompatVersionHigh
mov edi, 4
push str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
push SysReAllocStringLen
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x4609a3
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push str.IECompatVersionLow
push str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
push SysReAllocStringLen
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x4609a3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov eax, 1
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x461980
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov edx, dword [ebx]
push ecx
lea esi, [eax*4]
push 0x40
add edx, esi
push 4
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push 4
add edx, esi
push ecx
push edx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x461a17
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x461a2d
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push 4
mov dword [ecx], eax
mov ecx, dword [ebx]
lea eax, [esp + 0x28]
add ecx, esi
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x461a17
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
push 0x76d
call fcn.004d6c30
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x463ed0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Delete registry value
Query or enumerate registry value
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x51e6fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push edi
push str.WindowPos
push str.SoftwareMicrosoftInternet_ExplorerIEDevTools
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push 0x56bc90
push str.CLSID1a6fe369_f28c_4ad9_a3e6_2bcb50807cf1InProcServer32
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, 0xa3
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], al
mov byte [esp + 0x18], al
lea eax, [esp + 8]
lea edx, [esp + 0x1c]
push eax
push ecx
push 1
push ebx
push edx
mov dword [esp + 0x30], 0x1a6fe369
mov word [esp + 0x34], 0xf28c
mov word [esp + 0x36], 0x4ad9
mov byte [esp + 0x39], 0xe6
mov byte [esp + 0x3a], 0x2b
mov byte [esp + 0x3b], 0xcb
mov byte [esp + 0x3c], 0x50
mov byte [esp + 0x3d], 0x80
mov byte [esp + 0x3e], 0x7c
mov byte [esp + 0x3f], 0xf1
mov dword [esp + 0x20], 0x59055df
mov word [esp + 0x24], 0x6bb0
mov word [esp + 0x26], 0x402a
mov byte [esp + 0x28], 0xba
mov byte [esp + 0x29], 0x48
mov byte [esp + 0x2a], 0x58
mov byte [esp + 0x2b], 0xbf
mov byte [esp + 0x2d], 0x43
mov byte [esp + 0x2e], 0x71
mov byte [esp + 0x2f], 0x9c
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 8], ebx
jne 0x464002
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
add esp, 0x240
ret
push esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov dword [esp + 0x248], ebx
je 0x46404b
mov ecx, dword [esp + 0x250]
lea eax, [esi + 8]
cmp ecx, ebx
mov dword [eax], ebx
je 0x464039
mov edx, dword [ecx]
push eax
push 0x55f140
push ecx
call dword [edx]
mov dword [esi + 4], 0x524938
mov dword [esi + 0xc], ebx
mov dword [esi], 0x524910
jmp 0x46404d
xor esi, esi
mov eax, dword [esp + 0xc]
push esi
push eax
mov dword [esp + 0x250], 0xffffffff
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0xc]
push 1
push eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0xc]
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret
Function at 0x465710
Capabilities:
Create thread

Disassembly:
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x465774
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 4]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
push fcn.00465780
push 0
push 0
mov dword [eax], 1
mov dword [eax + 0x14], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x465774
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x4658c0
Capabilities:
Allocate thread local storage

Disassembly:
mov al, byte [0x558e04]
test al, al
je 0x4658ec
mov byte [0x558e04], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x56bd10], eax
call fcn.00443120
call fcn.00411cc0
mov ecx, eax
jmp fcn.00411cf0
ret
Function at 0x466500
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
push 0x11
call edi
shr eax, 8
test al, al
je 0x466586
mov eax, dword [0x59fb08]
test eax, eax
je 0x46652f
mov eax, dword [esi + 0x677c]
test eax, eax
je 0x466586
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x466586
push 0x12
call edi
movsx eax, ax
shr eax, 0x10
je 0x466551
mov edx, dword [esi]
push 0x64
mov ecx, esi
call dword [edx + 0xa0]
pop edi
mov eax, 1
pop esi
ret 4
mov eax, dword [esi + 0x6760]
cmp eax, 0xffffffff
jne 0x466561
mov eax, 0x64
cmp word [esp + 0xc], 0
jle 0x46656e
add eax, 5
jmp 0x466571
add eax, 0xfffffffb
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xa0]
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x469190
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x46922e
mov eax, dword [esi + 0x6c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0xa25c], 0
test eax, eax
jne 0x4691e8
mov eax, dword [esi + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
and eax, 0xbfffffff
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetParent]
push 1
push 0
push 6
mov ecx, esi
call fcn.004155c0
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x58], 1
test eax, eax
je 0x469224
mov eax, dword [0x5bd9e0]
test eax, eax
je 0x469215
push 0
mov ecx, esi
call fcn.0046d7b0
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x469224
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x78]
pop edi
pop esi
ret
Function at 0x469f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x585fb4]
push esi
test eax, eax
push edi
mov esi, ecx
mov word [esp + 0x14], 3
je 0x46a075
mov eax, dword [0x59f8b4]
test eax, eax
jne 0x46a075
mov eax, dword [esi + 0x6790]
test eax, eax
je 0x46a075
cmp dword [esi + 0x6760], 0xffffffff
jne 0x46a075
call fcn.0046a970
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x58
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 4
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea edx, [esp + 0xc]
push eax
push ecx
push edx
push str.LogPixels
mov edi, 0x60
push str.Control_PanelDesktop
push SysReAllocStringLen
mov dword [esp + 0x20], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 8], edi
jne 0x46a075
mov eax, dword [esi + 0x6790]
lea edx, [esp + 0x14]
push edx
push 0
mov ecx, dword [eax]
push 0
push 0x3f
push eax
call dword [ecx + 0xd8]
test eax, eax
jne 0x46a075
mov ecx, 0x81
lea edi, [esp + 0x26]
mov word [esp + 0x24], ax
push ebx
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
stosw word es:[edi], ax
mov eax, dword [esp + 0xc]
push eax
push ebx
push str._d_dwLogPixels_d
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov dx, bx
mov ecx, esi
mov dword [esi + 0x6760], ebx
push 0
push edx
push 0xd
mov dword [esi + 0x6764], ebx
call fcn.004155c0
pop ebx
pop edi
pop esi
add esp, 0x224
ret

Function at 0x46a740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov esi, ecx
mov eax, dword [edi + 4]
cmp eax, 0x100
jne 0x46a7b6
mov eax, dword [edi + 8]
add eax, 0xfffffff7
cmp eax, 0x72
ja case.0x46a7d4.21
xor ecx, ecx
mov cl, byte [eax + 0x46a85c]
jmp dword [ecx*4 + 0x46a84c]
mov eax, dword [esi + 0x6c]
test eax, eax
je case.0x46a7d4.21
mov eax, dword [0x585f98]
test eax, eax
je case.0x46a7d4.21
push 1
push 1
mov ecx, esi
call fcn.00415a10
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
mov ax, word [edi + 8]
push 1
push eax
push 0xc
mov ecx, esi
call fcn.004155c0
mov ebx, eax
pop edi
pop esi
pop ebx
ret 4
cmp eax, 0x104
jne case.0x46a7d4.21
mov eax, dword [edi + 8]
add eax, 0xffffffee
cmp eax, 0x67
ja case.0x46a7d4.21
xor ecx, ecx
mov cl, byte [eax + 0x46a8e0]
jmp dword [ecx*4 + 0x46a8d0]
mov dx, word [edi + 8]
push 1
push edx
push 0xc
mov ecx, esi
call fcn.004155c0
mov ebx, eax
pop edi
pop esi
pop ebx
ret 4
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x46a7d4.21
mov ax, word [edi + 8]
push 1
push eax
push 0xc
mov ecx, esi
call fcn.004155c0
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
mov eax, dword [esi + 0x6c]
test eax, eax
je case.0x46a7d4.21
mov cx, word [edi + 8]
push 1
push ecx
push 0xc
mov ecx, esi
call fcn.004155c0
push 1
push 1
mov ecx, esi
xor ebx, ebx
call fcn.00415a10
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4
Function at 0x46b590
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2094
call fcn.0051c5a0
push esi
mov esi, ecx
mov dword [esp + 4], 0
call fcn.0046a960
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [esp + 4]
test eax, eax
je 0x46b674
mov ecx, dword [esp + 0x209c]
push edi
xor edi, edi
test ecx, ecx
je 0x46b5e5
mov ecx, esi
call fcn.0046a960
push eax
call fcn.00477490
add esp, 4
test eax, eax
je 0x46b626
jmp 0x46b621
push eax
push str.mailto:_subjectFrom_Browserbody_s
lea eax, [esp + 0x14]
push 0x1048
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
push 5
push 0x56bc90
push 0x56bc90
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x46b626
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
pop edi
jne 0x46b674
cmp word [0x56c344], 0
jne 0x46b658
mov eax, dword [0x58bcc8]
push 0x104
push 0x56c344
push 0x32
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
push 0x56c344
push 0x78
call fcn.0049b1f0
mov ecx, dword [esi + 4]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
add esp, 0x2094
ret 4

Function at 0x46b760
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 8]
push edi
push eax
push str.SoftwareMicrosoftInternet_ExplorerDefault_HTML_Editor_shelleditcommand
mov edi, ecx
push SysReAllocStringLen
mov dword [esp + 0x14], 0x104
call esi
test eax, eax
je 0x46b7a6
lea ecx, [esp + 0xc]
push ecx
push str.InternetShortcut_shelleditcommand
push SysReAllocStringLen
call esi
test eax, eax
jne 0x46b83f
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x56bc90
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
lea esi, [esp + 0x10]
test eax, eax
jbe 0x46b83f
cmp word [esp + 0x10], 0x22
jne 0x46b7ef
lea esi, [esp + 0x12]
push 0x22
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x46b804
mov word [eax], 0
push str._dde
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x46b81c
mov word [eax], 0
push 5
lea eax, [edi + 0x4704]
push 0
push eax
push esi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x46b848
push 2
mov ecx, edi
call fcn.0046b860
pop edi
pop esi
add esp, 0x210
ret
Function at 0x46d8c0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x46d920
mov ecx, dword [edi + 0xb32c]
test ecx, ecx
jne 0x46d8d9
xor eax, eax
jmp 0x46d8e4
mov eax, dword [edi + 0xb330]
sub eax, ecx
sar eax, 2
lea esi, [eax - 1]
test esi, esi
jl 0x46d920
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0xb32c]
test ebx, ebx
mov eax, dword [eax + esi*4]
je 0x46d912
push 2
push 1
push 0x3456
push eax
call ebp
jmp 0x46d91b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
dec esi
jns 0x46d8f7
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x46df40
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
push 0x56bd2c
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x46dfab
push 0x56bd2c
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 1
call fcn.004785a0
push 1
push 2
push 9
call fcn.00478570
push 1
push 2
push 0xf
call fcn.00478570
push 0
push 2
push 5
call fcn.00478570
push 1
push 2
push 0xa
call fcn.00478570
push 0
call fcn.004785a0
mov dword [0x59d7bc], 1
call fcn.00450ab0
add esp, 0x248
ret

Function at 0x46e4a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x46e4ca
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x46e4ca
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x46e4d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
ret
Function at 0x46e590
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [0x57a5c4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x46e5a9
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x46e698
cmp word [esi], 0
je 0x46e698
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e698
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.0046e6a0
mov edi, eax
test edi, edi
jne 0x46e5fc
pop edi
pop esi
pop ecx
ret 4
mov edx, dword [esp + 8]
inc edx
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x46e629
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46e621
push eax
call fcn.0051c54a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
mov edi, esi
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00481560
add esp, 8
test eax, eax
jle 0x46e673
push 1
push 8
push str.SWITCH_
push eax
push esi
push esi
call fcn.0041dd10
push esi
push 0x57a5c4
call fcn.00495480
add esp, 0x20
push esi
call fcn.0051c54a
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x46e68d
push eax
call fcn.0051c54a
add esp, 4
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x46e6a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x46e781
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x46e781
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 0x46e781
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov dword [esi], eax
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x46e712
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esi]
xor eax, eax
inc ecx
push 0
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi]
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e763
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x46e763
push ebx
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebp]
test eax, eax
je 0x46e77a
push eax
call fcn.0051c54a
add esp, 4
mov dword [ebp], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc