joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473ac0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x473b46
cmp word [esi], 0
je 0x473b46
push 4
push str.__
push esi
call fcn.00496b13
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x473af5
lea ecx, [esi + 8]
mov edx, 0x4c6ab8
call fcn.0040ab90
test eax, eax
je 0x473b2d
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x473b46
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x473b25
mov eax, dword [esp + 8]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x473b3a
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x474080
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004a4980
push esi
push edi
push 0x7fff
lea eax, [esp + 0xc]
mov edi, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x4740c6
lea ecx, [esi*2 + 2]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0048ea30
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret
xor eax, eax
mov word [edi], ax
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret
Function at 0x4748c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, ecx
xor ebp, ebp
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x4748e7
push 2
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
jmp 0x4748ed
mov esi, dword [0x4d16c4]
test esi, esi
je 0x474a30
test edi, edi
jns 0x474902
mov eax, edi
neg eax
movzx eax, ax
jmp 0x47492f
test edi, edi
mov dword [esp + 0x1c], ebp
mov eax, 1
mov dword [esp + 0x20], ebp
cmovne eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x474890
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x20]
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x474a13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x474a13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x474a13
cmp dword [esp + 0x28], 0xffffffff
mov ebp, dword [esp + 0x2c]
cmovne ebp, dword [esp + 0x28]
test ebp, ebp
jne 0x47497e
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
movzx eax, word [ebx + 4]
lea edx, [ebx + 6]
cmp eax, 1
jbe 0x4749c3
add ebx, 0x14
lea edi, [eax - 1]
mov al, byte [ebx]
mov cl, byte [edx]
cmp al, cl
jbe 0x4749a4
movzx eax, cl
xor ecx, ecx
cmp eax, ebp
setl cl
jmp 0x4749ae
movzx eax, al
xor ecx, ecx
cmp eax, ebp
setge cl
test ecx, ecx
mov eax, ebx
cmove eax, edx
add ebx, 0xe
mov edx, eax
sub edi, 1
jne 0x474990
mov edi, dword [esp + 0x14]
movzx eax, word [edx + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x474a11
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x474a11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x474a11
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebp, eax
jmp 0x474a13
xor ebp, ebp
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x474a22
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x474a34
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x10]
test edi, edi
jle 0x474a4d
lea eax, [edi - 1]
push eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x475760
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4d3e84
push esi
mov esi, edx
call fcn.004059b0
test eax, eax
jne 0x475791
push 0x4ac22c
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4d3ee0
call fcn.0042d580
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x475819
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x475819
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x475819
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x475819
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4758cd
test edi, edi
je 0x475803
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x475868
push edi
push ebx
push eax
call fcn.0048ea30
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4757a7
cmp dword [0x4d3e9c], 0
je 0x47585b
cmp dword [0x4d3e8c], 0
je 0x475841
push dword [0x4d3e84]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4d3e8c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4d3e9c], 0
mov dword [0x4d3e84], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4d3e9c], 0
je 0x4758b1
cmp dword [0x4d3e8c], 0
je 0x475897
push dword [0x4d3e84]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4d3e8c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4d3e9c], 0
mov dword [0x4d3e84], 0
push 0x4ac22c
push 0x4bd19c
mov ecx, 0x4d3ee0
call fcn.0042d580
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4d3e9c], 0
je 0x47590f
cmp dword [0x4d3e8c], 0
je 0x4758f5
push dword [0x4d3e84]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4d3e8c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4d3e9c], 0
mov dword [0x4d3e84], 0
push 0x4ac22c
push str.Out_of_memory.
mov ecx, 0x4d3ee0
call fcn.0042d580
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x475d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x475d79
jmp dword [eax*4 + 0x475f2c]
call fcn.00401b40
cmp dword [0x4d1ff0], 0
jne 0x475e3d
cmp dword [esi + 0xc], 0
jne 0x475e3d
mov edi, dword [ebp + 8]
cmp dword [0x4d5e94], esi
jne 0x475dab
test edi, edi
jne 0x475e0c
push 0
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x475e08
mov dword [0x4d5e94], 0
test edi, edi
je 0x475dfe
mov eax, dword [0x4d1ffc]
test eax, eax
je 0x475deb
push 0
push dword [esi + 0x18]
mov ecx, 0x4d3ee0
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
call fcn.0042d9f0
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.00474080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
dec eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x475e2c
cmp byte [esi + 0x17], 0
jne 0x475e17
mov eax, dword [esi + 0xc]
jmp 0x475e19
mov eax, esi
test byte [eax + 0x15], 4
je 0x475e25
push esi
call fcn.0042db20
xor eax, eax
xor esi, esi
mov word [edi], ax
mov dword [0x4d5e94], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xc]
mov ebx, eax
mov edi, dword [ebp + 8]
shr ebx, 1
test edi, edi
je 0x475ebb
test eax, eax
jne 0x475e6f
cmp byte [esi + 0x17], al
cmovne eax, esi
test byte [eax + 0x15], 4
je 0x475e61
push esi
call fcn.0042db20
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x475ebb
cmp eax, 0x186a0
jae 0x475eaa
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x475e9a
mov word [edi], dx
lea ecx, [ecx + 2]
movzx eax, word [ecx]
add edi, 2
mov edx, eax
test ax, ax
jne 0x475e87
xor eax, eax
mov word [edi], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
push ecx
push edi
call fcn.0048ea30
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
call fcn.00475d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
push esi
call fcn.004053d0
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
test esi, esi
je 0x475f21
mov word [esi + eax*2], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x475f08
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push dword [ebp + 8]
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x476720
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
movzx eax, word [edi]
cmp eax, 0x41
je 0x476739
cmp eax, 0x61
jne 0x476796
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x47679e
cmp word [ecx], 0
jne 0x47679e
cmp word [eax], 0
jne 0x47679e
cmp word [ebp], 0
jne 0x47679e
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x476796
cmp byte [ebx + 0xea], 0
jne 0x47677b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x476796
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x47678f
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4767c8
cmp word [edi], 0
jne 0x4767c8
cmp word [ecx], 0
jne 0x4767c8
cmp word [eax], 0
jne 0x4767c8
cmp word [ebp], 0
jne 0x4767c8
mov ecx, ebx
call fcn.00476ee0
jmp 0x4767e2
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00476d30
add esp, 0x1c
test eax, eax
jne 0x4767eb
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.00476860
Function at 0x476860
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4769e8
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebp
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, dword [0x4d3e6c]
je 0x476899
mov ecx, esi
call fcn.00477810
test al, al
jne 0x4769e8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
test ebx, ebx
jne 0x4768b3
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
cmp esi, ebx
jne 0x4768c1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4768d5
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x4d1ff7], 0
jne 0x4768ef
mov edx, ebx
mov ecx, esi
call fcn.00476800
test eax, eax
jne 0x4769ea
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x476950
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x476958
cmp dword [0x4d3e6c], ebp
je 0x476935
mov ecx, ebx
call fcn.00477810
test al, al
jne 0x476935
push 1
push ebp
push dword [0x4d3e6c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x476958
cmp ebp, edi
je 0x476958
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x476958
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
nop word [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.00476800
mov ebp, eax
test ebp, ebp
jne 0x4769a7
inc edi
cmp edi, 5
jl 0x476960
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.0040f910
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.0040f910
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.00476800
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4769c3
push 0
push edi
push dword [0x4d3e6c]
call ebx
cmp byte [esp + 0x13], 0
je 0x4769d3
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4769e8
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x476af0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x476b4d
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x476b5a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x476b5a
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x476b5a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x476b5a
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x476bba
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov edx, 1
mov dword [esp + 0x14], eax
mov ecx, 0x8000012f
call fcn.00401e60
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x476bb3
add edi, dword [esp + 0x14]
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x476bb3
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401e60
push esi
call ebp
test eax, eax
jne 0x476b92
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x476d30
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c64
call fcn.004a4980
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x476d61
cmp eax, 0x61
jne 0x476db9
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x476db9
cmp word [ebx], 0
jne 0x476db9
cmp word [edx], 0
jne 0x476db9
cmp word [esi], 0
jne 0x476db9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x476da0
cmp byte [edi + 0xea], 0
jne 0x476da0
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and esi, eax
cmp byte [ebp + 0x18], 0
je 0x476db0
test esi, esi
je 0x476db0
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x476ddb
cmp word [ebx], ax
jne 0x476ddb
cmp word [edx], ax
jne 0x476ddb
cmp word [esi], ax
jne 0x476ddb
mov ecx, edi
call fcn.00476ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0042f590
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.00477990
test eax, eax
je 0x476e9a
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x1839], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1848], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x184c], eax
je 0x476ea3
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x476e72
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x476e9a
cmp byte [edi + 0xea], 0
jne 0x476e6b
push dword [esp + 0x102c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x476e6b
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x476e9a
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1860], eax
je 0x476e8b
lea ecx, [esp + 0x10]
mov dword [esp + 0x1860], eax
call fcn.00477de0
push 0
lea ecx, [esp + 0x14]
call fcn.00477ea0
test eax, eax
jne 0x476eb3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x476f50
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1840]
je 0x476e9c
test eax, eax
je 0x476e9c
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477de0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1850]
test ecx, ecx
je 0x477e9d
mov eax, dword [esi]
test eax, eax
je 0x477e9d
push edi
test al, 1
jne 0x477e0d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x477e27
push 0x7fff
lea edi, [esi + 0x1858]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x477e27
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x477e44
lea eax, [esi + 0x1854]
push eax
push dword [esi + 0x1850]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x477e7f
lea eax, [esp + 8]
push eax
push dword [esi + 0x1850]
call edi
test eax, eax
je 0x477e7f
movzx eax, byte [esi + 0x1828]
lea edx, [esi + 0x11a58]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0044f4b0
add esp, 8
test eax, eax
jne 0x477e7f
mov word [esi + 0x11a58], ax
test byte [esi], 8
pop edi
je 0x477e9d
push 0x101
lea eax, [esi + 0x11856]
push eax
push dword [esi + 0x1850]
call dword [sym.imp.USER32.dll_GetClassNameW]
pop esi
pop ecx
ret

Function at 0x478950
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004a4980
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x478aa9
push 0
call fcn.00478ac0
test eax, eax
jne 0x478981
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4ce8c8]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.00478b60
mov edx, dword [0x4d3e64]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x10]
mov dword [0x4d3e64], edx
call fcn.0042f590
cmp byte [ebp + 8], 0
je 0x4789c5
mov byte [esp + 0x1839], 0
test edx, edx
je 0x4789cd
mov byte [esp + 0x1839], 1
mov eax, dword [0x4d3e60]
mov dword [esp + 0x1848], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1850], eax
lea eax, [esp + 0x10]
push eax
push 0x478bf0
mov dword [esp + 0x1854], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1840]
test eax, eax
je 0x478a7c
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x477790
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x478a3e
mov ecx, dword [esp + 0x1840]
call fcn.00478300
mov dword [esp + 0x1840], esi
jmp 0x478a45
mov esi, dword [esp + 0x1840]
mov ecx, esi
call fcn.00476860
mov ecx, dword [esp + 0x1840]
call fcn.00478300
mov eax, dword [0x4ce8c8]
mov ecx, dword [eax + 0x54]
cmp ecx, 0xffffffff
jle 0x478aa9
mov edx, 1
call fcn.00401e60
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4d3e64]
test eax, eax
je 0x478aa9
cmp eax, 1
mov dword [0x4d3e64], 0
setg al
test al, al
je 0x478aa9
mov ecx, ebx
call fcn.00478300
push 0
mov ecx, esi
call fcn.00478950
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x54047b10
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x34647bdd
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x432f6f
push 0x14
push 0x44d5a8
call fcn.004323f0
push 1
call fcn.00432b55
pop ecx
test al, al
jne 0x432e26
push 7
call fcn.00433591
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00432b20
mov byte [ebp - 0x24], al
mov eax, dword [0x455c54]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x432e1f
test eax, eax
jne 0x432e90
mov dword [0x455c54], ecx
push 0x442308
push 0x4422f0
call fcn.00439bbe
pop ecx
pop ecx
test eax, eax
je 0x432e73
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x432f69
push 0x4422ec
push 0x442284
call fcn.00439b62
pop ecx
pop ecx
mov dword [0x455c54], 2
jmp 0x432e95
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00432caf
pop ecx
call fcn.0043383b
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x432ec5
push esi
call fcn.00432c25
pop ecx
test al, al
je 0x432ec5
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004332f7
call esi
call fcn.00433841
mov esi, eax
cmp dword [esi], edi
je 0x432ee3
push esi
call fcn.00432c25
pop ecx
test al, al
je 0x432ee3
push dword [esi]
call fcn.00438fce
pop ecx
call fcn.004336ac
movzx eax, ax
push eax
call fcn.00439b0f
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00438edd
test al, al
jne 0x432f0e
push esi
call fcn.00439006
test bl, bl
jne 0x432f17
call fcn.00438fa9
push edi
push 1
call fcn.00432ccc
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x432f69
call fcn.00432436
ret
call fcn.00433734
jmp 0x432e07