joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40344d
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.004117c0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4034cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Thread_Failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4035ce
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401029
mov ecx, eax
call fcn.004011e5
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Duplicate_Game_Failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4035ce
push dword [ebp - 8]
mov edi, str.0x_08x
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00411818
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.GAME_HANDLE
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push str.WRAPPER_HANDLE
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x48
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str.ReflexiveArcadeRAW_003.wdt
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4035d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push str.GameWrapper:_Create_Process_Failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x4035d4
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b6f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x422868]
call edi
call fcn.00401029
mov ecx, eax
call fcn.00401940
mov ebx, eax
test ebx, ebx
je 0x403c19
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x403bc5
cmp dword [esi + 0xc], 0
je 0x403c19
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x403c19
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x403bf3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x403bf3
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x403bf3
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x403c19
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.004117c0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e32
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401029
mov ecx, eax
call fcn.004027d9
fld dword [ebp + 8]
fcomp dword [0x41a2a4]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x403e5c
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00402acb
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x403e5e
call fcn.00403ebb
mov esi, eax
test esi, esi
je 0x403e9a
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00402b20
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401029
mov ecx, eax
call fcn.00402880
pop edi
pop esi
leave
ret
Function at 0x40497e
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x422868]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x30]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x404a10
mov dword [ebp - 4], eax
call fcn.004069bb
test eax, eax
jle 0x404a29
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.004069d2
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.004069bb
cmp dword [ebp - 4], eax
jl 0x4049c0
pop edi
jmp 0x404a29
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x28]
push dword [esi + 0x2c]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x422868]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x404c51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push str.SOFTWAREReflexiveArcade
lea eax, [ebp - 0x210]
push 0x41ce5c
push eax
call fcn.00411818
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404cc6
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DoTimeBeeping
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404cc6
cmp dword [ebp - 4], eax
setne al
mov byte [0x422460], al
leave
ret
Function at 0x404f12
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x5c], ebx
jne 0x404f5f
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x5c], eax
jne 0x404f5f
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Pause_Event_Failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x60], ebx
jne 0x404f92
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x60], eax
jne 0x404f92
call ebp
push eax
lea eax, [esp + 0x14]
push str.GameWrapper:_Create_Timeout_Event_Failed__last_error__x_n
push eax
call fcn.00411818
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x5c]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40568d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40565f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40568d
push ebx
call fcn.00411b06
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x405656
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x405691
xor al, al
jmp 0x4056ac
push ebx
push dword [ebp + 8]
call fcn.004054c1
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.00411a9d
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d7b
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x41d52c
push dword [ebp + 8]
call fcn.00411d62
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x405e36
push 2
push edi
push esi
call fcn.004120f4
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.004120f4
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.0041200c
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.004120f4
push esi
call fcn.00411eb4
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041200c
add esp, 0x48
push edi
push edi
push esi
call fcn.004120f4
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x405e3d
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x405e3d
push esi
call fcn.00411cba
pop ecx
xor al, al
jmp 0x405f25
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x405e65
push esi
call fcn.00411cba
pop ecx
xor bl, bl
jmp 0x405f18
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x405e7b
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0041200c
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x405ef9
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x405e6c
push esi
call fcn.00411cba
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x41d470
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x405f00
movzx eax, word [ebp - 2]
push esi
push str.ReflexiveArcade_DLL_Signature
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x405f04
xor bl, bl
jmp 0x405f06
push esi
call fcn.00411cba
pop ecx
xor bl, bl
jmp 0x405f0f
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405f4d
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x405f6c
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push eax
call fcn.004116a0
lea eax, [ebp - 0x348]
push 0x41d58c
push eax
call fcn.004116b0
add esp, 0x10
lea eax, [ebp - 0x140]
mov bl, 1
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406047
test byte [ebp - 0x140], 0x10
jne 0x406031
push dword [ebp + 0xc]
lea eax, [ebp - 0x44c]
push eax
call fcn.004116a0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004116b0
push dword [ebp + 8]
lea eax, [ebp - 0x244]
push eax
call fcn.004116a0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.004116b0
lea eax, [ebp - 0x244]
push eax
call fcn.00405f4d
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x406031
xor bl, bl
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405fbb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
pop ebx
leave
ret

Function at 0x406054
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push eax
call fcn.004116a0
lea eax, [ebp - 0x348]
push str..
push eax
call fcn.004116b0
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406135
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004116a0
lea eax, [ebp - 0x104]
push 0x41c3b8
push eax
call fcn.004116b0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004116b0
lea eax, [ebp - 0x218]
push 0x41d594
push eax
call fcn.00412180
add esp, 0x20
test eax, eax
je 0x40611f
lea eax, [ebp - 0x218]
push 0x41d590
push eax
call fcn.00412180
pop ecx
test eax, eax
pop ecx
je 0x40611f
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x104]
push eax
je 0x406119
call fcn.00406054
jmp 0x40611e
call fcn.00405f4d
pop ecx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4060a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
leave
ret
Function at 0x406e7a
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x406ea8
push esi
call fcn.00409d61
cmp dword [esi + 0x40], 0
pop ecx
je 0x406ea1
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x406f1a
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x406f0c
mov eax, dword [esi + 8]
test eax, eax
je 0x406ec9
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x406f08
cmp eax, 2
je 0x406f0c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x406ebe
cmp eax, 3
je 0x406eed
cmp eax, 1
jne 0x406ebe
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x406ebe
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x406ebe
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x406f38
cmp eax, 0xcc
je 0x406f38
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00406f41
pop ecx
pop esi
ret
Function at 0x401845
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x10014
call fcn.0040c840
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x10010], eax
mov eax, dword [esp + 0x10018]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push edi
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push ecx
mov ebx, edx
mov dword [esp + 0x38], eax
mov dword [eax], ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x401a0a
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push ebx
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4019f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
push edi
call ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
call ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x4019f1
cmp eax, 0xffffffff
je 0x4019f1
cmp ebx, eax
jne 0x4019e1
mov eax, ebx
mov dword [esp + 0x14], ebp
shr eax, 0xf
and ebx, 0x7fff
mov dword [esp + 0x18], eax
test eax, eax
je 0x401986
push ebp
lea eax, [esp + 0x14]
push eax
push 0x8000
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
mov ecx, 0x8000
cmp dword [esp + 0x10], ecx
jne 0x4019f1
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x802c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], 0x8000
jne 0x4019f1
lea edx, [esp + 0x20]
mov ecx, ebp
mov eax, dword [edx + ecx*4]
lea edx, [esp + 0x8020]
cmp eax, dword [edx + ecx*4]
lea edx, [esp + 0x20]
jne 0x4019e1
inc ecx
cmp ecx, 0x2000
jne 0x401957
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x4018f7
test ebx, ebx
je 0x4019e6
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], ebx
jne 0x4019f1
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x802c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], ebx
jne 0x4019f1
push ebx
lea eax, [esp + 0x8024]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004100ee
add esp, 0xc
test eax, eax
je 0x4019e6
xor ebp, ebp
inc ebp
jmp 0x4019f1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc ecx
mov ebp, ecx
mov dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401a03
cmp esi, 0xffffffff
je 0x401a03
push esi
call ebx
test edi, edi
je 0x401a0a
push edi
call ebx
mov ecx, dword [esp + 0x10020]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x10014
ret
Function at 0x401a25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20206
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401a51
xor eax, eax
jmp 0x401a91
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401a56
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push edi
push str.DisplayVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404a43
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
mov edi, edx
lea eax, [ebp - 0x20e]
mov esi, ecx
push ebx
push eax
call fcn.0040bc00
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404a82
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jbe 0x404a9e
xor eax, eax
jmp 0x404ad6
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404da0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d91
mov esp, ebp
pop ebp
ret

Function at 0x404b6b
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x404ba8
push edi
push dword [esi]
call fcn.004068bf
and dword [esi], 0
lea edi, [esi + 0x20c]
push 0
push edi
call fcn.00406dac
add esp, 0xc
test eax, eax
lea eax, [esi + 4]
jne 0x404b9f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404ba7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
ret
Function at 0x40f197
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419794]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a16b
mov dword [ebp - 0x14], eax
cmp dword [0x43711c], esi
jne 0x40f28a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f217
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f36a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f36a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f36a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43711c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x437120], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x437124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43712c], eax
test eax, eax
je 0x40f287
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x437128], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f2af
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f2a2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push 4
pop eax
jmp 0x40f36c
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push dword [0x43711c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f2a9
mov eax, dword [0x437128]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f322
cmp dword [0x43712c], edi
je 0x40f322
push eax
call ebx
push dword [0x43712c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f322
test eax, eax
je 0x40f322
call ecx
test eax, eax
je 0x40f317
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f317
test byte [ebp - 8], 1
jne 0x40f322
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f352
mov eax, dword [0x437120]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
call eax
mov esi, eax
test esi, esi
je 0x40f34f
mov eax, dword [0x437124]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43711c]
call ebx
test eax, eax
je 0x40f36a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f36c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040482b
mov esp, ebp
pop ebp
ret