joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476060
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.0x476073
jmp dword [eax*4 + 0x476220]
mov eax, esi
call fcn.00401150
cmp dword [0x4ab3d8], 0
jne 0x476144
cmp dword [esi + 0xc], 0
jne 0x476144
mov edi, dword [esp + 0x14]
cmp dword [0x4ae344], esi
jne 0x4760a8
test edi, edi
jne 0x476105
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 0x476101
mov dword [0x4ae344], 0
test edi, edi
je 0x4760f9
mov eax, dword [0x4ab3b4]
test eax, eax
je 0x4760ea
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ad2f8
xor ecx, ecx
call fcn.0042e510
mov ecx, dword [esi + 0x18]
call fcn.004742d0
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 0x476135
cmp byte [esi + 0x17], 0
jne 0x476110
mov eax, dword [esi + 0xc]
jmp 0x476112
mov eax, esi
test byte [eax + 0x15], 4
je 0x47611f
mov eax, esi
call fcn.0042e640
mov byte [edi], 0
mov dword [0x4ae344], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4ae344], 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 0x4761b5
test ebx, ebx
jne 0x476176
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47616a
mov eax, esi
call fcn.0042e640
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 0x4761b5
cmp ebx, 0x186a0
jae 0x4761a6
mov al, byte [ecx]
test al, al
je 0x47619a
jmp 0x476190
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x476190
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.0048e6e0
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.00476060
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404100
cmp eax, 0xffffffff
jne 0x4761e4
xor eax, eax
test esi, esi
je 0x476218
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4761fe
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 0x476a10
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
mov al, byte [esi]
cmp al, 0x41
je 0x476a1e
cmp al, 0x61
jne 0x476a74
cmp byte [esi + 1], 0
jne 0x476a74
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x476a74
cmp byte [ebx], 0
jne 0x476a74
cmp byte [edi], 0
jne 0x476a74
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x476a74
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xca], 0
jne 0x476a5b
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x476a74
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x476a6f
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x476aa0
cmp byte [esi], al
jne 0x476aa0
mov edx, dword [esp + 0x10]
cmp byte [edx], al
jne 0x476aa0
cmp byte [ebx], al
jne 0x476aa0
cmp byte [edi], al
jne 0x476aa0
mov eax, dword [esp + 0xc]
call fcn.00477230
test eax, eax
jne 0x476ac5
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.00477040
add esp, 0x18
jmp 0x476a99
pop edi
pop ebp
jmp fcn.00476b30
Function at 0x476b30
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x476b3f
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [0x4ad284]
je 0x476b6a
mov esi, edi
call fcn.00477b60
test al, al
jne 0x476d02
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x476b84
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x476b98
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, esi
jne 0x476ba6
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
cmp byte [0x4ab392], 0
jne 0x476bc0
push esi
call fcn.00476ad0
add esp, 4
test eax, eax
jne 0x476d04
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x476c1d
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x476c1d
cmp dword [0x4ad284], ebx
je 0x476c04
call fcn.00477b60
test al, al
jne 0x476c04
mov eax, dword [0x4ad284]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x476c1d
cmp ebx, ebp
je 0x476c1d
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x14], 0
jmp 0x476c30
push edi
call ebx
push 1
push 0xa
mov dword [0x4a78b0], 0
call fcn.00401350
add esp, 8
mov dword [0x4a78b0], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x476c63
mov ebp, edi
jmp 0x476c74
cmp ebp, esi
je 0x476c78
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x476c78
test ebp, ebp
jne 0x476cb9
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x476c30
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040f7a0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040f7a0
push esi
call fcn.00476ad0
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x476cd4
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4ad284]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x476ced
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x476d02
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
Function at 0x476df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x476e00
mov eax, esi
call fcn.00452ac0
jmp 0x476e0d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x476e68
je 0x476e68
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.00401350
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x476e65
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476e65
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call ebx
test eax, eax
jne 0x476e44
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x477040
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.004925b0
mov eax, dword [esp + 0x8e68]
push ebx
push ebp
mov ebp, dword [esp + 0x8e6c]
push esi
mov esi, ecx
mov cl, byte [edx]
xor ebx, ebx
cmp cl, 0x41
je 0x47706b
cmp cl, 0x61
jne 0x4770bc
cmp byte [edx + 1], bl
jne 0x4770bc
cmp byte [edi], bl
jne 0x4770bc
cmp byte [eax], bl
jne 0x4770bc
cmp byte [esi], bl
jne 0x4770bc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x47709d
cmp byte [ebp + 0xca], bl
jne 0x47709d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x47709d
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x4770b0
cmp esi, ebx
je 0x4770b0
mov dword [ebp + 0xa4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x4770dd
cmp byte [edi], bl
jne 0x4770dd
cmp byte [eax], bl
jne 0x4770dd
cmp byte [esi], bl
jne 0x4770dd
mov eax, ebp
call fcn.00477230
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x828], 0x499821
mov byte [esp + 0xc45], bl
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc50], ebx
mov dword [esp + 0xc54], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov dword [esp + 0xc68], ebx
mov dword [esp + 0xc6c], ebx
call fcn.00477ca0
test eax, eax
je 0x4771ee
test byte [esp + 0xc], 2
mov al, byte [esp + 0x8e78]
mov ecx, dword [esp + 0x8e80]
mov edx, dword [esp + 0x8e84]
mov byte [esp + 0xc35], al
mov dword [esp + 0xc44], ecx
mov dword [esp + 0xc48], edx
je 0x4771fa
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x4771c6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4771ee
cmp byte [ebp + 0xca], bl
jne 0x4771bf
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4771bf
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4771ee
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x4771df
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.004780e0
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.004781a0
test eax, eax
jne 0x47720a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x4772a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x477224
cmp eax, ebx
je 0x477224
mov dword [ebp + 0xa4], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x477410
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.004925b0
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 0x477439
mov ecx, edi
call fcn.004135e0
cmp dword [esp + 0x8038], 0
jne 0x47744e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x477463
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47746d
mov ebp, 1
test esi, esi
je 0x47763a
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 0x47763a
cmp ebp, dword [esp + 0x20]
jg 0x47763a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.004743a0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x477633
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x4774e0
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x477557
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4775ae
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x477557
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 0x4775a9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00476990
test al, al
jne 0x4775d4
cmp dword [esp + 0x802c], 0
jne 0x4775b8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477607
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x47758e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4775ec
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401350
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x4774e0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x477607
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00475c90
mov esi, eax
jmp 0x47760c
mov eax, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x4998c4
push eax
call fcn.00475c90
jmp 0x4775ae
mov ecx, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push 0x49afc8
push ecx
call fcn.00475c90
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, 0x49afc8
test edi, edi
jne 0x477648
mov eax, 0x49b144
mov ecx, dword [0x4a78d4]
cmp byte [ecx + 0xe8], 0
jne 0x477675
mov edx, dword [0x4aba70]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00475c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ad668]
push 0x499821
push 0
push eax
call fcn.0042db40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x4780e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x478197
mov eax, dword [esi]
test eax, eax
je 0x478197
push edi
test al, 1
jne 0x478109
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x478122
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x478122
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x47813d
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x478178
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x478178
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044e760
add esp, 4
test eax, eax
jne 0x478178
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x478197
mov ecx, dword [esi + 0xc50]
push 0x101
lea eax, [esi + 0x8c57]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
pop ecx
ret

Function at 0x4788f0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.004925b0
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47899d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x479030
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x499821
mov byte [esp + 0xc35], bl
mov dword [esp + 0xc38], ebx
mov dword [esp + 0xc3c], ebx
mov dword [esp + 0xc40], ebx
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc58], ebx
mov dword [esp + 0xc5c], ebx
mov byte [esp + 0xc50], cl
mov dword [esp + 0xc54], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], ebx
je 0x47899d
mov ecx, dword [0x4a78d4]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47899d
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x4789b0
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 0x4789cc
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 [0x4a78d4]
push eax
push esi
mov ecx, edi
call fcn.00478e70
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x478a03
test eax, eax
jne 0x478a07
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00478ac0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x478a86
test esi, esi
je 0x478a86
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.00401350
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x478a65
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x478a65
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call edi
test eax, eax
jne 0x478a40
mov edx, dword [0x4a78d4]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x478a7e
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x478aa0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00478ac0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00478c40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x478c40
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.004925b0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x478dc0
xor cl, cl
mov eax, edi
call fcn.00478de0
test eax, eax
jne 0x478c75
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4a78d4]
push eax
push ebp
mov ecx, edi
call fcn.00478e70
test eax, eax
je 0x478c98
xor eax, eax
mov dword [0x4ad27c], eax
jmp 0x478c9d
mov eax, dword [0x4ad27c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x499821
mov dword [esp + 0xc44], ebx
mov dword [esp + 0xc48], ebx
mov dword [esp + 0xc4c], ebx
mov dword [esp + 0xc64], ebx
mov dword [esp + 0xc68], ebx
cmp byte [esp + 0x8e7c], bl
je 0x478ce3
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x478ceb
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ad278]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
lea eax, [esp + 0x18]
push eax
push 0x478f40
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x478d98
lea ecx, [esp + 0x10]
push ecx
push 0x477ab0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x478d55
mov edx, dword [esp + 0xc48]
call fcn.00478600
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00476b30
mov edx, dword [esp + 0xc48]
call fcn.00478600
mov edx, dword [0x4a78d4]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x478dc0
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ad27c]
cmp eax, ebx
je 0x478dc0
cmp eax, 1
setg al
mov dword [0x4ad27c], ebx
cmp al, bl
je 0x478dc0
mov edx, ebp
call fcn.00478600
push ebx
mov ecx, edi
call fcn.00478c40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48cf24
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a6d90]
jne 0x48cf2e
repz ret
jmp fcn.004917f7

Function at 0x48f844
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a6d90]
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.00489eb2
and dword [ebp - 0x14], 0
cmp dword [0x4a9a94], 0
mov dword [ebp - 0x18], eax
jne 0x48f8f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48f99f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48f99f
mov esi, dword [fcn.00485a20]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a9a94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a9a98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a9a9c], eax
call edi
push eax
call esi
mov dword [0x4a9aa4], eax
test eax, eax
je 0x48f8f7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a9aa0], eax
mov eax, dword [0x4a9aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00485a24]
cmp eax, ecx
je 0x48f950
cmp dword [0x4a9aa4], ecx
je 0x48f950
push eax
call esi
push dword [0x4a9aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48f950
test ebx, ebx
je 0x48f950
call edi
test eax, eax
je 0x48f947
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48f947
test byte [ebp - 8], 1
jne 0x48f950
or dword [ebp + 0x10], 0x200000
jmp 0x48f983
mov eax, dword [0x4a9a98]
cmp eax, dword [ebp - 0x18]
je 0x48f983
push eax
call esi
test eax, eax
je 0x48f983
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48f983
mov eax, dword [0x4a9a9c]
cmp eax, dword [ebp - 0x18]
je 0x48f983
push eax
call esi
test eax, eax
je 0x48f983
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a9a94]
call esi
test eax, eax
je 0x48f99f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48f9a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048cf24
leave
ret
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
xor eax, eax
jmp 0x401064
mov edi, edi
push ebp
mov ebp, esp
jmp 0x4010cb
sub esp, 0x20
mov eax, dword [0x404008]
cmp eax, 0
jne 0x40114f
mov eax, dword [0x40400c]
jmp 0x401145
cmp eax, 0
jne 0x40114f
jmp 0x4012f4
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
jmp 0x4011be
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x40114f
mov dword [ebp - 0x14], eax
jmp 0x401239
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x40114f
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x40114f
mov eax, dword [0x404008]
cmp eax, 0
je 0x4012d1
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
jmp 0x4012ae
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401268
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x40114f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401268
mov eax, dword [0x40400c]
cmp eax, 0
je 0x4012f4
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x4012d1
cmp eax, dword [ebp - 0x14]
je 0x4012d1
push dword [0x404000]
mov eax, 0x40401a
mov ebx, 0x404302
sub ebx, eax
jmp 0x401316
push ebx
push 0x40401a
jmp section..htext