joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2024
call fcn.0040ab80
mov eax, dword [0x4223a0]
xor eax, esp
mov dword [esp + 0x2020], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push SysStringLen
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c36
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.PendingFileRenameOperations
push eax
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c2b
mov ecx, dword [esp + 4]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1028]
push eax
call fcn.0040b7b0
lea ecx, [esp + 0x102c]
push ecx
call fcn.0040b749
mov edx, dword [str.nvuninst.exe]
mov eax, dword [0x41a730]
mov ecx, dword [0x41a734]
mov dword [esp + 0x20], edx
mov dl, byte [0x41a738]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov byte [esp + 0x2c], dl
add esp, 0x10
mov dword [esp + 0x18], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403b25
push ebp
sub eax, edx
push edi
mov edi, eax
mov eax, dword [esp + 0xc]
xor ebp, ebp
sub eax, edi
mov byte [esp + 0xb], cl
mov dword [esp + 0x14], eax
je 0x403c29
push ebx
push esi
lea esp, [esp]
cmp edi, 4
mov eax, edi
lea ecx, [esp + 0x20]
lea edx, [esp + ebp + 0x1030]
jb 0x403b76
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x403b7a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x403b62
test eax, eax
je 0x403bd7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x403bc9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403bd7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x403bc9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403bd7
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x403bc9
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403bd7
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x403bd7
test esi, esi
mov eax, 1
jg 0x403bd9
or eax, 0xffffffff
jmp 0x403bd9
xor eax, eax
test eax, eax
jne 0x403bf5
push edi
lea ecx, [esp + ebp + 0x34]
push str.nvuninst.ex_
push ecx
call fcn.0040b7b0
add esp, 0xc
mov byte [esp + 0x13], 1
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jb 0x403b50
cmp byte [esp + 0x13], 0
pop esi
pop ebx
je 0x403c29
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
push 7
push 0
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebp
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0040a7c2
add esp, 0x2024
ret
Function at 0x403f80
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push esi
push str.UninstCommandClass::CheckForUpdate_n
call fcn.00403a50
mov ebp, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 0x14]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x403fb1
pop esi
mov al, 1
pop ebp
add esp, 8
ret 0xc
push ebx
push edi
push esi
xor bl, bl
call fcn.0040a39f
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404004
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x41ab98
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404004
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x404004
jne 0x404006
mov ecx, dword [edx + 0xc]
cmp ecx, dword [esp + 0x24]
jae 0x404006
mov bl, 1
push edi
call fcn.0040a409
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 8
ret 0xc

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
test al, al
mov ecx, str.TRUE
jne 0x404360
mov ecx, str.FALSE
push ecx
push esi
push str.UninstCommandClass::NvFileExists__s____s_n
call fcn.00403a50
add esp, 0xc
pop esi
ret 4

Function at 0x404380
Capabilities:
Move file
Set file attributes

Disassembly:
push esi
push edi
push str.UninstCommandClass::NvReplaceFileOnReboot_n
call fcn.00403a50
mov esi, dword [esp + 0x10]
add esp, 4
push esi
call fcn.00404340
test al, al
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jne 0x4043b1
push esi
call edi
test eax, eax
jne 0x4043b1
pop edi
xor al, al
pop esi
ret 8
push esi
call edi
test eax, eax
mov edi, dword [esp + 0x10]
je 0x4043c0
test edi, edi
jne 0x4043aa
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub eax, 1
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
ret 8
Function at 0x4043f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4223a0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x228]
test eax, eax
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x22c]
push edi
mov esi, eax
jne 0x40442b
mov esi, str.NULL
test ecx, ecx
mov edx, ecx
jne 0x404436
mov edx, str.NULL
push esi
push edx
push str.UninstCommandClass::NvRegEnumAndDeleteSubKeys_HKEY__s__s__n
call fcn.00403a50
lea esi, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0xc], 0
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x404453
lea edi, [esp + 0x24]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404466
mov cx, word [0x41ab98]
mov word [edi], cx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404480
lea edi, [esp + 0x24]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404494
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 0xf003f
mov ecx, eax
push 0
lea eax, [esp + 0x30]
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40456e
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x28]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404563
cmp dword [esp + 0xc], eax
jbe 0x404563
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, 0xff
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x13c]
push eax
add ecx, 0xffffffff
push ecx
push edx
mov dword [esp + 0x3c], edi
call esi
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
call fcn.004043f0
test eax, eax
jne 0x40455b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x128]
push edx
push eax
call ebx
sub dword [esp + 0x10], 1
jne 0x404506
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a7c2
add esp, 0x21c
ret 0xc
Function at 0x404930
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push str.UninstCommandClass::UninstallService_n
mov dword [esp + 0x18], esi
call fcn.00403a50
add esp, 4
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x404a73
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x404a4a
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x404a04
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
sub ebx, 1
cmp dword [esp + 0x20], 1
je 0x4049d5
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x4049ce
test ebx, ebx
jne 0x4049b0
cmp dword [esp + 0x20], 1
jne 0x4049de
push 0x3e8
call edi
jmp 0x4049ff
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call section..text
push eax
push str.Error:
push ebx
call fcn.00401660
add esp, 0x10
mov ebx, dword [esp + 0x14]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x404a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x404a2f
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x404a5f
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00401720
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x4065b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x350
mov eax, dword [0x4223a0]
xor eax, esp
mov dword [esp + 0x34c], eax
push ebp
mov ebp, dword [esp + 0x358]
push esi
push edi
push str.UninstCommandClass::GetProcessId_n
mov edi, ecx
call fcn.00403a50
push 0x124
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.0040a410
add esp, 0x10
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406698
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406691
push 0x220
lea edx, [esp + 0x13c]
push 0
push edx
mov dword [esp + 0x140], 0
call fcn.0040a410
add esp, 0xc
jmp 0x406650
mov ecx, dword [esp + 0x14]
push 0x224
lea eax, [esp + 0x138]
push eax
push ecx
mov ecx, edi
call fcn.00406500
test eax, eax
je 0x406682
lea edx, [esp + 0x154]
push edx
push ebp
call fcn.0040a32e
add esp, 8
test eax, eax
je 0x4066b4
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406650
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x358]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a7c2
add esp, 0x350
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x40669a

Function at 0x4066d0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push str.UninstCommandClass::KillApp_n
mov esi, ecx
call fcn.00403a50
mov edi, dword [esp + 0x10]
add esp, 4
push edi
call fcn.004065b0
test eax, eax
je 0x406713
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.004066d0
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x406d90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
mov eax, dword [0x4223a0]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x10c]
push edi
push str.UninstCommandClass::IsNvDisplayInf_n
call fcn.00403a50
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
push esi
push 0x80
lea eax, [esp + 0x10]
push eax
push str._error_
push str.Class
push str.Version
call edi
push esi
push 0x80
lea ecx, [esp + 0x90]
push ecx
push str._error_
push 0x41bdf4
push str.Version
call edi
lea edx, [esp + 8]
push str.Display
push edx
call fcn.0040a32e
add esp, 8
test eax, eax
pop edi
pop esi
jne 0x406e48
lea eax, [esp + 0x80]
push str._NVidia_
push eax
call fcn.0040a32e
add esp, 8
test eax, eax
jne 0x406e48
mov eax, 1
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0040a7c2
add esp, 0x104
ret 4
mov ecx, dword [esp + 0x100]
xor ecx, esp
xor eax, eax
call fcn.0040a7c2
add esp, 0x104
ret 4
Function at 0x406e70
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x134
mov eax, dword [0x4223a0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
mov ebp, dword [esp + 0x144]
push esi
push edi
mov edi, dword [esp + 0x148]
push str.UninstCommandClass::IsGreater_n
mov dword [esp + 0x18], ebp
call fcn.00403a50
xor ebx, ebx
add esp, 4
push 0x104
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x406f61
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406f4d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406f4d
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0x41ab98
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406f4d
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0xc]
mov dword [esp + 0x18], ecx
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
mov dword [esp + 0x24], edx
movzx edx, word [eax + 0xa]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebp, dword [esp + 0x14]
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x406fe3
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x406fd5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push ebx
push edi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406fd5
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x41ab98
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406fd5
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xc]
mov dword [esp + 0x10], ecx
movzx edx, word [eax + 0xe]
movzx ecx, word [eax + 8]
mov dword [esp + 0x20], edx
movzx edx, word [eax + 0xa]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
pop edi
pop esi
pop ebp
pop ebx
je 0x40700e
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040a7c2
add esp, 0x134
ret 8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x406ff3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x406ff3
mov eax, dword [esp + 8]
mov ecx, dword [esp]
cmp ecx, eax
jne 0x406ff3
mov ecx, dword [esp + 0x130]
xor ecx, esp
xor eax, eax
call fcn.0040a7c2
add esp, 0x134
ret 8
Function at 0x4090f0
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
mov edi, ecx
mov eax, esi
jne 0x409103
mov eax, str.NULL
push eax
push str.UninstCommandClass::NvDeleteFile__s__n
call fcn.00403a50
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
push esi
jne 0x40914f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
jne 0x40913b
push str.Directory_deleted_n
call fcn.00403a50
add esp, 4
pop edi
pop esi
ret 4
push str.Failure_deleting_directory_n
call fcn.00403a50
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, edi
call fcn.00404340
test al, al
je 0x409148
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
push esi
jne 0x4091a2
push str.File___s__queued_for_delete_at_reboot_n
call fcn.00403a50
push esi
call fcn.0040bb15
mov dword [esp + 0x18], eax
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov ecx, 0x42388c
call fcn.004090b0
pop edi
mov eax, 1
pop esi
ret 4
push str.File___s__deleted_n
call fcn.00403a50
add esp, 8
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x40a7c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223a0]
jne 0x40a7cc
repz ret
jmp fcn.0040f81e
Function at 0x411ecb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x422f68]
je 0x411ee6
inc edi
cmp edi, 0x17
jb 0x411ed7
cmp edi, 0x17
jae 0x412066
push ebp
push 3
call fcn.0041807f
cmp eax, 1
pop ecx
je 0x412032
push 3
call fcn.0041807f
test eax, eax
pop ecx
jne 0x411f1a
cmp dword [0x4223c0], 1
je 0x412032
cmp ebx, 0xfc
je 0x412065
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x423f08
push ebp
call fcn.0040fdde
add esp, 0xc
test eax, eax
je 0x411f50
push esi
push esi
push esi
push esi
push esi
call fcn.0040d8e8
add esp, 0x14
push 0x104
mov esi, 0x423f21
push esi
push 0
mov byte [0x424025], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411f94
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040fdde
add esp, 0xc
test eax, eax
je 0x411f94
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040d8e8
add esp, 0x14
push esi
call fcn.0040dc40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411fd9
push esi
call fcn.0040dc40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42421c
push 0x41eabc
sub ecx, eax
push ecx
push eax
call fcn.0041510d
add esp, 0x14
test eax, eax
je 0x411fd9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040d8e8
add esp, 0x14
jmp 0x411fdb
xor esi, esi
push 0x41eab8
push ebx
push ebp
call fcn.0040fd6d
add esp, 0xc
test eax, eax
je 0x411ffb
push esi
push esi
push esi
push esi
push esi
call fcn.0040d8e8
add esp, 0x14
push dword [edi*8 + 0x422f6c]
push ebx
push ebp
call fcn.0040fd6d
add esp, 0xc
test eax, eax
je 0x41201d
push esi
push esi
push esi
push esi
push esi
call fcn.0040d8e8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00417ec2
add esp, 0xc
jmp 0x412065
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412065
cmp ebp, 0xffffffff
je 0x412065
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x422f6c]
push dword [esi]
call fcn.0040dc40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x417ec2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d32a
xor ebx, ebx
cmp dword [0x424374], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x417f98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
cmp edi, ebx
je 0x418078
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x41f52c
push edi
call esi
cmp eax, ebx
je 0x418078
push eax
call fcn.0040d2bc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424374], eax
call esi
push eax
call fcn.0040d2bc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424378], eax
call esi
push eax
call fcn.0040d2bc
mov dword [0x42437c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040addf
test eax, eax
pop ecx
pop ecx
je 0x417f66
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d8e8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x417f98
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d2bc
cmp eax, ebx
pop ecx
mov dword [0x424384], eax
je 0x417f98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d2bc
pop ecx
mov dword [0x424380], eax
mov eax, dword [0x424380]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41801d
cmp dword [0x424384], ecx
je 0x41801d
push eax
call fcn.0040d333
push dword [0x424384]
mov esi, eax
call fcn.0040d333
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41801d
cmp edi, ebx
je 0x41801d
call esi
cmp eax, ebx
je 0x417fea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417fea
test byte [ebp - 0x18], 1
jne 0x41801d
lea eax, [ebp - 0x10]
push eax
call fcn.0040ae16
test eax, eax
pop ecx
je 0x418005
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040d8e8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x418014
or dword [ebp + 0x10], 0x200000
jmp 0x418058
or dword [ebp + 0x10], 0x40000
jmp 0x418058
mov eax, dword [0x424378]
cmp eax, dword [ebp - 8]
je 0x418058
push eax
call fcn.0040d333
cmp eax, ebx
pop ecx
je 0x418058
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418058
mov eax, dword [0x42437c]
cmp eax, dword [ebp - 8]
je 0x418058
push eax
call fcn.0040d333
cmp eax, ebx
pop ecx
je 0x418058
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424374]
call fcn.0040d333
cmp eax, ebx
pop ecx
je 0x418078
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41807a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41053b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00420090
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00418e6b
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00415acc
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.0041fd50
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x410596
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x4105d4
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x4105be
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x412015
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, 0x455cb0
xor edi, edi
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, al
jbe 0x41203f
mov ecx, esi
movzx edx, al
movzx eax, byte [ecx]
mov esi, eax
imul esi, edi
xor esi, eax
inc ecx
dec edx
mov edi, esi
jne 0x41202f
mov eax, edi
pop edi
pop esi
ret

Function at 0x418813
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x418827
pop edi
pop esi
pop ebx
leave
ret