joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d990
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00428140
test eax, eax
je 0x42da7f
mov ecx, edi
call fcn.00428140
mov ecx, eax
call fcn.004256b0
test eax, eax
jne 0x42da7f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42da7f
mov eax, dword [0x494dc8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42d9f2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00428140
mov ecx, eax
call fcn.004258e0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42da7f
cmp ebx, eax
jne 0x42da7f
cmp dword [esp + 0x10], eax
jne 0x42da65
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4306a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4306d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4307ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4306ed
mov eax, 0xffffffc7
jmp 0x4307ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4306fe
cmp dword [esi + 8], eax
jne 0x4306ed
cmp dword [esi + 8], eax
jne 0x430717
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430717
mov eax, 0xffffffc7
jmp 0x4307ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43072b
push eax
mov ecx, ebx
call fcn.0042fed0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004016a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43075c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004016c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f640
test eax, eax
mov dword [esp + 0x38], eax
je 0x43078f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46a498
call fcn.004018a0
mov eax, dword [esp + 0x38]
jmp 0x4307ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430500
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4307d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430520
mov esi, eax
test esi, esi
jne 0x430803
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430500
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4307a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46a498
call fcn.004018a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46a498
call fcn.004018a0
mov eax, esi
jmp 0x4307ee

Function at 0x433910
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433970
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433970
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433970
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433970
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4339b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4398d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004600d3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439270
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460001
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045c8c5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045c8c5
push 1
push 0
push 0
mov ecx, esi
call fcn.0045c86d
push 1
push 0
push 1
mov ecx, esi
call fcn.0045c86d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460145
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x439a50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004600d3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439270
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460001
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x439b14
cmp dword [esp + 0x40], 1
jne 0x439b12
cmp ecx, eax
jge 0x439b14
mov eax, ecx
cmp eax, 0xc8
jge 0x439b20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004398d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460145
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a2a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045ace5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046037b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461897
test eax, eax
je 0x43a3bc
mov ecx, dword [esp + 0x3c]
call fcn.004603a8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43a380
push edi
mov ecx, esi
call fcn.0045da10
mov ecx, esi
call fcn.0043a520
cmp dword [esp + 0x38], 1
jne 0x43a3b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045db4b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43cde0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ce13
push esi
call fcn.0043fef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ce0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ce99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ce82
mov eax, dword [esi + 8]
test eax, eax
je 0x43ce37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ce7e
cmp eax, 2
je 0x43ce82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ce2a
cmp eax, 3
je 0x43ce5d
cmp eax, 1
jne 0x43ce2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43ce2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ce2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043cec0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43cea8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043cec0
add esp, 4
pop esi
ret

Function at 0x45badb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45bb13
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00459b8f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00459b67
jmp 0x45bb1f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d1cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45d20f
call fcn.00462c7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d20f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d206
xor eax, eax
jmp 0x45d217
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d21d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4631ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4631db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4631f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463113
jmp 0x4631f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4631f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463113
test edi, edi
mov eax, edi
jne 0x4631e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010c6
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x401d68
call fcn.004019c0
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040194e
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxGetModuleState
movzx ecx, word [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40110a
xor esi, esi
jmp 0x4011ff
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jbe 0x401103
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401103
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x401103
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 2
jle 0x401190
inc eax
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::SetAt
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401190
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401190
push ebx
push str.Install_driver
push str.Cant_create_directory__Install_fail_
jmp 0x4011ea
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x4011bc
push str.Install_driver
push str.Cant_create_file__Install_fail_
jmp 0x4011ea
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x4011f6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push str.Install_driver
push str.Cant_write_directory__Install_fail_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401103
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x401253
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4012a1
push str.Couldnt_get_OS_Version.
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x84]
dec eax
je 0x4012e7
dec eax
je 0x4012be
push str._The_OS_not_98_2000_or_Whistler
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x4012b9
cmp dword [ebp - 0x8c], 0
jne 0x4012d7
mov eax, 0x7d0
leave
ret
cmp dword [ebp - 0x8c], 1
jne 0x4012b9
mov eax, 0x7d1
leave
ret
cmp dword [ebp - 0x90], 4
jne 0x4012b9
cmp dword [ebp - 0x8c], 0xa
jne 0x4012fd
push 0x62
jmp 0x4012bb
cmp dword [ebp - 0x8c], 0x5a
jne 0x4012b9
push 0x63
jmp 0x4012bb
Function at 0x40130a
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x401d7c
call fcn.004019c0
sub esp, 0x320
push ebx
mov dword [ebp - 0x18], ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0040194e
xor esi, esi
push str.SOFTWARE_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x104
call sub.MFC42.DLL_CString::operator
push 0x403188
lea ecx, [ebp - 0x10]
call fcn.0040197e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push 0x4032b4
push esi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x124]
push eax
push esi
push esi
push str.DesPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4014a7
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x124]
push str.Setting.dll
push eax
lea eax, [ebp - 0x32c]
push 0x403168
push eax
call edi
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x32c]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4014a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x124]
push str.AdvDrvIns.exe
push eax
lea eax, [ebp - 0x228]
push 0x403168
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x228]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4014a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, str.Install
push 0x40004
push ebx
push str.Detect_you_have_installed_before__you_must_uninstall_first__n_t_tUninstall_now_
push esi
call edi
cmp eax, 6
jne 0x401496
mov ecx, dword [ebp - 0x18]
call fcn.00401557
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 0x4030fc
push esi
push eax
push eax
lea eax, [ebp - 0x228]
push eax
push 1
call dword [sym.imp.MSVCRT.dll__spawnl]
add esp, 0x14
jmp 0x4014a4
push 0x40000
push ebx
push str.Please_Uninstall_first_
push esi
call edi
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4014fc
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push edi
push dword [esp + 0xc]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401553
push esi
push dword [esp + 0x10]
push 0x4014c4
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401546
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x401549
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 0xc

Function at 0x401557
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x401da0
call fcn.004019c0
sub esp, 0x134
push ebx
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040194e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040194e
push 0xffffffffffffffff
push 2
mov byte [ebp - 4], 1
mov dword [ebp - 0x140], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push str.UFD.exe
lea ecx, [ebp - 0x14]
mov ebx, eax
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::MakeLower
cmp ebx, 0xffffffff
je 0x40167c
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40167c
push esi
mov esi, 0x7d0
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [edi + 0xc8]
cmp eax, esi
je 0x40163f
cmp eax, 0x7d1
je 0x40163f
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
lea eax, [ebp - 0x18]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::MakeLower
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x401666
push esi
push dword [ebp - 0x138]
push edi
call fcn.004014fc
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4015de
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x412cb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47443b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00468f63
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412d32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004666e4
mov eax, dword [eax]
push 0x4a81e0
push eax
call fcn.00459454
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004691ee
test bl, bl
je 0x412d32
push 0x4a81e0
lea ecx, [esp + 0xc]
call fcn.0046957e
push 0x4abd40
lea ecx, [esp + 0xc]
call fcn.0046957e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x412d6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004691ee
jmp 0x412e39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x412df2
lea edx, [esp + 0x7c]
push 0x4abd3c
push edx
call fcn.00459454
add esp, 8
test eax, eax
je 0x412df2
lea eax, [esp + 0x7c]
push 0x4abd38
push eax
call fcn.00459454
add esp, 8
test eax, eax
je 0x412df2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412d82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004691ee
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x413630
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x413692
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc