joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475490
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.0x4754a3
jmp dword [eax*4 + 0x475650]
mov eax, esi
call fcn.00401150
cmp dword [0x4aa394], 0
jne 0x475574
cmp dword [esi + 0xc], 0
jne 0x475574
mov edi, dword [esp + 0x14]
cmp dword [0x4ad2ec], esi
jne 0x4754d8
test edi, edi
jne 0x475535
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 0x475531
mov dword [0x4ad2ec], 0
test edi, edi
je 0x475529
mov eax, dword [0x4aa374]
test eax, eax
je 0x47551a
mov edx, dword [esi + 0x18]
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
push 0x4ac290
xor ecx, ecx
call fcn.0042dbe0
mov ecx, dword [esi + 0x18]
call fcn.00473790
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 0x475565
cmp byte [esi + 0x17], 0
jne 0x475540
mov eax, dword [esi + 0xc]
jmp 0x475542
mov eax, esi
test byte [eax + 0x15], 4
je 0x47554f
mov eax, esi
call fcn.0042dd10
mov byte [edi], 0
mov dword [0x4ad2ec], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4ad2ec], 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 0x4755e5
test ebx, ebx
jne 0x4755a6
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x47559a
mov eax, esi
call fcn.0042dd10
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 0x4755e5
cmp ebx, 0x186a0
jae 0x4755d6
mov al, byte [ecx]
test al, al
je 0x4755ca
jmp 0x4755c0
inc ecx
mov byte [edi], al
mov al, byte [ecx]
inc edi
test al, al
jne 0x4755c0
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.0048dae0
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.00475490
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004040f0
cmp eax, 0xffffffff
jne 0x475614
xor eax, eax
test esi, esi
je 0x475648
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47562e
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 0x475e40
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
mov al, byte [esi]
cmp al, 0x41
je 0x475e4e
cmp al, 0x61
jne 0x475ea4
cmp byte [esi + 1], 0
jne 0x475ea4
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x475ea4
cmp byte [ebx], 0
jne 0x475ea4
cmp byte [edi], 0
jne 0x475ea4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x475ea4
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xca], 0
jne 0x475e8b
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x475ea4
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x475e9f
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 0x475ed0
cmp byte [esi], al
jne 0x475ed0
mov edx, dword [esp + 0x10]
cmp byte [edx], al
jne 0x475ed0
cmp byte [ebx], al
jne 0x475ed0
cmp byte [edi], al
jne 0x475ed0
mov eax, dword [esp + 0xc]
call fcn.00476660
test eax, eax
jne 0x475ef5
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.00476470
add esp, 0x18
jmp 0x475ec9
pop edi
pop ebp
jmp fcn.00475f60
Function at 0x475f60
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
test edi, edi
jne 0x475f6f
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 [0x4ac238]
je 0x475f9a
mov esi, edi
call fcn.00476f90
test al, al
jne 0x476132
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x475fb4
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp edi, esi
jne 0x475fc2
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x475fd6
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4aa352], 0
jne 0x475ff0
push esi
call fcn.00475f00
add esp, 4
test eax, eax
jne 0x476134
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x47604d
push 0
push esi
call ebx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x47604d
cmp dword [0x4ac238], ebx
je 0x476034
call fcn.00476f90
test al, al
jne 0x476034
mov eax, dword [0x4ac238]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x47604d
cmp ebx, ebp
je 0x47604d
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 0x476060
push edi
call ebx
push 1
push 0xa
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
cmp ebp, edi
jne 0x476093
mov ebp, edi
jmp 0x4760a4
cmp ebp, esi
je 0x4760a8
push 4
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
cmp edi, eax
jne 0x4760a8
test ebp, ebp
jne 0x4760e9
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x476060
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040ef00
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 2
call fcn.0040ef00
push esi
call fcn.00475f00
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x476104
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4ac238]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x47611d
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 0x476132
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 0x476220
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
je 0x476230
mov eax, esi
call fcn.00452690
jmp 0x47623d
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 4]
test eax, eax
js 0x476298
je 0x476298
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 0x476295
add edi, dword [esp + 0x10]
call ebp
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476295
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call ebx
test eax, eax
jne 0x476274
pop edi
pop ebp
pop ebx
mov eax, esi
ret
Function at 0x476470
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e60
call fcn.004919b0
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 0x47649b
cmp cl, 0x61
jne 0x4764ec
cmp byte [edx + 1], bl
jne 0x4764ec
cmp byte [edi], bl
jne 0x4764ec
cmp byte [eax], bl
jne 0x4764ec
cmp byte [esi], bl
jne 0x4764ec
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4764cd
cmp byte [ebp + 0xca], bl
jne 0x4764cd
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4764cd
xor esi, esi
cmp byte [esp + 0x8e7c], bl
je 0x4764e0
cmp esi, ebx
je 0x4764e0
mov dword [ebp + 0xa4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
cmp cl, bl
jne 0x47650d
cmp byte [edi], bl
jne 0x47650d
cmp byte [eax], bl
jne 0x47650d
cmp byte [esi], bl
jne 0x47650d
mov eax, ebp
call fcn.00476660
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], 0x498819
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.004770d0
test eax, eax
je 0x47661e
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 0x47662a
mov eax, dword [esp + 0x828]
cmp eax, 0xffff
je 0x4765f6
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47661e
cmp byte [ebp + 0xca], bl
jne 0x4765ef
mov eax, dword [esp + 0x828]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4765ef
mov ecx, dword [esp + 0x828]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x47661e
mov eax, dword [esp + 0x828]
cmp dword [esp + 0xc5c], eax
je 0x47660f
lea esi, [esp + 0xc]
mov dword [esp + 0xc5c], eax
call fcn.00477510
push ebx
lea edx, [esp + 0x10]
push edx
call fcn.004775d0
test eax, eax
jne 0x47663a
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
lea eax, [esp + 0xc]
push eax
push 0x4766d0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc3c]
cmp byte [esp + 0x8e7c], bl
je 0x476654
cmp eax, ebx
je 0x476654
mov dword [ebp + 0xa4], eax
pop esi
pop ebp
pop ebx
add esp, 0x8e60
ret
Function at 0x476840
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x8018
call fcn.004919b0
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 0x476869
mov ecx, edi
call fcn.00412bb0
cmp dword [esp + 0x8038], 0
jne 0x47687e
mov dword [esp + 0x8038], 0x1f4
cmp dword [esp + 0x803c], 1
jge 0x476893
mov dword [esp + 0x803c], 0x32
cmp ebp, 1
jge 0x47689d
mov ebp, 1
test esi, esi
je 0x476a6a
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 0x476a6a
cmp ebp, dword [esp + 0x20]
jg 0x476a6a
push 0x8000
xor eax, eax
mov ecx, esi
lea edi, [esp + 0x1c]
call fcn.00473860
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x476a63
dec ebp
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
jmp 0x476910
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push ebp
push 0x403
push esi
call ebx
test eax, eax
je 0x476987
mov edx, 0x7fff
cmp word [esp + 0x14], dx
ja 0x4769de
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push ebp
push 0x402
push esi
call ebx
test eax, eax
je 0x476987
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 0x4769d9
mov edx, dword [esp + 0x8034]
lea eax, [esp + 0x28]
call fcn.00475dc0
test al, al
jne 0x476a04
cmp dword [esp + 0x802c], 0
jne 0x4769e8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476a37
mov edi, dword [esp + 0x8038]
test edi, edi
js 0x4769be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476a1c
mov edx, dword [esp + 0x803c]
push 1
push edx
call fcn.00401350
mov edi, dword [esp + 0x24]
add esp, 8
jmp 0x476910
mov byte [esp + 0x28], 0
cmp dword [esp + 0x802c], 0
je 0x476a37
mov eax, dword [esp + 0x802c]
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004750c0
mov esi, eax
jmp 0x476a3c
mov eax, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988a4
push eax
call fcn.004750c0
jmp 0x4769de
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f08
push ecx
call fcn.004750c0
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, 0x499f08
test edi, edi
jne 0x476a78
mov eax, 0x49a084
mov ecx, dword [0x4a6920]
cmp byte [ecx + 0xe8], 0
jne 0x476aa5
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.004750c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
mov ecx, dword [0x4ac600]
push 0x498819
push 0
push eax
call fcn.0042d220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8018
ret
Function at 0x477510
Capabilities:
Get graphical window text

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

Disassembly:
mov eax, 0x8e5c
call fcn.004919b0
mov eax, dword [esp + 0x8e60]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x477d9d
mov dword [esp + 0xc44], eax
lea eax, [esp + 4]
push eax
push 0x478430
mov dword [esp + 0xc], ebx
mov dword [esp + 0x818], 0x498819
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 0x477d9d
mov ecx, dword [0x4a6920]
mov eax, dword [ecx + 0x54]
cmp eax, 0xffffffff
jle 0x477d9d
push 1
push eax
call fcn.00401350
add esp, 8
mov eax, 1
pop ebx
add esp, 0x8e5c
ret 4
Function at 0x477db0
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 0x477dcc
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 [0x4a6920]
push eax
push esi
mov ecx, edi
call fcn.00478270
cmp byte [edi], 0
mov dword [esp + 0x10], eax
je 0x477e03
test eax, eax
jne 0x477e07
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00477ec0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x477e86
test esi, esi
je 0x477e86
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 0x477e65
mov edi, edi
call ebp
lea ecx, [ebx + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x477e65
push 1
push 0x8000012f
call fcn.00401350
add esp, 8
push esi
call edi
test eax, eax
jne 0x477e40
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x477e7e
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 0x477ea0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push edi
call fcn.00477ec0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00478040
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x478040
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e68
call fcn.004919b0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4781c0
xor cl, cl
mov eax, edi
call fcn.004781e0
test eax, eax
jne 0x478075
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 [0x4a6920]
push eax
push ebp
mov ecx, edi
call fcn.00478270
test eax, eax
je 0x478098
xor eax, eax
mov dword [0x4ac230], eax
jmp 0x47809d
mov eax, dword [0x4ac230]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x824], 0x498819
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 0x4780e3
mov byte [esp + 0xc41], bl
cmp eax, ebx
je 0x4780eb
mov byte [esp + 0xc41], 1
mov ecx, dword [0x4ac22c]
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 0x478340
mov dword [esp + 0xc58], ecx
mov dword [esp + 0xc60], edx
call esi
mov eax, dword [esp + 0xc48]
cmp eax, ebx
je 0x478198
lea ecx, [esp + 0x10]
push ecx
push 0x476ee0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x478155
mov edx, dword [esp + 0xc48]
call fcn.00477a00
mov dword [esp + 0xc48], esi
mov eax, dword [esp + 0xc48]
call fcn.00475f60
mov edx, dword [esp + 0xc48]
call fcn.00477a00
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x54]
cmp eax, 0xffffffff
jle 0x4781c0
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 [0x4ac230]
cmp eax, ebx
je 0x4781c0
cmp eax, 1
setg al
mov dword [0x4ac230], ebx
cmp al, bl
je 0x4781c0
mov edx, ebp
call fcn.00477a00
push ebx
mov ecx, edi
call fcn.00478040
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e68
ret 4
Function at 0x48c2c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5d90]
jne 0x48c2ce
repz ret
jmp fcn.00490bf7

Function at 0x48ec44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5d90]
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.004892b2
and dword [ebp - 0x14], 0
cmp dword [0x4a8a54], 0
mov dword [ebp - 0x18], eax
jne 0x48ecf7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48ed9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48ed9f
mov esi, dword [fcn.00484e20]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8a54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8a58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8a5c], eax
call edi
push eax
call esi
mov dword [0x4a8a64], eax
test eax, eax
je 0x48ecf7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8a60], eax
mov eax, dword [0x4a8a60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00484e24]
cmp eax, ecx
je 0x48ed50
cmp dword [0x4a8a64], ecx
je 0x48ed50
push eax
call esi
push dword [0x4a8a64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48ed50
test ebx, ebx
je 0x48ed50
call edi
test eax, eax
je 0x48ed47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48ed47
test byte [ebp - 8], 1
jne 0x48ed50
or dword [ebp + 0x10], 0x200000
jmp 0x48ed83
mov eax, dword [0x4a8a58]
cmp eax, dword [ebp - 0x18]
je 0x48ed83
push eax
call esi
test eax, eax
je 0x48ed83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48ed83
mov eax, dword [0x4a8a5c]
cmp eax, dword [ebp - 0x18]
je 0x48ed83
push eax
call esi
test eax, eax
je 0x48ed83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8a54]
call esi
test eax, eax
je 0x48ed9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48eda1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c2c4
leave
ret
Function at 0x419b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x419b6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419b60
mov eax, 1
add ebx, ebx
jne 0x419b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419b78
jne 0x419b94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419b78
xor ecx, ecx
sub eax, 3
jb 0x419ba8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419c1a
mov ebp, eax
add ebx, ebx
jne 0x419bb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419bc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419be4
inc ecx
add ebx, ebx
jne 0x419bd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419bc5
jne 0x419be1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419bc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419c04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419bf5
jmp 0x419b66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419c04
add edi, ecx
jmp 0x419b66
pop esi
mov edi, esi
mov ecx, 0x239
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419c22
cmp byte [edi], 4
jne 0x419c22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419c27
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419c96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x190a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419c54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x190b0]
or eax, eax
je 0x419c90
mov dword [ebx], eax
add ebx, 4
jmp 0x419c71
call dword [esi + 0x190ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x419cc7
cmp al, 0xef
ja 0x419cba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x419c9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x419ca9
mov ebp, dword [esi + 0x190b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419cfb
sub esp, 0xffffff80
jmp 0x40ac00