joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4778d0
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.0x4778e3
jmp dword [eax*4 + 0x477a94]
mov eax, esi
call fcn.00401150
cmp dword [0x4ad458], 0
jne 0x4779b4
cmp dword [esi + 0xc], 0
jne 0x4779b4
mov edi, dword [esp + 0x14]
cmp dword [0x4af30c], esi
jne 0x477918
test edi, edi
jne 0x477975
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 0x477971
mov dword [0x4af30c], 0
test edi, edi
je 0x477969
mov eax, dword [0x4ad434]
test eax, eax
je 0x47795a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ae2a8
xor ecx, ecx
call fcn.0042fff0
mov ecx, dword [esi + 0x18]
call fcn.004759e0
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 0x4779a5
cmp byte [esi + 0x17], 0
jne 0x477980
mov eax, dword [esi + 0xc]
jmp 0x477982
mov eax, esi
test byte [eax + 0x15], 4
je 0x47798f
mov eax, esi
call fcn.00430100
mov byte [edi], 0
mov dword [0x4af30c], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4af30c], 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 0x477a25
test ebx, ebx
jne 0x4779e6
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4779da
mov eax, esi
call fcn.00430100
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 0x477a25
cmp ebx, 0x186a0
jae 0x477a16
mov al, byte [ecx]
test al, al
je 0x477a0a
jmp 0x477a00
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x477a00
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.0048fde0
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.004778d0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4ae28c
call fcn.00404540
cmp eax, 0xffffffff
jne 0x477a58
xor eax, eax
test esi, esi
je 0x477a8c
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x477a72
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 0x478270
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
mov al, byte [esi]
cmp al, 0x41
je 0x47827e
cmp al, 0x61
jne 0x4782e1
cmp byte [esi + 1], 0
jne 0x4782e1
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x4782e1
cmp byte [ebx], 0
jne 0x4782e1
cmp byte [edi], 0
jne 0x4782e1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x4782e1
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xca], 0
jne 0x4782c8
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4782e1
push ebp
call fcn.004794b0
add esp, 4
test al, al
jne 0x4782e1
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4782dc
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 0x47830d
cmp byte [esi], al
jne 0x47830d
mov edx, dword [esp + 0x10]
cmp byte [edx], al
jne 0x47830d
cmp byte [ebx], al
jne 0x47830d
cmp byte [edi], al
jne 0x47830d
mov eax, dword [esp + 0xc]
call fcn.00478ac0
test eax, eax
jne 0x478332
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.004788c0
add esp, 0x18
jmp 0x478306
pop edi
pop ebp
jmp fcn.004783a0
Function at 0x4783a0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
test edi, edi
je 0x47855e
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push edi
call ebp
mov dword [esp + 0x1c], eax
cmp eax, dword [0x4ae274]
je 0x4783d7
mov esi, edi
call fcn.00479430
test al, al
jne 0x47855e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4783f3
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, ebx
jne 0x478401
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp byte [0x4ad428], 0
jne 0x47841b
push ebx
call fcn.00478340
add esp, 4
test eax, eax
jne 0x478560
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
test ebx, ebx
je 0x47847e
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x47847e
cmp dword [0x4ae274], ebp
je 0x478461
mov esi, ebx
call fcn.00479430
test al, al
jne 0x478461
mov eax, dword [0x4ae274]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x16]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47847e
cmp ebp, eax
je 0x47847e
push 1
push eax
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x17]
mov esi, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x18], 0
push edi
call esi
push 1
push 0xa
mov dword [0x4a98ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a98ec], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x4784bf
mov ebp, edi
jmp 0x4784d0
cmp ebp, ebx
je 0x4784d4
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x4784d4
test ebp, ebp
jne 0x478515
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 5
jl 0x47848c
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.00410990
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.00410990
push ebx
call fcn.00478340
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x16], 0
je 0x478530
mov ecx, dword [esp + 0x20]
mov edx, dword [0x4ae274]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x17], 0
je 0x478549
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x47855e
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x478650
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x478660
mov eax, esi
call fcn.00453d30
jmp 0x47866d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x4786c8
je 0x4786c8
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.004013c0
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call ebx
test eax, eax
je 0x4786c5
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x4786c5
push 1
push 0x8000012f
call fcn.004013c0
add esp, 8
push esi
call ebx
test eax, eax
jne 0x4786a4
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x4788c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.00493cb0
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 0x4788eb
cmp cl, 0x61
jne 0x478949
cmp byte [edx + 1], bl
jne 0x478949
cmp byte [edi], bl
jne 0x478949
cmp byte [eax], bl
jne 0x478949
cmp byte [esi], bl
jne 0x478949
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x47892a
cmp byte [ebp + 0xca], bl
jne 0x47892a
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x478928
push esi
call fcn.004794b0
add esp, 4
test al, al
je 0x47892a
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x47893d
cmp esi, ebx
je 0x47893d
mov dword [ebp + 0xa4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x47896a
cmp byte [edi], bl
jne 0x47896a
cmp byte [eax], bl
jne 0x47896a
cmp byte [esi], bl
jne 0x47896a
mov eax, ebp
call fcn.00478ac0
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], 0x49b871
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.00479610
test eax, eax
je 0x478a79
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 0x478a85
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x478a51
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478a79
cmp byte [ebp + 0xca], bl
jne 0x478a4a
mov esi, dword [esp + 0x828]
call fcn.00479520
cmp al, bl
jne 0x478a4a
mov eax, dword [esp + 0x828]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x478a79
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x478a6a
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00479a50
push ebx
lea ecx, [esp + 0x10]
push ecx
call fcn.00479b10
test eax, eax
jne 0x478a95
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea edx, [esp + 0xc]
push edx
push 0x478b40
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x478aaf
cmp eax, ebx
je 0x478aaf
mov dword [ebp + 0xa4], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x478cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.00493cb0
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 0x478ce9
mov ecx, edi
call fcn.004147f0
cmp dword [esp + 0x8038], 0
jne 0x478cfe
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x478d13
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x478d1d
mov ebp, 1
test esi, esi
je 0x478eea
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 0x478eea
cmp ebp, dword [esp + 0x20]
jg 0x478eea
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00475ab0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x478ee3
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x478d90
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x478e07
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x478e5e
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x478e07
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 0x478e59
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.004781f0
test al, al
jne 0x478e84
cmp dword [esp + 0x802c], 0
jne 0x478e68
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478eb7
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x478e3e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x478e9c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.004013c0
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x478d90
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x478eb7
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00477500
mov esi, eax
jmp 0x478ebc
mov eax, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477500
jmp 0x478e5e
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push ecx
call fcn.00477500
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, 0x49cf28
test edi, edi
jne 0x478ef8
mov eax, 0x49d1e8
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
jne 0x478f25
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.00477500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ae61c]
push 0x49b871
push 0
push eax
call fcn.0042f3e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x479a50
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
je 0x479b07
mov eax, dword [esi]
test eax, eax
je 0x479b07
push edi
test al, 1
jne 0x479a79
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x479a92
push 0x7fff
lea edi, [esi + 0xc58]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x479a92
mov byte [edi], al
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x479aad
mov edx, dword [esi + 0xc50]
lea ecx, [esi + 0xc54]
push ecx
push edx
call edi
test byte [esi], 0x20
je 0x479ae8
mov ecx, dword [esi + 0xc50]
lea eax, [esp + 4]
push eax
push ecx
call edi
test eax, eax
je 0x479ae8
movzx edx, byte [esi + 0xc28]
mov ecx, dword [esp + 4]
push edx
lea eax, [esi + 0x8d58]
call fcn.0044fdf0
add esp, 4
test eax, eax
jne 0x479ae8
mov byte [esi + 0x8d58], al
test byte [esi], 8
pop edi
je 0x479b07
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 0x47a250
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e5c
call fcn.00493cb0
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x47a2fd
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x47a9d0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x49b871
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 0x47a2fd
mov ecx, dword [0x4a9978]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x47a2fd
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x47a310
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 0x47a32c
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 [0x4a9978]
push eax
push esi
mov ecx, edi
call fcn.0047a7d0
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x47a363
test eax, eax
jne 0x47a367
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0047a420
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x47a3e6
test esi, esi
je 0x47a3e6
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.004013c0
mov edi, dword [sym.imp.USER32.dll_IsWindow]
add esp, 8
push esi
call edi
test eax, eax
je 0x47a3c5
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x47a3c5
push 1
push 0x8000012f
call fcn.004013c0
add esp, 8
push esi
call edi
test eax, eax
jne 0x47a3a0
mov edx, dword [0x4a9978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a3de
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x47a400
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.0047a420
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0047a5a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47a5a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.00493cb0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x47a720
xor cl, cl
mov eax, edi
call fcn.0047a740
test eax, eax
jne 0x47a5d5
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 [0x4a9978]
push eax
push ebp
mov ecx, edi
call fcn.0047a7d0
test eax, eax
je 0x47a5f8
xor eax, eax
mov dword [0x4ae26c], eax
jmp 0x47a5fd
mov eax, dword [0x4ae26c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x49b871
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 0x47a643
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x47a64b
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ae268]
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 0x47a8a0
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x47a6f8
lea ecx, [esp + 0x10]
push ecx
push 0x479380
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x47a6b5
mov edx, dword [esp + 0xc48]
call fcn.00479f60
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.004783a0
mov edx, dword [esp + 0xc48]
call fcn.00479f60
mov edx, dword [0x4a9978]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x47a720
push 1
push eax
call fcn.004013c0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e68
ret 4
mov eax, dword [0x4ae26c]
cmp eax, ebx
je 0x47a720
cmp eax, 1
setg al
mov dword [0x4ae26c], ebx
cmp al, bl
je 0x47a720
mov edx, ebp
call fcn.00479f60
push ebx
mov ecx, edi
call fcn.0047a5a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48e934
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8df0]
jne 0x48e93e
repz ret
jmp fcn.00492ef7

Function at 0x490fb1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a8df0]
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.0048b652
and dword [ebp - 0x14], 0
cmp dword [0x4abb2c], 0
mov dword [ebp - 0x18], eax
jne 0x491064
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49110c
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x49110c
mov esi, dword [fcn.004873d0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4abb2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4abb30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4abb34], eax
call edi
push eax
call esi
mov dword [0x4abb3c], eax
test eax, eax
je 0x491064
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4abb38], eax
mov eax, dword [0x4abb38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004873d4]
cmp eax, ecx
je 0x4910bd
cmp dword [0x4abb3c], ecx
je 0x4910bd
push eax
call esi
push dword [0x4abb3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4910bd
test ebx, ebx
je 0x4910bd
call edi
test eax, eax
je 0x4910b4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4910b4
test byte [ebp - 8], 1
jne 0x4910bd
or dword [ebp + 0x10], 0x200000
jmp 0x4910f0
mov eax, dword [0x4abb30]
cmp eax, dword [ebp - 0x18]
je 0x4910f0
push eax
call esi
test eax, eax
je 0x4910f0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4910f0
mov eax, dword [0x4abb34]
cmp eax, dword [ebp - 0x18]
je 0x4910f0
push eax
call esi
test eax, eax
je 0x4910f0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4abb2c]
call esi
test eax, eax
je 0x49110c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49110e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e934
leave
ret
Function at 0x10003142
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10003161
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
nop
cmp dword [ebp - 8], esp
je 0x10003188
push 0x19
push 0x4014390
push 6
call fcn.10016e9e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000319f
mov eax, 0
jmp 0x100031db
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.1001a200
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x100031db
mov esp, ebp
pop ebp
ret 4

Function at 0x10004081
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x100040b8
push 0x12
push 0x401373e
push 6
call fcn.10016e9e
add esp, 0xc
jmp 0x100040bd
mov esp, ebp
pop ebp
ret 4

Function at 0x10005aee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x10005b13
xor eax, eax
jmp 0x10005b18
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.1001b1b0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10005b4e
push ebx
call fcn.10016e98
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x10005b5b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10005bb0
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x10005bb0
test eax, eax
je 0x10005bb0
lea esi, [edx + ecx]
cmp edx, esi
jae 0x10005bb0
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x10005b8c
pop esi
mov eax, dword [ebp - 4]
leave
ret 4