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

Disassembly:
mov eax, 0x1010c
call fcn.004946e0
push ebp
mov ebp, dword [esp + 0x10118]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1011c]
test esi, esi
je 0x4717a6
cmp byte [esi], 0
jne 0x4717ab
mov esi, str.ERROR
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x104
push edx
mov byte [esp + 0x128], 0
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
cmp byte [ebp], 0
je 0x47181e
cmp byte [edi], 0
jne 0x4717dd
lea edi, [esp + 0xf]
lea eax, [esp + 0x14]
push eax
push 0xffff
lea ecx, [esp + 0x120]
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov ecx, dword [0x4ae218]
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x124]
push eax
push ecx
call fcn.004780a0
pop edi
pop esi
pop ebp
add esp, 0x1010c
ret 8
cmp byte [edi], 0
je 0x47183e
lea edx, [esp + 0x14]
push edx
push 0xffff
lea eax, [esp + 0x120]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionA]
jmp 0x471856
lea ecx, [esp + 0x14]
push ecx
push 0xffff
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x4717f8
lea eax, [esp + 0x118]
cmp byte [eax], 0
jne 0x47186f
cmp byte [eax + 1], 0
je 0x4717f8
mov byte [eax], 0xa
inc eax
jmp 0x471861
Function at 0x472030
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
je 0x4720f7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x4aa988]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x20019
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x472104
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00472030
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x472104
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
jne 0x472104
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push edi
mov dword [esp + 0x30], 0xff
call ebx
cmp eax, 0x103
jne 0x47207a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x472120
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebx, ebx
je 0x47220f
test edi, edi
je 0x472138
cmp byte [edi], 0
jne 0x472140
test ebp, ebp
je 0x47220f
mov ecx, dword [0x4aa988]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x14]
push eax
or edx, 0x2001f
push edx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4721e1
mov eax, dword [esp + 0x14]
test ebp, ebp
jne 0x4721f8
push eax
call fcn.00472030
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4721e1
mov eax, 1
test byte [0x4b03a4], al
jne 0x4721bf
or dword [0x4b03a4], eax
push str.RegDeleteKeyExA
push str.advapi32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4b03a0], eax
jmp 0x4721c4
mov eax, dword [0x4b03a0]
mov edx, dword [0x4aa988]
mov ecx, dword [edx + 0xb0]
test ecx, ecx
je 0x4721ee
test eax, eax
je 0x4721ee
push 0
push ecx
push edi
push ebx
call eax
mov esi, eax
cmp esi, 0xffffffff
jne 0x472214
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x472216
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4721df
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4721e1
mov esi, 0x57
mov eax, esi
mov edx, dword [0x4aa988]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
test esi, esi
setne al
movzx ecx, al
push ecx
push edx
call fcn.0042f740
pop esi
pop ebp
pop ecx
ret 8
Function at 0x472880
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
xor ebx, ebx
push ebp
push edi
cmp eax, ebx
je 0x4728a6
sub eax, dword [esi + 0x30]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
push edx
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4728c3
cmp dword [esi + 0x2c], ebx
jne 0x4728c3
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
mov byte [esi + 0x28], bl
call edx
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push ebx
mov ebp, edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x47292d
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x47292d
cmp ebx, ebp
jg 0x47290d
jl 0x472905
cmp dword [esp + 0x10], edi
jae 0x47290d
mov eax, dword [esp + 0x10]
mov ecx, ebx
jmp 0x472911
mov eax, edi
mov ecx, ebp
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8

Function at 0x475c30
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x475cb0
cmp byte [esi], 0
je 0x475cb0
push 4
push 0x4a3ae4
push esi
call fcn.0048a3af
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x475c59
lea eax, [esi + 4]
mov edi, 0x4a1324
call fcn.00409c20
test eax, eax
je 0x475c93
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x475cb0
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test ebx, ebx
je 0x475c89
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov al, 1
pop edi
add esp, 0x148
ret
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test ebx, ebx
je 0x475ca0
mov dword [ebx], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop edi
add esp, 0x148
ret
xor al, al
pop edi
add esp, 0x148
ret

Function at 0x475f00
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x475f37
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x475f34
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret
Function at 0x4762e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004946e0
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x476325
lea eax, [esi + 1]
cmp eax, 0x7fff
ja 0x476325
push eax
lea edx, [esp + 8]
push edx
push edi
call fcn.004905c0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov eax, esi
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x476d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x476d43
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov ebx, eax
jmp 0x476d49
mov ebx, dword [0x4ae2d0]
mov edi, dword [esp + 0x2c]
cmp ebx, esi
je 0x476eb7
mov eax, edi
cmp edi, esi
jge 0x476d62
neg eax
movzx eax, ax
jmp 0x476d90
jne 0x476d69
mov eax, 1
lea ecx, [esp + 0x18]
push ecx
push 0x476cf0
push 0xe
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x4af24c
call dword [sym.imp.KERNEL32.DLL_EnumResourceNamesA]
mov eax, dword [esp + 0x20]
cmp eax, 0x4af24c
je 0x476e94
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, esi
je 0x476e94
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, esi
je 0x476e94
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x476e94
cmp dword [esp + 0x30], 0xffffffff
jne 0x476ddd
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x30], 0
jne 0x476df0
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x30], eax
movzx eax, word [esi + 4]
xor ebp, ebp
xor edi, edi
lea edx, [esi + 6]
test eax, eax
jle 0x476e8c
mov dword [esp + 0x14], eax
movzx eax, byte [edx]
test eax, eax
jne 0x476e13
mov eax, 0x100
xor ecx, ecx
cmp eax, edi
jle 0x476e22
cmp edi, dword [esp + 0x30]
setl cl
jmp 0x476e29
cmp eax, dword [esp + 0x30]
setge cl
test ecx, ecx
je 0x476e31
mov ebp, edx
mov edi, eax
add edx, 0xe
dec dword [esp + 0x14]
jne 0x476e07
test ebp, ebp
je 0x476e8c
movzx eax, word [ebp + 0xc]
push 3
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x476e8c
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x476e8c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x476e8c
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x476ea8
test esi, esi
je 0x476ea8
mov dword [eax], ebx
jmp 0x476eb3
test ebp, ebp
je 0x476eb3
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test esi, esi
jne 0x476eed
test edi, edi
jle 0x476ed0
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
cmp edi, 0xffffffff
setge al
dec eax
and eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x477ee0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x4af8f8
call fcn.00404bd0
test eax, eax
jne 0x477f0d
push 0x49b8cd
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4af278
call fcn.0042fd40
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x477f74
xor esi, esi
cmp dword [0x4af910], esi
je 0x477f60
cmp dword [0x4af900], esi
je 0x477f4e
mov edx, dword [0x4af8f8]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af900], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af910], esi
mov dword [0x4af8f8], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x477f29
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x477f29
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x477f29
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x477feb
test ebx, ebx
je 0x477fd1
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x478041
push ebx
push ebp
push eax
call fcn.004905c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x477f70
jmp 0x477f29
cmp dword [0x4af910], 0
je 0x478025
cmp dword [0x4af900], 0
je 0x478013
mov eax, dword [0x4af8f8]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af900], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4af910], eax
mov dword [0x4af8f8], eax
push 0x49b8cd
push str.Out_of_memory.
mov ecx, 0x4af278
call fcn.0042fd40
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
xor esi, esi
cmp dword [0x4af910], esi
je 0x47807f
cmp dword [0x4af900], esi
je 0x47806d
mov ecx, dword [0x4af8f8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4af900], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4af910], esi
mov dword [0x4af8f8], esi
push 0x49b8cd
push 0x49ba90
mov ecx, 0x4af278
call fcn.0042fd40
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x478470
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x478483
jmp dword [eax*4 + 0x478634]
mov eax, esi
call fcn.004011b0
cmp dword [0x4ae444], 0
jne 0x478554
cmp dword [esi + 0xc], 0
jne 0x478554
mov edi, dword [esp + 0x14]
cmp dword [0x4b0308], esi
jne 0x4784b8
test edi, edi
jne 0x478515
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x478511
mov dword [0x4b0308], 0
test edi, edi
je 0x478509
mov eax, dword [0x4ae420]
test eax, eax
je 0x4784fa
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4af278
xor ecx, ecx
call fcn.00430290
mov ecx, dword [esi + 0x18]
call fcn.004762e0
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x478545
cmp byte [esi + 0x17], 0
jne 0x478520
mov eax, dword [esi + 0xc]
jmp 0x478522
mov eax, esi
test byte [eax + 0x15], 4
je 0x47852f
mov eax, esi
call fcn.004303a0
mov byte [edi], 0
mov dword [0x4b0308], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4b0308], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 0xc]
test edi, edi
je 0x4785c5
test ebx, ebx
jne 0x478586
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47857a
mov eax, esi
call fcn.004303a0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4785c5
cmp ebx, 0x186a0
jae 0x4785b6
mov al, byte [ecx]
test al, al
je 0x4785aa
jmp 0x4785a0
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x4785a0
mov byte [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push ebx
push ecx
push edi
call fcn.004905c0
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push eax
call fcn.00478470
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4af8f8
call fcn.00404640
cmp eax, 0xffffffff
jne 0x4785f8
xor eax, eax
test esi, esi
je 0x47862c
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x478612
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
push ecx
push edx
call eax
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4791d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x4791e0
mov eax, esi
call fcn.004540d0
jmp 0x4791ed
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x479248
je 0x479248
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call ebp
push 1
push 0x8000012f
mov edi, eax
call fcn.00401420
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x479245
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x479245
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call ebx
test eax, eax
jne 0x479224
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x479830
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.004946e0
push ebx
push ebp
mov ebp, dword [esp + 0x8028]
push esi
push edi
mov edi, dword [esp + 0x802c]
mov esi, ecx
test edi, edi
je 0x479859
mov ecx, edi
call fcn.00414de0
cmp dword [esp + 0x8038], 0
jne 0x47986e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x479883
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47988d
mov ebp, 1
test esi, esi
je 0x479a5a
mov ebx, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [esp + 0x20]
push eax
push 0x7d0
push 2
push 0
push 0
push 0x406
push esi
call ebx
test eax, eax
je 0x479a5a
cmp ebp, dword [esp + 0x20]
jg 0x479a5a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.004763c0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x479a53
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x479900
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x479977
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4799ce
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x479977
movzx ecx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
inc ecx
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4799c9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00478d80
test al, al
jne 0x4799f4
cmp dword [esp + 0x802c], 0
jne 0x4799d8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479a27
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x4799ae
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x479a0c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401420
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x479900
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x479a27
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004780a0
mov esi, eax
jmp 0x479a2c
mov eax, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push eax
call fcn.004780a0
jmp 0x4799ce
mov ecx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.004780a0
mov edi, dword [esp + 0x1c]
mov esi, 1
push 0x8000
push 0
push edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov edi, dword [esp + 0x802c]
mov eax, 0x49cf30
test edi, edi
jne 0x479a68
mov eax, 0x49d1f0
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
jne 0x479a95
mov edx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.004780a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4af5ec]
push 0x49b8cd
push 0
push eax
call fcn.0042f6a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x47ae80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x47ae9c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4aa988]
push eax
push esi
mov ecx, edi
call fcn.0047b3e0
cmp byte [edi], 0
je 0x47aecf
test eax, eax
jne 0x47aed7
mov edx, dword [esp + 0x1c]
push eax
push edx
push edi
call fcn.0047afb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47af78
test esi, esi
je 0x47af52
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
push 1
push 0x8000012f
mov ebx, eax
call fcn.00401420
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47af35
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47af35
push 1
push 0x8000012f
call fcn.00401420
add esp, 8
push esi
call edi
test eax, eax
jne 0x47af10
mov edx, dword [0x4aa988]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47af4e
push 1
push eax
call fcn.00401420
add esp, 8
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47af92
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x47af78
mov ecx, dword [0x4aa988]
push ecx
push eax
mov ecx, edi
call fcn.0047b3e0
test eax, eax
jne 0x47ae8f
cmp byte [edi], 0
je 0x47af92
mov edx, dword [esp + 0x1c]
push 0
push edx
push edi
call fcn.0047afb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0047b1b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x48edd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48edde
repz ret
jmp fcn.00493887

Function at 0x491a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048bfb2
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491b6c
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491b6c
mov esi, dword [fcn.00487fe0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487fe4]
cmp eax, ecx
je 0x491b1d
cmp dword [0x4acb1c], ecx
je 0x491b1d
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491b1d
test ebx, ebx
je 0x491b1d
call edi
test eax, eax
je 0x491b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491b14
test byte [ebp - 8], 1
jne 0x491b1d
or dword [ebp + 0x10], 0x200000
jmp 0x491b50
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491b50
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048edd4
leave
ret